:root {
    --bg: #0c0d10;
    --panel: #15171c;
    --panel-2: #1c1f26;
    --line: #2a2e37;
    --text: #f4f1ea;
    --muted: #9b9588;
    --gold: #d4af37;
    --gold-2: #f0d06a;
    --ok: #3dd68c;
    --warn: #f0b429;
    --bad: #ff6b6b;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(212, 175, 55, 0.12), transparent 50%),
        radial-gradient(900px 400px at 100% 0%, rgba(61, 214, 140, 0.06), transparent 45%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-frame {
    width: 100%;
    height: 88px;
    overflow: hidden;
    margin: 0 0 18px;
}

.logo-frame-sm {
    width: 220px;
    height: 36px;
    margin: 0;
}

.logo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.auth-wrap {
    min-height: calc(100vh - 40px);
    display: grid;
    place-items: center;
    padding: 24px;
}

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

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

h1, h2, h3 { margin: 0 0 8px; font-weight: 650; }
.lede { color: var(--muted); margin: 0 0 22px; }

.disclaimer {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 62ch;
    margin: -8px 0 22px;
}

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

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

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

input, select, button, .btn {
    font: inherit;
}

input, select {
    width: 100%;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--gold);
    color: #16120a;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover, button:hover { filter: brightness(1.06); text-decoration: none; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-bad { background: #5a1f1f; color: #ffd4d4; }
.btn-ok { background: #163627; color: #baf7d6; }
.btn-warn { background: #3a2c10; color: #ffe3a3; }

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

.actions form { display: inline; }

.flash {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.flash-ok { background: #163627; color: #baf7d6; }
.flash-bad { background: #3a1616; color: #ffd0d0; }
.flash-warn { background: #3a2c10; color: #ffe3a3; }

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-ok { background: #163627; color: var(--ok); }
.badge-warn { background: #3a2c10; color: var(--warn); }
.badge-bad { background: #3a1616; color: var(--bad); }

.muted { color: var(--muted); }
.mt { margin-top: 22px; }
.card-warn { border-color: rgba(240, 180, 41, 0.35); }
.search-bar { margin-bottom: 16px; align-items: end; }
.search-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}
.search-actions .btn,
.search-actions button { height: 44px; }
.stack { display: grid; gap: 14px; }
.forgot {
    margin: 10px 0 0;
    font-size: 13px;
    text-align: left;
}
.forgot a { color: var(--muted); }
.forgot a:hover { color: var(--gold-2); }

.page-home {
    max-width: 1120px;
}

.auth-wrap-short {
    min-height: auto;
    padding: 12px 0 40px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 58%);
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 14px;
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 10px;
}

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

.hero-art {
    padding: 0;
    overflow: hidden;
    min-height: 240px;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    background: #000;
}

.mfx-widget {
    display: flex;
    justify-content: center;
    padding: 16px 16px 0;
}

.mfx-widget img {
    display: block;
    width: 800px;
    max-width: 100%;
    height: auto;
    background: #000;
}

.example-card img,
.account-shot {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
}

.feature-grid,
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.block-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.block-list .card h3 { margin-bottom: 8px; }
.block-list .card p { margin: 0; line-height: 1.5; }

.example-card {
    padding: 0;
    overflow: hidden;
}

.example-card figcaption {
    padding: 14px 16px 16px;
    display: grid;
    gap: 4px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-grid div {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

.stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.stat-grid strong { font-size: 18px; }
.up { color: var(--ok); }
.down { color: var(--bad); }

.equity-chart,
.chart-fallback {
    width: 100%;
    height: auto;
    margin-top: 8px;
    border-radius: 12px;
}

.footnote { margin: 14px 0 0; font-size: 13px; }
code { color: var(--gold-2); }

.site-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.copy {
    color: var(--muted);
    line-height: 1.6;
    max-width: 72ch;
    margin: 0 0 18px;
}

.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 10px;
    padding-bottom: 8px;
}

.jump-nav a {
    color: var(--muted);
    font-size: 13px;
}

.jump-nav a:hover { color: var(--gold-2); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ticks {
    margin: 0;
    padding: 0 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.ticks li { margin: 0 0 6px; }

@media (max-width: 800px) {
    .hero,
    .split { grid-template-columns: 1fr; }
    .hero-art img { max-height: 280px; }
    .row { flex-direction: column; align-items: stretch; }
    .topbar { flex-direction: column; align-items: flex-start; }
}
