.profile-action-block {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-main-btn,
.profile-secondary-btn,
.subscribe-btn-main {
    border: none;
    border-radius: 24px;
    padding: 11px 18px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.profile-secondary-btn,
.subscribe-btn-main.subscribed {
    background: #272727;
    color: #fff;
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 10px 0 24px;
}

.profile-stat-card,
.dashboard-card,
.profile-about-card,
.empty-profile-state {
    background: #181818;
    border: 1px solid #303030;
    border-radius: 18px;
    padding: 18px;
}

.profile-stat-card span {
    color: #aaa;
    display: block;
    margin-bottom: 8px;
}

.profile-stat-card strong {
    font-size: 26px;
}

.profile-video-card {
    color: #fff;
    text-decoration: none;
}

.profile-video-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: #222;
}

.profile-video-card h3 {
    font-size: 15px;
    margin: 9px 0 4px;
    line-height: 1.35;
}

.profile-video-card p {
    color: #aaa;
    font-size: 13px;
}

.dashboard-grid,
.about-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

@media (max-width: 800px) {
    .profile-header-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-avatar-wrap {
        margin: auto;
    }

    .profile-action-block {
        justify-content: center;
    }

    .profile-banner {
        height: 180px;
    }
}
.profile-video-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.profile-video-thumb-wrap img {
    transition: transform .25s ease;
}

.profile-video-card:hover img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 6px;
}

.profile-video-meta {
    padding-top: 10px;
}

.profile-video-meta h3 {
    line-height: 1.45;
}

.edit-avatar-btn,
.edit-banner-btn {
    transition: all .2s ease;
}

.edit-avatar-btn:hover,
.edit-banner-btn:hover {
    transform: scale(1.05);
}

.profile-avatar-wrap:hover .edit-avatar-btn {
    opacity: 1;
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 18px;
    padding: 18px;
}

.profile-field label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.profile-field input {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #303030;
    border-radius: 12px;
    color: #fff;
    padding: 12px;
}

.profile-form-actions {
    padding: 18px;
    border-top: 1px solid #303030;
}

.profile-edit-toggle,
.save-profile-section-btn {
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| SAVE BUTTON
|--------------------------------------------------------------------------
*/

.save-profile-section-btn {
    background: #3ea6ff;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    min-width: 150px;
    box-shadow:
            0 4px 12px rgba(62,166,255,0.25);
}

.save-profile-section-btn:hover {
    background: #2196f3;
    transform: translateY(-2px);
}

.save-profile-section-btn:active {
    transform: scale(0.98);
}

/*
|--------------------------------------------------------------------------
| DISABLED STATE
|--------------------------------------------------------------------------
*/

.save-profile-section-btn:disabled,
.profile-edit-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .profile-edit-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .save-profile-section-btn {
        width: 100%;
    }
}

.profile-edit-form {
    display: none;
}

.profile-edit-form.active {
    display: block;
}

.save-profile-section-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================
   Profile Page Red Gradient Dark Polish
   Add this at the bottom of /css/profile.css
   ========================================================== */

.profile-main {
    padding: 20px;
    background: transparent !important;
    color: var(--gh-text);
}

.profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, transparent 35%, rgba(5,6,9,0.72) 100%),
            radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 36%);
    pointer-events: none;
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 260px;
}

/* Edit banner */
.edit-banner-btn {
    position: absolute;
    right: 22px;
    bottom: 22px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.64) !important;
    color: #ffffff !important;
    cursor: pointer;
    z-index: 2;
    font-weight: 900;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.edit-banner-btn:hover {
    background: rgba(255,0,60,0.82) !important;
}

/* Avatar */
.profile-avatar-img {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #151821 !important;
    box-shadow: 0 16px 38px rgba(0,0,0,0.50),
    0 0 32px rgba(255,0,60,0.22);
}

.edit-avatar-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #151821 !important;
    background: var(--gh-gradient-red) !important;
    color: #ffffff !important;
    cursor: pointer;
    opacity: .9;
    box-shadow: 0 8px 22px rgba(255,0,60,0.30);
}

.verified-icon {
    color: var(--gh-red-soft) !important;
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(255,0,60,0.45));
}

.profile-handle,
.profile-stats-line {
    color: var(--gh-muted) !important;
    margin: 6px 0;
}

.profile-stats-line span {
    color: #ffffff;
    font-weight: 900;
}

.profile-extra-info span {
    color: #ffffff;
    font-weight: 800;
}

/* Profile buttons */
.profile-main-btn,
.subscribe-btn-main {
    background: var(--gh-gradient-red) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(255,0,60,0.30);
    transition: 0.22s ease;
}

.profile-main-btn:hover,
.subscribe-btn-main:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.profile-secondary-btn {
    background: #242936 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 999px !important;
    font-weight: 850;
}

.profile-secondary-btn:hover {
    background: #303748 !important;
}

.subscribe-btn-main.subscribed {
    background: #2b3142 !important;
    color: #ffffff !important;
    box-shadow: none;
}

.profile-completion-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,0,60,0.16), transparent 34%);
    pointer-events: none;
}

.completion-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.completion-top h3,
.profile-edit-head h3,
.dashboard-card h3,
.profile-about-card h3 {
    color: #ffffff;
    font-weight: 950;
}

.completion-top p {
    color: var(--gh-muted);
}

#profileCompletionText {
    color: #ffffff;
    font-size: 1.45rem;
    text-shadow: 0 0 18px rgba(255,0,60,0.35);
}

.completion-progress {
    margin-top: 16px;
    height: 10px;
    background: #252b38 !important;
    border-radius: 999px;
    overflow: hidden;
}

.completion-progress span {
    display: block;
    height: 100%;
    background: var(--gh-gradient-red) !important;
    border-radius: 999px;
    transition: width 0.35s ease;
    box-shadow: 0 0 18px rgba(255,0,60,0.42);
}

.profile-edit-head {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/*
|--------------------------------------------------------------------------
| EDIT BUTTON
|--------------------------------------------------------------------------
*/


.profile-edit-toggle {
    background: rgba(255,0,60,0.14) !important;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 999px !important;
    border: 1px solid rgba(255,0,60,0.32) !important;
    font-weight: 900;
}

.profile-edit-toggle:hover {
    background: var(--gh-gradient-red) !important;
    transform: translateY(-1px);
}

/* Dashboard */
.dashboard-card {
    transition: 0.22s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,0,60,0.11), transparent 36%);
    pointer-events: none;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,0,60,0.34) !important;
    box-shadow:
            0 22px 55px rgba(0,0,0,0.52),
            0 0 35px rgba(255,0,60,0.15);
}

.dashboard-card p,
.dashboard-card strong {
    position: relative;
    z-index: 1;
}

.dashboard-card p {
    color: var(--gh-text-soft);
}

.dashboard-card > p {
    font-size: 1.55rem;
    font-weight: 950;
    color: #ffffff;
}

.profile-tab:hover,
.profile-tab.active {
    background: var(--gh-gradient-red) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(255,0,60,0.25);
}

.profile-about-card,
.empty-profile-state {
    color: var(--gh-text-soft);
}

/* Video grid empty/loading areas */
.profile-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    color: var(--gh-text);
}

.load-more-profile-btn {
    display: inline-flex;
    margin: 28px auto;
    border: none;
    border-radius: 24px;
    padding: 0 18px;
    background: #272727;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

/* Responsive */
@media (max-width: 900px) {
    .profile-banner {
        min-height: 190px;
        border-radius: 18px;
    }

    .profile-banner img {
        min-height: 190px;
    }

    .profile-header-card {
        border-radius: 20px !important;
    }
}

@media (max-width: 600px) {
    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .profile-tab {
        white-space: nowrap;
    }

    .edit-banner-btn {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}
/* ==========================================================
   Profile Page Spacing Fix
   Add at the bottom of /css/profile.css
   ========================================================== */

/* Give all main profile sections proper breathing space */
.profile-main > section,
.profile-main > div,
.profile-main > nav {
    margin-bottom: 24px;
}
/* Banner */


/* Banner should separate cleanly from profile header */
.profile-banner {
    position: relative;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(255,0,60,0.36), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(196,0,47,0.26), transparent 30%),
    linear-gradient(135deg, #230008 0%, #0b0c12 48%, #050609 100%) !important;
    min-height: 260px;
    border: 1px solid rgba(255,0,60,0.26);
    box-shadow: 0 24px 55px rgba(0,0,0,0.48),
    0 0 45px rgba(255,0,60,0.12);
    margin-bottom: 0;
}
/* Header card */


/* Profile header card spacing */
.profile-header-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px !important;
    align-items: center;
    padding: 38px 40px !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
    rgba(18,20,29,0.94) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.50),
    0 0 42px rgba(255,0,60,0.13);
    backdrop-filter: blur(16px);
    margin-bottom: 28px !important;
}

/* Fix the profile text block spacing */
.profile-info-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Remove browser default margins that make spacing inconsistent */
.profile-info-block h1,
.profile-info-block p,
.profile-info-block h4 {
    margin: 0;
}

/* Better username/title spacing */
.profile-info-block h1 {
    margin: 0;
    font-size: 32px;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    line-height: 1.1;
}

/* Bio should have room before extra info */
.profile-bio {
    max-width: 760px;
    line-height: 1.7;
    color: var(--gh-text-soft) !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}
/* Additional profile information */


/* Extra profile info spacing */
.profile-extra-info {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

/* Fix labels like Country:Not set */
.profile-extra-info h4 {
    margin: 0;
    font-size: 0.92rem;
    color: var(--gh-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}

/* Make "Not set" spacing clean */
.profile-extra-info h4 span {
    margin-left: 4px;
}
/* Completion card */


/* Completion card should not touch profile header */
.profile-completion-card {
    background: #181818;
    border: 1px solid #303030;
    border-radius: 18px;
    padding: 26px 30px !important;
    margin-bottom: 26px !important;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}
/* Editting profile section */
/* Edit sections */


/* Edit sections spacing */
.profile-edit-section {
    background: #181818;
    border: 1px solid #303030;
    border-radius: 18px;
    margin-bottom: 22px !important;
    overflow: hidden;
    padding: 24px 28px !important;
}

/* Dashboard spacing */
.dashboard-grid {
    margin-top: 24px;
    margin-bottom: 28px;
    gap: 22px !important;
}

/* Mobile spacing */
@media (max-width: 768px) {
    .profile-header-card {
        padding: 28px 20px !important;
        gap: 20px !important;
        margin-bottom: 22px !important;
    }

    .profile-main > section,
    .profile-main > div,
    .profile-main > nav {
        margin-bottom: 20px;
    }

    .profile-completion-card,
    .profile-edit-section {
        padding: 22px 18px !important;
    }

    .profile-extra-info h4 {
        font-size: 0.9rem;
    }
}
/* Tabs */
/* Tabs spacing */


/* ==========================================================
   Premium Hybrid Profile Tabs
   Inspired by both shared examples
   Add at the bottom of /css/profile.css
   ========================================================== */

.profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #303030;
    margin-bottom: 24px;
    overflow-x: auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 18px;
    padding: 0 0 18px;
    box-shadow: none !important;
    margin-top: 30px;
    --tab-rail-color: rgba(255, 255, 255, 0.12);
    --tab-bg: rgba(255, 255, 255, 0.02);
    --tab-active-bg: rgba(20, 22, 30, 0.96);
    position: relative;
    align-items: flex-end;
    overflow-y: visible;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

/* full-width bottom rail like the second example */
.profile-tabs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 1px;
    background: var(--tab-rail-color);
    z-index: 1;
}

/* base tab style */
.profile-tab {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.68) !important;
    padding: 0 28px;
    cursor: pointer;
    font-weight: 900;
    border-radius: 18px 18px 0 0 !important;
    transition: all 0.24s ease;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    border-bottom: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* inactive hover */
.profile-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

/* active tab = slightly raised card like example 1 */
.profile-tab.active {
    color: #ffffff !important;
    border-bottom: 3px solid #fff;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    rgba(20, 22, 30, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36),
    0 0 30px rgba(255, 0, 60, 0.08);
    transform: translateY(-6px);
}

/* red underline like example 2 */
.profile-tab.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -7px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff335f 0%, #ff003c 45%, #c4002f 100%);
    box-shadow: 0 0 18px rgba(255, 0, 60, 0.35);
}

/* faint inner accent on hover/active */
.profile-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.profile-tab:hover::before,
.profile-tab.active::before {
    opacity: 1;
}

.profile-tab-label {
    position: relative;
    z-index: 2;
}

/* number badge inspired by example 1 */
.profile-tab-badge {
    position: relative;
    z-index: 2;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff335f 0%, #ff003c 55%, #b60028 100%);
    color: #ffffff;
    font-size: 0.73rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 18px rgba(255, 0, 60, 0.24);
}

/* alternate muted badge */
.profile-tab-badge.subtle {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
}

/* optional alternate color if you want community/comments to stand out slightly differently */
.profile-tab-badge.alt {
    background: linear-gradient(135deg, #ff5b7f 0%, #d00032 100%);
}

/* when tab is not active, soften badge slightly */
.profile-tab:not(.active) .profile-tab-badge {
    opacity: 0.92;
}
/* Tab content */
/* Tab content spacing */


/* tab content area separation */
.profile-tab-content {
    color: var(--gh-text);
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .profile-tabs {
        gap: 8px;
        padding-bottom: 16px;
        margin-top: 24px;
        margin-bottom: 20px;
    }

    .profile-tab {
        min-height: 54px;
        padding: 0 20px;
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .profile-tab-badge {
        min-width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }

    .profile-tab.active {
        transform: translateY(-4px);
    }

    .profile-tab.active::after {
        left: 12px;
        right: 12px;
        bottom: -6px;
        height: 4px;
    }
}

/* Banner now becomes the top part of the hero */
.profile-hero-card .profile-banner {
    position: relative;
    min-height: 330px;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

/* Banner image */
.profile-hero-card .profile-banner img {
    width: 100%;
    height: 330px;
    min-height: 330px;
    object-fit: cover;
    display: block;
}

/* Strong cinematic overlay */
.profile-hero-card .profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0.12) 0%,
                    rgba(8, 9, 13, 0.24) 45%,
                    rgba(8, 9, 13, 0.92) 100%
            ),
            radial-gradient(circle at 20% 20%, rgba(255,0,60,0.16), transparent 34%);
    pointer-events: none;
    z-index: 1;
}

/* Edit banner button stays on top */
.profile-hero-card .edit-banner-btn {
    z-index: 3;
}

/* Profile header becomes the bottom content of the same card */
.profile-hero-card .profile-header-card {
    position: relative;
    z-index: 2;
    margin: -72px 0 0 0 !important;
    padding: 34px 48px 44px !important;
    border-radius: 0 !important;
    border: 0 !important;
    background:
            linear-gradient(
                    180deg,
                    rgba(23, 26, 35, 0.72) 0%,
                    rgba(23, 26, 35, 0.96) 38%,
                    rgba(23, 26, 35, 1) 100%
            ) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}

/* Add subtle red top line between banner and info */
.profile-hero-card .profile-header-card::before {
    content: "";
    position: absolute;
    left: 48px;
    right: 48px;
    top: 0;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 0, 60, 0.55),
            transparent
    );
}

/* Make avatar overlap the banner area nicely */
.profile-hero-card .profile-avatar-wrap {
    margin-top: -34px;
}

/* Stronger avatar styling */
.profile-hero-card .profile-avatar-img {
    width: 150px;
    height: 150px;
    border: 6px solid #171a23 !important;
    box-shadow:
            0 20px 48px rgba(0, 0, 0, 0.58),
            0 0 36px rgba(255, 0, 60, 0.26);
}

/* Profile text refinement */
.profile-hero-card .profile-info-block h1 {
    font-size: clamp(2rem, 2.6vw, 3rem);
    line-height: 1;
    margin-bottom: 14px;
}

.profile-hero-card .profile-handle {
    margin-bottom: 12px;
}

.profile-hero-card .profile-stats-line {
    margin-bottom: 22px;
}

.profile-hero-card .profile-bio {
    margin-bottom: 22px !important;
}

/* Better profile info layout */
.profile-hero-card .profile-extra-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 12px 34px;
}

.profile-hero-card .profile-extra-info h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.95rem;
    font-weight: 850;
}

.profile-hero-card .profile-extra-info span {
    color: #ffffff;
    font-weight: 950;
}

/* Buttons align better in merged hero */
.profile-hero-card .profile-action-block {
    align-self: center;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Remove old separate spacing if previous rules exist */
.profile-main > .profile-banner,
.profile-main > .profile-header-card {
    margin-bottom: 0;
}

/* Mobile version */
@media (max-width: 900px) {
    .profile-hero-card {
        border-radius: 24px;
    }

    .profile-hero-card .profile-banner,
    .profile-hero-card .profile-banner img {
        min-height: 240px;
        height: 240px;
    }

    .profile-hero-card .profile-header-card {
        margin-top: -45px !important;
        padding: 26px 22px 34px !important;
        text-align: center;
    }

    .profile-hero-card .profile-header-card::before {
        left: 22px;
        right: 22px;
    }

    .profile-hero-card .profile-avatar-wrap {
        margin: -28px auto 0;
    }

    .profile-hero-card .profile-avatar-img {
        width: 122px;
        height: 122px;
    }

    .profile-hero-card .profile-extra-info {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .profile-hero-card .profile-action-block {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .profile-hero-card {
        border-radius: 20px;
    }

    .profile-hero-card .profile-banner,
    .profile-hero-card .profile-banner img {
        min-height: 200px;
        height: 200px;
    }

    .profile-hero-card .profile-header-card {
        padding: 24px 16px 30px !important;
    }

    .profile-hero-card .profile-info-block h1 {
        font-size: 1.8rem;
    }

    .profile-hero-card .profile-action-block a,
    .profile-hero-card .profile-action-block button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.profile-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.75)),
            linear-gradient(135deg, rgba(255, 0, 50, 0.35), rgba(0, 0, 0, 0.1));
}

.profile-banner-btn i {
    margin-right: 6px;
}

.profile-name-area {
    padding-bottom: 14px;
}

/* Info grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
}

.profile-info-item {
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-info-item:last-child {
    border-right: none;
}

.profile-info-item span {
    display: block;
    color: #9c9ca8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 7px;
    letter-spacing: 0.6px;
}

.profile-info-item strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Buttons */
.profile-action-row {
    display: flex;
    gap: 14px;
    padding: 0 30px 30px;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.profile-action-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #ff294d, #87000f);
    box-shadow: 0 12px 28px rgba(255, 41, 77, 0.28);
}

.profile-action-btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
}

.profile-action-btn.primary:hover {
    box-shadow: 0 16px 35px rgba(255, 41, 77, 0.4);
}

.profile-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
    .profile-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-stats-box {
        width: 100%;
        min-width: unset;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-hero-card {
        border-radius: 22px;
    }

    .profile-hero-banner {
        height: 150px;
    }

    .profile-hero-content {
        padding: 0 18px 20px;
        margin-top: -42px;
    }

    .profile-main-block {
        align-items: center;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .profile-avatar-wrap {
        width: 112px;
        height: 112px;
    }

    .profile-name-area {
        padding-bottom: 0;
    }

    .profile-name-area h1 {
        font-size: 24px;
    }

    .profile-stats-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 18px 20px;
    }

    .profile-info-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-info-item:nth-child(2),
    .profile-info-item:nth-child(4) {
        border-right: none;
    }

    .profile-info-item:nth-child(3),
    .profile-info-item:nth-child(4) {
        border-bottom: none;
    }

    .profile-action-row {
        padding: 0 18px 24px;
        flex-direction: column;
    }

    .profile-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-stats-box {
        grid-template-columns: 1fr;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-info-item:last-child {
        border-bottom: none;
    }

    .profile-banner-btn {
        right: 14px;
        bottom: 14px;
        padding: 8px 12px;
        font-size: 12px;
    }
}
/* ==========================================================
   Unified Classic Profile Hero
   Banner + Profile Header merged into one premium section
   ========================================================== */


.profile-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    border: 1px solid #2b2b2b;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    margin-bottom: 26px;
    width: 100%;
    min-height: 420px;
}
/* Top banner */


.profile-hero-banner {
    position: relative;
    height: 270px;
    background: linear-gradient(135deg, #381329, #111);
    overflow: hidden;
}

.profile-hero-banner.has-banner-image {
    background: none;
}

.profile-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    display: block;
}

/* edit banner far right */
.profile-banner-btn {
    position: absolute;
    right: 28px;
    bottom: 20px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.16);
    outline: none;
    background: rgba(20,20,25,.92);
    color: #fff;
    padding: 16px 24px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
    top: 28px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
/* Main hero content */


.profile-hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 0 36px 36px;
    margin-top: -70px;
    z-index: 5;
    background: linear-gradient(180deg, rgba(17,17,17,.85), #111 35%);
    border-radius: 26px 26px 0 0;
}

.profile-main-block {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar-wrap {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #ff314f, #7a000c, #ff8a00);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    margin-top: -45px;
}

.profile-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff2f6d;
    background: #222;
}

.profile-avatar-edit {
    position: absolute;
    right: 8px;
    bottom: 12px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #555;
    background: #202027;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
}

.profile-name-area h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.1;
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-name-area p {
    margin: 8px 0 0;
    color: #aaa;
    font-size: 20px;
    font-weight: 600;
}

/* verified badge */
.verified-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1d8cff;
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(29,140,255,.4);
}
/* Stats */


.profile-stats-box {
    align-self: flex-end;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    min-width: 430px;
    margin-top: 28px;
}

.profile-stat-item {
    background: linear-gradient(180deg, #1c1c22, #151519);
    border: 1px solid #303038;
    border-radius: 22px;
    padding: 26px 18px;
    text-align: center;
    backdrop-filter: blur(14px);
}

.profile-stat-item i {
    color: #ff3b72;
    font-size: 28px;
    margin-bottom: 14px;
}

.profile-stat-item strong {
    display: block;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
}

.profile-stat-item span {
    display: block;
    color: #bbb;
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .profile-main-block {
        flex-direction: column;
        text-align: center;
    }

    .profile-name-area h1 {
        justify-content: center;
    }

    .profile-stats-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-banner-btn {
        top: 18px;
        right: 18px;
        padding: 12px 16px;
    }
}

.profile-template-banner.has-real-banner {
    background: none;
}

.profile-template-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove gradient overlay when real image exists */
.profile-template-banner.has-real-banner::before,
.profile-template-banner.has-real-banner::after {
    display: none;
}

.profile-template-banner-btn:hover {
    transform: translateY(-2px);
    background: rgba(28, 29, 38, 1);
}

.profile-template-avatar-btn:hover {
    transform: scale(1.05);
    background: #292a35;
}

.profile-template-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.profile-template-info-item:first-child {
    padding-left: 0;
}

.profile-template-info-item:last-child {
    border-right: none;
    padding-right: 0;
}

.profile-template-action-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #e1164d, #ff2f6d);
    box-shadow: 0 18px 35px rgba(255,47,109,0.25);
}

.profile-template-action-btn.secondary {
    color: #fff;
    background:
            linear-gradient(180deg, #25262d, #18191f);
    border: 1px solid #3a3b45;
}

.profile-template-action-btn:hover {
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {
    .profile-template-main-card {
        grid-template-columns: 280px 1fr;
        padding: 0 34px 36px;
    }

    .profile-template-avatar-box,
    .profile-template-avatar {
        width: 270px;
        height: 270px;
    }

    .profile-template-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-template-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .profile-template-info-item {
        border-right: none;
        padding: 0;
    }
}

@media (max-width: 800px) {
    .profile-template-banner {
        height: 210px;
        border-radius: 22px 22px 0 0;
    }

    .profile-template-main-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-template-avatar-box {
        margin: -40px auto 0;
    }

    .profile-template-content {
        padding-top: 0;
    }

    .profile-template-name-area h1 {
        justify-content: center;
        font-size: 38px;
    }

    .profile-template-name-area p {
        font-size: 20px;
    }

    .profile-template-stats {
        grid-template-columns: 1fr 1fr;
    }

    .profile-template-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-template-actions {
        grid-template-columns: 1fr;
    }

    .profile-template-banner-btn {
        top: 18px;
        right: 18px;
        padding: 12px 18px;
        font-size: 15px;
    }
}

@media (max-width: 520px) {
    .profile-template-main-card {
        padding: 0 18px 28px;
    }

    .profile-template-info-card {
        padding: 26px 20px;
    }

    .profile-template-stats {
        grid-template-columns: 1fr;
    }

    .profile-template-avatar-box,
    .profile-template-avatar {
        width: 220px;
        height: 220px;
    }

    .profile-template-avatar-btn {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }
}

/*
|--------------------------------------------------------------------------
| COMPACT PROFILE HERO OVERRIDES
|--------------------------------------------------------------------------
*/

.profile-template-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 24px;
}
/*
|--------------------------------------------------------------------------
| BANNER
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| BANNER - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-banner {
    position: relative;
    height: 210px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #351629, #101014);
    border: 1px solid #2b2b34;
    border-bottom: none;
}
/* Edit Banner Button - far right corner */


.profile-template-banner-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(21, 22, 30, 0.95);
    color: #fff;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
    transition: 0.25s ease;
}
/*
|--------------------------------------------------------------------------
| MAIN PROFILE CARD
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| MAIN PROFILE CARD - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-main-card {
    position: relative;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    min-height: 245px;
    margin-top: -2px;
    padding: 0 30px 26px;
    background: radial-gradient(circle at 20% 0%, rgba(255,47,109,0.10), transparent 35%),
    linear-gradient(180deg, #191a20 0%, #111217 100%);
    border: 1px solid #30313a;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
/*
|--------------------------------------------------------------------------
| AVATAR
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| AVATAR - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-avatar-box {
    position: relative;
    margin-top: -34px;
    width: 200px;
    height: 200px;
}

.profile-template-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    background: #251024;
    border: 3px solid #ff2f6d;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35),
    0 0 0 5px rgba(17,18,23,0.9);
}

.profile-template-avatar-btn {
    position: absolute;
    right: 10px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #20212a;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    cursor: pointer;
    border: 2px solid #51515c;
    box-shadow: 0 12px 25px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
    transition: 0.25s ease;
    border-width: 1px;
}
/*
|--------------------------------------------------------------------------
| NAME + STATS
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| NAME AREA - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-content {
    padding-top: 38px;
}

.profile-template-name-area h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 950;
    letter-spacing: -0.5px;
    text-shadow: 0 5px 18px rgba(0,0,0,0.5);
}

.profile-template-name-area p {
    margin: 12px 0 0;
    color: #b6b7c2;
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px;
}

.profile-template-verified {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #1d8dff, #006df0);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 14px 30px rgba(29,141,255,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/*
|--------------------------------------------------------------------------
| STATS - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-stats {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 12px;
}

.profile-template-stat-card {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, rgba(255,255,255,0.055), transparent 45%),
    linear-gradient(180deg, #1e1f27, #15161c);
    border: 1px solid #32333d;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 16px 12px;
}

.profile-template-stat-card i {
    color: #ff3f78;
    font-size: 22px;
    margin-bottom: 9px;
}

.profile-template-stat-card strong {
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.profile-template-stat-card span {
    margin-top: 6px;
    color: #c6c6cf;
    font-size: 13px;
    font-weight: 600;
}
/*
|--------------------------------------------------------------------------
| INFO CARD
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| INFO CARD - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-info-card {
    margin-top: 16px;
    padding: 24px;
    background: radial-gradient(circle at 10% 0%, rgba(255,47,109,0.08), transparent 35%),
    linear-gradient(180deg, #181920, #101116);
    border: 1px solid #30313a;
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.profile-template-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-right: 1px solid #30313a;
}

.profile-template-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,63,120,0.22), rgba(255,63,120,0.06));
    color: #ff3f78;
    font-size: 22px;
}

.profile-template-info-item span {
    display: block;
    color: #b9bac4;
    font-size: 15px;
    font-weight: 600;
}

.profile-template-info-item strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

/*
|--------------------------------------------------------------------------
| DIVIDER - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-divider {
    height: 1px;
    background: #30313a;
    margin: 24px 0 20px;
}
/*
|--------------------------------------------------------------------------
| ACTIONS
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| ACTION BUTTONS - COMPACT
|--------------------------------------------------------------------------
*/

.profile-template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-template-action-btn {
    height: 58px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s ease;
}

.profile-template-action-btn i {
    font-size: 18px;
}

.profile-edit-modal-overlay {
    position: fixed;
    inset: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(255,47,109,0.16), transparent 30%),
            rgba(0,0,0,0.72);
    backdrop-filter: blur(16px);
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.profile-edit-modal-overlay.active {
    display: flex;
}

.profile-edit-modal {
    position: relative;
    width: min(980px, 100%);
    max-height: 92vh;
    overflow: hidden;

    background:
            linear-gradient(180deg, rgba(30,31,39,0.96), rgba(13,14,18,0.98));

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 26px;

    box-shadow:
            0 40px 100px rgba(0,0,0,0.65),
            0 0 0 1px rgba(255,47,109,0.08),
            inset 0 1px 0 rgba(255,255,255,0.08);
}

.profile-edit-modal-glow {
    position: absolute;
    inset: -120px auto auto -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,47,109,0.30), transparent 65%);
    pointer-events: none;
}

.profile-edit-modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;

    padding: 24px 28px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-edit-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.profile-edit-modal-header p {
    margin: 6px 0 0;
    color: #aaa;
    font-size: 14px;
}

.profile-edit-modal-close {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.08);
    color: #fff;

    cursor: pointer;
    transition: 0.2s ease;
}

.profile-edit-modal-close:hover {
    background: rgba(255,47,109,0.28);
    transform: rotate(90deg);
}

.profile-edit-modal-form {
    position: relative;
}

.profile-edit-modal-tabs {
    display: flex;
    gap: 10px;
    padding: 16px 22px;

    overflow-x: auto;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.profile-edit-modal-tab {
    border: none;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    border-radius: 999px;

    background: rgba(255,255,255,0.06);
    color: #aaa;

    font-weight: 700;
    cursor: pointer;

    transition: 0.2s ease;
}

.profile-edit-modal-tab:hover,
.profile-edit-modal-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #e1164d, #ff2f6d);
    box-shadow: 0 10px 24px rgba(255,47,109,0.24);
}

.profile-edit-modal-body {
    max-height: 55vh;
    overflow-y: auto;
    padding: 24px 28px;
}

.profile-edit-tab-panel {
    display: none;
}

.profile-edit-tab-panel.active {
    display: block;
}

.profile-edit-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-edit-field-full {
    grid-column: 1 / -1;
}

.profile-edit-field label {
    display: block;
    margin-bottom: 8px;

    color: #bfc0c8;
    font-size: 13px;
    font-weight: 700;
}

.profile-edit-field input,
.profile-edit-field textarea,
.profile-edit-field select {
    width: 100%;

    background:
            linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;

    color: #fff;

    padding: 12px 14px;

    font-size: 14px;

    outline: none;

    transition: 0.2s ease;
}

.profile-edit-field textarea {
    resize: vertical;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus,
.profile-edit-field select:focus {
    border-color: #ff2f6d;
    box-shadow:
            0 0 0 3px rgba(255,47,109,0.16),
            0 10px 24px rgba(0,0,0,0.24);
}

.profile-edit-field input::placeholder,
.profile-edit-field textarea::placeholder {
    color: #73747d;
}

.profile-edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;

    padding: 18px 28px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.profile-edit-cancel-btn,
.profile-edit-save-btn {
    border: none;
    border-radius: 14px;

    padding: 12px 20px;

    font-weight: 800;
    cursor: pointer;

    transition: 0.2s ease;
}

.profile-edit-cancel-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.profile-edit-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(135deg, #e1164d, #ff2f6d);
    color: #fff;

    box-shadow: 0 16px 32px rgba(255,47,109,0.25);
}

.profile-edit-cancel-btn:hover,
.profile-edit-save-btn:hover {
    transform: translateY(-2px);
}

.profile-edit-save-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 760px) {
    .profile-edit-field-grid {
        grid-template-columns: 1fr;
    }

    .profile-edit-modal-header {
        padding: 20px;
    }

    .profile-edit-modal-body {
        padding: 20px;
    }

    .profile-edit-modal-footer {
        flex-direction: column-reverse;
    }

    .profile-edit-cancel-btn,
    .profile-edit-save-btn {
        width: 100%;
        justify-content: center;
    }
}
.profile-panel {
    display: none;
    background: transparent !important;
}

.profile-panel.active {
    display: block;
}

.about-content-section {
    display: none;
}

.about-content-section.active {
    display: block;
}

@media (max-width: 640px) {
}

/* ==========================================================
   OWNER PROFILE QUICK SOCIAL ACTIONS
   ========================================================== */

.profile-social-actions {
    display: grid;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    margin: 18px 0 20px;
}

.profile-owner-action {
    position: relative;
    overflow: hidden;

    min-height: 86px;
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 14px;

    border-radius: 18px;
    border: 1px solid rgba(255, 45, 85, 0.16);

    background:
            radial-gradient(circle at top right, rgba(255,45,85,0.14), transparent 36%),
            linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
            #151515;

    color: #fff;
    text-decoration: none;

    box-shadow:
            0 18px 40px rgba(0,0,0,0.35),
            inset 0 1px 0 rgba(255,255,255,0.04);

    transition:
            transform 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease,
            background 0.22s ease;
}

.profile-owner-action::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
            linear-gradient(135deg, rgba(255,45,85,0.10), transparent 45%);

    pointer-events: none;
}

.profile-owner-action:hover {
    transform: translateY(-3px);
    border-color: rgba(255,45,85,0.45);

    box-shadow:
            0 24px 55px rgba(0,0,0,0.50),
            0 0 28px rgba(255,45,85,0.16);
}

.profile-owner-action-icon {
    position: relative;
    z-index: 2;

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
            linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
            rgba(255,45,85,0.12);

    border: 1px solid rgba(255,45,85,0.30);

    color: #ff2d55;
    font-size: 22px;

    box-shadow:
            0 12px 26px rgba(0,0,0,0.32),
            0 0 20px rgba(255,45,85,0.12),
            inset 0 1px 0 rgba(255,255,255,0.08);
}

.profile-owner-action > span:last-child {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.profile-owner-action strong {
    display: block;

    color: #fff;

    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
}

.profile-owner-action small {
    display: block;

    margin-top: 5px;

    color: #aaa;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.profile-owner-action.users .profile-owner-action-icon {
    color: #ff7a93;
}

.profile-owner-action.messages .profile-owner-action-icon {
    color: #65b8ff;
    border-color: rgba(101,184,255,0.26);
    background:
            linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
            rgba(101,184,255,0.10);
}

.profile-owner-action.friends .profile-owner-action-icon {
    color: #33d17a;
    border-color: rgba(51,209,122,0.25);
    background:
            linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
            rgba(51,209,122,0.10);
}

/* Keep visitor action buttons neat */
.profile-social-actions .social-primary-btn,
.profile-social-actions .social-secondary-btn,
.profile-social-actions .social-danger-btn,
.profile-social-actions .social-muted-btn {
    min-height: 44px;
    padding: 0 16px;
}

/* Responsive */
@media (max-width: 1050px) {
    .profile-social-actions {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

@media (max-width: 640px) {
    .profile-social-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .profile-owner-action {
        min-height: 78px;
    }

    .profile-owner-action-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 20px;
    }

    .profile-social-actions .social-primary-btn,
    .profile-social-actions .social-secondary-btn,
    .profile-social-actions .social-danger-btn,
    .profile-social-actions .social-muted-btn {
        width: 100%;
    }
}

/* ==========================================================
   HEADER / TOPBAR FULL WIDTH FIX
   Keeps notification bell + existing profile popup intact
   ========================================================== */

.app > .topbar,
.app > header,
.topbar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    z-index: 9999;
}

/* If the page uses CSS grid, force sidebar/content below header */
.app > .sidebar,
.app > aside.sidebar {
    grid-row: 2 !important;
}

.app > .main,
.app > main.main {
    grid-row: 2 !important;
}

/* Main topbar layout */
.topbar,
.header,
.site-header {
    min-height: 76px;
    display: flex !important;
    align-items: center !important;
    gap: 18px;
    padding: 0 24px;
    box-sizing: border-box;

    background: var(--mameada-nav-background) !important;

    border-bottom: 1px solid rgba(255,255,255,0.10);

    box-shadow:
            0 12px 34px rgba(0, 0, 0, 0.48),
            inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

/* Push right action buttons to the far right */
.ghp-header-actions {
    margin-left: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px;

    flex: 0 0 auto;
    position: relative;
    z-index: 10000;
}

/* Upload button */
.ghp-header-upload-btn {
    min-height: 42px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 999px;

    background: linear-gradient(135deg, #ff1d5b, #f0184f);
    color: #fff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 950;

    box-shadow:
            0 12px 28px rgba(255,45,85,0.28),
            inset 0 1px 0 rgba(255,255,255,0.16);

    white-space: nowrap;

    transition:
            transform 0.2s ease,
            filter 0.2s ease,
            box-shadow 0.2s ease;
}

.ghp-header-upload-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
            0 16px 36px rgba(255,45,85,0.36),
            inset 0 1px 0 rgba(255,255,255,0.20);
}

.ghp-header-upload-btn i {
    font-size: 14px;
}

/* Notification bell */
.ghp-notification-wrap {
    position: relative;
    flex: 0 0 auto;
}

.ghp-header-icon-btn,
.ghp-notification-btn {
    position: relative;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background:
            linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
            rgba(0,0,0,0.26);

    color: #fff;

    font-size: 19px;

    cursor: pointer;

    box-shadow:
            0 10px 24px rgba(0,0,0,0.32),
            inset 0 1px 0 rgba(255,255,255,0.10);

    transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
}

.ghp-header-icon-btn:hover,
.ghp-notification-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.36);
    background: rgba(255,45,85,0.16);
}

.ghp-notification-badge {
    position: absolute;
    top: -5px;
    right: -4px;

    min-width: 20px;
    height: 20px;
    padding: 0 5px;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 2px solid #65001f;

    background: #fff;
    color: #e1164d;

    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.ghp-notification-badge.active {
    display: inline-flex;
}

/* Keep the existing profile popup working */
.ghp-header-actions .account-popup-wrap {
    position: relative !important;
    flex: 0 0 auto;
    z-index: 10001;
}

.ghp-header-actions .profile-avatar-btn {
    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background:
            linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
            rgba(0,0,0,0.26);

    color: #fff;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
            0 10px 24px rgba(0,0,0,0.32),
            inset 0 1px 0 rgba(255,255,255,0.10);
}

.ghp-header-actions .profile-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ghp-header-actions .profile-avatar-btn span {
    font-size: 17px;
    font-weight: 950;
}

/* Dropdown must appear above page content */
.account-popup,
.ghp-notification-dropdown {
    z-index: 100000 !important;
}

/* Prevent banner/content from sliding under header */
.profile-main,
.main {
    box-sizing: border-box;
}

/* Mobile */
@media (max-width: 760px) {
    .topbar,
    .header,
    .site-header {
        min-height: 66px;
        padding: 0 12px;
        gap: 10px;
    }

    .ghp-header-actions {
        gap: 8px;
    }

    .ghp-header-upload-btn {
        min-height: 38px;
        padding: 0 13px;
        font-size: 12px;
    }

    .ghp-header-upload-btn span {
        display: none;
    }

    .ghp-header-icon-btn,
    .ghp-notification-btn,
    .ghp-header-actions .profile-avatar-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Compact social relationship buttons on profile page */
.profile-social-actions > .social-primary-btn,
.profile-social-actions > .social-secondary-btn,
.profile-social-actions > .social-danger-btn,
.profile-social-actions > .social-muted-btn {
    width: auto !important;
    min-width: 125px;
    max-width: 180px;

    flex: 0 0 auto !important;

    padding: 10px 16px;
    border-radius: 14px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 13px;
    white-space: nowrap;
}

/* Keep owner cards wide */
.profile-social-actions > .profile-owner-action {
    flex: 1 1 260px;
}

/* When the section contains relationship buttons, keep them grouped neatly */
.profile-social-actions:has(.social-primary-btn),
.profile-social-actions:has(.social-danger-btn),
.profile-social-actions:has(.social-muted-btn),
.profile-social-actions:has(.social-secondary-btn) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* On mobile, allow them to stretch nicely */
@media (max-width: 700px) {
    .profile-social-actions > .social-primary-btn,
    .profile-social-actions > .social-secondary-btn,
    .profile-social-actions > .social-danger-btn,
    .profile-social-actions > .social-muted-btn {
        width: 100% !important;
        max-width: none;
    }
}

/* Center relationship buttons inside profile social actions */
.profile-social-actions:has(> .social-primary-btn),
.profile-social-actions:has(> .social-secondary-btn),
.profile-social-actions:has(> .social-danger-btn),
.profile-social-actions:has(> .social-muted-btn) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 10px;
}

/* Keep the buttons compact and centered */
.profile-social-actions > .social-primary-btn,
.profile-social-actions > .social-secondary-btn,
.profile-social-actions > .social-danger-btn,
.profile-social-actions > .social-muted-btn {
    width: auto !important;
    min-width: 120px;
    max-width: 170px;
    flex: 0 0 auto !important;
    margin: 0;
}

/* Do not disturb the owner action cards */
.profile-social-actions:has(> .profile-owner-action) {
    justify-content: space-between !important;
}

.profile-social-actions > .profile-owner-action {
    flex: 1 1 260px;
}

/* Approved accounts are presented as channels, not ordinary user accounts. */
.profile-template-main-card.is-approved-channel {
    border-color: rgba(214, 33, 48, .3);
    box-shadow: 0 18px 48px rgba(125, 12, 24, .11);
}

.profile-channel-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.profile-channel-identity span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(217, 36, 54, .24);
    border-radius: 999px;
    color: #f27580;
    background: rgba(217, 36, 54, .09);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-channel-identity small { color: var(--text-muted, #8f919b); font-size: 12px; }
.profile-channel-identity.is-account span { color: #9ca0aa; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }

.profile-template-action-btn.channel-group-btn {
    color: #171006;
    border-color: #e3b842;
    background: linear-gradient(135deg, #ffe28a, #d8a52d);
}

.profile-exclusive-groups {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(230, 185, 68, .22);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(230, 185, 68, .09), transparent 25rem),
        var(--card-bg, #15161c);
}

.profile-exclusive-groups__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-channel-kicker { color: #e6b944; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.profile-exclusive-groups__head h2 { margin: 7px 0 5px; font-size: 23px; }
.profile-exclusive-groups__head p { max-width: 780px; margin: 0; color: var(--text-muted, #9497a1); font-size: 13px; line-height: 1.55; }

.profile-group-manage-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(230, 185, 68, .35);
    border-radius: 11px;
    color: #f3d67f;
    background: rgba(230, 185, 68, .07);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.profile-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }

.profile-group-card {
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(7,8,13,.47);
}

.profile-group-card.is-joined { border-color: rgba(84, 198, 126, .35); }
.profile-group-card__top { display: flex; justify-content: space-between; gap: 10px; color: #e6b944; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profile-group-card__top em { color: #70d696; font-style: normal; }
.profile-group-card h3 { margin: 15px 0 7px; font-size: 18px; }
.profile-group-card > p { flex: 1; margin: 0 0 15px; color: var(--text-muted, #9497a1); font-size: 12px; line-height: 1.55; }
.profile-group-card__price { display: flex; align-items: baseline; gap: 5px; }
.profile-group-card__price strong { color: #f3d67f; font-size: 20px; }
.profile-group-card__price span { color: var(--text-muted, #9497a1); font-size: 11px; }
.profile-group-card__meta { display: flex; gap: 13px; margin: 9px 0 14px; color: var(--text-muted, #9497a1); font-size: 11px; }
.profile-group-card > a,
.profile-group-card > button { width: 100%; min-height: 39px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; color: #171006; background: linear-gradient(135deg, #ffe28a, #d8a52d); font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }

.profile-groups-empty { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px dashed rgba(255,255,255,.12); border-radius: 13px; color: var(--text-muted, #9497a1); }
.profile-groups-empty > i { color: #e6b944; font-size: 20px; }
.profile-groups-empty div { display: grid; gap: 4px; }
.profile-groups-empty strong { color: var(--text-main, #f3f3f5); }
.profile-groups-empty span { font-size: 12px; }

@media (max-width: 720px) {
    .profile-channel-identity { align-items: flex-start; flex-direction: column; }
    .profile-exclusive-groups { padding: 18px 14px; }
    .profile-exclusive-groups__head { align-items: flex-start; flex-direction: column; }
    .profile-group-manage-link { width: 100%; justify-content: center; }
}
