.profile-banner {
    height: 160px;
    background: #ff9d00;
    border-radius: 16px 16px 0 0;
    position: relative;
    flex-shrink: 0;
}
.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.profile-wrapper {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.profile-body {
    padding: 0 28px 28px;
}

.avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    margin-top: -54px;
    position: relative;
    z-index: 1;
    background: #e4e7ed;
    display: block;
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.profile-handle {
    color: #6b7280;
    font-size: .875rem;
    margin-top: 2px;
}

.verified-badge {
    color: #ff9d00;
    font-size: 1rem;
    vertical-align: middle;
}

.profile-bio {
    color: #4b5563;
    font-size: .9rem;
    margin-top: 14px;
    line-height: 1.6;
}

/* ── Stats ── */
.profile-stats {
    display: flex;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid #e4e7ed;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-item strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1d23;
}

.stat-item span {
    font-size: .78rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.btn-follow {
    background: #ff9d00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}

.btn-follow:hover {
    background: #ff7a00;
    transform: translateY(-1px);
}

.btn-follow.following {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
}

.btn-follow.following:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
}

.tabs-row {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e4e7ed;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.tab-btn.active {
    color: #ff9d00;
    border-bottom-color: #ff9d00;
}

.tab-btn:hover:not(.active) {
    color: #4b5563;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    padding: 1px 7px;
    margin-left: 6px;
    color: #6b7280;
}

.tab-btn.active .tab-count {
    background: #fff3e0;
    color: #ff7a00;
}

.card-item {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.card-item:hover {
    box-shadow: 0 2px 10px rgba(255, 157, 0, .10);
}

.card-item a {
    text-decoration: none;
    color: inherit;
}

.card-item a:hover h5 {
    color: #ff7a00;
}

.card-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    transition: color .15s;
}

.card-meta {
    font-size: .8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-pill {
    background: #fff3e0;
    color: #c97600;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.card-excerpt {
    font-size: .875rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 12px 0 16px;
    white-space: pre-line;
}

.card-footer-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.card-stat {
    font-size: .8rem;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-stat i {
    color: #9ca3af;
}

.pinned-badge {
    margin-left: auto;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-origin {
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-origin a {
    color: #ff7a00;
    font-weight: 600;
    text-decoration: none;
}

.comment-origin a:hover {
    text-decoration: underline;
}

.comment-text {
    font-size: .875rem;
    color: #1a1d23;
    line-height: 1.6;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-icon {
    width: 52px;
    height: 52px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #d1d5db;
}

.empty-state h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 6px;
}

.empty-state p {
    font-size: .875rem;
    margin: 0;
}

/* ── Tab pane ── */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

@media (max-width: 640px) {
    .profile-body {
        padding: 0 16px 20px;
    }

    .avatar-ring {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }

    .profile-banner {
        height: 130px;
    }

    .profile-stats {
        gap: 20px;
    }
}

/* USERS CSS */
.users-header {
    margin-bottom: 2rem;
}

.user-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    transition: .2s;
    height: 100%;
}

.user-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.user-username {
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.user-username:hover {
    color: #ff9d00;
}

.user-stats {
    display: flex;
    gap: 1rem;
    margin-top: .75rem;
    font-size: .9rem;
    color: #6b7280;
}

.user-bio {
    color: #6b7280;
    font-size: .92rem;
    margin-top: .75rem;
    min-height: 45px;
}

.user-footer {
    border-top: 1px solid #f1f5f9;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: .85rem;
    color: #6b7280;
}

