/* ============================================
   Seoul Private Room — Premium Layout
   ============================================ */

:root {
    --bg: #060608;
    --bg-elevated: #0c0c10;
    --panel: #111116;
    --panel-2: #16161d;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f2ef;
    --text-soft: #b8b4ad;
    --text-muted: #7a7670;
    --gold: #c9a962;
    --gold-light: #e8d5a3;
    --gold-dim: rgba(201, 169, 98, 0.15);
    --rose: #c47b8a;
    --rose-dim: rgba(196, 123, 138, 0.14);
    --sapphire: #6b7fd7;
    --sapphire-dim: rgba(107, 127, 215, 0.14);
    --live: #e85d5d;
    --ok: #5cb87a;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --font-display: "Playfair Display", "Noto Sans KR", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

#appRoot {
    overflow-x: hidden;
    max-width: 100%;
}

.runtime-notice {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 10px 16px;
    background: linear-gradient(90deg, #3d2f0f, #2a2208);
    border-bottom: 1px solid rgba(201, 169, 98, 0.35);
    color: #f5e6c8;
    font-size: 13px;
    text-align: center;
}

.runtime-notice code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffe9b0;
}

.runtime-notice a {
    color: #ffd76a;
    text-decoration: underline;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: 72px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.18), rgba(201, 169, 98, 0.04));
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.brand-mark-sm {
    width: 36px;
    height: 36px;
    font-size: 11px;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--gold-light); }

.header-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    flex: 0 1 auto;
}

.header-auth-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.header-metrics {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    flex-shrink: 0;
}

.metric {
    flex: 1 1 0;
    padding: 10px 14px;
    text-align: center;
    border-right: 1px solid var(--line);
    min-width: 64px;
}

.metric:last-child { border-right: 0; }

.metric-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.metric-accent .metric-value { color: var(--gold-light); }

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(107, 127, 215, 0.12), transparent),
        var(--bg-elevated);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 32px 72px;
    text-align: center;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-badge {
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
}

.hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(201, 169, 98, 0.08), transparent 70%);
    pointer-events: none;
}

/* ===== MAIN LAYOUT ===== */
.layout-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.section-head { margin-bottom: 32px; }

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-soft);
}

/* ===== ZONE TABS ===== */
.zone-tabs-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 1px;
    margin-bottom: 28px;
}

.zone-site-metrics {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
}

.zone-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--line);
}

.zone-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 12px 8px;
    border: 0;
    background: var(--panel);
    color: var(--text-soft);
    cursor: pointer;
    text-align: center;
    transition: background 0.25s, color 0.25s;
}

.zone-tab:hover {
    background: var(--panel-2);
    color: var(--text);
}

.zone-tab-tier {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.zone-tab-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-tab[data-zone="trial"] .zone-tab-name {
    font-size: 12px;
    letter-spacing: -0.02em;
}

.zone-tab-count {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.zone-tab.active { background: var(--panel-2); }

.zone-tab[data-zone="vip"].active {
    box-shadow: inset 0 -2px 0 var(--sapphire);
}
.zone-tab[data-zone="vip"].active .zone-tab-tier { color: var(--sapphire); }
.zone-tab[data-zone="vip"].active .zone-tab-name { color: var(--text); }

.zone-tab[data-zone="vvip"].active {
    box-shadow: inset 0 -2px 0 var(--rose);
}
.zone-tab[data-zone="vvip"].active .zone-tab-tier { color: var(--rose); }
.zone-tab[data-zone="vvip"].active .zone-tab-name { color: var(--text); }

.zone-tab[data-zone="svip"].active {
    box-shadow: inset 0 -2px 0 var(--gold);
}
.zone-tab[data-zone="svip"].active .zone-tab-tier { color: var(--gold); }
.zone-tab[data-zone="svip"].active .zone-tab-name { color: var(--gold-light); }

.zone-tab[data-zone="favorites"].active {
    background: var(--panel-2);
}
.zone-tab[data-zone="favorites"].active .zone-tab-tier { color: #f5c518; }
.zone-tab[data-zone="favorites"].active .zone-tab-name { color: var(--text); }

.zone-tab[hidden],
.zone-section[hidden] {
    display: none !important;
}

/* ===== ZONE SECTION / GALLERY ===== */
.zone-section {
    display: none;
    background: #000;
    padding: 0 0 16px;
}

.zone-section.active { display: block; }

.gallery-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.gallery-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-section-flag { font-size: 22px; line-height: 1; }

.gallery-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.gallery-view-all {
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}

.gallery-view-all:hover { color: #ccc; }

.gallery-live-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-live-filter {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.gallery-live-filter:hover {
    border-color: rgba(201, 169, 98, 0.45);
    color: var(--text-soft);
}

.gallery-live-filter.active {
    border-color: var(--gold);
    background: rgba(201, 169, 98, 0.12);
    color: var(--gold-light);
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.gallery-card {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.gallery-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #111;
    overflow: hidden;
}

.gallery-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.gallery-thumb-img,
.gallery-thumb-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-badge {
    position: absolute;
    top: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.gallery-badge svg {
    width: 12px;
    height: 12px;
}

.gallery-badge-mute { left: 6px; }
.gallery-badge-mobile { left: 34px; }

.gallery-user {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    max-width: calc(100% - 44px);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-flag {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.gallery-zone-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 18px;
    padding: 14px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-muted);
}

.zone-tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border: 1px solid var(--line-strong);
    color: var(--gold);
}

.zone-price-inline {
    margin-left: auto;
    color: var(--gold-light);
    font-weight: 600;
}

.gallery-badge-external {
    top: 6px;
    right: 6px;
    left: auto;
    width: auto;
    min-width: 24px;
    height: auto;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffd27a;
    background: rgba(0, 0, 0, 0.7);
}

.gallery-badge-offline {
    left: 6px;
    width: auto;
    height: auto;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    color: #aaa;
    background: rgba(0, 0, 0, 0.65);
}

.gallery-card-external .gallery-thumb-external,
.gallery-thumb-fallback.gallery-thumb-external {
    background: linear-gradient(160deg, #2a1a24, #111);
}

.gallery-card-external {
    outline: 1px solid rgba(201, 169, 98, 0.35);
}

.gallery-card-loading {
    pointer-events: none;
    opacity: 0.92;
}

.gallery-thumb-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(160deg, #1a1520, #0d0d12);
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.gallery-thumb-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 98, 0.25);
    border-top-color: var(--gold);
    animation: playerSpin 0.9s linear infinite;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-elevated);
    padding: 40px 32px 24px;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-soft);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-legal {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.6;
}

.footer-legal a {
    color: var(--text-soft);
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--gold-light); }

.footer-legal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 24px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.footer-revenue { color: var(--text-muted); }
.footer-revenue span { color: var(--gold); font-weight: 600; }

.footer-copy {
    max-width: 1440px;
    margin: 20px auto 0;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal {
    width: min(520px, 100%);
    max-height: min(88vh, 860px);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.modal p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 18px;
}

.modal .price {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--gold-light);
    margin: 20px 0;
}

.modal button {
    border: 0;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    color: #0c0c10;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    cursor: pointer;
    margin: 6px;
    transition: opacity 0.2s, transform 0.2s;
}

.modal button:hover { opacity: 0.92; transform: translateY(-1px); }
.modal button.secondary {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--line-strong);
}
.modal button.retry {
    background: linear-gradient(135deg, #d4a574, #b8864a);
    color: #0c0c10;
}

.qr-area {
    margin: 20px auto;
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
    display: inline-block;
}

.qr-area img { width: 180px; height: 180px; display: block; }
.amount { margin-top: 8px; font-size: 16px; font-weight: 700; color: #1a1a1a; }

.form-group { margin: 14px 0; text-align: left; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-sans);
}

.upload-zone {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: var(--bg);
    transition: border-color 0.2s;
}

.upload-zone:hover { border-color: var(--gold); }
.upload-zone .icon {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    color: var(--gold);
}
.upload-zone p { font-size: 13px; color: var(--text-muted); }
.upload-zone input { display: none; }
.uploaded .upload-zone { border-color: var(--ok); border-style: solid; }

.scan-animation {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin: 16px 0;
    background: var(--bg);
    border: 1px solid var(--line);
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 0;
    background: var(--rose);
    animation: scanDown 2s infinite;
}

@keyframes scanDown {
    0% { top: 0; }
    100% { top: 100%; }
}

.scan-text {
    position: absolute;
    width: 100%;
    line-height: 56px;
    text-align: center;
    font-size: 12px;
    color: var(--rose);
    letter-spacing: 0.06em;
}

.black-u-alert {
    border-color: rgba(232, 93, 93, 0.35) !important;
}

/* ===== PLAYER ===== */
.player-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: #000;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.player-overlay.active { display: flex; }

.player-container {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.player-container:fullscreen,
.player-container:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    background: #000;
}

.player-container:fullscreen .player-video,
.player-container:-webkit-full-screen .player-video {
    object-fit: contain;
    object-position: center;
}

.player-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 42px;
    padding: 0 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s;
}

.player-volume:hover,
.player-volume.is-open {
    background: rgba(0, 0, 0, 0.75);
    border-color: var(--gold);
}

.player-volume-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.player-volume-btn:hover,
.player-volume-btn.is-muted {
    color: var(--gold-light);
}

.player-vol-icon { display: block; }
.player-volume-btn .player-vol-off { display: none; }
.player-volume-btn.is-muted .player-vol-on { display: none; }
.player-volume-btn.is-muted .player-vol-off { display: block; }

.player-volume-slider {
    width: 0;
    height: 4px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}

.player-volume:hover .player-volume-slider,
.player-volume.is-open .player-volume-slider {
    width: 88px;
    margin-right: 4px;
    opacity: 1;
    pointer-events: auto;
}

.player-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.player-volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.player-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    background: var(--gold-light);
    cursor: pointer;
}

.player-fullscreen-btn {
    position: static;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.player-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: var(--gold);
    color: var(--gold-light);
}

.player-fullscreen-btn.is-active {
    border-color: var(--gold);
    color: var(--gold-light);
}

.player-fs-icon { display: block; }
.player-fullscreen-btn .player-fs-exit { display: none; }
.player-fullscreen-btn.is-active .player-fs-enter { display: none; }
.player-fullscreen-btn.is-active .player-fs-exit { display: block; }

.player-container:fullscreen .player-controls,
.player-container:-webkit-full-screen .player-controls {
    top: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
}

.player-container:fullscreen #playerGoalBar,
.player-container:-webkit-full-screen #playerGoalBar,
.player-container.is-player-fullscreen #playerGoalBar {
    display: none !important;
}

.player-quality {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
}

.player-quality-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.player-quality-select {
    min-width: 0;
    max-width: 78px;
    height: 38px;
    padding: 0 22px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-family: var(--font-sans);
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.75) 50%), linear-gradient(135deg, rgba(255,255,255,0.75) 50%, transparent 50%);
    background-position: calc(100% - 12px) calc(50% + 1px), calc(100% - 7px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.player-quality-select:focus {
    outline: none;
    border-color: var(--gold);
}

.player-quality[hidden] {
    display: none !important;
}

.player-container:fullscreen .player-quality,
.player-container:-webkit-full-screen .player-quality {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
}

.player-chat {
    flex-shrink: 0;
    width: 340px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--line-strong);
    background: rgba(12, 12, 16, 0.98);
}

.player-chat-tabs {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.player-chat-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 12px 8px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.player-chat-tab:hover {
    color: var(--text);
}

.player-chat-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--accent, #e85d4c);
}

.player-chat-tab-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.player-chat-panels {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-chat-panel {
    flex: 1 1 0;
    min-height: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.player-chat-panel.is-active {
    display: flex;
}

.player-chat-private {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    text-align: center;
}

.player-chat-private-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #f5a623;
}

.player-chat-private-features {
    margin: 0 0 14px;
    padding: 14px 16px;
    list-style: none;
    text-align: left;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.player-chat-private-features li {
    padding: 8px 0;
    font-size: 12px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.player-chat-private-features li:last-child {
    border-bottom: none;
}

.player-chat-private-more {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
}

.player-chat-private-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5a623, #e85d4c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.player-chat-private-btn:hover {
    opacity: 0.92;
}

.player-chat-private-room {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-private-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.player-private-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5a623, #e85d4c);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.player-private-chat-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.player-private-chat-name {
    font-size: 14px;
    color: var(--text);
}

.player-private-chat-status {
    font-size: 11px;
    color: #6ee7a8;
}

.player-private-chat-body {
    flex: 1;
    min-height: 0;
}

.player-private-chat-input {
    border-top: 1px solid var(--line-strong);
}

.room-members-head {
    flex-shrink: 0;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--line);
}

.room-members-total {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text);
}

.room-members-total strong {
    font-size: 15px;
    font-weight: 700;
}

.room-members-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-members-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.room-members-summary-row.is-ultimate span:last-child {
    color: #f5a623;
    font-weight: 600;
}

.room-members-summary-row.is-green span:last-child {
    color: #4ade80;
    font-weight: 600;
}

.room-members-list-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.room-members-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 4px;
}

.room-members-list-note {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 12px 10px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(12, 12, 16, 0.98);
}

.room-members-empty {
    margin: 16px 8px;
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
}

.room-members-empty.is-error {
    color: #f87171;
}

.room-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 6px;
}

.room-member-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.room-member-level {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 10px;
    font-weight: 700;
    color: #111;
    background: var(--member-color, #9ca3af);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.room-member-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-member-ultimate {
    margin-left: 4px;
    color: #f5a623;
    font-size: 11px;
}

.room-member-row.is-self {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.room-member-self-tag {
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(245, 166, 35, 0.2);
    color: #f5c542;
    font-size: 10px;
    font-weight: 700;
}

.player-chat-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.player-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
}

.player-chat-count {
    font-size: 11px;
    color: var(--text-muted);
}

.player-chat-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
}

.player-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.player-chat-field {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.player-chat-field::placeholder { color: var(--text-muted); }
.player-chat-field:focus { border-color: var(--gold); }

.player-chat-input {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.player-chat-emoji-btn {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--gold-light);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.player-chat-emoji-btn:hover,
.player-chat-emoji-btn.active {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold-light);
}

.chat-emoji-picker {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(100% + 6px);
    z-index: 20;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--panel-2);
    box-shadow: var(--shadow);
}

.chat-emoji-picker[hidden] {
    display: none !important;
}

.chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-height: 168px;
    overflow-y: auto;
}

.chat-emoji-item {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.chat-emoji-item:hover {
    background: var(--gold-dim);
    border-color: rgba(201, 169, 98, 0.35);
}

.chat-emoji-item .smile {
    pointer-events: none;
    transform: scale(0.85);
}

.player-chat-send {
    flex-shrink: 0;
    padding: 0 16px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold);
    color: #14110a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.player-chat-send:hover { opacity: 0.88; }

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201, 169, 98, 0.06), transparent),
        #030304;
}

.player-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.player-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(201, 169, 98, 0.2);
    border-top-color: var(--gold);
    animation: playerSpin 0.9s linear infinite;
}

@keyframes playerSpin {
    to { transform: rotate(360deg); }
}

.player-loading-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.player-bottom-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
}

/* 非全屏：UI 锚定在视频底边与容器底边之间 */
.player-container.is-dock-bottom-ui .player-bottom-ui {
    top: var(--fit-video-bottom, 0px);
    bottom: 0;
    left: var(--fit-video-left, 0px);
    width: calc(var(--fit-video-right, 100%) - var(--fit-video-left, 0px));
    right: auto;
    min-height: 0;
    padding: 6px 0 12px;
    gap: 4px;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden;
}

.player-container.is-dock-bottom-ui .player-goal-bar {
    margin: 0;
    flex-shrink: 0;
}

.player-container.is-dock-bottom-ui .player-info-bar {
    padding: 0;
    background: none;
    flex-shrink: 0;
}

.player-container.is-dock-bottom-ui .player-controls {
    right: calc(100% - var(--fit-video-right, 100%) + 12px);
    bottom: calc(100% - var(--fit-video-bottom, 100%) + 12px);
}

.player-goal-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 130px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.player-goal-bar[hidden] {
    display: none !important;
}

.player-goal-track {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.player-goal-icon {
    display: flex;
    color: #57d17a;
    flex-shrink: 0;
}

.player-goal-content {
    flex: 1;
    min-width: 0;
}

.player-goal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 5px;
    min-width: 0;
}

.player-goal-target-text strong {
    color: #fff;
    font-weight: 700;
}

.player-goal-title {
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-goal-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.player-goal-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #36b85d, #57d17a);
    width: 0%;
    transition: width 0.35s ease;
}

.player-goal-percent {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    min-width: 2.8em;
    text-align: right;
}

.player-goal-king {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    max-width: 42%;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.74);
    border: 1px solid rgba(255, 180, 60, 0.28);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.player-goal-king-icon,
.player-goal-king-star {
    color: #ffb43c;
    flex-shrink: 0;
    line-height: 1;
}

.player-goal-king-label {
    flex-shrink: 0;
    white-space: nowrap;
}

.player-goal-king-name {
    color: #ffb43c;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.player-info-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 48px 130px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    pointer-events: none;
}

/* 竖屏 / 方形 / 4:3（桌面）：目标条与王者横排 */
.player-container.is-compact-stream .player-goal-bar,
.player-container.is-portrait-stream .player-goal-bar {
    margin: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
}

.player-container.is-compact-stream .player-goal-track,
.player-container.is-portrait-stream .player-goal-track {
    flex: 1 1 55%;
    min-width: 0;
    width: auto;
}

.player-container.is-compact-stream .player-goal-king,
.player-container.is-portrait-stream .player-goal-king {
    flex: 1 1 45%;
    min-width: 0;
    max-width: none;
    justify-content: flex-start;
    align-self: stretch;
}

.player-container.is-compact-stream .player-info-bar,
.player-container.is-portrait-stream .player-info-bar {
    padding: 0;
    background: none;
    align-items: center;
    gap: 8px;
}

.player-container.is-compact-stream .player-info-main,
.player-container.is-portrait-stream .player-info-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.player-container.is-compact-stream .player-status,
.player-container.is-portrait-stream .player-status {
    display: none;
}

.player-container.is-compact-stream .player-name,
.player-container.is-portrait-stream .player-name {
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 手机竖屏：底部 UI 在视频下方黑条内，不遮挡画面 */
.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-bottom-ui {
    top: var(--fit-video-bottom, auto);
    bottom: 0;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    padding: 4px 10px 8px;
    gap: 4px;
    justify-content: flex-start;
    background: #000;
    box-sizing: border-box;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-bar {
    margin: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-track {
    flex: 1 1 55%;
    min-width: 0;
    padding: 4px 7px;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-king {
    flex: 1 1 45%;
    min-width: 0;
    max-width: none;
    padding: 4px 7px;
    align-self: stretch;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-label {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.2;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-progress {
    height: 3px;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-percent {
    font-size: 11px;
    min-width: 2.4em;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-title,
.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-goal-king-label {
    display: none;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-info-bar {
    padding: 0;
    background: none;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-info-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-status {
    display: none;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-name {
    margin-bottom: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-fav-btn,
.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-like-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 3px 7px;
}

.player-container.is-dock-bottom-ui.is-mobile-bottom-strip .player-controls {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--fit-ui-height, 76px) + max(8px, env(safe-area-inset-bottom, 0px)));
}

/* 底部 UI 区高度不足时，叠在视频底边细条显示 */
.player-container.is-dock-bottom-ui.is-tight-bottom .player-bottom-ui {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 0 12px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
}

.player-container.is-dock-bottom-ui.is-tight-bottom .player-controls {
    right: 12px;
    bottom: 12px;
}

.player-container.is-dock-bottom-ui.is-tight-bottom .player-goal-bar {
    flex-direction: row;
    align-items: center;
}

.player-container.is-dock-bottom-ui.is-tight-bottom .player-goal-king {
    width: auto;
    max-width: 42%;
}

.player-container.is-dock-bottom-ui.is-tight-bottom .player-info-bar {
    padding: 0;
}

.player-info-main,
.player-info-actions {
    pointer-events: auto;
}

.player-info-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.player-fav-btn,
.player-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    backdrop-filter: blur(8px);
}

.player-fav-btn:hover,
.player-like-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.35);
}

.player-fav-btn:active,
.player-like-btn:active {
    transform: scale(0.94);
}

.player-fav-btn.is-active {
    color: #f5c518;
    border-color: rgba(245, 197, 24, 0.45);
    background: rgba(245, 197, 24, 0.12);
}

.player-like-btn.is-active {
    color: #ff3b5c;
    border-color: rgba(255, 59, 92, 0.45);
    background: rgba(255, 59, 92, 0.12);
}

.player-fav-icon,
.player-like-icon {
    display: block;
    flex-shrink: 0;
}

.player-fav-btn .player-fav-filled,
.player-like-btn .player-like-filled {
    display: none;
}

.player-fav-btn.is-active .player-fav-outline,
.player-like-btn.is-active .player-like-outline {
    display: none;
}

.player-fav-btn.is-active .player-fav-filled,
.player-like-btn.is-active .player-like-filled {
    display: block;
}

.player-like-count {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    min-width: 1.2em;
    text-align: left;
}

.player-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.06em;
}

.player-close-btn {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s;
}

.player-close-btn:hover { background: rgba(0, 0, 0, 0.85); }

.player-mosaic {
    position: absolute;
    left: 50%;
    bottom: 38%;
    transform: translateX(-50%);
    width: 140px;
    height: 72px;
    z-index: 12;
    border-radius: 4px;
    background: repeating-linear-gradient(
        45deg,
        #3a3a3a 0,
        #3a3a3a 4px,
        #4a4a4a 4px,
        #4a4a4a 8px
    );
    filter: blur(3px);
    opacity: 0.95;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.player-overlay.mosaic-active .player-video {
    filter: blur(0);
}

.player-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    z-index: 3;
}

.player-external-fallback {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.player-external-fallback[hidden] {
    display: none !important;
}

.player-external-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.55);
}

.player-external-panel {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0 24px;
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 98, 0.35);
    background: rgba(8, 8, 12, 0.88);
    text-align: center;
    backdrop-filter: blur(8px);
}

.player-external-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.player-external-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 12px;
}

.player-external-hint {
    font-size: 12px;
    line-height: 1.5;
    color: #ffb86b;
    margin-bottom: 16px;
}

.player-external-open-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #a88b4a);
    color: #1a1408;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.player-external-open-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.face-container {
    position: relative;
    width: 240px;
    height: 300px;
    margin: 20px auto;
    border-radius: 120px;
    border: 2px solid var(--rose);
    background: var(--bg);
    overflow: hidden;
}

.face-video { width: 100%; height: 100%; object-fit: cover; }

.scan-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 210px;
    transform: translate(-50%, -50%);
    border-radius: 85px;
    border: 2px solid var(--rose);
    animation: facePulse 1.5s infinite;
}

@keyframes facePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.face-status { min-height: 20px; margin-top: 16px; font-size: 13px; color: var(--text-soft); }
.face-status.error { color: var(--live); }
.face-status.success { color: var(--ok); }

/* ===== LIVE CHAT ===== */
.live-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    width: 340px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.live-chat.collapsed { width: auto; min-width: 160px; }
.live-chat.collapsed .live-chat-body { display: none; }
.live-chat.collapsed .live-chat-input { display: none; }

.live-chat-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.live-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
}

.live-chat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    animation: livePulse 1.4s infinite;
}

.live-chat-meta {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.live-chat-zone {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid var(--line-strong);
    color: var(--gold);
}

.live-chat-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-soft);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.live-chat-toggle:hover { border-color: var(--gold); color: var(--gold-light); }

.live-chat-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 14px 14px;
}

.chat-msg {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    animation: chatIn 0.35s ease;
}

@keyframes chatIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-user {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.chat-text { color: var(--text-soft); word-break: break-word; }

.chat-msg.kim { border-left: 2px solid var(--sapphire); }
.chat-msg.lee { border-left: 2px solid var(--ok); }
.chat-msg.park { border-left: 2px solid var(--rose); }
.chat-msg.choi { border-left: 2px solid var(--gold); }

.chat-msg.chat-tip {
    border-left-color: var(--gold);
    background: rgba(201, 169, 98, 0.08);
}

.chat-msg.mine {
    border-left: 2px solid var(--gold);
    background: rgba(212, 175, 55, 0.08);
}
.chat-msg.mine .chat-user { color: var(--gold-light); }

.chat-text {
    word-break: break-word;
    line-height: 1.45;
}

.live-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.live-chat-field {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.live-chat-field::placeholder { color: var(--text-muted); }
.live-chat-field:focus { border-color: var(--gold); }

.live-chat-send {
    flex-shrink: 0;
    padding: 0 16px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold);
    color: #14110a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.live-chat-send:hover { opacity: 0.88; }
.live-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .header-nav { display: none; }

    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
    .site-header-inner {
        padding: 12px 16px;
        gap: 12px;
    }

    .header-toolbar {
        flex: 1 1 100%;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    .header-actions {
        flex: 0 1 auto;
        width: auto;
        max-width: 100%;
    }

    .header-auth-group {
        justify-content: flex-end;
    }

    .metric {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .header-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        width: 100%;
    }

    .header-auth-group {
        width: 100%;
        justify-content: flex-end;
    }

    .zone-tabs-block {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .zone-site-metrics {
        grid-column: 1;
        grid-row: 1;
    }

    .zone-tabs {
        grid-row: 2;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .zone-tab {
        padding: 10px 4px;
        align-items: center;
        text-align: center;
        gap: 2px;
    }

    .zone-tab-name { display: none; }

    .zone-tab-count-suffix { display: none; }

    .zone-tab-tier {
        font-size: 13px;
    }

    .zone-tab-count {
        font-size: 10px;
        margin-top: 0;
        line-height: 1.2;
    }

    .hero-inner { padding: 48px 20px 56px; }
    .layout-shell { padding: 36px 20px 60px; }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .footer-inner { flex-direction: column; }
    .footer-legal { text-align: left; }
    .footer-legal-row { justify-content: flex-start; }
    .footer-meta { text-align: left; }
    .zone-price-inline { margin-left: 0; }

    .gallery-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gallery-live-filters {
        flex-wrap: wrap;
        width: 100%;
    }

    .gallery-zone-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .player-overlay.active {
        display: grid;
        grid-template-rows: minmax(0, 1fr) minmax(260px, 30dvh);
        grid-template-columns: 1fr;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: none;
    }

    .player-container {
        grid-row: 1;
        flex: none;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        touch-action: none;
    }

    .player-container:fullscreen,
    .player-container:-webkit-full-screen {
        flex: none;
        height: 100%;
        width: 100%;
    }

    .player-chat {
        grid-row: 2;
        flex: none;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: clamp(260px, 30dvh, 340px);
        min-height: 260px;
        max-height: 340px;
        overflow: hidden;
        touch-action: none;
        border-left: none;
        border-top: 1px solid var(--line-strong);
    }

    .player-chat-body {
        touch-action: pan-y;
        overscroll-behavior-y: contain;
    }

    .player-chat-footer,
    .player-chat-tabs {
        flex-shrink: 0;
    }

    .player-chat-field {
        font-size: 16px;
    }

    .player-overlay.active.player-mobile-locked {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: var(--player-shell-h, 100dvh) !important;
        min-height: var(--player-shell-h, 100dvh) !important;
        max-height: var(--player-shell-h, 100dvh) !important;
        overflow: hidden;
    }

    .player-overlay.active.player-mobile-locked .player-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(var(--player-chat-h, 300px) + var(--player-keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px));
        height: auto;
        max-height: none;
    }

    .player-overlay.active.player-mobile-locked .player-chat {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(var(--player-keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
        height: var(--player-chat-h, 300px) !important;
        min-height: var(--player-chat-h, 300px) !important;
        max-height: var(--player-chat-h, 300px) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    .player-overlay.active.player-mobile-locked .player-chat-panels {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .player-controls {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .player-container.is-dock-bottom-ui .player-controls {
        top: auto;
        right: calc(100% - var(--fit-video-right, 100%) + max(12px, env(safe-area-inset-right, 0px)));
        bottom: calc(100% - var(--fit-video-bottom, 100%) + max(12px, env(safe-area-inset-bottom, 0px)));
    }

    .player-container:fullscreen .player-controls,
    .player-container:-webkit-full-screen .player-controls {
        top: auto;
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }

    .player-volume {
        padding: 0;
        gap: 0;
    }

    .player-volume-slider {
        width: 0;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }

    .player-volume.is-open .player-volume-slider {
        width: 64px;
        margin-right: 2px;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        padding: 10px 12px;
        gap: 10px;
    }

    .brand-sub { display: none; }

    .brand-name {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-actions {
        width: 100%;
    }

    .header-auth-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .header-membership-btn,
    .header-login-btn {
        width: 100%;
        margin-right: 0;
        text-align: center;
        justify-content: center;
    }

    .header-user {
        width: 100%;
        margin-right: 0;
        padding-right: 0;
        border-right: none;
        justify-content: space-between;
    }

    .site-footer { padding: 32px 16px 20px; }

    .section-title { font-size: 24px; }

    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

    .gallery-user { font-size: 12px; }

    .live-chat {
        right: 12px;
        bottom: 12px;
        width: min(340px, calc(100vw - 24px));
    }

    .modal-overlay { padding: 12px; }

    .modal {
        padding: 24px 18px;
        max-height: min(90dvh, 860px);
    }

    .auth-gate { padding: 16px; }

    .auth-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .hero-inner { padding: 36px 16px 44px; }
    .layout-shell { padding: 28px 16px 48px; }
    .brand-sub { display: none; }
    .brand-name { font-size: 15px; }
    .metric { padding: 8px 6px; min-width: 0; }
    .metric-value { font-size: 13px; }
    .metric-label { font-size: 9px; }
    .header-login-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    .zone-tab {
        padding: 10px 4px;
    }

    .zone-tab-tier {
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .zone-tab-count {
        font-size: 9px;
    }

    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .gallery-section-title h2 { font-size: 16px; }
    .player-info-bar { padding: 36px 110px 12px 12px; }
    .player-goal-bar { margin: 0 100px 0 12px; }
    .player-container.is-dock-bottom-ui .player-goal-bar,
    .player-container.is-compact-stream .player-goal-bar,
    .player-container.is-portrait-stream .player-goal-bar { margin: 0; }
    .player-goal-king-label { display: none; }
    .player-goal-title { display: none; }
    .player-name { font-size: 17px; }
    .player-chat-tabs { padding: 0; }
    .player-chat-tab { padding: 10px 6px; font-size: 11px; }

    .player-overlay.active {
        grid-template-rows: minmax(0, 1fr) minmax(240px, 28dvh);
    }

    .player-chat {
        height: clamp(240px, 28dvh, 320px);
        min-height: 240px;
        max-height: 320px;
    }

    .player-private-show-bar {
        padding: 6px 10px 0;
    }

    .player-private-show-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 11px;
    }

    .player-chat-input { padding: 8px 10px 10px; }
}

body.player-open {
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(12, 12, 16, 0.94);
    color: var(--gold-light);
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-to-top:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top[hidden] {
    display: none;
}

body.player-open .back-to-top {
    display: none !important;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ===== ADMIN PAGE ===== */
.admin-page { background: var(--bg); }

.admin-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex-shrink: 0;
    width: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 16px;
    border-right: 1px solid var(--line);
    background: var(--bg-elevated);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}

.admin-sidebar-brand strong { display: block; font-size: 15px; color: var(--text); }
.admin-sidebar-brand p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; }

.admin-nav-item {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.admin-nav-item:hover { background: var(--panel); color: var(--text); }

.admin-nav-item.active {
    background: var(--panel);
    border-color: var(--line-strong);
    color: var(--gold-light);
    font-weight: 600;
}

.admin-nav-back {
    margin-top: auto;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.admin-nav-back:hover { color: var(--gold-light); }

.admin-content {
    flex: 1;
    min-width: 0;
    max-width: 860px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-panel { display: none; flex-direction: column; gap: 24px; }
.admin-panel.active { display: flex; }

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 24px;
}

.admin-card h2 { font-size: 18px; margin-bottom: 8px; }

.admin-hint {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 20px;
    line-height: 1.6;
}

.admin-form { display: flex; flex-direction: column; gap: 14px; }

.admin-row { display: flex; flex-direction: column; gap: 6px; }

.admin-row label { font-size: 12px; font-weight: 500; color: var(--text-soft); }

.admin-row input,
.admin-row select {
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-sans);
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.admin-check-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

.admin-wallet-default {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    background: rgba(201, 169, 98, 0.16);
    border: 1px solid rgba(201, 169, 98, 0.35);
}

.admin-wallet-address-cell {
    display: block;
    max-width: 360px;
    word-break: break-all;
    font-size: 12px;
}

.admin-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--bg);
}

.admin-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 8px;
}

.admin-status { font-size: 13px; color: var(--text-soft); min-height: 20px; }

.admin-submit {
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0c0c10;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

.admin-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }

.admin-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}

.admin-list-item img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.admin-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.admin-list-info strong { font-size: 14px; color: var(--text); }

.admin-delete {
    padding: 8px 12px;
    border: 1px solid rgba(232, 93, 93, 0.4);
    border-radius: 6px;
    background: transparent;
    color: #e85d5d;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.admin-empty { font-size: 13px; color: var(--text-muted); padding: 20px 0; }

.admin-zone-group { margin-bottom: 0; }
.admin-zone-group:last-child { margin-bottom: 0; }

.admin-zone-list-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.admin-zone-list-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.admin-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.admin-pager-btn {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-soft);
    font-size: 12px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.admin-pager-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-light); }
.admin-pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.admin-pager-info { font-size: 12px; color: var(--text-muted); }

.admin-details {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-soft);
}

.admin-details summary {
    cursor: pointer;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.admin-steps {
    margin: 10px 0 12px 18px;
    line-height: 1.7;
}

.admin-code {
    padding: 12px;
    border-radius: 8px;
    background: #0a0a0e;
    border: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: #c8c4bc;
}

@media (max-width: 820px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-nav-item { flex: 1; min-width: 120px; text-align: center; }
    .admin-nav-back { margin-top: 8px; }
    .admin-content { padding: 20px; max-width: none; }
    .admin-grid-2 { grid-template-columns: 1fr; }
}

/* ===== AUTH GATE ===== */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(ellipse at 50% 20%, rgba(201, 169, 98, 0.08), transparent 55%), var(--bg);
}

.auth-gate[hidden] { display: none !important; }

.auth-gate-modal {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.auth-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.auth-close-btn:hover { color: var(--text); background: var(--line); }

.header-login-btn {
    margin-right: 0;
    padding: 8px 14px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-dim);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.header-login-btn:hover { opacity: 0.9; }
.header-login-btn[hidden] { display: none !important; }

.header-user[hidden] { display: none !important; }

.header-logout-btn[hidden] { display: none !important; }

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand h1 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 12px 0 6px;
    color: var(--gold-light);
}

.auth-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-soft);
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
}

.auth-tab.active {
    border-color: var(--gold);
    color: var(--gold-light);
    background: var(--gold-dim);
}

.auth-panel label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 12px;
}

.auth-panel label:first-child { margin-top: 0; }

.auth-panel input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
}

.auth-panel input:focus {
    outline: none;
    border-color: var(--gold);
}

.auth-submit {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #a8863f);
    color: #1a1408;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.auth-submit:hover { opacity: 0.92; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
    min-height: 20px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--live);
    text-align: center;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 10px;
}

.auth-hint-warn { color: #c9a962; }

.auth-file-hint {
    font-size: 13px;
    color: #ffd76a;
    text-align: center;
    margin-bottom: 12px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.header-user-tier {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--line);
    color: var(--text-soft);
}

.header-user-tier.tier-vip { background: var(--sapphire-dim); color: #9eb0ff; }
.header-user-tier.tier-vvip { background: var(--gold-dim); color: var(--gold-light); }
.header-user-tier.tier-svip { background: var(--rose-dim); color: #f0a0b0; }
.header-user-tier.tier-none { background: rgba(255,255,255,0.06); color: var(--text-muted); }

.header-logout-btn {
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.header-logout-btn:hover { border-color: var(--gold); color: var(--gold-light); }

.zone-tab-lock {
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.85;
}

.zone-tab.zone-tab-locked {
    opacity: 0.55;
}

/* ===== ADMIN LOGIN ===== */
.admin-login-gate {
    background:
        radial-gradient(ellipse 70% 55% at 50% -15%, rgba(107, 127, 215, 0.14), transparent),
        radial-gradient(ellipse at 50% 25%, rgba(201, 169, 98, 0.1), transparent 60%),
        var(--bg);
}

.admin-login-card {
    max-width: 420px !important;
    padding: 40px 36px 32px !important;
    border-color: rgba(201, 169, 98, 0.22);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.admin-login-gate .auth-brand {
    margin-bottom: 28px;
}

.admin-login-gate .auth-brand .brand-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    font-size: 14px;
}

.admin-login-gate .auth-brand h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #f0e6cc, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-login-gate .auth-panel input {
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-login-gate .auth-panel input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
}

.admin-login-gate .auth-submit {
    margin-top: 24px;
    padding: 13px;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.auth-hint-admin {
    text-align: center;
    margin-top: 18px !important;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    line-height: 1.7;
}

.auth-hint-admin code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(201, 169, 98, 0.12);
    color: var(--gold-light);
    font-size: 11px;
}

.admin-login-back {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.admin-login-back:hover { color: var(--gold-light); }

.admin-password-form {
    max-width: 420px;
    margin-top: 16px;
}

.admin-password-form .admin-row input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    box-sizing: border-box;
}

.admin-password-form .admin-row input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
}

.admin-nav-logout {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.admin-nav-logout:hover { border-color: var(--live); color: #f0a0a0; }

.admin-user-table-wrap { overflow-x: auto; }

.admin-user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-user-table th,
.admin-user-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.admin-user-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
}

.admin-password-cell {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #ffd76a;
    word-break: break-all;
}

.admin-tier-select {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    font-family: var(--font-sans);
}

.admin-delete-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.admin-submit-sm {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 6px;
}

.zone-tab[data-zone="trial"].active {
    background: rgba(120, 200, 160, 0.12);
}
.zone-tab[data-zone="trial"].active .zone-tab-tier { color: #8fdcb0; }
.zone-tab[data-zone="trial"].active .zone-tab-name { color: var(--text); }

.trial-countdown-bar {
    position: absolute;
    bottom: 16px;
    left: 16px;
    top: auto;
    transform: none;
    z-index: 30;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(143, 220, 176, 0.45);
    color: #8fdcb0;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.trial-countdown-bar-urgent {
    color: #ff4d4d;
    font-weight: 800;
    font-size: 14px;
    background: rgba(40, 0, 0, 0.82);
    border-color: rgba(255, 77, 77, 0.75);
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.35);
    animation: trial-countdown-pulse 1s ease-in-out infinite;
}

@keyframes trial-countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}

.trial-zone-remaining-urgent {
    color: #ff4d4d !important;
    font-weight: 800;
}

.trial-zone-head {
    margin-bottom: 16px;
    text-align: center;
}

.trial-zone-head h2,
.trial-zone-head .admin-hint {
    text-align: center;
}

.trial-ip-hint strong {
    color: #8fdcb0;
}

.trial-gallery-grid {
    margin-top: 8px;
}

.gallery-card-trial {
    display: flex;
    flex-direction: column;
}

.trial-zone-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.78);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.trial-zone-badge-vip {
    color: #b8c8ff;
    font-size: 14px;
    border-color: rgba(158, 176, 255, 0.7);
    background: rgba(20, 28, 60, 0.88);
}

.trial-zone-badge-vvip {
    color: #ffb8c8;
    font-size: 13px;
    border-color: rgba(240, 160, 176, 0.65);
    background: rgba(50, 20, 30, 0.88);
}

.trial-zone-badge-svip {
    color: #ffe08a;
    font-size: 13px;
    border-color: rgba(255, 215, 106, 0.7);
    background: rgba(45, 35, 10, 0.88);
}

.trial-card-foot {
    padding: 10px 10px 12px;
}

.trial-card-hint {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    line-height: 1.4;
}

.gallery-card-trial[data-trial-zone="vip"] .trial-card-hint {
    color: #9eb0ff;
}

.gallery-card-trial[data-trial-zone="vvip"] .trial-card-hint {
    color: #f0a0b0;
}

.gallery-card-trial[data-trial-zone="svip"] .trial-card-hint {
    color: #ffd76a;
}

.trial-paid-notice {
    padding: 24px 16px;
    text-align: center;
}

.trial-paid-notice h2,
.trial-paid-notice .admin-hint {
    text-align: center;
}

.favorites-zone-head,
.favorites-login-notice {
    margin-bottom: 16px;
}

.favorites-login-notice {
    text-align: center;
}

.favorites-login-notice .auth-submit {
    margin-top: 12px;
}

.favorites-empty {
    grid-column: 1 / -1;
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
}

.favorites-empty p {
    margin: 0 0 8px;
}

.gallery-badge-fav-zone {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(245, 197, 24, 0.9);
    color: #1a1200;
}

.favorites-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
}

.admin-order-actions {
    white-space: nowrap;
}

.admin-review-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-review-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-review-tab:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--panel);
}

.admin-review-tab.active {
    color: var(--text);
    border-color: rgba(255, 215, 106, 0.45);
    background: rgba(255, 215, 106, 0.1);
}

.admin-review-tab-approved.active {
    border-color: rgba(90, 210, 140, 0.45);
    background: rgba(90, 210, 140, 0.1);
}

.admin-review-tab-rejected.active {
    border-color: rgba(240, 120, 120, 0.45);
    background: rgba(240, 120, 120, 0.1);
}

.admin-review-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.admin-review-tab.active .admin-review-tab-count {
    background: rgba(255, 255, 255, 0.14);
}

.admin-review-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-review-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 4px;
}

.admin-order-processed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.admin-order-processed small {
    color: var(--text-muted);
}

.admin-trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 220px;
}

.admin-empty-inline {
    margin: 0;
    padding: 24px 0 8px;
}

.admin-tx-cell {
    font-size: 11px;
    word-break: break-all;
    max-width: 140px;
    display: inline-block;
}

.admin-order-status.status-pending { color: #ffd76a; font-weight: 600; }
.admin-order-status.status-approved { color: var(--ok); font-weight: 600; }
.admin-order-status.status-rejected { color: var(--live); font-weight: 600; }

.admin-order-tier.tier-vip { color: #9eb0ff; }
.admin-order-tier.tier-vvip { color: var(--gold-light); }
.admin-order-tier.tier-svip { color: #f0a0b0; }

/* ===== MEMBERSHIP MODAL ===== */
.header-membership-btn {
    margin-right: 0;
    padding: 8px 14px;
    border: 1px solid var(--sapphire);
    border-radius: 8px;
    background: var(--sapphire-dim);
    color: #b8c8ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.header-membership-btn:hover { opacity: 0.9; }
.header-membership-btn[hidden] { display: none !important; }

.modal.modal-membership {
    width: min(920px, 100%);
    max-width: none;
    text-align: left;
    padding: 28px 24px;
}

.modal.modal-membership-pay {
    width: min(520px, 100%);
}

.modal-membership-pay .membership-payment-hint {
    margin: 8px 0 4px;
}

.modal-membership-pay .membership-order-msg {
    min-height: 0;
    margin: 0 0 6px;
}

.modal-membership-pay .membership-modal-actions {
    margin-top: 0;
}

.membership-modal-head h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.membership-modal-head p {
    font-size: 14px;
    color: var(--text-soft);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 6px;
}

.membership-current-tier {
    margin-top: 12px !important;
    color: var(--gold-light) !important;
}

.membership-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0 20px;
    align-items: stretch;
}

.membership-plan-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel-2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.membership-plan-card.is-highlight {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.25);
}

.membership-plan-card.tier-vip { border-top: 3px solid var(--sapphire); }
.membership-plan-card.tier-vvip { border-top: 3px solid var(--gold); }
.membership-plan-card.tier-svip { border-top: 3px solid var(--rose); }

.membership-plan-card.is-owned { opacity: 0.72; }

.membership-plan-tier {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.membership-plan-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.membership-plan-desc {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.5;
    min-height: 36px;
}

.membership-plan-features {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0;
    flex: 1;
}

.membership-plan-features li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0 4px 14px;
    position: relative;
}

.membership-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
}

.membership-plan-price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--gold-light);
}

.membership-plan-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.membership-plan-btn {
    width: 100%;
    margin-top: 4px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1408;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.membership-plan-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--line);
    color: var(--text-muted);
}

.membership-plan-btn:not(:disabled):hover { opacity: 0.92; }

.membership-threshold-grid .membership-plan-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    text-align: center;
}

.membership-threshold-grid .membership-plan-desc {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.membership-threshold-grid .membership-plan-price {
    margin-bottom: 4px;
}

.membership-threshold-grid .membership-plan-btn {
    margin-top: auto;
    width: 100%;
}

.membership-progress-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.membership-progress-hint strong {
    color: var(--gold-light);
}

.membership-new-user-promo {
    margin: 14px 0 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(139, 92, 42, 0.08));
    text-align: center;
}

.membership-promo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a1208;
    background: linear-gradient(90deg, #f0d78a, #d4af37);
    margin-bottom: 8px;
}

.membership-promo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.membership-promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-soft);
}

.membership-promo-list strong {
    color: var(--gold-light);
}

.membership-promo-was {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.membership-promo-timer {
    font-size: 13px;
    color: var(--text-soft);
    margin: 0;
}

.membership-promo-countdown {
    display: inline-block;
    min-width: 72px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ffb347;
}

.membership-promo-timer.is-expired,
.membership-promo-timer.is-locked {
    color: var(--text-muted);
    font-size: 12px;
}

.membership-plan-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #1a1208;
    background: linear-gradient(90deg, #f0d78a, #d4af37);
    vertical-align: middle;
}

.membership-plan-badge.is-normal {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-soft);
    border: 1px solid var(--line);
}

.membership-plan-original {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.membership-plan-card.has-promo {
    border-color: rgba(212, 175, 55, 0.35);
}

.membership-payment-promo {
    margin-top: 6px;
    font-size: 12px;
    color: #ffb347;
}

.membership-payment-was {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
}

.membership-payment-discount {
    color: #ffb347;
    font-weight: 700;
}

.membership-packages-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.membership-packages-title {
    font-size: 16px;
    margin-bottom: 6px;
    text-align: center;
}

.membership-packages-desc {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 14px;
}

.membership-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.membership-package-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.membership-package-card:hover {
    border-color: var(--gold);
    background: var(--panel-2);
}

.membership-package-usdt {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
}

.membership-package-tokens {
    font-size: 12px;
    color: var(--text-soft);
}

.membership-package-discount {
    font-size: 11px;
    color: var(--text-muted);
}

.membership-payment-bonus {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.membership-payment-bonus strong {
    color: var(--gold-light);
}

@media (max-width: 640px) {
    .membership-packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.membership-modal-foot,
.membership-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.membership-payment-box {
    margin: 20px 0 16px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
}

.membership-payment-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.membership-payment-row:last-of-type { border-bottom: none; }

.membership-payment-label { color: var(--text-muted); flex-shrink: 0; }

.membership-payment-value { color: var(--text); text-align: right; word-break: break-all; }

.membership-payment-amount {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 16px;
}

.membership-payment-address {
    font-size: 11px;
    color: #ffd76a;
    word-break: break-all;
}

.membership-copy-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text-soft);
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.membership-copy-btn:hover { border-color: var(--gold); color: var(--gold-light); }

.membership-tx-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.membership-tx-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 13px;
}

.membership-payment-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 12px 0;
    text-align: center;
}

.membership-order-msg {
    min-height: 20px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
}

.membership-order-msg.is-err { color: var(--live); }
.membership-order-msg.is-ok { color: var(--ok); }

.membership-submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1408;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.membership-success {
    text-align: center;
    padding: 12px 0;
}

.membership-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(92, 184, 122, 0.15);
    color: var(--ok);
    font-size: 28px;
    font-weight: 700;
}

.membership-success h2 {
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.membership-success-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 16px 0 24px;
}

@media (max-width: 768px) {
    .membership-plans-grid { grid-template-columns: 1fr; }
    .modal.modal-membership { padding: 22px 16px; }
    .wallet-packages-grid { grid-template-columns: 1fr; }
    .modal.modal-wallet { padding: 22px 16px; }
}

/* ===== WALLET / TIP ===== */
.header-wallet-btn {
    padding: 8px 14px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(201, 169, 98, 0.12);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.header-wallet-btn:hover { opacity: 0.9; }
.header-wallet-btn[hidden] { display: none !important; }

.header-user-tokens {
    font-size: 12px;
    color: var(--gold-light);
    white-space: nowrap;
}

.modal.modal-wallet {
    width: min(920px, 100%);
    max-width: none;
    text-align: left;
    padding: 28px 24px;
}

.wallet-modal-head h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.wallet-modal-head p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.wallet-current-balance {
    margin-top: 12px;
    color: var(--text);
}

.wallet-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.wallet-package-card {
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.wallet-package-usdt {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.wallet-package-usdt span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.wallet-package-discount {
    display: inline-block;
    margin: 8px 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gold-dim);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
}

.wallet-package-tokens {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    margin: 6px 0;
}

.wallet-package-tokens span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.wallet-package-bonus {
    font-size: 12px;
    color: #8fd4a0;
    margin-bottom: 12px;
}

.wallet-package-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-dim);
    color: var(--gold-light);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

.wallet-package-btn:hover { opacity: 0.92; }

.wallet-pay-summary {
    margin-top: 10px;
    color: var(--gold-light);
}

.player-chat-footer {
    position: relative;
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.player-chat-input[hidden] {
    display: none !important;
}

.player-chat-footer .chat-emoji-picker {
    left: 14px;
    right: 14px;
    bottom: calc(100% + 6px);
}

.player-chat-input {
    border-top: none;
}

.player-tip-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 18;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: rgba(12, 12, 16, 0.98);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
}

.player-tip-bar[hidden] {
    display: none !important;
}

.player-tip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.player-tip-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-tip-close-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: var(--font-sans);
}

.player-tip-close-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.player-chat-tip-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.player-chat-tip-btn:hover,
.player-chat-tip-btn.active {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold-light);
}

.player-tip-balance {
    font-size: 12px;
    color: var(--text-soft);
}

.player-tip-balance strong {
    color: var(--gold-light);
}

.player-tip-recharge-btn {
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--gold-light);
    font-size: 11px;
    cursor: pointer;
    font-family: var(--font-sans);
}

.player-tip-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.player-tip-btn {
    flex: 1 1 calc(16.66% - 6px);
    min-width: 52px;
    padding: 7px 4px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(201, 169, 98, 0.08);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

.player-tip-btn:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.player-tip-custom {
    display: flex;
    gap: 6px;
}

.player-tip-custom-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 13px;
}

.player-tip-custom-btn {
    padding: 8px 12px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-dim);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.chat-msg.tip-msg {
    background: rgba(201, 169, 98, 0.1);
    border-left: 3px solid var(--gold);
    padding: 8px 10px;
    border-radius: 8px;
    margin: 4px 0;
}

.chat-msg.tip-msg .tip-text {
    color: var(--gold-light);
    font-size: 13px;
}

.modal.modal-tip {
    width: min(420px, 100%);
    text-align: center;
    padding: 28px 24px;
}

.tip-modal-head h2 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold-light);
    margin: 0 0 12px;
}

.tip-modal-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.tip-modal-text {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
}

.tip-modal-host {
    color: var(--text);
    font-size: 17px;
}

.tip-modal-amount {
    color: var(--gold-light);
    font-size: 20px;
}

.tip-modal-balance {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tip-modal-balance strong {
    color: var(--gold-light);
}

.tip-modal-error {
    color: #f0a0a0;
}

.tip-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tip-modal-actions .membership-submit-btn,
.tip-modal-actions .secondary {
    min-width: 120px;
    padding: 11px 18px;
}

/* ===== 프라이빗 쇼 ===== */
.player-private-show-bar {
    padding: 10px 14px 0;
    background: var(--panel);
}

.player-private-show-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.player-private-show-btn:hover {
    background: var(--gold-dim);
    border-color: var(--gold-light);
}

.player-private-show-label {
    white-space: nowrap;
}

.player-private-show-rate {
    color: var(--gold-light);
    white-space: nowrap;
}

.player-private-show-chevron {
    flex-shrink: 0;
    opacity: 0.85;
}

.modal.modal-pshow {
    width: min(920px, 100%);
    max-width: 100%;
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.pshow-modal {
    position: relative;
    padding: 24px 24px 28px;
}

.pshow-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pshow-modal-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pshow-modal-close {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.modal.modal-pshow button.pshow-modal-close {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 400;
    transform: none;
    letter-spacing: 0;
}

.pshow-modal-close:hover,
.modal.modal-pshow button.pshow-modal-close:hover {
    opacity: 1;
    transform: none;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.06);
}

.pshow-modal-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-soft);
    white-space: nowrap;
}

.pshow-modal-stars {
    color: #d4af37;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.pshow-modal-score {
    color: var(--text);
    font-weight: 600;
}

.pshow-modal-score-max {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.pshow-modal-host-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pshow-modal-host-name {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
}

.pshow-modal-lock {
    margin-left: 6px;
    font-size: 14px;
}

.pshow-modal-rating-count {
    color: var(--text-muted);
    font-size: 12px;
}

.pshow-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pshow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.pshow-card.is-exclusive {
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
}

.pshow-card-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
}

.pshow-card.is-exclusive .pshow-card-icon {
    background: linear-gradient(135deg, #f0a030, #d4af37);
    color: #1a1208;
}

.pshow-card-title {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text);
    text-align: center;
}

.pshow-card.is-exclusive .pshow-card-title {
    color: var(--gold-light);
}

.pshow-card-start {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0d78a, #d4af37);
    color: #1a1208;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: opacity 0.2s;
}

.pshow-card-start:hover {
    opacity: 0.9;
}

.pshow-card-min {
    margin: 10px 0 14px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.pshow-card-perks {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.6;
}

.pshow-card-perk {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
}

.pshow-card-perk::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.pshow-card-services {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
}

.pshow-card-services-label {
    margin: 0 0 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.pshow-card-services-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-soft);
    max-height: 72px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .pshow-modal-grid {
        grid-template-columns: 1fr;
    }

    .pshow-modal-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .player-tip-btn { flex: 1 1 calc(33.33% - 6px); }
    .wallet-packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .header-wallet-btn,
    .header-membership-btn {
        width: 100%;
        text-align: center;
    }

    .header-user-tokens {
        width: 100%;
        text-align: right;
    }
}

.modal-ultimate {
    max-width: 420px;
}

.ultimate-modal-head {
    text-align: center;
    margin-bottom: 16px;
}

.ultimate-modal-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5a623, #e85d4c);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ultimate-modal-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.ultimate-modal-sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.ultimate-modal-price-box {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.ultimate-modal-price {
    font-size: 28px;
    font-weight: 800;
    color: #f5c542;
}

.ultimate-modal-price span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.ultimate-modal-balance,
.ultimate-modal-expiry {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.ultimate-modal-features {
    margin: 0 0 16px;
    padding: 12px 14px;
    list-style: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.ultimate-modal-features li {
    padding: 6px 0;
    font-size: 12px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.ultimate-modal-features li:last-child {
    border-bottom: none;
}

.ultimate-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ultimate-modal-msg {
    margin: 10px 0 0;
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
}

.ultimate-modal-msg.is-error {
    color: #f87171;
}

.ultimate-modal-text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: var(--text);
}

.chat-ultimate-enter {
    display: block;
    margin: 10px 0;
    padding: 0;
    border: none;
    background: transparent;
    animation: ultimateEnterPulse 0.8s ease-out;
}

.chat-ultimate-enter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(245, 166, 35, 0.45);
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.12), rgba(232, 93, 76, 0.18), rgba(245, 166, 35, 0.12));
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.2);
    font-size: 12px;
    text-align: center;
}

.chat-ultimate-enter-star {
    color: #f5a623;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(245, 166, 35, 0.8);
}

.chat-ultimate-enter-label {
    color: #f5c542;
    font-weight: 700;
}

.chat-ultimate-enter-name {
    color: #fff;
    font-weight: 800;
}

.chat-ultimate-enter-text {
    color: #f5d9a8;
}

@keyframes ultimateEnterPulse {
    0% { opacity: 0; transform: translateY(8px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
