:root {
    --bg: #090511;
    --bg-2: #18081f;
    --panel: rgba(13, 8, 18, 0.94);
    --panel-2: rgba(28, 8, 34, 0.92);
    --line: rgba(255, 79, 216, 0.24);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.74);
    --purple: #ff2ebd;
    --purple-2: #ff7add;
    --gold: #ff4fd8;
    --teal: #ff4fd8;
    --red: #ef4444;
}

/* Web scene banner shell + darker header polish */
.web-overlay-frame {
    width: 100%;
    height: 188px;
    display: block;
    border: 0;
}

.header-nav a {
    color: #fff;
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(166, 16, 122, 0.32);
    color: #fff;
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    background: linear-gradient(135deg, #c51691, #7b0b5d);
    color: #fff;
}

.btn-ghost,
.link-button {
    border-color: rgba(198, 36, 150, 0.58);
    color: #fff;
}

.btn-ghost:hover,
.link-button:hover:not(.profile-settings-toggle) {
    background: rgba(140, 13, 104, 0.26);
}

@media (max-width: 620px) {
    .web-overlay-frame {
        height: 260px;
    }
}

/* Mobile header hard reset v93 */
@media (max-width: 620px) {
    .site-header {
        min-height: 58px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        gap: 10px !important;
        padding: max(8px, env(safe-area-inset-top)) 14px 8px !important;
        background:
            radial-gradient(circle at 88% 0%, rgba(255, 79, 216, 0.16), transparent 38%),
            rgba(7, 5, 13, 0.98) !important;
    }

    .site-brand {
        min-width: 0 !important;
        display: flex !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .site-brand img {
        width: 34px !important;
        height: 34px !important;
    }

    .site-brand span {
        overflow: hidden !important;
        font-size: 15px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .header-auth.is-logged-in {
        display: none !important;
    }

    .header-auth.is-logged-out {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    .menu-toggle {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 42px !important;
        height: 42px !important;
        justify-self: end !important;
        border-radius: 13px !important;
        background: linear-gradient(135deg, #ff2ebd, #b30f83) !important;
    }

    .header-nav {
        grid-column: 1 / -1 !important;
    }

    .header-nav.open {
        margin-top: 8px !important;
    }
}

/* Magenta theme polish */
.site-header {
    border-bottom-color: rgba(255, 79, 216, 0.34);
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 79, 216, 0.20), transparent 30%),
        linear-gradient(90deg, rgba(8, 5, 16, 0.97), rgba(25, 8, 31, 0.94));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22), 0 0 28px rgba(255, 79, 216, 0.12);
}

.header-nav a:hover,
.app-bottom-nav a:hover,
.app-bottom-nav a.active,
.top-nav a:hover,
.match-list a.active,
.match-list a:hover,
.merch-toolbar button:hover:not(.profile-settings-toggle),
.merch-toolbar button.active,
.btn-ghost:hover,
.link-button:hover:not(.profile-settings-toggle) {
    border-color: rgba(255, 79, 216, 0.62);
    background: rgba(255, 79, 216, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.20), 0 0 18px rgba(255, 79, 216, 0.12);
}

.btn,
button,
.button {
    border-color: rgba(255, 79, 216, 0.62);
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    background: linear-gradient(135deg, #ff2ebd, #b30f83);
    color: #fff;
}

.btn:hover,
button:hover:not(.profile-settings-toggle),
.button:hover:not(.profile-settings-toggle) {
    border-color: rgba(255, 122, 221, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 79, 216, 0.14), 0 0 24px rgba(255, 79, 216, 0.18);
}

a:hover,
.profile-name-link:hover,
.legal-info-card a:hover,
.legal-content a:hover,
.flirt-card h3 a:hover,
.request-card strong a:hover,
.producer-title-link:hover,
.social-links a:hover {
    color: #ff7add;
}

.panel,
.stat-card,
.reward-card,
.shop-card,
.merch-card,
.flirt-card,
.request-card,
.message-panel,
.legal-info-card,
.legal-content,
.producer-card {
    border-color: rgba(255, 79, 216, 0.22);
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 79, 216, 0.10), transparent 34%),
        var(--panel);
}

/* Final global community redesign v115 - must stay last */
body.theme-neon,
body {
    --theme-bg: #05050b;
    --theme-panel: rgba(13, 7, 16, .90);
    --theme-line: rgba(255, 20, 159, .26);
    --theme-accent: #ff149f;
    --theme-accent-2: #ff48c4;
    --theme-muted: #a7a0ad;
}

body.theme-purple {
    --theme-bg: #070511;
    --theme-panel: rgba(13, 8, 24, .92);
    --theme-line: rgba(155, 92, 255, .34);
    --theme-accent: #9b5cff;
    --theme-accent-2: #c69bff;
    --theme-muted: #b9aec9;
}

body.theme-gold {
    --theme-bg: #090705;
    --theme-panel: rgba(18, 12, 5, .92);
    --theme-line: rgba(255, 184, 41, .34);
    --theme-accent: #ffb629;
    --theme-accent-2: #ffe08a;
    --theme-muted: #c8bca4;
}

body.theme-cyan {
    --theme-bg: #03090d;
    --theme-panel: rgba(4, 15, 21, .92);
    --theme-line: rgba(25, 212, 255, .34);
    --theme-accent: #19d4ff;
    --theme-accent-2: #84ecff;
    --theme-muted: #9dbcc4;
}

body.theme-clean {
    --theme-bg: #08090d;
    --theme-panel: rgba(16, 18, 24, .94);
    --theme-line: rgba(255,255,255,.14);
    --theme-accent: #e5e7eb;
    --theme-accent-2: #ffffff;
    --theme-muted: #aeb4bf;
}

body {
    color: #f7f7fb !important;
    background:
        radial-gradient(circle at 76% 0%, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 34%),
        linear-gradient(180deg, #080812, #030309 54%, var(--theme-bg)) !important;
}

.site-header {
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: 330px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 10px 24px !important;
    border-bottom: 1px solid var(--theme-line) !important;
    background:
        radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--theme-accent) 14%, transparent), transparent 30%),
        rgba(5, 5, 12, 0.90) !important;
    backdrop-filter: blur(16px) !important;
}

.site-brand {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.site-brand img {
    width: 44px !important;
    height: 44px !important;
}

.site-brand span {
    overflow: hidden !important;
    color: #fff !important;
    display: grid !important;
    gap: 3px !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.site-brand small {
    overflow: hidden !important;
    color: #cfc5d1 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.header-nav {
    justify-self: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 6px !important;
    border: 1px solid var(--theme-line) !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.30) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.header-nav a {
    min-height: 38px !important;
    padding: 0 17px !important;
    border-radius: 999px !important;
    color: #f8eafa !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
}

.header-theme-menu {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0 0 4px !important;
}

.header-theme-menu label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    padding: 0 9px 0 13px !important;
    border: 1px solid var(--theme-line) !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.24) !important;
    color: #f8eafa !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.header-theme-menu select {
    width: auto !important;
    min-height: 28px !important;
    padding: 0 26px 0 9px !important;
    border-radius: 999px !important;
    border-color: var(--theme-line) !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.header-auth {
    justify-self: end !important;
}

.account-box {
    min-height: 42px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.online-pill {
    min-height: 36px !important;
    border-radius: 999px !important;
}

.header-nav a.active,
.header-nav a:hover,
.app-bottom-nav a.active {
    border-color: var(--theme-line) !important;
    background: linear-gradient(90deg, color-mix(in srgb, var(--theme-accent) 42%, transparent), color-mix(in srgb, var(--theme-accent) 12%, transparent)) !important;
    color: #fff !important;
}

.page-shell {
    width: min(1240px, 100%) !important;
    padding: 22px 22px 62px !important;
}

.hero-section,
.content-grid {
    gap: 18px !important;
}

.hero-copy,
.player-card,
.quick-card,
.panel,
.stat-card,
.reward-card,
.shop-card,
.merch-card,
.flirt-card,
.request-card,
.message-panel,
.legal-info-card,
.legal-content,
.producer-card,
.profile-hero,
.public-profile-hero,
.flirt-hero,
.flirt-public-hero,
.merch-hero,
.app-install-hero,
.page-hero,
.login-panel {
    border: 1px solid var(--theme-line) !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--theme-accent) 13%, transparent), transparent 40%),
        var(--theme-panel) !important;
    box-shadow: 0 0 28px rgba(0,0,0,.24) !important;
}

.hero-copy {
    min-height: 340px !important;
    display: grid !important;
    align-content: center !important;
    padding: 36px !important;
}

.hero-copy h1 {
    max-width: 780px !important;
    font-size: clamp(36px, 4.4vw, 60px) !important;
    line-height: 1.02 !important;
}

.hero-copy p,
.quick-card p,
.panel p,
.command-item span,
.redemption-list span {
    color: var(--theme-muted) !important;
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    border-color: transparent !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 62%, #000), var(--theme-accent)) !important;
}

.btn-ghost,
.link-button {
    border-color: var(--theme-line) !important;
    background: rgba(255,255,255,.035) !important;
}

.quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.quick-grid .live-push-card {
    grid-column: 1 / -1 !important;
}

.quick-card {
    min-height: 132px !important;
    padding: 18px !important;
}

.quick-card i {
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    background: color-mix(in srgb, var(--theme-accent) 12%, transparent) !important;
    color: var(--theme-accent-2) !important;
}

.command-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.command-item,
.stat-list div,
.redemption-list div,
.leader-row,
.player-stats div {
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.028) !important;
}

.command-item strong,
.stat-list strong,
.leader-xp,
.rank-pill,
.eyebrow {
    color: var(--theme-accent-2) !important;
}

.web-overlay-frame {
    height: 182px !important;
    border: 1px solid var(--theme-line) !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

.web-track-links {
    border-color: var(--theme-line) !important;
    border-radius: 8px !important;
    background: rgba(13, 7, 16, .74) !important;
}

@media (max-width: 1180px) {
    .hero-section,
    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-grid,
    .command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .page-shell {
        padding: 12px 12px 96px !important;
    }

    .hero-copy {
        min-height: 0 !important;
        padding: 22px 16px !important;
    }

    .hero-copy h1 {
        font-size: 32px !important;
    }

    .quick-grid,
    .command-grid {
        grid-template-columns: 1fr !important;
    }

    .web-overlay-frame {
        height: 172px !important;
    }

    .app-bottom-nav {
        left: 10px !important;
        right: 10px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        border-radius: 14px !important;
        background: rgba(9, 5, 13, .96) !important;
    }
}

/* Flirt chat delete + profile polish v120 */
.match-list {
    gap: 8px !important;
}

.match-delete-form {
    margin: -6px 0 8px 58px !important;
}

.match-delete-form button {
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(255, 80, 120, .36) !important;
    border-radius: 7px !important;
    background: rgba(255, 80, 120, .08) !important;
    color: #ff9bb2 !important;
    font-size: 12px !important;
}

.match-delete-form button:hover {
    background: rgba(255, 80, 120, .16) !important;
}

.profile-hero-custom {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 24px !important;
    min-height: 260px !important;
    padding: 28px !important;
}

.profile-hero-custom img {
    width: 132px !important;
    height: 132px !important;
    border-radius: 28px !important;
}

.profile-hero-custom h1 {
    margin: 6px 0 8px !important;
    font-size: clamp(34px, 4vw, 54px) !important;
}

.profile-hero-actions {
    margin-top: 18px !important;
    gap: 10px !important;
}

.profile-stat-grid {
    gap: 14px !important;
}

.profile-stat-grid article {
    min-height: 108px !important;
    border: 1px solid rgba(255,20,159,.24) !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 90% 0%, rgba(255,20,159,.12), transparent 42%),
        rgba(13,7,16,.90) !important;
}

.profile-stat-grid article span {
    color: #ff48c4 !important;
}

.profile-action-grid .panel,
.profile-about-panel,
.profile-settings-panel {
    border-radius: 8px !important;
}

.profile-detail-grid div {
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.028) !important;
}

@media (max-width: 760px) {
    .match-delete-form {
        margin: -4px 0 10px 0 !important;
    }

    .match-delete-form button {
        width: 100% !important;
        min-height: 40px !important;
    }

    .profile-hero-custom {
        grid-template-columns: 1fr !important;
        justify-items: start !important;
        gap: 16px !important;
        padding: 20px !important;
    }

    .profile-hero-custom img {
        width: 96px !important;
        height: 96px !important;
        border-radius: 22px !important;
    }

    .profile-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

/* Full community polish v112 */
:root {
    --dj-bg: #05050b;
    --dj-panel: rgba(13, 7, 16, 0.90);
    --dj-panel-soft: rgba(255, 255, 255, 0.035);
    --dj-line: rgba(255, 20, 159, 0.26);
    --dj-pink: #ff149f;
    --dj-pink-2: #ff48c4;
    --dj-green: #36f080;
    --dj-text: #f7f7fb;
    --dj-muted: #a7a0ad;
}

html {
    background: var(--dj-bg);
}

body {
    color: var(--dj-text);
    background:
        radial-gradient(circle at 76% 0%, rgba(255, 20, 159, 0.16), transparent 34%),
        radial-gradient(circle at 12% 20%, rgba(54, 240, 128, 0.055), transparent 24%),
        linear-gradient(180deg, #080812, #030309 54%, #05050b);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 72px;
    padding: 10px 22px;
    border-bottom: 1px solid rgba(255, 20, 159, 0.24);
    background: rgba(5, 5, 12, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.site-brand {
    gap: 10px;
}

.site-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-brand span {
    color: #fff;
    font-weight: 950;
}

.header-nav {
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255, 20, 159, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.026);
}

.header-nav a {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #efeaf4;
    font-size: 13px;
    font-weight: 850;
}

.header-nav a.active,
.header-nav a:hover {
    border-color: rgba(255, 20, 159, 0.40);
    background: linear-gradient(90deg, rgba(255, 20, 159, 0.42), rgba(255, 20, 159, 0.12));
    color: #fff;
}

.online-pill,
.account-box,
.app-bottom-nav {
    border-color: rgba(255, 20, 159, 0.24);
    background: rgba(12, 7, 15, 0.88);
}

.page-shell {
    width: min(1240px, 100%);
    padding: 22px 22px 62px;
}

.web-overlay-shell {
    margin-bottom: 16px;
}

.web-overlay-frame {
    height: 150px;
    border: 1px solid rgba(255, 20, 159, 0.22);
    border-radius: 8px;
    background: rgba(13, 7, 16, 0.55);
}

.web-track-links {
    margin: 10px 0 0;
    padding: 9px 10px;
    border-color: rgba(255, 20, 159, 0.22);
    border-radius: 8px;
    background: rgba(13, 7, 16, 0.74);
}

.web-track-links span,
.eyebrow,
.panel-head .eyebrow {
    color: var(--dj-pink-2);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
}

.web-track-links a {
    min-height: 28px;
    border-color: rgba(255, 20, 159, 0.25);
    background: rgba(255, 20, 159, 0.09);
    color: #ffd6ef;
}

.hero-section {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.hero-copy,
.player-card,
.quick-card,
.panel,
.stat-card,
.reward-card,
.shop-card,
.merch-card,
.flirt-card,
.request-card,
.message-panel,
.legal-info-card,
.legal-content,
.producer-card,
.profile-hero,
.public-profile-hero,
.flirt-hero,
.flirt-public-hero,
.merch-hero,
.app-install-hero,
.page-hero {
    border: 1px solid var(--dj-line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 20, 159, 0.13), transparent 40%),
        var(--dj-panel);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.24);
}

.hero-copy {
    min-height: 340px;
    display: grid;
    align-content: center;
    padding: 36px;
}

.hero-copy h1,
.page-hero h1,
.profile-hero h1,
.public-profile-hero h1,
.flirt-hero h1,
.flirt-public-hero h1,
.merch-hero h1,
.app-install-hero h1 {
    color: #fff;
    letter-spacing: 0;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 10px 0 12px;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.02;
}

.hero-copy p,
.page-hero p,
.profile-hero p,
.public-profile-hero p,
.flirt-hero p,
.flirt-public-hero p,
.merch-hero p,
.app-install-hero p,
.quick-card p,
.panel p,
.command-item span,
.redemption-list span {
    color: var(--dj-muted);
}

.hero-actions {
    gap: 10px;
    margin-top: 22px;
}

.btn,
.button,
button,
.link-button {
    border-radius: 7px;
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    border-color: transparent;
    background: linear-gradient(135deg, #b20670, var(--dj-pink));
}

.btn-ghost,
.link-button {
    border-color: rgba(255, 20, 159, 0.28);
    background: rgba(255, 255, 255, 0.035);
}

.player-card {
    padding: 22px;
}

.player-card > img,
.profile-hero img,
.public-profile-hero img,
.flirt-public-hero img {
    border: 2px solid var(--dj-pink);
    box-shadow: 0 0 0 4px rgba(255, 20, 159, 0.10);
}

.player-stats div,
.command-item,
.stat-list div,
.redemption-list div,
.leader-row,
.reward-item,
.settings-list label,
.mini-rank-list div,
.flirt-card,
.request-card,
.message-bubble {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
}

.level-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.level-meter div {
    background: linear-gradient(90deg, var(--dj-pink), var(--dj-pink-2));
}

.quick-grid {
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.quick-card {
    min-height: 132px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
}

.quick-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 20, 159, 0.12);
    color: var(--dj-pink-2);
    font-size: 21px;
}

.quick-card h3,
.panel h2,
.accent-panel h2,
.stat-card strong,
.leader-user strong,
.leader-user a {
    color: #fff;
}

.quick-card h3 {
    margin: 0;
    font-size: 16px;
}

.quick-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.live-push-card {
    border-color: rgba(54, 240, 128, 0.30);
    background:
        radial-gradient(circle at 90% 0%, rgba(54, 240, 128, 0.12), transparent 36%),
        var(--dj-panel);
}

.content-grid {
    gap: 18px;
    margin-top: 18px;
}

.panel {
    padding: 22px;
}

.command-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.command-item {
    min-height: 72px;
}

.command-item strong,
.stat-list strong,
.leader-xp,
.rank-pill {
    color: var(--dj-pink-2);
}

.leader-list {
    gap: 10px;
}

.leader-row {
    grid-template-columns: 46px 44px minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 10px;
}

.leader-row img {
    width: 42px;
    height: 42px;
}

.rank-pill {
    border-color: rgba(255, 20, 159, 0.26);
    background: rgba(255, 20, 159, 0.12);
}

.shop-grid,
.reward-grid,
.merch-grid,
.flirt-grid,
.profile-grid,
.dashboard-two-col,
.content-grid {
    align-items: start;
}

input,
select,
textarea {
    border-color: rgba(255, 20, 159, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
}

@media (max-width: 1180px) {
    .hero-section,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid,
    .command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 62px !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        gap: 10px !important;
        padding: max(8px, env(safe-area-inset-top)) 12px 8px !important;
    }

    .site-brand {
        display: flex !important;
    }

    .site-brand span {
        font-size: 14px !important;
    }

    .site-brand small {
        font-size: 11px !important;
    }

    .header-nav {
        justify-self: stretch !important;
        width: 100% !important;
        border-radius: 12px !important;
    }

    .header-theme-menu,
    .header-theme-menu label,
    .header-theme-menu select {
        width: 100% !important;
    }

    .header-auth.is-logged-in {
        display: none !important;
    }

    .page-shell {
        padding: 12px 12px 96px;
    }

    .hero-copy {
        min-height: 0;
        padding: 22px 16px;
    }

    .hero-copy h1 {
        font-size: 32px;
        line-height: 1.05;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-actions,
    .quick-grid,
    .command-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .web-overlay-frame {
        height: 112px;
    }

    .web-track-links {
        gap: 6px;
        padding: 8px;
    }

    .web-track-links a {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }

    .quick-card,
    .panel,
    .player-card {
        padding: 16px;
    }

    .leader-row {
        grid-template-columns: 38px 40px minmax(0, 1fr);
    }

    .leader-xp {
        grid-column: 3;
        justify-self: start;
        font-size: 12px;
    }

    .app-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        border-radius: 14px;
        background: rgba(9, 5, 13, 0.96);
        backdrop-filter: blur(16px);
    }
}

/* Final profile edit area: no magenta bar */
.profile-settings-panel {
    border-color: rgba(255, 79, 216, 0.22) !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 79, 216, 0.10), transparent 34%),
        var(--panel) !important;
}

.profile-settings-panel > .profile-settings-toggle,
.profile-settings-panel > .profile-settings-toggle:hover,
.profile-settings-panel.is-open > .profile-settings-toggle,
.profile-settings-panel.is-open > .profile-settings-toggle:hover {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Darker magenta buttons final */
.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost),
.app-bottom-nav a.active {
    background: linear-gradient(135deg, #8f0a68, #52063f) !important;
    border-color: rgba(187, 26, 139, 0.78) !important;
    color: #fff !important;
}

.btn:not(.btn-ghost):hover,
button:not(.ghost):not(.danger):not(.profile-settings-toggle):hover,
.button:not(.ghost):hover {
    background: linear-gradient(135deg, #a50d78, #61064a) !important;
    border-color: rgba(255, 79, 216, 0.72) !important;
}

/* Website banner/mobile final polish. OBS overlay is separate. */
.header-nav a,
.top-nav a {
    color: #fff;
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    background: linear-gradient(135deg, #d01898, #870866);
}

@media (max-width: 620px) {
    .web-overlay-frame {
        height: 224px !important;
        border-radius: 16px !important;
    }

    .web-track-links {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
        padding: 8px !important;
    }

    .web-track-links span {
        grid-column: 1 / -1 !important;
        width: auto !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .web-track-links a {
        min-width: 0 !important;
        min-height: 26px !important;
        justify-content: center !important;
        padding: 0 4px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

/* Mobile app fixed home header */
.mobile-fixed-community-header {
    display: none;
}

@media (max-width: 620px) {
    .web-overlay-shell {
        display: grid !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 16px !important;
        background: rgba(22, 3, 26, 0.94) !important;
    }

    .web-overlay-frame {
        display: none !important;
    }

    .mobile-fixed-community-header {
        display: block !important;
    }

    .mobile-fixed-community-header img,
    .mobile-header-image {
        display: none !important;
    }

    .mobile-header-image::before {
        content: none !important;
    }

    .mobile-header-image::after {
        content: none !important;
    }

    .mobile-nowplaying {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 52px !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 9px 10px !important;
        border: 1px solid rgba(255, 79, 216, 0.35) !important;
        border-radius: 12px !important;
        background: rgba(9, 4, 17, 0.88) !important;
    }

    .mobile-nowplaying span {
        display: block !important;
        color: #ff4fd8 !important;
        font-size: 10px !important;
        font-weight: 950 !important;
        text-transform: uppercase !important;
    }

    .mobile-nowplaying div {
        min-width: 0 !important;
    }

    .mobile-nowplaying strong,
    .mobile-nowplaying small {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .mobile-nowplaying strong {
        color: #fff !important;
        font-size: 13px !important;
    }

    .mobile-nowplaying small {
        color: #f9a8d4 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    .mobile-nowplaying img {
        width: 52px !important;
        height: 52px !important;
        object-fit: cover !important;
        border: 1px solid rgba(255, 79, 216, 0.58) !important;
        border-radius: 10px !important;
        box-shadow: 0 0 14px rgba(255, 79, 216, 0.18) !important;
    }

    .web-track-links {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        margin: 0 !important;
        padding: 7px !important;
    }

    .web-track-links span {
        display: none !important;
    }

    .web-track-links a {
        min-height: 28px !important;
        padding: 0 3px !important;
        font-size: 8.5px !important;
    }
}

/* Mobile landscape: fixed banner + music only */
@media (max-width: 920px) and (max-height: 520px) {
    .web-overlay-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 220px !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 14px !important;
        background: rgba(22, 3, 26, 0.94) !important;
    }

    .web-overlay-frame {
        display: none !important;
    }

    .mobile-fixed-community-header {
        display: block !important;
    }

    .mobile-fixed-community-header img,
    .mobile-header-image {
        display: none !important;
    }

    .mobile-nowplaying {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px !important;
        align-content: center !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 8px !important;
        border: 1px solid rgba(255, 79, 216, 0.35) !important;
        border-radius: 12px !important;
        background: rgba(9, 4, 17, 0.88) !important;
    }

    .mobile-nowplaying span {
        display: block !important;
        color: #ff4fd8 !important;
        font-size: 9px !important;
        font-weight: 950 !important;
        text-transform: uppercase !important;
    }

    .mobile-nowplaying strong,
    .mobile-nowplaying small {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .mobile-nowplaying strong {
        color: #fff !important;
        font-size: 12px !important;
    }

    .mobile-nowplaying small {
        color: #f9a8d4 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
    }

    .mobile-nowplaying img {
        width: 46px !important;
        height: 46px !important;
        object-fit: cover !important;
        border: 1px solid rgba(255, 79, 216, 0.58) !important;
        border-radius: 9px !important;
    }

    .web-track-links {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        align-content: center !important;
        margin: 0 !important;
        padding: 7px !important;
    }

    .web-track-links span {
        display: none !important;
    }

    .web-track-links a {
        min-height: 24px !important;
        justify-content: center !important;
        padding: 0 5px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }
}

/* Final mobile web banner and tracklinks sizing */
@media (max-width: 620px) {
    .web-overlay-frame {
        height: 220px !important;
    }

    .web-track-links {
        gap: 5px !important;
        padding: 9px 10px !important;
    }

    .web-track-links span {
        width: 100% !important;
        margin-right: 0 !important;
        font-size: 10px !important;
    }

    .web-track-links a {
        min-height: 28px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
    }
}

.app-pull-refresh {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    left: 50%;
    z-index: 10000;
    width: min(260px, calc(100vw - 40px));
    padding: 10px 12px;
    border: 1px solid rgba(255, 79, 216, 0.48);
    border-radius: 14px;
    background: rgba(9, 5, 16, 0.94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 22px rgba(255, 79, 216, 0.14);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -120%);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.app-pull-refresh.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.app-pull-refresh strong {
    display: block;
    margin-bottom: 7px;
    color: #ff4fd8;
    font-size: 12px;
    text-transform: uppercase;
}

.app-pull-refresh span {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.app-pull-refresh i {
    width: var(--pull-progress, 0%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff2ebd, #ff7add);
}

/* Final web banner/header polish */
.web-overlay-frame {
    width: 100%;
    height: 188px;
    display: block;
    border: 0;
}

.header-nav a {
    color: #fff;
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(166, 16, 122, 0.32);
    color: #fff;
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    background: linear-gradient(135deg, #c51691, #7b0b5d);
    color: #fff;
}

.btn-ghost,
.link-button {
    border-color: rgba(198, 36, 150, 0.58);
    color: #fff;
}

.btn-ghost:hover,
.link-button:hover:not(.profile-settings-toggle) {
    background: rgba(140, 13, 104, 0.26);
}

@media (max-width: 620px) {
    .web-overlay-frame {
        height: 320px;
    }
}

/* Profile settings header should stay subtle */
.profile-settings-toggle,
.profile-settings-toggle:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

.profile-settings-toggle h2 {
    color: #fff;
}

.profile-settings-toggle p {
    color: rgba(255, 255, 255, 0.72);
}

.profile-settings-toggle i {
    border-color: rgba(255, 79, 216, 0.38);
    background: rgba(255, 79, 216, 0.10);
    color: #ff7add;
}

.profile-settings-panel .profile-settings-toggle,
.profile-settings-panel .profile-settings-toggle:hover,
.profile-settings-panel.is-open .profile-settings-toggle,
.profile-settings-panel.is-open .profile-settings-toggle:hover {
    border: 0 !important;
    background:
        radial-gradient(circle at 95% 0%, rgba(255, 79, 216, 0.12), transparent 36%),
        rgba(255, 255, 255, 0.025) !important;
    box-shadow: none !important;
    color: inherit !important;
}

.profile-settings-panel .profile-settings-toggle h2 {
    color: #fff !important;
}

.profile-settings-panel .profile-settings-toggle p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.profile-settings-panel .profile-settings-toggle i {
    border-color: rgba(255, 79, 216, 0.38) !important;
    background: rgba(255, 79, 216, 0.10) !important;
    color: #ff7add !important;
}

/* Mobile header final cleanup */
@media (max-width: 620px) {
    .site-header {
        min-height: 56px !important;
        grid-template-columns: minmax(0, 1fr) 40px !important;
        align-items: center !important;
        gap: 8px !important;
        padding: max(8px, env(safe-area-inset-top)) 12px 8px !important;
        background: rgba(8, 5, 16, 0.97) !important;
    }

    .header-auth {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        overflow: hidden !important;
    }

    .header-auth .online-pill {
        min-height: 30px !important;
        flex: 0 0 auto !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    .account-box {
        min-width: 0 !important;
        justify-items: start !important;
    }

    .account-actions {
        display: none !important;
    }

    .account-name {
        max-width: 48vw !important;
        min-height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 0 10px !important;
        border: 1px solid rgba(255, 79, 216, 0.24) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        font-size: 11px !important;
    }

    .account-name::before {
        content: "" !important;
    }

    .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        justify-self: end !important;
        font-size: 18px !important;
    }

    .header-nav.open {
        margin-top: 8px !important;
        padding: 8px !important;
        border-radius: 14px !important;
    }

    .header-nav .mobile-control-link,
    .header-nav .mobile-nav-logout {
        display: flex !important;
    }

    .header-nav a {
        min-height: 42px !important;
        justify-content: flex-start !important;
        font-size: 14px !important;
    }
}

/* iPhone header cleanup */
@media (max-width: 620px) {
    .site-header {
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr) 42px;
        align-items: center;
        padding: max(8px, env(safe-area-inset-top)) 12px 8px;
        border-bottom-color: rgba(255, 79, 216, 0.28);
        background: rgba(8, 5, 16, 0.96);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
    }

    .header-auth {
        min-width: 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header-auth .online-pill {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
        white-space: nowrap;
    }

    .account-box {
        min-width: 0;
    }

    .account-actions {
        display: none;
    }

    .account-name {
        max-width: 38vw;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        padding: 0 9px;
        border: 1px solid rgba(255, 79, 216, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.035);
        font-size: 11px;
    }

    .account-name::before {
        content: "";
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 18px;
    }

    .header-nav.open {
        margin-top: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .header-nav a {
        min-height: 42px;
        font-size: 14px;
    }
}

/* Header and mobile nav magenta pass v88 */
.site-header {
    border-bottom: 1px solid rgba(255, 79, 216, 0.44);
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 79, 216, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(6, 5, 13, 0.98), rgba(21, 7, 28, 0.96));
}

.site-brand span {
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 79, 216, 0.42);
}

.header-nav a {
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.78);
}

.header-nav a.active,
.header-nav a:hover {
    border-color: rgba(255, 79, 216, 0.64);
    background: rgba(255, 79, 216, 0.16);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 79, 216, 0.14);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 79, 216, 0.54);
    border-radius: 12px;
    background: rgba(255, 79, 216, 0.12);
    color: #fff;
    box-shadow: 0 0 16px rgba(255, 79, 216, 0.12);
}

.online-pill {
    border-color: rgba(255, 79, 216, 0.38);
    background: rgba(255, 79, 216, 0.10);
    color: #ffd8f5;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 16px;
    }

    .header-nav.open {
        margin-top: 12px;
        padding: 10px;
        border: 1px solid rgba(255, 79, 216, 0.28);
        border-radius: 16px;
        background: rgba(8, 5, 16, 0.96);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    }

    .header-nav a {
        justify-content: flex-start;
        min-height: 46px;
        padding: 0 14px;
        border-color: rgba(255, 79, 216, 0.18);
        background: rgba(255, 255, 255, 0.035);
        font-size: 15px;
    }
}

@media (max-width: 620px) {
    .app-bottom-nav {
        border-color: rgba(255, 79, 216, 0.36);
        background:
            radial-gradient(circle at 50% 0%, rgba(255, 79, 216, 0.20), transparent 42%),
            rgba(8, 5, 16, 0.96);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 79, 216, 0.12);
    }

    .app-bottom-nav a {
        color: rgba(255, 255, 255, 0.72);
    }

    .app-bottom-nav a.active,
    .app-bottom-nav a:hover {
        background: linear-gradient(135deg, rgba(255, 46, 189, 0.94), rgba(128, 12, 96, 0.82));
        color: #fff;
        box-shadow: 0 10px 24px rgba(255, 79, 216, 0.24);
    }
}

/* Producer music block: final override so older layout rules cannot make it bulky. */
.producer-card {
    align-content: start !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 16px !important;
}

.producer-card .panel-head {
    margin-bottom: 0 !important;
}

.producer-card .panel-head h2 {
    font-size: 18px !important;
    line-height: 1.15 !important;
}

.producer-title-link {
    width: fit-content !important;
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.music-platform-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 0 !important;
}

.music-platform-links a {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
}

.music-platform-links a > span:not(.platform-logo) {
    display: none !important;
}

.platform-logo {
    width: 23px !important;
    height: 23px !important;
    border-radius: 8px !important;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 79, 216, 0.26), transparent 32%),
        radial-gradient(circle at 90% 18%, rgba(255, 46, 189, 0.16), transparent 30%),
        linear-gradient(135deg, #080510 0%, #17081f 45%, #2a0d32 75%, #050308 100%);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(90deg, rgba(10, 8, 18, 0.96), rgba(26, 15, 48, 0.92)),
        rgba(10, 8, 18, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
}

.site-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.header-nav a:hover {
    background: rgba(145, 70, 255, 0.18);
    color: var(--text);
}

.mobile-nav-logout {
    display: none !important;
}

.mobile-control-link {
    display: none !important;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth span {
    color: var(--muted);
    font-size: 14px;
}

.account-box {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-name {
    max-width: 260px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-name::before {
    content: "Angemeldet als: ";
    color: rgba(255, 255, 255, 0.48);
    font-weight: 750;
}

.online-pill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.09);
    color: #bdf6eb;
    font-size: 14px;
    font-weight: 900;
}

.online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.app-bottom-nav {
    display: none;
}

.app-update-check {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.22), transparent 32%),
        rgba(12, 4, 24, 0.94);
    backdrop-filter: blur(16px);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.app-page-loader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.18), transparent 32%),
        rgba(12, 4, 24, 0.88);
    backdrop-filter: blur(12px);
}

.app-page-loader > div {
    width: min(300px, calc(100vw - 48px));
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(15, 15, 25, 0.92);
    text-align: center;
}

.app-page-loader img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
}

.app-page-loader strong {
    font-size: 18px;
}

.app-page-loader span {
    color: var(--muted);
    font-size: 13px;
}

.app-page-loader i {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.app-page-loader i::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--purple-2));
    animation: app-update-bar 0.95s ease-in-out infinite;
}

.app-update-check.is-done {
    opacity: 0;
    visibility: hidden;
}

.app-update-check > div {
    width: min(320px, calc(100vw - 44px));
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(15, 15, 25, 0.92);
    text-align: center;
}

.app-update-check img {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    object-fit: cover;
}

.app-update-check strong {
    font-size: 19px;
}

.app-update-check span {
    color: var(--muted);
    font-size: 13px;
}

.app-update-check i {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.app-update-check i::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--purple-2));
    animation: app-update-bar 0.95s ease-in-out infinite;
}

@keyframes app-update-bar {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(230%); }
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(192, 132, 252, 0.45);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple), var(--purple-2));
    color: var(--text);
    padding: 0 18px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(145, 70, 255, 0.32);
    filter: brightness(1.06);
}

.btn-small {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 8px;
}

.btn-ghost,
.link-button {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
}

.btn-ghost:hover,
.link-button:hover:not(.profile-settings-toggle) {
    border-color: rgba(45, 212, 191, 0.7);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.13);
}

.page-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 34px 20px 50px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}

.stream-live-banner {
    display: grid;
    grid-template-columns: 160px minmax(220px, 0.8fr) minmax(420px, 1.15fr) auto;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(15, 15, 25, 0.96), rgba(28, 20, 48, 0.82)),
        var(--panel);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.stream-preview {
    position: relative;
    min-height: 104px;
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.stream-preview img,
.stream-preview-placeholder {
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
}

.stream-preview-placeholder {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 30px;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.28), rgba(45, 212, 191, 0.10));
}

.stream-preview-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    gap: 2px;
    max-width: calc(100% - 20px);
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(9, 8, 18, 0.72);
    backdrop-filter: blur(10px);
}

.stream-preview-badge span {
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
}

.stream-preview-badge strong {
    overflow: hidden;
    color: #fde68a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-banner-content {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.stream-live-banner.is-online {
    border-color: rgba(45, 212, 191, 0.34);
    background:
        radial-gradient(circle at 96% 20%, rgba(45, 212, 191, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(15, 15, 25, 0.96), rgba(28, 20, 48, 0.82)),
        var(--panel);
}

.web-overlay-shell {
    margin-bottom: 18px;
}

.web-overlay-frame {
    display: block;
    width: 100%;
    height: 178px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    overflow: hidden;
}

.web-track-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 6px 0;
    padding: 10px 12px;
    border: 1px solid rgba(251, 191, 36, 0.20);
    border-radius: 14px;
    background: rgba(10, 8, 20, 0.42);
}

.web-track-links span {
    margin-right: 4px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.web-track-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.web-track-links a:hover {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.stream-status-main,
.stream-status-meta {
    display: flex;
    align-items: center;
    gap: 11px;
}

.web-obs-banner {
    width: 100%;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 22px;
    background:
        linear-gradient(110deg, rgba(255, 72, 72, 0.16), rgba(45, 212, 191, 0.13)),
        rgba(10, 8, 20, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.web-obs-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.web-obs-status strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    text-transform: uppercase;
}

.web-obs-main {
    min-width: 0;
}

.web-obs-main span {
    display: block;
    margin-bottom: 5px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.web-obs-main strong,
.web-obs-main small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-obs-main strong {
    color: var(--text);
    font-size: clamp(20px, 1.55vw, 30px);
    line-height: 1.1;
    font-weight: 950;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.26);
}

.web-obs-main small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 800;
}

.web-obs-cover,
.web-obs-cover-placeholder {
    width: 72px;
    height: 72px;
    justify-self: end;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.web-obs-cover-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
}

.web-obs-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.web-obs-links {
    grid-column: 2 / 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    margin-top: -8px;
}

.web-obs-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.web-obs-links a:hover {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.stream-status-main {
    min-width: 0;
}

.nowplaying-cover {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 9px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.stream-status-main h2 {
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nowplaying-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.nowplaying-links a {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nowplaying-links a:hover {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.nowplaying-meta {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.nowplaying-cover-placeholder {
    display: grid !important;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 9px;
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a !important;
    font-size: 15px !important;
}

.nowplaying-copy {
    min-width: 0;
}

.nowplaying-copy span {
    color: #fde68a;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.nowplaying-copy strong {
    white-space: nowrap;
}

.nowplaying-artist,
.nowplaying-title {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
}

.nowplaying-artist {
    margin-top: 3px;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.1;
}

.nowplaying-title {
    margin-top: 3px;
    color: #fde68a !important;
    font-size: clamp(12px, 0.82vw, 14px);
    line-height: 1.2;
}

.stream-nowplaying-card {
    min-width: min(360px, 100%);
    align-self: center;
    padding: 6px 0 !important;
}

.stream-status-meta > div:not(.nowplaying-meta):not(.web-obs-banner) {
    display: none;
}

.stream-open-button {
    align-self: center;
    white-space: nowrap;
}

.stream-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--muted);
    flex: 0 0 auto;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06);
}

.stream-live-banner.is-online .stream-dot {
    background: var(--teal);
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.14);
}

.stream-live-banner.is-offline .stream-dot {
    background: rgba(255, 255, 255, 0.38);
}

.stream-status-meta {
    min-width: 0;
    flex: 0 0 auto;
}

.stream-status-meta div {
    min-width: 112px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.stream-status-meta .nowplaying-meta {
    min-width: min(360px, 100%);
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

.stream-status-meta .web-obs-banner {
    flex: 1 1 720px;
}

.stream-status-meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stream-status-meta strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-copy,
.player-card,
.quick-card,
.panel,
.card,
.merch-card,
.stat-card,
.profile-card,
.redemptions-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.hero-copy {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    background:
        linear-gradient(90deg, rgba(15, 15, 25, 0.96), rgba(15, 15, 25, 0.74)),
        radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.20), transparent 26%),
        var(--panel);
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.player-card {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.player-card img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--purple-2);
}

.player-card h2 {
    margin: 3px 0 0;
}

.player-card span,
.player-card small,
.quick-card p,
.panel p,
.command-item span,
.leader-row span,
.redemption-list span,
.stat-list span {
    color: var(--muted);
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.player-stats div,
.stat-list div,
.command-item,
.leader-row,
.redemption-list div {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.player-stats div {
    padding: 12px;
}

.player-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.level-meter {
    height: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.level-meter div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--purple-2));
}

.quick-grid,
.content-grid,
.shop-grid,
.merch-grid,
.profile-stats,
.command-grid {
    display: grid;
    gap: 16px;
}

.quick-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 22px;
}

.quick-card {
    padding: 20px;
}

.quick-card i {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 12px;
}

.quick-card h3,
.quick-card p {
    margin: 0;
}

.quick-card p {
    margin-top: 8px;
    line-height: 1.45;
}

.live-push-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    border-color: rgba(45, 212, 191, 0.32);
    background:
        radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 38%),
        rgba(15, 15, 25, 0.92);
}

.live-push-card i {
    margin-bottom: 0;
}

.live-push-card h3 {
    align-self: end;
}

.live-push-card p {
    grid-column: 2;
    margin-top: 0;
}

.live-push-card button {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: min(220px, 100%);
    margin-top: 0;
}

.live-push-card span {
    grid-column: 1 / -1;
    display: block;
    margin-top: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.content-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
}

.span-2 {
    grid-column: span 2;
}

.panel,
.card,
.merch-card,
.stat-card,
.profile-card,
.redemptions-card {
    padding: 22px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 4px 0 0;
}

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

.command-item {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.command-item strong {
    color: #e9d5ff;
}

.stat-list,
.leader-list,
.redemption-list {
    display: grid;
    gap: 10px;
}

.stat-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
}

.leader-row {
    display: grid;
    grid-template-columns: auto 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.leader-user {
    min-width: 0;
}

.leader-user strong,
.leader-user a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-xp {
    justify-self: end;
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}

.leader-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.leader-row .community-role-badge {
    height: 20px;
    min-height: 20px;
    margin: 3px 0 0;
    padding: 0 7px;
    gap: 4px;
    font-size: 9px;
    letter-spacing: 0;
    box-shadow: none;
}

.leader-row .community-role-badge i {
    width: 9px;
    min-width: 9px;
    font-size: 8px;
}

.leader-row .community-role-badge.role-streamer {
    box-shadow: 0 0 10px rgba(255, 20, 20, 0.24);
}

.profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.profile-link:hover img {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
}

.profile-name-link {
    color: inherit;
    text-decoration: none;
}

.profile-name-link:hover {
    color: var(--teal);
}

.rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.14);
    color: var(--gold);
    font-weight: 900;
}

.community-role-badges {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 10px;
}

.community-role-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.community-role-badge i {
    width: 10px;
    min-width: 10px;
    font-size: 9px;
    text-align: center;
}

.community-role-badge.role-streamer {
    border-color: rgba(255, 20, 20, 0.92);
    background: linear-gradient(135deg, #ff1515, #b00000);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 18px rgba(255, 20, 20, 0.42);
}

.community-role-badge.role-admin {
    border-color: rgba(255, 184, 77, 0.92);
    background: linear-gradient(135deg, #ffb84d, #b86b00);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 18px rgba(255, 184, 77, 0.32);
}

.community-role-badge.role-mod {
    border-color: rgba(74, 222, 128, 0.52);
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
}

.community-role-badge.role-vip {
    border-color: rgba(236, 72, 153, 0.52);
    background: rgba(236, 72, 153, 0.15);
    color: #fbcfe8;
}

.community-role-badge.role-mod {
    border-color: rgba(34, 197, 94, 0.88);
    background: linear-gradient(135deg, #22c55e, #047857);
    color: #ffffff;
}

.community-role-badge.role-vip {
    border-color: rgba(236, 72, 153, 0.88);
    background: linear-gradient(135deg, #ec4899, #9d174d);
    color: #ffffff;
}

.redemption-list div {
    display: grid;
    gap: 4px;
    padding: 13px;
}

.accent-panel {
    background:
        radial-gradient(circle at 90% 12%, rgba(45, 212, 191, 0.18), transparent 30%),
        var(--panel-2);
}

.accent-panel p {
    line-height: 1.5;
    margin-bottom: 18px;
}

.legal-hero {
    overflow: hidden;
    position: relative;
}

.legal-hero::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 22px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 68%);
    pointer-events: none;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.legal-aside {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.legal-info-card,
.legal-content,
.legal-note {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.legal-info-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.legal-info-card i {
    color: var(--gold);
    font-size: 24px;
}

.legal-info-card span,
.legal-content p,
.legal-address span,
.legal-note span {
    color: var(--muted);
}

.legal-info-card a,
.legal-content a {
    color: #e9d5ff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.legal-info-card a:hover,
.legal-content a:hover {
    color: var(--teal);
}

.legal-content {
    padding: 28px;
}

.legal-content section + section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.legal-content p {
    margin: 0;
    line-height: 1.7;
}

.legal-content p + p {
    margin-top: 12px;
}

.legal-address {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.legal-note {
    display: grid;
    gap: 6px;
    margin-top: 26px;
    padding: 16px;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.merch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.merch-hero-copy,
.merch-featured-card,
.merch-toolbar {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.merch-hero-copy {
    display: grid;
    align-content: center;
    min-height: 360px;
    padding: 34px;
    background:
        linear-gradient(90deg, rgba(15, 15, 25, 0.96), rgba(15, 15, 25, 0.72)),
        radial-gradient(circle at 82% 18%, rgba(251, 191, 36, 0.22), transparent 30%),
        var(--panel);
}

.merch-hero-copy h1 {
    max-width: 760px;
    margin: 10px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 0.98;
}

.merch-hero-copy p {
    max-width: 660px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.merch-featured-card {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
}

.merch-featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 18%, rgba(145, 70, 255, 0.26), transparent 48%);
    pointer-events: none;
}

.merch-featured-card > * {
    position: relative;
}

.merch-featured-image {
    display: grid;
    min-height: 250px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.merch-featured-image img {
    width: min(260px, 92%);
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.merch-featured-card h2,
.merch-card-body h2 {
    margin: 0 0 8px;
    color: #e9d5ff;
}

.merch-featured-card p,
.merch-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.merch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
}

.merch-toolbar > span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.merch-toolbar div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.merch-toolbar button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    padding: 0 13px;
    font-weight: 850;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.merch-toolbar button:hover:not(.profile-settings-toggle),
.merch-toolbar button.active {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.merch-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merch-card {
    position: relative;
    overflow: hidden;
    text-align: left;
}

.merch-card[hidden] {
    display: none;
}

.merch-card-media {
    position: relative;
    display: grid;
    min-height: 230px;
    place-items: center;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 8%, rgba(145, 70, 255, 0.18), transparent 44%),
        rgba(255, 255, 255, 0.05);
}

.merch-card-media img {
    width: min(220px, 92%);
    height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.30));
    transition: transform 0.18s ease;
}

.merch-tag,
.merch-category {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 950;
}

.merch-tag {
    background: rgba(251, 191, 36, 0.16);
    color: #fde68a;
}

.merch-card-media .merch-tag {
    position: absolute;
    top: 12px;
    left: 12px;
}

.merch-category {
    margin-bottom: 10px;
    background: rgba(145, 70, 255, 0.18);
    color: #e9d5ff;
}

.merch-card-body {
    display: grid;
    align-content: start;
}

.merch-button {
    width: 100%;
}

.flirt-hero {
    background:
        linear-gradient(90deg, rgba(15, 15, 25, 0.96), rgba(15, 15, 25, 0.70)),
        radial-gradient(circle at 88% 18%, rgba(239, 68, 68, 0.20), transparent 28%),
        var(--panel);
}

.flirt-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.flirt-settings {
    position: sticky;
    top: 92px;
    overflow: hidden;
    padding: 0;
}

.flirt-profile-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 90% 0%, rgba(239, 68, 68, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.035);
}

.flirt-profile-preview img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(192, 132, 252, 0.75);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.flirt-profile-preview h2 {
    margin: 4px 0 3px;
    overflow-wrap: anywhere;
}

.flirt-profile-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.flirt-visibility {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 18px 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    font-weight: 850;
}

.flirt-visibility.is-visible {
    border-color: rgba(45, 212, 191, 0.40);
    background: rgba(45, 212, 191, 0.10);
    color: #bdf6eb;
}

.flirt-settings .profile-settings-form {
    padding: 18px;
}

.flirt-settings .profile-settings-form label {
    color: #e9d5ff;
}

.flirt-settings .profile-settings-form input,
.flirt-settings .profile-settings-form select,
.flirt-settings .profile-settings-form textarea {
    min-height: 46px;
    border-color: rgba(192, 132, 252, 0.28);
    border-radius: 12px;
    background: rgba(7, 4, 16, 0.54);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.flirt-settings .profile-settings-form textarea {
    min-height: 112px;
    padding-top: 12px;
}

.flirt-settings .profile-settings-form input:focus,
.flirt-settings .profile-settings-form select:focus,
.flirt-settings .profile-settings-form textarea:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.70);
    background: rgba(7, 4, 16, 0.72);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.flirt-settings .profile-settings-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #e9d5ff 50%),
        linear-gradient(135deg, #e9d5ff 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.flirt-avatar-upload input[type="file"] {
    padding: 11px;
    cursor: pointer;
}

.flirt-avatar-upload span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.toggle-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.08);
}

.toggle-line input {
    width: auto;
    min-height: auto;
}

.flirt-main,
.flirt-chat-panel {
    min-width: 0;
}

.flirt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.flirt-section-head h2 {
    margin: 4px 0 0;
}

.flirt-section-head > span {
    color: var(--gold);
    font-weight: 900;
}

.flirt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
}

.flirt-card {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.flirt-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.flirt-card-top > div {
    min-width: 0;
}

.flirt-card-top img,
.match-list img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(192, 132, 252, 0.65);
}

.flirt-card h3 {
    margin: 0;
    color: #e9d5ff;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.flirt-card h3 a,
.request-card strong a {
    color: inherit;
    text-decoration: none;
}

.flirt-card h3 a:hover,
.request-card strong a:hover {
    color: var(--teal);
}

.flirt-profile-link {
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
}

.flirt-card-top span,
.flirt-card p,
.flirt-card blockquote,
.match-list span,
.message-bubble span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.flirt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.flirt-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.flirt-card p {
    margin: 0;
    line-height: 1.5;
}

.flirt-card blockquote {
    margin: 0;
    padding: 12px;
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    line-height: 1.45;
}

.flirt-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
}

.flirt-actions form,
.report-form {
    margin: 0;
}

.flirt-actions button {
    width: 100%;
}

.flirt-actions button:disabled {
    cursor: default;
    opacity: 0.72;
    transform: none;
}

.report-form input {
    min-height: 36px;
    font-size: 13px;
}

.match-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
}

.request-list {
    display: grid;
    gap: 10px;
}

.request-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.request-card img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(192, 132, 252, 0.65);
}

.request-card strong {
    display: block;
    color: #e9d5ff;
}

.request-card span {
    color: var(--muted);
}

.request-card form {
    margin: 0;
}

.match-list {
    display: grid;
    align-content: start;
    gap: 10px;
}

.match-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.match-list em {
    margin-left: auto;
    border: 1px solid rgba(45, 212, 191, 0.32);
    border-radius: 999px;
    color: #bdf6eb;
    padding: 4px 9px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.match-list a.active,
.match-list a:hover {
    border-color: rgba(45, 212, 191, 0.55);
    background: rgba(45, 212, 191, 0.10);
}

.match-chat {
    display: grid;
    gap: 12px;
    min-height: 360px;
}

.message-list {
    display: grid;
    align-content: end;
    gap: 10px;
    min-height: 300px;
    max-height: 520px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.message-bubble {
    width: fit-content;
    max-width: min(620px, 82%);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.message-bubble.mine {
    justify-self: end;
    background: rgba(145, 70, 255, 0.24);
}

.message-bubble p {
    margin: 4px 0 0;
    line-height: 1.45;
}

.flirt-public-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(239, 68, 68, 0.18), transparent 32%),
        var(--panel);
}

.flirt-public-hero img {
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border: 3px solid rgba(192, 132, 252, 0.78);
    border-radius: 28px;
    object-fit: cover;
}

.flirt-public-hero h1 {
    margin: 4px 0 4px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.flirt-public-hero p {
    margin: 0 0 12px;
    color: var(--muted);
}

.flirt-public-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.message-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.page-hero {
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(15, 15, 25, 0.96), rgba(15, 15, 25, 0.74)),
        radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.18), transparent 28%),
        var(--panel);
}

.compact-hero {
    padding: 30px;
}

.compact-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.compact-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.ranking-summary,
.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

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

.ranking-summary article,
.profile-stat-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.ranking-summary span,
.profile-stat-grid span {
    color: var(--muted);
}

.ranking-summary strong,
.profile-stat-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
}

.podium-card {
    min-height: 250px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    text-align: center;
}

.podium-card.first {
    min-height: 290px;
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.22), transparent 35%),
        linear-gradient(180deg, rgba(145, 70, 255, 0.92), rgba(74, 63, 224, 0.84));
    box-shadow: 0 22px 60px rgba(145, 70, 255, 0.36);
}

.podium-card img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.podium-card .medal {
    color: var(--gold);
    font-weight: 950;
}

.podium-card p {
    margin: 0;
    color: var(--muted);
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 48px 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.ranking-row.is-me {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.09);
}

.ranking-row img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-row span {
    color: var(--muted);
}

.ranking-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ranking-user > strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-user .community-role-badge {
    flex: 0 0 auto;
    margin: 0;
}

.ranking-score {
    display: flex;
    align-items: baseline;
    justify-self: end;
    gap: 12px;
    white-space: nowrap;
}

.ranking-score span {
    color: var(--muted);
    font-size: 14px;
}

.ranking-score strong {
    color: var(--gold);
    font-weight: 950;
}

.empty-state {
    text-align: center;
}

.shop-balance {
    width: fit-content;
    display: grid;
    gap: 2px;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.10);
}

.shop-balance span {
    color: var(--muted);
    font-size: 13px;
}

.shop-balance strong {
    color: var(--gold);
    font-size: 24px;
}

.shop-catalog,
.merch-catalog {
    align-items: stretch;
}

.shop-item-card,
.merch-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.shop-item-card.locked {
    opacity: 0.72;
}

.shop-image {
    display: grid;
    place-items: center;
    min-height: 190px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.shop-image img {
    width: 100%;
    max-width: 190px;
    height: 180px;
    object-fit: contain;
}

.shop-item-body h2,
.merch-card h2 {
    margin: 0 0 8px;
    color: #e9d5ff;
}

.shop-item-body p,
.merch-card p {
    color: var(--muted);
    line-height: 1.45;
}

.shop-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.shop-item-footer strong {
    color: var(--gold);
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.profile-hero img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--purple-2);
}

.profile-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(34px, 5vw, 52px);
}

.profile-hero p {
    color: var(--muted);
}

.profile-hero-actions,
.profile-action-grid .panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.profile-hero-actions {
    margin-top: 16px;
}

.profile-action-grid .panel {
    align-content: flex-start;
}

.profile-action-grid {
    align-items: start;
}

.profile-action-grid .panel-head,
.profile-action-grid .muted-text {
    width: 100%;
}

.muted-text {
    color: var(--muted);
    line-height: 1.55;
}

.producer-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.16), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.12), transparent 30%),
        var(--panel);
}

.producer-card .panel-head {
    margin-bottom: 2px;
}

.producer-card .panel-head h2 {
    font-size: 19px;
}

.producer-title-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.producer-title-link:hover {
    color: var(--gold);
}

.music-platform-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 42px));
    gap: 8px;
    margin-top: 2px;
}

.music-platform-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.065);
    color: #e9d5ff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.music-platform-links a:hover {
    border-color: rgba(45, 212, 191, 0.62);
    color: var(--text);
    transform: translateY(-1px);
}

.music-platform-links a > span:not(.platform-logo) {
    display: none;
}

.platform-logo {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    border-radius: 9px;
    background: transparent;
}

.platform-logo i,
.platform-logo b {
    font-size: 18px;
}

.platform-logo b {
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.platform-spotify .platform-logo {
    background: #1db954;
    color: #06120a;
}

.platform-beatport .platform-logo {
    background: #01ff95;
    color: #03130c;
}

.platform-soundcloud .platform-logo {
    background: #ff7700;
    color: #1b0800;
}

.platform-youtube .platform-logo {
    background: #ff0033;
    color: #ffffff;
}

.platform-apple .platform-logo {
    background: #f5f5f7;
    color: #111111;
}

.big-progress {
    height: 20px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.big-progress div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--purple-2), var(--gold));
}

.profile-redemptions {
    display: grid;
    gap: 10px;
}

.profile-redemptions div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-redemptions span {
    color: var(--muted);
}

.notice {
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.notice.success {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.12);
}

.notice.error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.profile-hero-custom {
    position: relative;
    overflow: hidden;
}

.public-profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 10%, rgba(145, 70, 255, 0.22), transparent 30%),
        var(--panel);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.public-profile-hero img {
    width: 118px;
    height: 118px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(192, 132, 252, 0.72);
}

.public-profile-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1;
}

.public-profile-hero p {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.6;
}

.public-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.public-profile-actions form {
    margin: 0;
}

.public-profile-actions button:disabled {
    cursor: default;
    opacity: 0.72;
    filter: grayscale(0.2);
    transform: none;
}

.profile-hero-custom::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--purple-2);
}

.profile-accent-gold .profile-hero-custom::before,
.profile-accent-gold .big-progress div {
    background: linear-gradient(180deg, var(--gold), #f97316);
}

.profile-accent-teal .profile-hero-custom::before,
.profile-accent-teal .big-progress div {
    background: linear-gradient(180deg, var(--teal), #0ea5e9);
}

.profile-accent-red .profile-hero-custom::before,
.profile-accent-red .big-progress div {
    background: linear-gradient(180deg, #fb7185, var(--red));
}

.profile-accent-blue .profile-hero-custom::before,
.profile-accent-blue .big-progress div {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.profile-title-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-height: 26px;
    margin: 4px 0 10px;
    padding: 0 10px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.11);
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.profile-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-settings-panel {
    align-content: start;
    align-self: start;
}

.profile-settings-panel.is-collapsed .profile-settings-form {
    display: none;
}

.profile-settings-panel.is-open .profile-settings-preview {
    display: none;
}

.profile-settings-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-settings-toggle h2,
.profile-settings-toggle p {
    margin: 0;
}

.profile-settings-toggle h2 {
    margin-top: 4px;
}

.profile-settings-toggle p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.profile-settings-toggle i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, background 0.18s ease;
}

.profile-settings-toggle:hover i {
    background: rgba(251, 191, 36, 0.12);
}

.profile-settings-panel.is-open .profile-settings-toggle {
    margin-bottom: 18px;
}

.profile-settings-panel.is-open .profile-settings-toggle i {
    transform: rotate(180deg);
}

.profile-settings-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.profile-settings-preview div {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-settings-preview div:hover {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.055);
}

.profile-settings-preview i {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.11);
}

.profile-settings-preview span {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-settings-preview strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conditional-fields {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(192, 132, 252, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.032);
}

.conditional-fields.is-open {
    display: grid;
}

.conditional-note {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.conditional-note span {
    color: var(--muted);
    line-height: 1.45;
}

.profile-settings-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.profile-settings-form input,
.profile-settings-form select,
.profile-settings-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(192, 132, 252, 0.24);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(9, 6, 20, 0.72);
    color: var(--text);
    padding: 10px 13px;
    font: inherit;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profile-settings-form input:focus,
.profile-settings-form select:focus,
.profile-settings-form textarea:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
        rgba(9, 6, 20, 0.86);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.profile-settings-form select option {
    background: #181126;
    color: #f6f1ff;
    font-weight: 600;
}

.profile-settings-form textarea {
    min-height: 110px;
    resize: vertical;
}

.profile-settings-form .span-2 {
    grid-column: span 2;
}

.select-shell {
    position: relative;
    display: block;
}

.select-shell::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #cdb8ff;
    border-bottom: 2px solid #cdb8ff;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.select-shell select {
    appearance: none;
    padding-right: 42px;
}

.choice-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-field legend {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.choice-grid,
.color-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.choice-grid.compact .choice-chip span {
    min-height: 34px;
}

.choice-chip,
.color-choice {
    cursor: pointer;
}

.choice-chip input,
.color-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span,
.color-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(192, 132, 252, 0.26);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(12, 8, 22, 0.74);
    color: #e9d5ff;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 900;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.choice-chip:hover span,
.color-choice:hover span {
    border-color: rgba(45, 212, 191, 0.55);
    background: rgba(45, 212, 191, 0.10);
    transform: translateY(-1px);
}

.choice-chip input:checked + span {
    border-color: rgba(251, 191, 36, 0.62);
    background:
        linear-gradient(135deg, rgba(145, 70, 255, 0.42), rgba(251, 191, 36, 0.16)),
        rgba(22, 13, 42, 0.96);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.10);
}

.color-choice span {
    position: relative;
    gap: 8px;
}

.color-choice span::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.color-choice.color-gold span::before {
    background: var(--gold);
}

.color-choice.color-teal span::before {
    background: var(--teal);
}

.color-choice.color-red span::before {
    background: var(--red);
}

.color-choice.color-blue span::before {
    background: #60a5fa;
}

.color-choice input:checked + span {
    border-color: rgba(45, 212, 191, 0.62);
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(145, 70, 255, 0.22)),
        rgba(22, 13, 42, 0.96);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.11);
}

.check-row {
    display: flex !important;
    align-items: center;
    grid-template-columns: none !important;
    justify-content: flex-start;
}

.check-row input {
    width: auto;
    min-height: auto;
    accent-color: var(--purple-2);
}

.flirt-profile-switch,
.producer-profile-switch {
    padding: 16px;
    border: 1px solid rgba(192, 132, 252, 0.26);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(145, 70, 255, 0.12), rgba(45, 212, 191, 0.07)),
        rgba(255, 255, 255, 0.035);
}

.flirt-profile-switch.is-on,
.producer-profile-switch.is-on {
    border-color: rgba(45, 212, 191, 0.48);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.10);
}

.flirt-profile-switch span,
.producer-profile-switch span {
    display: grid;
    gap: 4px;
    line-height: 1.4;
}

.flirt-profile-switch strong,
.producer-profile-switch strong {
    color: var(--text);
}

.profile-info-list {
    display: grid;
    gap: 10px;
}

.profile-about-panel {
    margin-bottom: 16px;
}

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

.profile-detail-grid div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-detail-grid span {
    color: var(--muted);
}

.profile-detail-grid strong {
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.profile-info-list div {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-info-list span {
    color: var(--muted);
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(192, 132, 252, 0.34);
    border-radius: 999px;
    background: rgba(145, 70, 255, 0.13);
    color: #e9d5ff;
    font-weight: 850;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 34px 20px 50px;
    flex: 1;
}

.shop-header {
    text-align: center;
    margin-bottom: 22px;
}

.shop-header h1,
.container > h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 10px;
}

.shop-subtitle,
.container > p {
    color: var(--muted);
}

.profil-bar {
    width: fit-content;
    margin: 0 auto 24px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.shop-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.merch-card {
    text-align: center;
}

.card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
}

.card h2,
.merch-card h3 {
    color: #e9d5ff;
}

.card p,
.merch-card p {
    color: var(--muted);
}

.price {
    color: var(--gold);
    font-weight: 900;
    margin: 12px 0;
}

.card input,
.card select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-sizing: border-box;
    margin: 6px 0 15px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--text);
}

.login-shell {
    width: min(760px, 100%);
    min-height: calc(100vh - 170px);
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 34px 20px;
}

.login-panel {
    width: 100%;
    padding: 38px 34px 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% -10%, rgba(145, 70, 255, 0.26), transparent 34%),
        var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.login-brand {
    width: fit-content;
    display: grid;
    justify-items: center;
    margin: 0 auto 16px;
}

.login-brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.login-panel h1 {
    max-width: 560px;
    margin: 10px auto 12px;
    font-size: clamp(32px, 4.6vw, 48px);
    line-height: 1.12;
}

.login-panel p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.55;
}

.login-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.login-benefits div {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.login-benefits i {
    color: var(--gold);
}

.twitch-login {
    background: linear-gradient(135deg, #9146ff, #772ce8);
    margin-top: 2px;
}

.social-footer {
    margin-top: auto;
    padding: 34px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.45));
}

.social-footer h3 {
    margin-bottom: 18px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    margin-bottom: 18px;
}

.social-links a {
    color: var(--text);
    font-size: 25px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.social-links a:hover {
    color: var(--purple-2);
    transform: translateY(-4px);
}

.legal-links {
    color: var(--muted);
    font-size: 14px;
}

.legal-links a {
    color: #e9d5ff;
    text-decoration: none;
}

@media (display-mode: standalone) {
    body {
        overscroll-behavior-y: contain;
        -webkit-tap-highlight-color: transparent;
    }
}

.app-install-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: center;
    overflow: hidden;
    min-height: 460px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(15, 15, 25, 0.96), rgba(27, 15, 49, 0.94)),
        var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.app-install-copy {
    max-width: 710px;
}

.app-install-copy h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.98;
}

.app-install-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.app-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.app-install-hint {
    margin-top: 18px !important;
    font-size: 14px !important;
}

.ios-install-steps {
    display: grid;
    gap: 10px;
    max-width: 640px;
    margin-top: 20px;
}

.ios-install-steps[hidden] {
    display: none;
}

.ios-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.ios-step span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple), var(--purple-2));
    color: #fff;
    font-weight: 950;
}

.ios-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.app-phone-preview {
    width: min(100%, 280px);
    min-height: 420px;
    justify-self: center;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: #080511;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.app-phone-top {
    width: 82px;
    height: 7px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.app-phone-screen {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    min-height: 374px;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 20%, rgba(192, 132, 252, 0.34), transparent 36%),
        linear-gradient(160deg, #2b0a5a, #12002a 55%, #071a22);
    text-align: center;
}

.app-phone-screen img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.app-phone-screen span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.app-phone-screen strong {
    max-width: 190px;
    font-size: 25px;
    line-height: 1.05;
}

.app-preview-tabs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.app-preview-tabs i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.app-install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.app-install-grid article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 15, 25, 0.82);
}

.app-install-grid i {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--teal);
    font-size: 22px;
}

.app-install-grid h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.app-install-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto auto;
        gap: 12px;
    }

    .site-brand {
        display: none;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
        grid-column: 2;
        grid-row: 1;
    }

    .header-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav .mobile-nav-logout {
        display: flex !important;
        margin-top: 8px;
    }

    .header-auth {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .account-box {
        display: contents;
    }

    .account-actions {
        display: contents;
    }

    .header-auth .account-name {
        order: -2;
        max-width: min(62vw, 360px);
        font-size: 13px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border: 1px solid rgba(192, 132, 252, 0.24);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.055);
        color: var(--text);
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-auth .online-pill {
        order: -1;
    }

    .header-auth .account-name::before {
        content: "Angemeldet als: ";
        margin-right: 4px;
        color: var(--muted);
        font-weight: 750;
    }

    .header-auth .btn {
        order: 1;
    }

    .header-auth .desktop-logout {
        display: none;
    }

    .hero-section,
    .content-grid,
    .legal-layout,
    .merch-hero,
    .app-install-hero,
    .flirt-layout,
    .match-layout {
        grid-template-columns: 1fr;
    }

    .app-phone-preview {
        order: -1;
    }

    .flirt-settings {
        position: static;
    }

    .stream-live-banner {
        grid-template-columns: 1fr;
    }

    .stream-status-meta {
        flex-direction: column;
    }

    .stream-status-meta div {
        flex: 1 1 160px;
    }

    .nowplaying-meta {
        min-width: 100%;
        max-width: none;
    }

    .stream-open-button {
        width: 100%;
    }

    .legal-aside {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .span-2 {
        grid-column: span 1;
    }

    .quick-grid,
    .shop-grid,
    .merch-grid,
    .merch-catalog,
    .app-install-grid,
    .flirt-card-grid,
    .profile-stats,
    .ranking-summary,
    .profile-stat-grid,
    .podium-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .podium-card.first {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .site-header,
    .page-shell,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header {
        min-height: 66px;
        padding-top: max(12px, env(safe-area-inset-top));
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    }

    .app-mode .site-header {
        position: sticky;
    }

    .header-nav {
        padding-bottom: 8px;
    }

    .header-nav a {
        min-height: 44px;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
    }

    .header-auth .online-pill {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .header-auth .account-name {
        max-width: min(56vw, 260px);
        min-height: 32px;
        font-size: 12px;
    }

    .app-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        min-height: 64px;
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 22px;
        background:
            linear-gradient(135deg, rgba(11, 7, 22, 0.96), rgba(28, 16, 52, 0.96)),
            rgba(10, 8, 18, 0.94);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(18px);
    }

    .app-bottom-nav a {
        display: grid;
        place-items: center;
        gap: 4px;
        min-width: 0;
        min-height: 50px;
        border-radius: 16px;
        color: rgba(255, 255, 255, 0.66);
        font-size: 11px;
        font-weight: 900;
        text-decoration: none;
    }

    .app-bottom-nav i {
        font-size: 17px;
    }

    .app-bottom-nav a.active {
        background: linear-gradient(135deg, rgba(145, 70, 255, 0.92), rgba(45, 212, 191, 0.64));
        color: #fff;
        box-shadow: 0 10px 26px rgba(145, 70, 255, 0.28);
    }

    .app-bottom-nav a:active {
        transform: scale(0.96);
    }

    .page-shell {
        padding-top: 18px;
    }

    .hero-copy,
    .login-panel,
    .merch-hero-copy {
        padding: 24px;
    }

    .login-shell {
        min-height: 100vh;
        padding: 22px 14px;
    }

    .login-brand {
        margin-bottom: 12px;
    }

    .login-brand img {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .login-panel h1 {
        font-size: 32px;
    }

    .hero-section {
        gap: 14px;
    }

    .hero-copy {
        padding: 20px;
    }

    .hero-copy h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .hero-copy p {
        font-size: 14px;
        line-height: 1.48;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    .player-card {
        gap: 14px;
        padding: 20px;
    }

    .player-card img {
        width: 68px;
        height: 68px;
    }

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

    .quick-card,
    .panel,
    .shop-item,
    .merch-card,
    .flirt-profile-card {
        border-radius: 14px;
    }

    .quick-card {
        min-height: 0;
        padding: 18px;
    }

    .quick-card p {
        line-height: 1.5;
    }

    .live-push-card {
        grid-template-columns: 1fr;
    }

    .live-push-card i,
    .live-push-card h3,
    .live-push-card p,
    .live-push-card button,
    .live-push-card span {
        grid-column: 1;
        grid-row: auto;
    }

    .live-push-card button {
        width: 100%;
    }

    .stream-live-banner {
        padding: 14px;
        gap: 12px;
    }

    .stream-status-main h2 {
        white-space: normal;
    }

    .stream-status-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .stream-status-meta div,
    .stream-status-meta .btn {
        width: 100%;
    }

    .nowplaying-meta {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 0 !important;
    }

    .nowplaying-cover,
    .nowplaying-cover-placeholder {
        width: 48px;
        height: 48px;
    }

    .stream-preview,
    .stream-preview img,
    .stream-preview-placeholder {
        min-height: 116px;
    }

    .nowplaying-links a {
        min-height: 28px;
        padding: 0 9px;
    }

    .web-obs-banner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px;
    }

    .web-obs-status {
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: fit-content;
    }

    .web-obs-cover,
    .web-obs-cover-placeholder {
        width: 62px;
        height: 62px;
    }

    .web-obs-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .web-obs-side {
        justify-content: flex-start;
    }

    .web-overlay-frame {
        height: 238px;
        border-radius: 18px;
    }

    .web-track-links {
        margin-left: 0;
        margin-right: 0;
        gap: 7px;
        padding: 10px;
        border-radius: 16px;
    }

    .web-track-links span {
        width: 100%;
        margin-right: 0;
        font-size: 11px;
    }

    .web-track-links a {
        min-height: 34px;
        padding: 0 13px;
        font-size: 13px;
    }

    .quick-grid,
    .command-grid,
    .shop-grid,
    .merch-grid,
    .merch-catalog,
    .app-install-grid,
    .flirt-card-grid,
    .conditional-fields,
    .profile-settings-preview,
    .profile-stats,
    .ranking-summary,
    .profile-stat-grid,
    .profile-detail-grid,
    .podium-grid,
    .login-benefits,
    .player-stats {
        grid-template-columns: 1fr;
    }

    .podium-card.first {
        grid-column: span 1;
        order: -1;
    }

    .podium-grid {
        gap: 10px;
    }

    .podium-card,
    .podium-card.first {
        min-height: 0;
        padding: 18px;
    }

    .podium-card h2 {
        max-width: 100%;
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .ranking-row {
        grid-template-columns: 42px 42px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-user {
        display: grid;
        justify-items: start;
        gap: 6px;
    }

    .ranking-row .ranking-user strong {
        display: block;
        max-width: 100%;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .ranking-score {
        grid-column: 3;
        justify-self: start;
        display: grid;
        gap: 4px;
        margin-top: 4px;
    }

    .ranking-score span {
        font-size: 13px;
    }

    .ranking-score strong {
        color: var(--gold);
        font-size: 14px;
    }

    .ranking-user .community-role-badge {
        height: 24px;
        min-height: 24px;
        margin: 0;
        padding: 0 10px;
        font-size: 11px;
        line-height: 1;
    }

    .leader-row {
        grid-template-columns: 38px 42px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .leader-row .rank-pill {
        width: 34px;
        height: 34px;
    }

    .leader-xp {
        grid-column: 3;
        justify-self: start;
        margin-top: -5px;
        font-size: 13px;
    }

    .leader-user strong,
    .leader-user a {
        font-size: 15px;
    }

    .shop-item-footer,
    .profile-hero,
    .public-profile-hero,
    .profile-redemptions div {
        align-items: stretch;
        flex-direction: column;
    }

    .public-profile-hero img {
        width: 92px;
        height: 92px;
    }

    .flirt-public-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .flirt-public-hero img {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    .flirt-public-grid {
        grid-template-columns: 1fr;
    }

    .profile-settings-form,
    .profile-settings-form .span-2 {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }

    .choice-field.span-2 {
        grid-column: span 1;
    }

    .choice-chip span,
    .color-choice span {
        min-height: 40px;
    }

    .legal-aside {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 20px;
    }

    .legal-content h2 {
        font-size: 19px;
    }

    .merch-hero-copy {
        min-height: 300px;
    }

    .merch-featured-image,
    .merch-card-media {
        min-height: 210px;
    }

    .merch-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .merch-toolbar div {
        justify-content: flex-start;
    }

    .app-install-hero {
        min-height: 0;
        padding: 22px;
        border-radius: 14px;
    }

    .app-install-copy h1 {
        font-size: 36px;
    }

    .app-install-copy p {
        font-size: 15px;
    }

    .app-install-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-install-actions .btn,
    .app-install-actions button {
        width: 100%;
    }

    .app-phone-preview {
        min-height: 330px;
    }

    .app-phone-screen {
        min-height: 286px;
    }

    .flirt-section-head,
    .message-form {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .request-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .request-card form {
        grid-column: span 2;
    }

    .request-card button {
        width: 100%;
    }

    .match-list {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 100%;
    }
}

/* Magenta theme final override */
.site-header {
    border-bottom-color: rgba(255, 79, 216, 0.34);
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 79, 216, 0.20), transparent 30%),
        linear-gradient(90deg, rgba(8, 5, 16, 0.97), rgba(25, 8, 31, 0.94));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22), 0 0 28px rgba(255, 79, 216, 0.12);
}

.header-nav a:hover,
.app-bottom-nav a:hover,
.app-bottom-nav a.active,
.top-nav a:hover,
.match-list a.active,
.match-list a:hover,
.merch-toolbar button:hover:not(.profile-settings-toggle),
.merch-toolbar button.active,
.btn-ghost:hover,
.link-button:hover:not(.profile-settings-toggle) {
    border-color: rgba(255, 79, 216, 0.62);
    background: rgba(255, 79, 216, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.20), 0 0 18px rgba(255, 79, 216, 0.12);
}

.btn,
button,
.button {
    border-color: rgba(255, 79, 216, 0.62);
}

.btn:not(.btn-ghost),
button:not(.ghost):not(.danger):not(.profile-settings-toggle),
.button:not(.ghost) {
    background: linear-gradient(135deg, #ff2ebd, #b30f83);
    color: #fff;
}

.btn:hover,
button:hover:not(.profile-settings-toggle),
.button:hover:not(.profile-settings-toggle) {
    border-color: rgba(255, 122, 221, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 79, 216, 0.14), 0 0 24px rgba(255, 79, 216, 0.18);
}

a:hover,
.profile-name-link:hover,
.legal-info-card a:hover,
.legal-content a:hover,
.flirt-card h3 a:hover,
.request-card strong a:hover,
.producer-title-link:hover,
.social-links a:hover {
    color: #ff7add;
}

.panel,
.stat-card,
.reward-card,
.shop-card,
.merch-card,
.flirt-card,
.request-card,
.message-panel,
.legal-info-card,
.legal-content,
.producer-card {
    border-color: rgba(255, 79, 216, 0.22);
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 79, 216, 0.10), transparent 34%),
        var(--panel);
}

/* Final theme popup and color binding v125 */
body.theme-neon {
    --theme-accent-rgb: 255, 20, 159;
    --theme-accent-soft: rgba(255, 20, 159, .16);
    --theme-accent-mid: rgba(255, 20, 159, .42);
}

body.theme-purple {
    --theme-accent-rgb: 155, 92, 255;
    --theme-accent-soft: rgba(155, 92, 255, .16);
    --theme-accent-mid: rgba(155, 92, 255, .42);
}

body.theme-gold {
    --theme-accent-rgb: 255, 182, 41;
    --theme-accent-soft: rgba(255, 182, 41, .16);
    --theme-accent-mid: rgba(255, 182, 41, .42);
}

body.theme-cyan {
    --theme-accent-rgb: 25, 212, 255;
    --theme-accent-soft: rgba(25, 212, 255, .16);
    --theme-accent-mid: rgba(25, 212, 255, .42);
}

body.theme-clean {
    --theme-accent-rgb: 229, 231, 235;
    --theme-accent-soft: rgba(229, 231, 235, .12);
    --theme-accent-mid: rgba(229, 231, 235, .28);
}

.site-header {
    grid-template-columns: minmax(230px, .8fr) minmax(420px, 1.2fr) auto auto !important;
    border-bottom-color: rgba(var(--theme-accent-rgb), .38) !important;
    background:
        radial-gradient(circle at 88% 0%, rgba(var(--theme-accent-rgb), .20), transparent 34%),
        linear-gradient(90deg, rgba(6, 5, 13, .98), rgba(15, 9, 21, .96)) !important;
}

.site-brand span {
    text-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .34) !important;
}

.header-nav {
    justify-self: center !important;
    border-color: rgba(var(--theme-accent-rgb), .20) !important;
    background: rgba(255, 255, 255, .035) !important;
}

.header-nav a.active,
.header-nav a:hover {
    border-color: rgba(var(--theme-accent-rgb), .58) !important;
    background: rgba(var(--theme-accent-rgb), .16) !important;
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .14) !important;
}

.menu-toggle,
.online-pill,
.account-box,
.app-bottom-nav,
.app-bottom-nav a.active,
.btn,
.btn-ghost:hover {
    border-color: rgba(var(--theme-accent-rgb), .36) !important;
}

.menu-toggle,
.online-pill,
.app-bottom-nav a.active {
    background: rgba(var(--theme-accent-rgb), .12) !important;
    box-shadow: 0 0 16px rgba(var(--theme-accent-rgb), .12) !important;
}

.theme-popover {
    position: relative !important;
    justify-self: end !important;
    z-index: 90 !important;
}

.theme-popover summary {
    width: auto !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 0 15px !important;
    border: 1px solid rgba(var(--theme-accent-rgb), .40) !important;
    border-radius: 999px !important;
    background: rgba(var(--theme-accent-rgb), .12) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    list-style: none !important;
    cursor: pointer !important;
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .13) !important;
}

.theme-popover summary::-webkit-details-marker {
    display: none !important;
}

.theme-popover-panel {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 260px !important;
    padding: 14px !important;
    border: 1px solid rgba(var(--theme-accent-rgb), .34) !important;
    border-radius: 16px !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(var(--theme-accent-rgb), .20), transparent 36%),
        rgba(8, 6, 14, .98) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.45), 0 0 26px rgba(var(--theme-accent-rgb), .12) !important;
}

.theme-popover-panel strong {
    display: block !important;
    margin-bottom: 12px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

.theme-popover-options {
    display: grid !important;
    gap: 8px !important;
}

.theme-popover-option {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.045) !important;
    color: #f8f4fb !important;
    cursor: pointer !important;
}

.theme-popover-option input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.theme-popover-option span {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,.35) !important;
    box-shadow: inset 0 0 0 4px rgba(0,0,0,.22) !important;
}

.theme-popover-neon span { background: #ff149f !important; }
.theme-popover-purple span { background: #9b5cff !important; }
.theme-popover-gold span { background: #ffb629 !important; }
.theme-popover-cyan span { background: #19d4ff !important; }
.theme-popover-clean span { background: #e5e7eb !important; }

.theme-popover-option.is-active {
    border-color: rgba(var(--theme-accent-rgb), .62) !important;
    background: rgba(var(--theme-accent-rgb), .16) !important;
}

.theme-popover-option b {
    font-size: 14px !important;
    font-weight: 900 !important;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
    }

    .theme-popover {
        grid-column: auto !important;
        justify-self: end !important;
    }

    .theme-popover summary {
        width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .theme-popover summary span {
        display: none !important;
    }

    .theme-popover-panel {
        right: -54px !important;
        width: min(280px, calc(100vw - 24px)) !important;
    }

    .header-nav.open {
        border-color: rgba(var(--theme-accent-rgb), .28) !important;
    }

    .header-nav a {
        border-color: rgba(var(--theme-accent-rgb), .18) !important;
    }
}

/* Flirt lounge profile studio v126 */
.flirt-profile-studio {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 18px !important;
    align-items: center !important;
    margin-bottom: 18px !important;
    padding: 20px !important;
    border-color: var(--theme-line, var(--line)) !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(var(--theme-accent-rgb), .18), transparent 34%),
        var(--theme-panel, var(--panel)) !important;
}

.flirt-studio-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
}

.flirt-studio-card > img {
    width: 96px !important;
    height: 96px !important;
    flex: 0 0 96px !important;
    border: 3px solid rgba(var(--theme-accent-rgb), .58) !important;
    border-radius: 24px !important;
    object-fit: cover !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 26px rgba(var(--theme-accent-rgb), .14) !important;
}

.flirt-studio-card h2 {
    margin: 4px 0 3px !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    overflow-wrap: anywhere !important;
}

.flirt-studio-card p {
    margin: 0 0 12px !important;
    color: var(--muted) !important;
}

.flirt-studio-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(92px, 1fr)) !important;
    gap: 10px !important;
}

.flirt-studio-stats article {
    min-height: 74px !important;
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    padding: 12px !important;
    border: 1px solid rgba(var(--theme-accent-rgb), .24) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.045) !important;
}

.flirt-studio-stats span {
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.flirt-studio-stats strong {
    color: #fff !important;
    font-size: 20px !important;
}

.flirt-layout {
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr) !important;
    gap: 20px !important;
}

.flirt-settings {
    border-color: rgba(var(--theme-accent-rgb), .28) !important;
    background:
        radial-gradient(circle at 88% 0%, rgba(var(--theme-accent-rgb), .16), transparent 34%),
        var(--theme-panel, var(--panel)) !important;
}

.flirt-profile-preview {
    background: rgba(var(--theme-accent-rgb), .08) !important;
}

.flirt-profile-preview img,
.flirt-card-top img,
.request-card img,
.match-list img,
.flirt-public-hero img {
    border-color: rgba(var(--theme-accent-rgb), .62) !important;
}

.flirt-settings .profile-settings-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.flirt-settings .profile-settings-form label,
.flirt-vibe-field {
    min-width: 0 !important;
}

.flirt-vibe-field {
    margin: 0 !important;
    padding: 13px !important;
    border: 1px solid rgba(var(--theme-accent-rgb), .24) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.035) !important;
}

.flirt-vibe-field legend {
    padding: 0 6px !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.flirt-vibe-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.flirt-vibe-options label {
    width: auto !important;
    display: inline-flex !important;
    margin: 0 !important;
}

.flirt-vibe-options input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.flirt-vibe-options span,
.flirt-mini-tags span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(var(--theme-accent-rgb), .24) !important;
    border-radius: 999px !important;
    background: rgba(var(--theme-accent-rgb), .08) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.flirt-vibe-options input:checked + span {
    border-color: rgba(var(--theme-accent-rgb), .62) !important;
    background: rgba(var(--theme-accent-rgb), .20) !important;
    box-shadow: 0 0 16px rgba(var(--theme-accent-rgb), .12) !important;
}

.flirt-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)) !important;
}

.flirt-card {
    min-height: 280px !important;
    border-color: rgba(var(--theme-accent-rgb), .24) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), .12), transparent 32%),
        var(--theme-panel, var(--panel)) !important;
}

.flirt-tags span {
    background: rgba(var(--theme-accent-rgb), .12) !important;
    color: #fff !important;
}

.flirt-mini-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.flirt-track {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--theme-accent, var(--teal)) !important;
    font-weight: 900 !important;
}

.flirt-empty-discover {
    min-height: 260px !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    padding: 28px !important;
    border: 1px dashed rgba(var(--theme-accent-rgb), .34) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.035) !important;
    text-align: center !important;
}

.flirt-empty-discover i {
    color: var(--theme-accent, var(--teal)) !important;
    font-size: 34px !important;
}

.flirt-empty-discover h3,
.flirt-empty-discover p {
    margin: 0 !important;
}

@media (max-width: 980px) {
    .flirt-profile-studio,
    .flirt-layout {
        grid-template-columns: 1fr !important;
    }

    .flirt-studio-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .flirt-settings {
        position: static !important;
    }
}


@media (max-width: 620px) {
    .flirt-profile-studio {
        padding: 16px !important;
    }

    .flirt-studio-card {
        align-items: flex-start !important;
    }

    .flirt-studio-card > img {
        width: 72px !important;
        height: 72px !important;
        flex-basis: 72px !important;
        border-radius: 18px !important;
    }

    .flirt-studio-stats,
    .flirt-settings .profile-settings-form {
        grid-template-columns: 1fr !important;
    }

    .flirt-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Flirt preview and themed stats v127 */
.flirt-studio-stats article {
    border-color: rgba(var(--theme-accent-rgb), .38) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), .18), transparent 40%),
        rgba(var(--theme-accent-rgb), .075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 20px rgba(var(--theme-accent-rgb), .08) !important;
}

.flirt-studio-stats article span {
    color: var(--theme-accent, var(--teal)) !important;
}

.flirt-studio-stats article strong {
    color: #fff !important;
    text-shadow: 0 0 16px rgba(var(--theme-accent-rgb), .28) !important;
}

.flirt-live-preview {
    margin-bottom: 18px !important;
    padding: 18px !important;
    border-color: rgba(var(--theme-accent-rgb), .30) !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(var(--theme-accent-rgb), .14), transparent 34%),
        var(--theme-panel, var(--panel)) !important;
}

.flirt-preview-card {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    padding: 16px !important;
    border: 1px solid rgba(var(--theme-accent-rgb), .24) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.04) !important;
}

.flirt-preview-card img {
    width: 92px !important;
    height: 92px !important;
    border: 3px solid rgba(var(--theme-accent-rgb), .58) !important;
    border-radius: 22px !important;
    object-fit: cover !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.26), 0 0 22px rgba(var(--theme-accent-rgb), .12) !important;
}

.flirt-preview-card h3 {
    margin: 0 0 4px !important;
    color: #fff !important;
    font-size: 24px !important;
    overflow-wrap: anywhere !important;
}

.flirt-preview-card p {
    margin: 8px 0 0 !important;
    color: var(--muted) !important;
    line-height: 1.45 !important;
}

.flirt-preview-card .flirt-tags {
    margin-top: 12px !important;
}

@media (max-width: 620px) {
    .flirt-preview-card {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    .flirt-preview-card img {
        width: 72px !important;
        height: 72px !important;
        border-radius: 18px !important;
    }

    .flirt-preview-card h3 {
        font-size: 20px !important;
    }
}

/* Flirt duplicate avatar reduction v128 */
.flirt-settings .flirt-profile-preview {
    padding: 18px 20px !important;
}

.flirt-settings .flirt-profile-preview img {
    display: none !important;
}

.flirt-preview-card {
    grid-template-columns: 1fr !important;
}

.flirt-preview-card > img {
    display: none !important;
}

.flirt-preview-card h3 {
    font-size: 26px !important;
}

/* Flirt form save button theme binding v128 */
.flirt-settings .profile-settings-form button,
.flirt-settings .profile-settings-form button.span-2 {
    border-color: rgba(var(--theme-accent-rgb), .52) !important;
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .68), var(--theme-accent, var(--teal))) !important;
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .12) !important;
}

.flirt-settings .profile-settings-form button:hover,
.flirt-settings .profile-settings-form button.span-2:hover {
    border-color: rgba(var(--theme-accent-rgb), .90) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), .16), 0 0 24px rgba(var(--theme-accent-rgb), .18) !important;
}

/* Global final theme color override v129 */
body.theme-neon { --gold: var(--theme-accent); --purple: var(--theme-accent); --purple-2: var(--theme-accent-2); --teal: var(--theme-accent); }
body.theme-purple { --gold: var(--theme-accent); --purple: var(--theme-accent); --purple-2: var(--theme-accent-2); --teal: var(--theme-accent); }
body.theme-gold { --gold: var(--theme-accent); --purple: var(--theme-accent); --purple-2: var(--theme-accent-2); --teal: var(--theme-accent); }
body.theme-cyan { --gold: var(--theme-accent); --purple: var(--theme-accent); --purple-2: var(--theme-accent-2); --teal: var(--theme-accent); }
body.theme-clean { --gold: var(--theme-accent); --purple: var(--theme-accent); --purple-2: var(--theme-accent-2); --teal: var(--theme-accent); }

body[class*="theme-"] .panel,
body[class*="theme-"] .page-hero,
body[class*="theme-"] .compact-hero,
body[class*="theme-"] .flirt-section-head,
body[class*="theme-"] .flirt-live-preview,
body[class*="theme-"] .flirt-preview-card,
body[class*="theme-"] .flirt-card,
body[class*="theme-"] .request-card,
body[class*="theme-"] .profile-card,
body[class*="theme-"] .profile-settings-panel,
body[class*="theme-"] .profile-about-panel,
body[class*="theme-"] .profile-action-grid .panel,
body[class*="theme-"] .shop-card,
body[class*="theme-"] .ranking-card,
body[class*="theme-"] .merch-card {
    border-color: rgba(var(--theme-accent-rgb), .28) !important;
}

body[class*="theme-"] .eyebrow,
body[class*="theme-"] .panel-head p,
body[class*="theme-"] .auth-kicker,
body[class*="theme-"] .flirt-section-head > span,
body[class*="theme-"] .merch-toolbar > span,
body[class*="theme-"] .profile-stat-grid span,
body[class*="theme-"] .profile-settings-preview i,
body[class*="theme-"] .music-platform-links a > span:not(.platform-logo) {
    color: var(--theme-accent) !important;
}

body[class*="theme-"] .btn,
body[class*="theme-"] button:not(.ghost):not(.danger):not(.profile-settings-toggle),
body[class*="theme-"] .button,
body[class*="theme-"] .link-button:hover:not(.profile-settings-toggle) {
    border-color: rgba(var(--theme-accent-rgb), .52) !important;
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .68), var(--theme-accent)) !important;
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .12) !important;
}

body[class*="theme-"] .btn-ghost,
body[class*="theme-"] .ghost,
body[class*="theme-"] button.btn-ghost {
    border-color: rgba(var(--theme-accent-rgb), .34) !important;
    background: rgba(var(--theme-accent-rgb), .08) !important;
    color: #fff !important;
}

body[class*="theme-"] .flirt-tags span,
body[class*="theme-"] .community-role-badge,
body[class*="theme-"] .profile-title-pill,
body[class*="theme-"] .status-pill,
body[class*="theme-"] .state-badge {
    border-color: rgba(var(--theme-accent-rgb), .30) !important;
    background: rgba(var(--theme-accent-rgb), .14) !important;
    color: #fff !important;
}

body[class*="theme-"] .big-progress div,
body[class*="theme-"] .progress-fill,
body[class*="theme-"] .profile-hero-custom::before {
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2)) !important;
}

/* Final themed hover/link override v130 */
body[class*="theme-"] a,
body[class*="theme-"] .flirt-card h3 a,
body[class*="theme-"] .request-card strong a,
body[class*="theme-"] .profile-name-link,
body[class*="theme-"] .profile-link,
body[class*="theme-"] .music-platform-links a {
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body[class*="theme-"] a:hover,
body[class*="theme-"] .flirt-card h3 a:hover,
body[class*="theme-"] .request-card strong a:hover,
body[class*="theme-"] .profile-name-link:hover,
body[class*="theme-"] .profile-link:hover,
body[class*="theme-"] .music-platform-links a:hover {
    color: var(--theme-accent-2) !important;
}

body[class*="theme-"] .header-nav a:hover,
body[class*="theme-"] .header-nav a.active,
body[class*="theme-"] .app-bottom-nav a:hover,
body[class*="theme-"] .app-bottom-nav a.active,
body[class*="theme-"] .match-list a:hover,
body[class*="theme-"] .match-list a.active,
body[class*="theme-"] .flirt-card:hover,
body[class*="theme-"] .request-card:hover,
body[class*="theme-"] .profile-card:hover,
body[class*="theme-"] .shop-card:hover,
body[class*="theme-"] .merch-card:hover,
body[class*="theme-"] .ranking-card:hover,
body[class*="theme-"] .theme-popover summary:hover,
body[class*="theme-"] .theme-popover-option:hover {
    border-color: rgba(var(--theme-accent-rgb), .58) !important;
    background: rgba(var(--theme-accent-rgb), .14) !important;
    box-shadow: 0 0 22px rgba(var(--theme-accent-rgb), .14) !important;
}

body[class*="theme-"] .btn:hover,
body[class*="theme-"] .btn-ghost:hover,
body[class*="theme-"] .ghost:hover,
body[class*="theme-"] button:hover:not(.danger):not(.profile-settings-toggle),
body[class*="theme-"] .button:hover,
body[class*="theme-"] .link-button:hover:not(.profile-settings-toggle),
body[class*="theme-"] .merch-toolbar button:hover:not(.profile-settings-toggle) {
    border-color: rgba(var(--theme-accent-rgb), .84) !important;
    background: rgba(var(--theme-accent-rgb), .18) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), .14), 0 0 24px rgba(var(--theme-accent-rgb), .18) !important;
}

body[class*="theme-"] .btn:not(.btn-ghost):hover,
body[class*="theme-"] button:not(.ghost):not(.danger):not(.profile-settings-toggle):hover,
body[class*="theme-"] .button:hover {
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .76), var(--theme-accent)) !important;
}

/* Flirt visibility theme binding v131 */
body[class*="theme-"] .flirt-visibility,
body[class*="theme-"] .flirt-visibility.is-visible {
    border-color: rgba(var(--theme-accent-rgb), .46) !important;
    background: rgba(var(--theme-accent-rgb), .12) !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .10) !important;
}

body[class*="theme-"] .flirt-visibility i,
body[class*="theme-"] .flirt-visibility.is-visible i {
    color: var(--theme-accent) !important;
}

/* Final themed form/status override v132 */
body[class*="theme-"] input[type="checkbox"],
body[class*="theme-"] input[type="radio"] {
    accent-color: var(--theme-accent) !important;
}

body[class*="theme-"] .toggle-line,
body[class*="theme-"] .toggle-line.is-on,
body[class*="theme-"] .flirt-profile-switch,
body[class*="theme-"] .flirt-profile-switch.is-on,
body[class*="theme-"] .producer-profile-switch,
body[class*="theme-"] .producer-profile-switch.is-on,
body[class*="theme-"] .flirt-visibility,
body[class*="theme-"] .flirt-visibility.is-visible,
body[class*="theme-"] .notice.success,
body[class*="theme-"] .status-pill.start,
body[class*="theme-"] .state-badge.on {
    border-color: rgba(var(--theme-accent-rgb), .46) !important;
    background: rgba(var(--theme-accent-rgb), .12) !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .10) !important;
}

body[class*="theme-"] .toggle-line input[type="checkbox"] {
    accent-color: var(--theme-accent) !important;
}

body[class*="theme-"] .toggle-line i,
body[class*="theme-"] .toggle-line span,
body[class*="theme-"] .flirt-visibility i,
body[class*="theme-"] .status-dot.start,
body[class*="theme-"] .online-dot {
    color: var(--theme-accent) !important;
}

body[class*="theme-"] .status-dot.start,
body[class*="theme-"] .online-dot,
body[class*="theme-"] .big-progress div,
body[class*="theme-"] .progress-fill {
    background: var(--theme-accent) !important;
    box-shadow: 0 0 14px rgba(var(--theme-accent-rgb), .36) !important;
}

body[class*="theme-"] .profile-visibility-box,
body[class*="theme-"] .profile-settings-preview,
body[class*="theme-"] .profile-settings-preview:hover,
body[class*="theme-"] .visibility-card,
body[class*="theme-"] .visibility-panel {
    border-color: rgba(var(--theme-accent-rgb), .38) !important;
    background: rgba(var(--theme-accent-rgb), .10) !important;
}

/* Final mobile header theme binding v133 */
@media (max-width: 980px) {
    body[class*="theme-"] .site-header {
        border-bottom-color: rgba(var(--theme-accent-rgb), .42) !important;
        background:
            radial-gradient(circle at 12% 0%, rgba(var(--theme-accent-rgb), .18), transparent 30%),
            radial-gradient(circle at 92% 0%, rgba(var(--theme-accent-rgb), .22), transparent 34%),
            linear-gradient(180deg, rgba(5, 5, 12, .98), rgba(var(--theme-accent-rgb), .08)) !important;
        box-shadow: 0 14px 34px rgba(0,0,0,.34), 0 0 24px rgba(var(--theme-accent-rgb), .10) !important;
    }

    body[class*="theme-"] .site-brand span,
    body[class*="theme-"] .site-brand small,
    body[class*="theme-"] .menu-toggle i {
        color: #fff !important;
    }

    body[class*="theme-"] .menu-toggle,
    body[class*="theme-"] .theme-popover summary,
    body[class*="theme-"] .header-auth .online-pill,
    body[class*="theme-"] .header-auth .btn,
    body[class*="theme-"] .header-nav.open,
    body[class*="theme-"] .app-bottom-nav {
        border-color: rgba(var(--theme-accent-rgb), .38) !important;
        background:
            radial-gradient(circle at 90% 0%, rgba(var(--theme-accent-rgb), .16), transparent 36%),
            rgba(8, 7, 15, .94) !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.30), 0 0 18px rgba(var(--theme-accent-rgb), .10) !important;
    }

    body[class*="theme-"] .header-nav a,
    body[class*="theme-"] .app-bottom-nav a {
        border-color: rgba(var(--theme-accent-rgb), .18) !important;
        background: rgba(var(--theme-accent-rgb), .06) !important;
        color: rgba(255,255,255,.78) !important;
    }

    body[class*="theme-"] .header-nav a.active,
    body[class*="theme-"] .header-nav a:hover,
    body[class*="theme-"] .app-bottom-nav a.active,
    body[class*="theme-"] .app-bottom-nav a:hover {
        border-color: rgba(var(--theme-accent-rgb), .62) !important;
        background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .54), rgba(var(--theme-accent-rgb), .18)) !important;
        color: #fff !important;
        box-shadow: 0 0 20px rgba(var(--theme-accent-rgb), .16) !important;
    }

    body[class*="theme-"] .theme-popover-panel {
        border-color: rgba(var(--theme-accent-rgb), .42) !important;
        background:
            radial-gradient(circle at 92% 0%, rgba(var(--theme-accent-rgb), .20), transparent 36%),
            rgba(8, 7, 15, .98) !important;
    }
}

@media (max-width: 620px) {
    body[class*="theme-"] .mobile-fixed-community-header,
    body[class*="theme-"] .mobile-nowplaying {
        border-color: rgba(var(--theme-accent-rgb), .38) !important;
        background-color: rgba(var(--theme-accent-rgb), .08) !important;
        box-shadow: 0 14px 32px rgba(0,0,0,.34), 0 0 22px rgba(var(--theme-accent-rgb), .10) !important;
    }

    body[class*="theme-"] .mobile-nowplaying span,
    body[class*="theme-"] .mobile-nowplaying small,
    body[class*="theme-"] .app-bottom-nav i {
        color: var(--theme-accent) !important;
    }

    body[class*="theme-"] .app-bottom-nav a.active i,
    body[class*="theme-"] .app-bottom-nav a:hover i {
        color: #fff !important;
    }
}

/* Final Twitch login theme polish v134 */
body.login-page {
    min-height: 100vh !important;
    background:
        radial-gradient(circle at 16% 10%, rgba(var(--theme-accent-rgb), .20), transparent 34%),
        radial-gradient(circle at 84% 0%, rgba(var(--theme-accent-rgb), .14), transparent 30%),
        linear-gradient(180deg, rgba(7, 5, 14, .98), var(--theme-bg, #05050b)) !important;
}

body.login-page .login-shell {
    min-height: 100vh !important;
    padding: 28px 16px !important;
}

body.login-page .login-panel {
    max-width: 760px !important;
    border-color: rgba(var(--theme-accent-rgb), .42) !important;
    background:
        radial-gradient(circle at 50% -8%, rgba(var(--theme-accent-rgb), .24), transparent 38%),
        linear-gradient(180deg, rgba(var(--theme-accent-rgb), .08), rgba(8, 7, 15, .92)),
        var(--theme-panel, var(--panel)) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.42), 0 0 36px rgba(var(--theme-accent-rgb), .12) !important;
}

body.login-page .login-brand img {
    border-color: rgba(var(--theme-accent-rgb), .42) !important;
    background: rgba(var(--theme-accent-rgb), .10) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 24px rgba(var(--theme-accent-rgb), .14) !important;
}

body.login-page .login-panel .eyebrow,
body.login-page .login-benefits i {
    color: var(--theme-accent) !important;
}

body.login-page .login-benefits div {
    border-color: rgba(var(--theme-accent-rgb), .26) !important;
    background: rgba(var(--theme-accent-rgb), .08) !important;
}

body.login-page .twitch-login {
    border-color: rgba(var(--theme-accent-rgb), .60) !important;
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .78), var(--theme-accent)) !important;
    box-shadow: 0 18px 42px rgba(var(--theme-accent-rgb), .20) !important;
}

/* Global footer v136 */
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 0 0 28px;
    color: var(--muted);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(var(--theme-accent-rgb), .26);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), .12), transparent 34%),
        var(--theme-panel, var(--panel));
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-footer-brand div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.site-footer-brand strong {
    color: #fff;
    font-size: 16px;
}

.site-footer-brand span,
.site-footer-bottom {
    color: var(--theme-muted, var(--muted));
    font-size: 13px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(var(--theme-accent-rgb), .18);
    border-radius: 8px;
    background: rgba(var(--theme-accent-rgb), .06);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.site-footer-links a:hover {
    border-color: rgba(var(--theme-accent-rgb), .58);
    background: rgba(var(--theme-accent-rgb), .14);
    box-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .12);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 4px 0;
}

@media (max-width: 760px) {
    .site-footer {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .site-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    body.login-page .login-panel {
        padding: 26px 18px !important;
        border-radius: 18px !important;
    }

    body.login-page .login-benefits {
        grid-template-columns: 1fr !important;
    }
}

/* Fixed role badge colors + cookies v137 */
body[class*="theme-"] .community-role-badge.role-vip,
.community-role-badge.role-vip {
    border-color: rgba(255, 20, 159, .64) !important;
    background: rgba(255, 20, 159, .16) !important;
    color: #fff !important;
}

body[class*="theme-"] .community-role-badge.role-vip i,
.community-role-badge.role-vip i {
    color: #ff149f !important;
}

body[class*="theme-"] .community-role-badge.role-mod,
.community-role-badge.role-mod {
    border-color: rgba(34, 197, 94, .64) !important;
    background: rgba(34, 197, 94, .16) !important;
    color: #fff !important;
}

body[class*="theme-"] .community-role-badge.role-mod i,
.community-role-badge.role-mod i {
    color: #22c55e !important;
}

body[class*="theme-"] .community-role-badge.role-admin,
.community-role-badge.role-admin {
    border-color: rgba(255, 182, 41, .72) !important;
    background: rgba(255, 182, 41, .18) !important;
    color: #fff !important;
}

body[class*="theme-"] .community-role-badge.role-admin i,
.community-role-badge.role-admin i {
    color: #ffb629 !important;
}

body[class*="theme-"] .community-role-badge.role-streamer,
.community-role-badge.role-streamer {
    border-color: rgba(239, 68, 68, .72) !important;
    background: rgba(239, 68, 68, .18) !important;
    color: #fff !important;
}

body[class*="theme-"] .community-role-badge.role-streamer i,
.community-role-badge.role-streamer i {
    color: #ef4444 !important;
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 2, 6, .72);
    backdrop-filter: blur(10px);
}

.cookie-consent-backdrop[hidden] {
    display: none !important;
}

.cookie-consent {
    display: grid;
    gap: 16px;
    width: min(980px, calc(100% - 32px));
    max-width: 620px;
    padding: 20px;
    border: 1px solid rgba(var(--theme-accent-rgb), .36);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), .14), transparent 34%),
        rgba(8, 7, 15, .98);
    box-shadow: 0 22px 70px rgba(0,0,0,.52), 0 0 26px rgba(var(--theme-accent-rgb), .12);
}

.cookie-settings-button {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 110;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--theme-accent-rgb), .42);
    border-radius: 999px;
    background: rgba(8, 7, 15, .92);
    color: var(--theme-accent);
    box-shadow: 0 12px 32px rgba(0,0,0,.34), 0 0 18px rgba(var(--theme-accent-rgb), .12);
    cursor: pointer;
}

.cookie-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--theme-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 20px;
}

.cookie-consent p {
    margin: 0;
    color: var(--theme-muted, var(--muted));
    line-height: 1.45;
}

.cookie-consent small {
    color: var(--theme-muted, var(--muted));
    line-height: 1.45;
}

.cookie-categories {
    display: grid;
    gap: 8px;
}

.cookie-categories[hidden] {
    display: none !important;
}

.cookie-categories label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(var(--theme-accent-rgb), .20);
    border-radius: 8px;
    background: rgba(var(--theme-accent-rgb), .06);
}

.cookie-categories input {
    margin-top: 3px;
    accent-color: var(--theme-accent);
}

.cookie-categories span {
    display: grid;
    gap: 3px;
}

.cookie-categories b {
    color: #fff;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .cookie-settings-button {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .cookie-consent-actions,
    .cookie-consent-actions .btn {
        width: 100%;
    }
}

/* Slim legal footer v139 */
.site-footer {
    width: min(1180px, calc(100% - 32px)) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 22px auto 0 !important;
    padding: 0 0 32px !important;
    color: var(--theme-muted, var(--muted)) !important;
    font-size: 14px !important;
}

.site-footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 14px !important;
}

.site-footer-links a {
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--theme-muted, var(--muted)) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.site-footer-links a:hover {
    color: var(--theme-accent) !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .site-footer {
        width: calc(100% - 24px) !important;
        padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    }
}

/* Community header size polish v142 */
@media (min-width: 621px) {
    .site-brand img {
        width: 42px !important;
        height: 42px !important;
    }

    .site-brand span {
        font-size: 16px !important;
        line-height: 1.05 !important;
    }

    .site-brand small {
        font-size: 12px !important;
    }

    .header-nav {
        gap: 6px !important;
        padding: 6px !important;
        border-radius: 999px !important;
    }

    .header-nav a {
        min-height: 42px !important;
        padding: 0 18px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 950 !important;
    }
}
