:root {
    color-scheme: dark;
    --bg: #07090e;
    --panel: #0c1017;
    --panel2: #111722;
    --line: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --brand: #38bdf8;
    --brand2: #0284c7;
    --danger: #fb7185;
    --warning: #f59e0b;
    --ok: #34d399
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(circle at 18% 0, rgba(14, 165, 233, .07) 0, transparent 31%), var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
    min-height: 100vh
}

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

button,
input {
    font: inherit
}

.shell {
    width: min(1280px, calc(100% - 32px));
    margin: auto
}

.nav-item-active {
    background: linear-gradient(180deg, rgba(14, 165, 233, .16), rgba(14, 165, 233, .07));
    border: 1px solid rgba(56, 189, 248, .3);
    color: #e0f2fe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 22px rgba(14, 165, 233, .06)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--panel2);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s
}

.btn:hover {
    border-color: #334155;
    background: #172030;
    transform: translateY(-1px)
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border-color: transparent;
    color: #020617;
    box-shadow: 0 10px 26px rgba(14, 165, 233, .14)
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7dd3fc, var(--brand));
    border-color: transparent
}

.btn-line {
    background: #06c755;
    border-color: #06c755;
    color: white
}

.btn-line:hover {
    background: #00b94e;
    border-color: #00b94e
}

.btn-danger {
    border-color: rgba(244, 63, 94, .35);
    color: #fda4af;
    background: rgba(136, 19, 55, .18)
}

.btn-danger:hover {
    border-color: rgba(244, 63, 94, .55);
    background: rgba(136, 19, 55, .3)
}

.btn-block {
    width: 100%
}

main {
    padding: 52px 0 80px
}

.eyebrow {
    color: var(--brand);
    font: 700 11px/1 "JetBrains Mono", monospace;
    letter-spacing: .16em;
    text-transform: uppercase
}

.title {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.025em
}

.lead {
    color: var(--muted);
    line-height: 1.75;
    max-width: 700px
}

.card {
    background: linear-gradient(180deg, rgba(17, 23, 34, .82), rgba(12, 16, 23, .96));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
    backdrop-filter: blur(12px)
}

.grid {
    display: grid;
    gap: 18px
}

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

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

.flash {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid;
    font-size: 14px
}

.flash-ok {
    color: #a7f3d0;
    background: rgba(6, 78, 59, .28);
    border-color: rgba(52, 211, 153, .3)
}

.flash-error {
    color: #fecdd3;
    background: rgba(136, 19, 55, .22);
    border-color: rgba(251, 113, 133, .3)
}

.muted {
    color: var(--muted)
}

.price {
    font: 800 38px/1.1 "Plus Jakarta Sans", sans-serif;
    margin: 22px 0 4px;
    color: #f8fafc
}

.price small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500
}

.list {
    list-style: none;
    padding: 0;
    margin: 22px 0
}

.list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    color: #cbd5e1;
    font-size: 14px
}

.list li:before {
    content: "✓";
    color: var(--brand);
    font-weight: 900;
    margin-right: 10px
}

.plan-featured {
    border-color: rgba(56, 189, 248, .38);
    box-shadow: 0 22px 70px rgba(14, 165, 233, .1);
    position: relative
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, .22);
    font: 700 11px/1.2 "JetBrains Mono", monospace
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.stack {
    display: grid;
    gap: 18px
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted)
}

.dot-on {
    background: var(--ok);
    box-shadow: 0 0 12px rgba(52, 211, 153, .8)
}

.token {
    font-family: "JetBrains Mono", monospace;
    background: #070b11;
    border: 1px solid #1e3a4d;
    color: #bae6fd;
    border-radius: 10px;
    padding: 14px;
    overflow-wrap: anywhere;
    line-height: 1.65
}

.alert {
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, .35);
    background: rgba(120, 53, 15, .2);
    border-radius: 10px;
    color: #fde68a
}

.meta {
    font-size: 13px;
    color: var(--muted)
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 14px
}

th {
    color: var(--muted);
    font-weight: 600
}

.empty {
    padding: 28px;
    text-align: center;
    color: var(--muted)
}

.login-wrap {
    max-width: 490px;
    margin: 20px auto
}

.login-actions {
    display: grid;
    gap: 12px;
    margin-top: 26px
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font: 500 11px/1 "JetBrains Mono", monospace;
    margin: 10px 0
}

.divider:before,
.divider:after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1
}

.security-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65
}

.test-warning {
    margin-top: 16px;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, .3);
    background: rgba(120, 53, 15, .18);
    color: #fde68a;
    font-size: 13px;
    line-height: 1.6
}

body.light-ui {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #fff;
    --panel2: #f8fafc;
    --line: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --brand: #0284c7;
    --brand2: #0369a1;
    background: radial-gradient(circle at 18% 0, rgba(14, 165, 233, .08) 0, transparent 30%), var(--bg);
    color: var(--text)
}

body.light-ui .nav-item-active {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
    box-shadow: none
}

body.light-ui .card {
    background: rgba(255, 255, 255, .97);
    border-color: #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07)
}

body.light-ui .btn {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155
}

body.light-ui .btn:hover {
    background: #f8fafc;
    border-color: #94a3b8
}

body.light-ui .btn-line {
    background: #06c755;
    border-color: #06c755;
    color: #fff
}

body.light-ui .btn-line:hover {
    background: #00b94e;
    border-color: #00b94e
}

body.light-ui .btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(14, 165, 233, .18)
}

body.light-ui .btn-primary:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: transparent
}

body.light-ui .btn-danger {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff1f2
}

body.light-ui .btn-danger:hover {
    border-color: #fda4af;
    background: #ffe4e6
}

body.light-ui .price {
    color: #0f172a
}

body.light-ui .list li {
    border-color: #e2e8f0;
    color: #334155
}

body.light-ui .plan-featured {
    border-color: #7dd3fc;
    box-shadow: 0 18px 46px rgba(14, 165, 233, .11)
}

body.light-ui .badge {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd
}

body.light-ui .status {
    color: #475569
}

body.light-ui .token {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #075985
}

body.light-ui .alert {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e
}

body.light-ui th,
body.light-ui td {
    border-color: #e2e8f0
}

body.light-ui .flash-ok {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0
}

body.light-ui .flash-error {
    color: #be123c;
    background: #fff1f2;
    border-color: #fecdd3
}

.offer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px
}

.offer-price-card {
    display: flex;
    flex-direction: column;
    padding: 32px
}

.offer-price-card h2 {
    font-weight: 800;
    font-size: 22px
}

.offer-price-card .price {
    font-size: clamp(40px, 5vw, 58px);
    letter-spacing: -.04em
}

.daily-price {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75
}

.daily-price strong {
    color: var(--brand)
}

.offer-actions {
    margin-top: auto;
    padding-top: 18px
}

.offer-actions .meta {
    margin-top: 12px;
    line-height: 1.7
}

.seat-card h2 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6
}

.seat-number {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -.05em;
    margin: 16px 0
}

.seat-number span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted)
}

.seat-meter {
    appearance: none;
    display: block;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
    background: #e2e8f0;
    color: #0284c7
}

.seat-meter::-webkit-progress-bar {
    background: #e2e8f0
}

.seat-meter::-webkit-progress-value {
    background: #0284c7
}

.seat-meter::-moz-progress-bar {
    background: #0284c7
}

.seat-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0
}

.seat-stats dt {
    font-size: 12px;
    color: var(--muted)
}

.seat-stats dd {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 800
}

.seat-rules {
    padding-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85
}

.seat-rules li+li {
    margin-top: 10px
}

.offer-disclaimer {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted)
}

.offer-disclaimer strong {
    color: var(--text)
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.membership-offer .muted {
    line-height: 1.8
}

.membership-offer h2 {
    font-weight: 700
}

 html:not(.dark) {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9
}

html:not(.dark)::-webkit-scrollbar , html:not(.dark) ::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

html:not(.dark)::-webkit-scrollbar-track , html:not(.dark) ::-webkit-scrollbar-track {
    background: #f1f5f9
}

html:not(.dark)::-webkit-scrollbar-thumb , html:not(.dark) ::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border: 2px solid #f1f5f9;
    border-radius: 999px
}

html:not(.dark)::-webkit-scrollbar-thumb:hover , html:not(.dark) ::-webkit-scrollbar-thumb:hover {
    background: #64748b
}

 @media(max-width:780px) {

    .grid-3,
    .grid-2,
    .offer-grid {
        grid-template-columns: 1fr
    }

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

    main {
        padding-top: 36px
    }

    .card {
        padding: 20px
    }

    table {
        display: block;
        overflow: auto
    }

    .seat-stats {
        gap: 8px
    }

    .seat-stats dd {
        font-size: 16px
    }
}

.broker-highlight { color: #ff0000; }
