:root {
    --bg: #030812;
    --panel: #091528;
    --panel-2: #0d1c32;
    --panel-3: #12233c;
    --line: rgba(148, 163, 184, .14);
    --line-strong: rgba(242, 198, 90, .22);
    --gold: #f2c65a;
    --gold-2: #c99525;
    --gold-soft: #ffe6a3;
    --text: #f4f7fb;
    --muted: #96a6bd;
    --muted-2: #6f8098;
    --green: #34d399;
    --red: #fb7185;
    --blue: #60a5fa;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .22);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .16);
}
* { box-sizing: border-box }
html { color-scheme: dark }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(44, 91, 150, .16), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(242, 198, 90, .08), transparent 30rem),
        var(--bg);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
a { color: var(--gold); text-underline-offset: 3px }
button, input, select, textarea { font: inherit }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 56px }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(10, 21, 38, .94), rgba(5, 13, 26, .96));
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--text); font-weight: 800; letter-spacing: -.45px; text-decoration: none }
.brand strong { font-size: 24px }
.brand span { color: var(--gold-soft); font-size: 11px; letter-spacing: .7px }
.top-actions { display: flex; gap: 9px; flex-wrap: wrap }
.hero { margin: 24px auto 22px; max-width: 760px; text-align: center }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase }
h1 { margin: 10px 0; font-size: clamp(30px, 5.2vw, 50px); line-height: 1.04; letter-spacing: -1.7px }
h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.35px }
h3 { margin: 0 0 7px; font-size: 16px }
p { color: var(--muted); line-height: 1.7 }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(13, 29, 52, .96), rgba(5, 14, 27, .985));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .028), var(--shadow-soft);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.grid > .card { min-height: 100% }
.card:hover { border-color: rgba(242, 198, 90, .22); box-shadow: inset 0 1px 0 rgba(255,255,255,.035), var(--shadow) }
.card.featured { border-color: rgba(242, 198, 90, .42); box-shadow: 0 0 0 1px rgba(242, 198, 90, .06), 0 24px 62px rgba(0,0,0,.28) }
.card.featured::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 72%) }
.price { margin: 18px 0 3px; color: #fff; font-size: 38px; font-weight: 850; letter-spacing: -1px }
.price small { color: var(--muted); font-size: 12px; font-weight: 500 }
.form { display: grid; gap: 14px }
.field { display: grid; gap: 7px }
.field span { color: #a8b6c9; font-size: 10px; font-weight: 750; letter-spacing: .85px; text-transform: uppercase }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    color: var(--text);
    background: rgba(6, 17, 33, .9);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea { min-height: 90px; resize: vertical }
input:hover, select:hover, textarea:hover { border-color: rgba(148, 163, 184, .26) }
input:focus, select:focus, textarea:focus { border-color: rgba(242, 198, 90, .56); background: #08162a; box-shadow: 0 0 0 4px rgba(242, 198, 90, .075) }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: #111827;
    background: linear-gradient(135deg, #f6d77f, var(--gold-2));
    border: 1px solid rgba(255, 231, 166, .58);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(201, 149, 37, .16);
    transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(201, 149, 37, .22) }
.btn:active { transform: translateY(0) scale(.99) }
.btn:disabled { cursor: wait; opacity: .55; transform: none }
.btn.secondary { color: #d6dfeb; background: rgba(13, 29, 52, .72); border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.025) }
.btn.secondary:hover { border-color: rgba(242, 198, 90, .26); color: var(--gold-soft); box-shadow: none }
.btn.danger { color: #fecdd3; background: rgba(251,113,133,.065); border-color: rgba(251,113,133,.26); box-shadow: none }
.btn.danger:hover { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.42); box-shadow: none }
.btn.google { color: #e5edf8; background: #12223b; border-color: #2a3c58; box-shadow: none }
.btn:focus-visible, .tab:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(242,198,90,.7); outline-offset: 3px }
.stack { display: grid; gap: 10px }
.notice { display: none; margin: 14px 0; padding: 12px 14px; border-radius: 12px; color: #cbd5e1; background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.2); line-height: 1.55 }
.notice.show { display: block }
.notice.error { color: #fecdd3; background: rgba(251,113,133,.08); border-color: rgba(251,113,133,.25) }
.notice.success { color: #bbf7d0; background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25) }
.tabs { display: flex; gap: 8px; margin-bottom: 17px }
.tab { flex: 1; padding: 11px 12px; color: var(--muted); background: rgba(6, 17, 33, .62); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease }
.tab:hover { color: #dbe6f4; border-color: rgba(242,198,90,.22) }
.tab.active { color: var(--gold); border-color: rgba(242,198,90,.4); background: rgba(242,198,90,.06) }
.panel[hidden] { display: none }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; color: var(--gold); background: rgba(242,198,90,.08); border: 1px solid rgba(242,198,90,.18); font-size: 9px; font-weight: 800; letter-spacing: .75px; text-transform: uppercase }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(242,198,90,.08) }
.muted { color: var(--muted) }
.small { font-size: 12px }
.legal { max-width: 840px; margin: 0 auto }
.legal section { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,23,42,.82) }
.legal li { margin: 7px 0; color: var(--muted); line-height: 1.55 }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; font-size: 11px }
.divider { height: 1px; margin: 16px 0; background: var(--line) }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px }
.metric { position: relative; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(10, 23, 42, .92), rgba(5, 14, 28, .96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025) }
.metric::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(242,198,90,.58), transparent 76%) }
.metric span { display: block; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .85px; text-transform: uppercase }
.metric strong { display: block; margin-top: 9px; color: #fff; font-size: 21px; letter-spacing: -.45px }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.02) }
.table-wrap::-webkit-scrollbar { height: 10px }
.table-wrap::-webkit-scrollbar-track { background: #06101f }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(242,198,90,.28); border-radius: 999px }
table { width: 100%; min-width: 920px; border-collapse: collapse; background: rgba(6,15,29,.9) }
th, td { padding: 13px 12px; border-bottom: 1px solid rgba(148,163,184,.09); text-align: left; font-size: 11px; line-height: 1.45; vertical-align: top }
th { position: sticky; top: 0; z-index: 1; color: var(--gold-soft); background: #0b1728; font-size: 9px; font-weight: 800; letter-spacing: .85px; text-transform: uppercase }
tbody tr { transition: background .18s ease }
tbody tr:hover { background: rgba(96,165,250,.045) }
.privacy-banner { margin: 0 0 18px; padding: 13px 15px; color: #bfdbfe; background: rgba(96,165,250,.07); border: 1px solid rgba(96,165,250,.2); border-radius: 12px; font-size: 12px }
.admin-gate {
    min-height: 100vh;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 26px 0;
}
.admin-gate[hidden] { display: none }
.admin-gate-card { width: 100%; text-align: center }
.admin-gate-card .form { max-width: 430px; margin: 18px auto 0; text-align: left }
.mfa-qr {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.mfa-qr img { width: min(230px, 100%); height: auto }
section.grid > .card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
section.grid > .card .form,
section.grid > .card .stack {
    margin-top: auto;
}
.hero #accountLine {
    margin-bottom: 12px;
}
.hero .status-pill {
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.legal-links a {
    color: #d8bd68;
    opacity: .86;
    transition: color .2s ease, opacity .2s ease;
}
.legal-links a:hover {
    color: var(--gold-soft);
    opacity: 1;
}
code {
    color: #f8d884;
    background: rgba(242,198,90,.08);
    border: 1px solid rgba(242,198,90,.12);
    border-radius: 6px;
    padding: 1px 5px;
}
input[type="file"] {
    padding: 10px;
}
input[type="checkbox"] {
    accent-color: var(--gold);
}
@media (max-width: 900px) {
    .grid, .grid.two { grid-template-columns: 1fr }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .form[style*="grid-template-columns"] { grid-template-columns: 1fr !important }
}
@media (max-width: 560px) {
    .shell { width: min(100% - 18px, 1180px); padding-top: 10px }
    .topbar { align-items: flex-start; flex-direction: column }
    .top-actions { width: 100% }
    .top-actions .btn { flex: 1 1 140px }
    .hero { margin: 18px auto 18px }
    h1 { font-size: clamp(29px, 11vw, 42px); letter-spacing: -1.1px }
    .card { padding: 18px; border-radius: 18px }
    .stats { grid-template-columns: 1fr }
    .btn { width: 100% }
    .tabs { display: grid; grid-template-columns: 1fr 1fr }
}

/* Premium typography calibration: use weight and uppercase only where it helps. */
body {
    font-weight: 400;
    line-height: 1.55;
}
.topbar {
    border-color: rgba(148,163,184,.14);
    border-radius: 24px;
}
.brand {
    font-weight: 650;
    letter-spacing: -.25px;
}
.brand strong {
    font-weight: 650;
}
.brand span {
    font-weight: 560;
    letter-spacing: .28px;
    text-transform: none;
}
h1 {
    font-weight: 650;
    letter-spacing: -1.15px;
}
h2,
h3 {
    font-weight: 580;
}
.eyebrow,
.field span,
.btn,
.status-pill,
.metric span,
th,
.tab {
    font-weight: 560;
    letter-spacing: .35px;
    text-transform: none;
}
.eyebrow {
    font-size: 11px;
}
.btn {
    min-height: 44px;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: .22px;
}
.tab {
    font-size: 14px;
}
.price {
    font-weight: 620;
    letter-spacing: -.7px;
}
.metric strong {
    font-weight: 560;
}
.status-pill {
    font-size: 10px;
    padding: 6px 11px;
}
.card,
.metric,
.table-wrap {
    border-color: rgba(148,163,184,.12);
}
input,
select,
textarea {
    font-weight: 400;
}

/* Stock Venture reference layer: lighter display type, cleaner navy and gold, calmer labels. */
:root {
    --sv-navy: #141d31;
    --sv-navy-soft: #1a2640;
    --sv-paper: #f7f4ee;
    --sv-ink: #18243b;
    --sv-copy: #66748b;
    --sv-gold: #d8ac2f;
    --sv-gold-soft: #e8ca68;
    --sv-display: "Segoe UI Light", "Helvetica Neue", "Aptos Display", "Aptos", Arial, sans-serif;
    --sv-body: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body {
    font-family: var(--sv-body);
    color: #eef2f8;
    background:
        radial-gradient(circle at 14% 0%, rgba(216, 172, 47, .08), transparent 28rem),
        radial-gradient(circle at 100% 10%, rgba(255,255,255,.04), transparent 32rem),
        linear-gradient(180deg, #0f1728 0%, #091325 100%);
}
.brand,
.brand strong,
h1,
h2,
h3,
.price,
.metric strong {
    font-family: var(--sv-display);
}
.brand {
    font-weight: 400;
    letter-spacing: -.03em;
}
.brand strong {
    font-size: 29px;
    font-weight: 400;
    letter-spacing: -.04em;
}
.brand span {
    color: var(--sv-gold);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.topbar {
    background: linear-gradient(180deg, rgba(20,29,49,.96), rgba(15,22,38,.98));
    border-color: rgba(216,172,47,.14);
    box-shadow: inset 0 -1px 0 rgba(216,172,47,.16), var(--shadow-soft);
}
h1 {
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.06;
}
h2 {
    font-weight: 350;
    letter-spacing: -.02em;
}
h3 {
    font-weight: 400;
}
p,
.muted,
.small {
    color: #9eacc0;
}
.eyebrow,
.field span,
.metric span,
.status-pill,
th {
    color: var(--sv-gold-soft);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.btn {
    min-height: 46px;
    padding: 10px 18px;
    background: var(--sv-gold);
    border-color: var(--sv-gold);
    border-radius: 3px;
    color: #121b2f;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: none;
}
.btn:hover {
    filter: none;
    background: #e3bb49;
    border-color: #e3bb49;
    box-shadow: 0 10px 24px rgba(216,172,47,.18);
}
.btn.secondary,
.btn.google {
    background: rgba(21,31,51,.92);
    border-color: rgba(255,255,255,.12);
    color: #f4f7fb;
}
.btn.secondary:hover,
.btn.google:hover {
    background: #202d48;
    border-color: rgba(216,172,47,.22);
    color: #ffffff;
}
.btn.danger {
    background: rgba(152, 31, 49, .14);
    border-color: rgba(251,113,133,.2);
    color: #ffc1c9;
}
.btn.danger:hover {
    background: rgba(152, 31, 49, .22);
}
.tab {
    font-weight: 500;
    letter-spacing: .02em;
}
.price {
    color: #fff8e3;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -.045em;
}
.price small {
    color: #93a1b6;
    font-weight: 400;
}
.status-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(216,172,47,.08);
    border-color: rgba(216,172,47,.18);
}
.card,
.metric,
.table-wrap {
    border-color: rgba(148,163,184,.11);
}
/* Luxury rebalance: calmer labels, subtler gold, and a lightweight market accent. */
:root {
    --sv-gold-rich: #c99a2e;
    --sv-gold-muted: #b49d69;
    --sv-label: #8e9aaf;
}
body {
    background:
        radial-gradient(circle at 14% 0%, rgba(201,154,46,.04), transparent 28rem),
        radial-gradient(circle at 100% 10%, rgba(72,105,151,.06), transparent 32rem),
        linear-gradient(180deg, #0f1728 0%, #091325 100%);
}
.topbar {
    position: relative;
    overflow: hidden;
    border-color: rgba(201,154,46,.1);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.04), var(--shadow-soft);
}
.topbar::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -6px;
    width: min(240px, 30vw);
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 60' fill='none'%3E%3Cpath d='M0 46L28 42L52 44L86 30L110 34L144 20L176 29L206 14L232 20L260 10' stroke='%2334d399' stroke-opacity='.14' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 46L28 42L52 44L86 30L110 34L144 20L176 29L206 14L232 20L260 10' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 100% 100% / contain;
    opacity: .14;
    pointer-events: none;
    animation: svTopbarFloat 8s ease-in-out infinite;
}
@keyframes svTopbarFloat {
    0%, 100% { transform: translateY(0); opacity: .12; }
    50% { transform: translateY(-4px); opacity: .2; }
}
.brand span,
.eyebrow {
    color: var(--sv-gold-rich);
}
.field span,
.metric span,
th {
    color: var(--sv-label);
}
.status-pill {
    color: #c7d0dc;
    background: rgba(148,163,184,.08);
    border-color: rgba(148,163,184,.16);
}
