:root {
    --color-bg: #03050a;
    --color-bg-alt: #0a0f1b;
    --color-panel: #101726;
    --color-gold: #f6cf74;
    --color-gold-strong: #d79a32;
    --color-red: #ff5f6d;
    --color-emerald: #2dd4bf;
    --color-text: #f5f8ff;
    --color-text-muted: #9ea6c9;
    --color-border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 25px 60px rgba(0, 0, 0, 0.55);
    --shadow-strong: 0 45px 90px rgba(0, 0, 0, 0.75);
    --radius-card: 22px;
    --radius-button: 16px;
    --radius-input: 14px;
    /* legacy vars mapping */
    --brand-dark: var(--color-bg);
    --brand-panel: rgba(17, 26, 44, 0.95);
    --brand-card-border: var(--color-border);
    --brand-accent: var(--color-gold);
    --brand-highlight: #1d3e83;
    --text-primary: var(--color-text);
    --text-muted: var(--color-text-muted);
    --success: var(--color-emerald);
    --danger: var(--color-red);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--text-primary);
    background: var(--brand-dark);
    min-height: 100vh;
}

.guest-body {
    background: radial-gradient(circle at top, rgba(14, 116, 144, 0.2), transparent 65%),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.app-body {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(180deg, #020617 0%, #050816 60%, #01040f 100%);
    overflow-x: hidden;
}

.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160" fill="none"%3E%3Cpath d="M0 159.5H159.5V0" stroke="white" stroke-opacity="0.35" stroke-width="0.5"/%3E%3C/svg%3E');
    mix-blend-mode: screen;
}

body[data-theme="light"] {
    --brand-dark: #f6f7fb;
    --brand-panel: rgba(255, 255, 255, 0.95);
    --brand-card-border: rgba(15, 23, 42, 0.1);
    --text-primary: #0f172a;
    --text-muted: #4b5563;
    background: #f5f6fb;
    color: #0f172a;
}

.auth-shell {
    width: min(100%, 420px);
}

.brand-card,
.card {
    background: var(--brand-panel);
    border-radius: 24px;
    border: 1px solid var(--brand-card-border);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.brand-card {
    padding: 2.5rem;
}

.logo-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}

.logo-mark {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.65);
    border-radius: 16px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--brand-accent);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
}

.logo-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    text-transform: uppercase;
}

h1, h2, h3 {
    margin-top: 0;
    color: #f8fafc;
}

p.lead {
    color: var(--text-muted);
    margin-top: 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

label span,
.form-group span {
    font-size: 0.95rem;
    color: #cbd5f5;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-highlight);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

textarea {
    resize: vertical;
}

button,
.btn {
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

button:active,
.btn:active {
    transform: scale(0.97);
}

button:disabled,
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(120deg, var(--color-gold), var(--color-gold-strong));
    color: #05070f;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-primary);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
}

.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.captcha-display {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px dashed rgba(248, 250, 252, 0.25);
}

.input-sm {
    width: 140px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.choice-row > span {
    flex-basis: 100%;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.choice-pill input {
    accent-color: var(--brand-accent);
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.field-flex {
    flex: 1;
    min-width: 240px;
}

.status-banner {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.error-text {
    color: var(--danger);
    font-size: 0.9rem;
}

.app-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--brand-card-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-header nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.app-header nav a.active {
    color: var(--brand-accent);
}

.glass-layout {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    line-height: 1.1;
    gap: 0.6rem;
}

.brand-mark strong {
    font-size: 1rem;
    margin: 0;
}

.brand-mark span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-icon-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-form {
    margin: 0;
}

.nav-icon-live {
    background: linear-gradient(120deg, #22d3ee, #6366f1);
    color: #0f172a;
}

.nav-icon-exit {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.5);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ec4899);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    margin-right: 0.5rem;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
}

.nav-subtext {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.nav-bubble,
.nav-customize {
    position: relative;
}

.nav-bubble summary,
.nav-customize summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    color: var(--text-muted);
}

.nav-bubble[open] summary,
.nav-customize[open] summary {
    border-color: rgba(99, 102, 241, 0.6);
    color: #f8fafc;
}

.nav-bubble-panel,
.nav-customize-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-soft);
    z-index: 5;
}

.nav-bubble-panel ul {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
}

.nav-customize-panel label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.nav-icon-serial[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

.nav-icon.copied {
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.5);
}

.app-header--compact {
    padding: 0.4rem 0.75rem;
}

.app-header--compact .brand-mark span {
    display: none;
}

.app-main {
    padding: 1.25rem 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.prize-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prize-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1120;
}

.prize-media img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.prize-tier {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #facc15;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.prize-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prize-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.prize-sheet {
    margin-top: 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1rem;
}

.prize-sheet summary {
    cursor: pointer;
    font-weight: 600;
    color: #f8fafc;
    list-style: none;
}

.prize-sheet summary::-webkit-details-marker {
    display: none;
}

.prize-sheet p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.prize-card a {
    color: var(--brand-accent);
    text-decoration: none;
}

.notice {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.notice a {
    color: var(--brand-accent);
    text-decoration: none;
}

.muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.notice.danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fecdd3;
}

.notice.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
}

table td {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.75rem 0.25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.status-pill.success {
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.4);
}

.status-pill.warning {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
}

.status-pill.neutral {
    color: var(--text-muted);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 0.6rem;
    }

    .glass-layout {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
        padding: 0.85rem 0.75rem;
    }

    .nav-icon-row {
        width: 100%;
    }

    .nav-icon {
        flex: 1;
        border-radius: 12px;
    }

    .nav-bubble {
        align-self: flex-end;
    }

    .nav-left,
    .nav-right,
    .nav-center {
        width: 100%;
    }

    .nav-right,
    .nav-left {
        justify-content: space-between;
    }

    .app-main {
        padding: 0.85rem 0.75rem 1.5rem;
    }

    .card,
    .brand-card {
        padding: 1rem;
    }
}


.btn-secondary {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.25);
    color: #f8fafc;
}

.btn-live {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.brand-lockup img {
    width: min(100%, 180px);
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.brand-text {
    text-align: center;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.brand-tagline {
    color: var(--text-muted);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.25), transparent 55%);
    transform: rotate(15deg);
    z-index: 0;
}

.hero-card::after {
    inset: 20% -60% auto auto;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 65%);
    transform: rotate(-25deg);
}

.hero-immersive {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-headline h2 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    margin: 0 0 0.35rem;
}

.hero-headline p {
    margin: 0;
    color: var(--text-muted);
    max-width: 48ch;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.hero-countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    position: relative;
}

.hero-ring::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(248, 250, 252, 0.8), rgba(59, 130, 246, 0.6), rgba(248, 250, 252, 0.8));
    opacity: 0.5;
    z-index: -1;
}

.hero-ring span {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
}

.hero-meta-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.hero-meta-list .meta-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.hero-meta-list .meta-value {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    color: #f8fafc;
}

.btn-live-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #0f172a;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.35);
}

.hero-text h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    margin-bottom: 0.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.hero-cta .btn-live-primary {
    flex: 1;
    min-width: 220px;
}

.hero-cta .hero-subtext {
    flex: 1;
    margin: 0;
    text-align: right;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--brand-accent);
    font-size: 0.75rem;
}

.bind-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.bind-form .form-group {
    flex: 1;
    min-width: 240px;
}

.notice.stacked {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.notice.neutral {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5f5;
}

.prize-card h4 {
    margin: 0 0 0.4rem;
}

.live-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: radial-gradient(circle at right, rgba(99, 102, 241, 0.3), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.live-banner h3 {
    margin: 0.15rem 0 0;
}

@media (max-width: 768px) {
    .live-banner {
        position: sticky;
        bottom: 1rem;
        z-index: 3;
    }
}

.live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.steps-list li {
    display: flex;
    gap: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.steps-list li span {
    font-weight: 700;
    color: var(--brand-accent);
    font-size: 1.1rem;
}

.steps-list p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .guest-body {
        padding: 2.5rem 1rem;
    }

    .auth-shell {
        flex-direction: column;
    }

    .brand-card,
    .card {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .app-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-meta-list {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-countdown {
        width: 100%;
        justify-content: flex-start;
    }

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

    .hero-cta .hero-subtext {
        text-align: left;
    }

    .bind-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}

.step-card .step-label,
.bind-card .step-label,
.live-card .step-label {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.claimed-code {
    display: inline-flex;
    flex-direction: column;
    border: 1px dashed rgba(251, 191, 36, 0.6);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: rgba(251, 191, 36, 0.08);
    color: var(--brand-accent);
    max-width: 320px;
}

.claimed-code span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.claimed-code strong {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
}

.status-card {
    padding: 0;
}

.status-card .status-banner {
    border-radius: 24px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-brand img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.hero-brand strong {
    font-size: 1.2rem;
}

.hero-brand span {
    color: var(--text-muted);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
}

.hero-steps {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-steps li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-steps li span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(248, 250, 252, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #f8fafc;
}

.brand-slogan {
    color: var(--color-text);
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}

.brand-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--color-text-muted);
}

.brand-highlights li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
    display: inline-block;
    margin-right: 0.5rem;
}

.form-card .eyebrow {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.form-card h1 {
    margin: 0;
}

.brand-highlights li {
    display: flex;
    align-items: center;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.35);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    background: rgba(15, 23, 42, 0.45);
}

.hero-announcements {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    backdrop-filter: blur(18px);
}

.hero-announcements-list {
    max-height: 140px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.hero-announcements ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: var(--color-text-muted);
}

.hero-announcements ul li {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 16px 4px;
    padding: 0.65rem 0.85rem 0.65rem 1.75rem;
    position: relative;
    font-size: 0.9rem;
}

.hero-announcements ul li::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0.85rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.mobile-stepper {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.stepper-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.stepper-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #c084fc);
    transition: width 0.4s ease;
}

.stepper-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stepper-labels span.active {
    color: #f8fafc;
}

.bind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.prize-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
}

.prize-carousel::-webkit-scrollbar {
    display: none;
}

.prize-card {
    scroll-snap-align: center;
    min-width: 260px;
}

@media (min-width: 960px) {
    .prize-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        overflow: visible;
    }

    .prize-card {
        min-width: 0;
    }
}

.prize-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 0.5rem;
}

.prize-tier {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #facc15;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.prize-info h4 {
    margin: 0 0 0.25rem;
}

.prize-stock {
    margin-top: 1rem;
}

.prize-stock span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stock-track {
    margin-top: 0.35rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-strong));
    border-radius: inherit;
}

.record-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: -1rem;
    width: 2px;
    background: rgba(148, 163, 184, 0.35);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.6);
    position: absolute;
    left: 0;
    top: 4px;
}

.timeline-time {
    margin: 0;
    font-weight: 600;
}

.timeline-code {
    margin: 0.2rem 0 0.35rem;
    color: var(--text-muted);
}

.timeline-status {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.timeline-item.timeline-approved .timeline-dot {
    background: var(--success);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.65);
}

.static-body {
    background: linear-gradient(180deg, #02040b 0%, #040812 100%);
    min-height: 100vh;
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    color: var(--color-text);
}

.quick-actions {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    z-index: 10;
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-actions.active .quick-actions-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quick-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #0f172a;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.45);
}

.quick-action {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    color: #f8fafc;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quick-action.copied {
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.5);
}

@media (max-width: 640px) {
    .quick-actions {
        right: 1rem;
        bottom: 1rem;
    }
}

.static-header,
.static-footer {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
}

.static-header nav {
    display: flex;
    gap: 1.5rem;
}

.static-header nav a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.static-header nav a.active {
    color: var(--color-gold);
}

.brand-mini {
    display: flex;
    flex-direction: column;
}

.brand-mini .brand-mark {
    font-weight: 700;
    letter-spacing: 0.3em;
}

.static-main {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.rule-hero {
    margin-bottom: 2rem;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rule-section {
    background: var(--color-panel);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.rule-section ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--color-text-muted);
}

.result-hero {
    margin-bottom: 2rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.result-card,
.result-steps {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.result-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    color: var(--color-text-muted);
}

.result-steps ol {
    padding-left: 1.2rem;
    color: var(--color-text-muted);
}

.share-block {
    margin-top: 1.5rem;
}

.share-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .static-header,
    .static-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.status-chip.success { background: rgba(71, 214, 162, 0.12); border-color: rgba(71, 214, 162, 0.4); color: var(--color-emerald); }
.status-chip.neutral { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: var(--color-text-muted); }
.status-chip.warning { background: rgba(243, 156, 18, 0.15); border-color: rgba(243, 156, 18, 0.4); color: var(--color-gold); }

.auth-app {
    width: min(390px, 100%);
    background: linear-gradient(180deg, rgba(3,5,10,0.8), rgba(5,8,19,0.95));
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-strong);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-hero {
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(246,207,116,0.15), rgba(3,5,10,0.9));
    border: 1px solid rgba(246,207,116,0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-logo img {
    width: 56px;
    height: 56px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.
.app-form-card {
    background: var(--color-bg-alt);
    border-radius: 28px;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.app-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: rgba(5,8,13,0.85);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem;
    text-align: center;
}

.app-bottom-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.app-bottom-nav a.active {
    color: var(--color-gold);
}

@media (min-width: 900px) {
    .auth-app {
        width: min(900px, 100%);
        flex-direction: row;
        padding: 2rem;
    }
    .app-hero {
        flex: 1;
        height: 100%;
    }
    .app-form-card {
        flex: 1;
    }
}

.live-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.countdown-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    text-align: right;
}

.countdown-pill span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text);
}

.countdown-pill small {
    font-size: 0.55rem;
    color: var(--color-text-muted);
}


.split-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem;
}

.info-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.info-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (min-width: 900px) {
    .split-wrapper {
        flex-direction: row;
        gap: 1rem;
    }
    .info-card,
    .app-form-card {
        flex: 1;
    }
}
/* --- Capsule navigation overrides (Mar 5) --- */
.capsule-layout {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.9rem 1.25rem;
    background: transparent;
    border-bottom: none;
}

.nav-headline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-title strong {
    margin: 0;
    font-size: 1rem;
}

.nav-title span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-pill-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nav-pill,
.nav-pill summary {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.65rem 1.2rem;
    min-width: 96px;
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
}

.nav-pill small {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.nav-pill-live {
    background: linear-gradient(120deg, #22d3ee, #6366f1);
    color: #0f172a;
    border: none;
}

.nav-pill-danger {
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.nav-pill-serial[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

.nav-pill.copied {
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.5);
}

.nav-customize,
.nav-bubble {
    position: relative;
    width: fit-content;
}

.nav-customize summary,
.nav-bubble summary {
    cursor: pointer;
    list-style: none;
}

.nav-customize[open] summary,
.nav-bubble[open] summary {
    border-color: rgba(99, 102, 241, 0.6);
}

.nav-customize-panel,
.nav-bubble-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-soft);
    z-index: 15;
}

.nav-bubble-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-muted);
}

.theme-toggle {
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .capsule-layout {
        padding: 0.85rem 0.8rem;
    }
    .nav-pill-row {
        flex-direction: column;
        gap: 0.4rem;
    }
    .nav-pill,
    .nav-pill summary {
        width: 100%;
    }
    .nav-customize,
    .nav-bubble {
        width: 100%;
    }
}

.app-header--compact {
    padding: 0.45rem 0.8rem;
}

.app-header--compact .nav-title span {
    display: none;
}
.nav-headline-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.nav-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-primary);
}

.nav-toggle.expanded .nav-toggle-icon {
    transform: rotate(180deg);
}

.capsule-layout.is-collapsed .nav-pill-row .nav-pill:not(.nav-pill-live) {
    display: none;
}

.capsule-layout.is-collapsed .nav-customize,
.capsule-layout.is-collapsed .nav-bubble {
    display: none;
}
.capsule-layout.is-collapsed .nav-pill-row {
    display: none;
}
.nav-headline {
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo strong {
    font-size: 1rem;
    letter-spacing: 0.2em;
}

.nav-logo span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-headline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-user-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-site-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.18em;
}

.nav-tagline {
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.65);
    letter-spacing: 0.3em;
}
.nav-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand-cluster {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.nav-logo-card {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.6), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.nav-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.nav-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: 0.25em;
}

.nav-brand-line,
.nav-brand-schedule {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: rgba(226, 232, 240, 0.75);
}

.nav-board-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #f8fafc;
}

.nav-menu-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-primary);
}

.nav-pill-lane {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nav-pill-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.nav-pill-stack details {
    width: min(360px, 100%);
}

@media (max-width: 768px) {
    .nav-board {
        padding: 1rem;
    }
    .nav-board-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-pill-lane {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-pill {
        width: 100%;
    }
}
.nav-board--compact .nav-pill-stack {
    display: none;
}
.nav-fixed {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-fixed-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 320px;
}

.nav-brand-line {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-brand-line strong {
    font-size: 1rem;
    letter-spacing: 0.25em;
}

.nav-brand-line span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-fixed-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nav-fixed-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex: 1;
}

.nav-fixed-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-fixed-right details {
    width: 180px;
}

@media (max-width: 1024px) {
    .nav-fixed {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .nav-fixed-center {
        width: 100%;
        flex-wrap: wrap;
    }
    .nav-fixed-right {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    .nav-fixed-right details {
        width: auto;
        flex: 1;
    }
}
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: rgba(9, 11, 17, 0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.top-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.top-nav__logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.top-nav__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
}

.top-nav__title {
    font-size: 1rem;
    letter-spacing: 0.28em;
}

.top-nav__subtitle,
.top-nav__schedule {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.top-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-nav__user {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.top-nav__row--controls {
    align-items: flex-start;
}

.top-nav__buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex: 1;
}

.top-nav__drawer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-pill,
.nav-pill summary {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.65rem 1.3rem;
    min-width: 90px;
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
}

.nav-pill small {
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.nav-pill-live {
    background: linear-gradient(120deg, #22d3ee, #6366f1);
    color: #0f172a;
    border: none;
}

.nav-pill-danger {
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

@media (max-width: 1024px) {
    .top-nav__row {
        flex-direction: column;
        align-items: stretch;
    }
    .top-nav__buttons {
        width: 100%;
    }
    .top-nav__drawer {
        width: 100%;
        flex-direction: row;
    }
    .top-nav__drawer details {
        flex: 1;
    }
}
.nav-pill-form {
    margin: 0;
}
.top-nav__drawer details {
    width: 180px;
}
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.2rem;
    background: rgba(5, 7, 12, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-bar__brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 220px;
}

.nav-bar__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.nav-bar__title {
    font-size: 0.95rem;
    letter-spacing: 0.25em;
}

.nav-bar__subtitle,
.nav-bar__schedule {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.nav-bar__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.nav-bar__extras {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 230px;
    justify-content: flex-end;
}

.nav-chip,
.nav-chip summary {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
}

.nav-chip small {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.nav-chip--live {
    background: linear-gradient(120deg, #22d3ee, #6366f1);
    color: #0f172a;
    border: none;
}

.nav-chip--danger {
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.nav-chip--ghost,
.nav-chip--ghost summary {
    background: transparent;
    border-style: dashed;
}

.nav-chip-form {
    margin: 0;
}

.nav-bar__user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.3rem 0.9rem;
}

@media (max-width: 960px) {
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-bar__actions,
    .nav-bar__extras {
        justify-content: center;
        flex-wrap: wrap;
    }
}
.nav-btn,
.nav-btn summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-weight: 600;
    letter-spacing: 0.18em;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
}

.nav-btn__label {
    font-size: 0.78rem;
}

.nav-btn__meta {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.nav-btn--live {
    background: linear-gradient(120deg, #22d3ee, #6366f1);
    color: #0f172a;
    border: none;
}

.nav-btn--serial[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

.nav-btn--ghost {
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
}

.nav-btn-form {
    margin: 0;
}
