/* RICH FUND — design tokens from the platform design document */
:root {
  --navy: #0b1f45;
  --navy-2: #13306a;
  --green: #17a34a;
  --green-2: #128a3e;
  --green-soft: #e7f6ed;
  --red: #d92d20;
  --red-soft: #fdecea;
  --blue: #2563eb;
  --amber: #f59e0b;
  --bg: #ffffff;
  --bg-2: #f3f7fc;
  --card: #ffffff;
  --text: #0b1f45;
  --text-2: #475569;
  --muted: #7a8699;
  --border: #e3e9f2;
  --shadow: 0 8px 24px rgba(11, 31, 69, .06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --up: #17a34a;
  --down: #d92d20;
  color-scheme: light;
}

/* Pro mode: dark, green-accent theme */
body.pro {
  --navy: #22c55e;
  --navy-2: #16a34a;
  --green: #22c55e;
  --green-2: #16a34a;
  --green-soft: rgba(34, 197, 94, .14);
  --red-soft: rgba(217, 45, 32, .16);
  --bg: #050a07;
  --bg-2: #0b130e;
  --card: #0d1711;
  --text: #f1f5f2;
  --text-2: #b6c3bb;
  --muted: #7d8c83;
  --border: #1c2a21;
  --shadow: none;
  --up: #22c55e;
  --down: #f05252;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Ticker ---------- */
.ticker { background: #0b1f45; color: #fff; overflow: hidden; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
body.pro .ticker { background: #000; border-bottom: 1px solid var(--border); }
.ticker__track { display: inline-flex; gap: 28px; padding: 7px 0; animation: ticker 60s linear infinite; }
.ticker__item b { font-weight: 500; margin: 0 4px; }
.ticker .up { color: #4ade80; }
.ticker .down { color: #f87171; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
body.pro .brand img { background: #fff; border-radius: 8px; padding: 2px 6px; }
.nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 7px 11px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13.5px; white-space: nowrap; color: var(--text); }
.nav a:hover { background: var(--bg-2); }
.nav a.active { background: #0b1f45; color: #fff; }
body.pro .nav a.active { background: var(--green); color: #04170b; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; font-size: 18px; width: 38px; height: 38px; }

.pro-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); cursor: pointer; font-weight: 800; font-size: 13px; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(16px); }
button.switch { border: 0; padding: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
body.pro .btn { color: #04170b; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--light { background: var(--card); color: var(--text); border-color: var(--border); }
body.pro .btn--light { color: var(--text); }
.btn--light:hover { background: var(--bg-2); border-color: var(--border); }
.btn--dark { background: #0b1f45; border-color: #0b1f45; color: #fff; }
.btn--dark:hover { background: #13306a; border-color: #13306a; }
body.pro .btn--dark { background: #1a2a20; border-color: #1a2a20; color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff !important; }
.btn--red:hover { background: #b42318; border-color: #b42318; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.active { background: #0b1f45; border-color: #0b1f45; color: #fff; }
body.pro .chip.active { background: var(--green); border-color: var(--green); color: #04170b; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--navy { background: #0b1f45; color: #fff; }
.badge--outline { background: transparent; border: 1px dashed var(--muted); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.badge--amber { background: #fef3c7; color: #92400e; }

/* ---------- Layout ---------- */
main { min-height: 60vh; padding: 28px 0 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__pad { padding: 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 10px; }
.card__head h3 { margin: 0; font-size: 17px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1fr) 360px; }
.sticky { position: sticky; top: 80px; }
.admin > *, .split > *, .grid > * { min-width: 0; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow i { color: var(--green); font-style: normal; margin: 0 6px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { color: var(--text-2); font-size: 16px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.facts { display: flex; gap: 28px; }
.facts b { display: block; font-size: 24px; }
.facts span { font-size: 12px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-2); padding: 10px 14px; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--bg-2); }
tr.selected td { background: var(--green-soft); }
td.mono { white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset b { display: block; font-weight: 800; }
.asset small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pct { display: inline-block; min-width: 62px; text-align: center; padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.pct.up { background: var(--green-soft); }
.pct.down { background: var(--red-soft); }
.star { background: none; border: 0; cursor: pointer; font-size: 16px; color: #cbd5e1; padding: 0; }
.star.on { color: var(--amber); }

/* ---------- Market widgets ---------- */
.quote-row { display: grid; grid-template-columns: 1fr 96px auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.quote-row:first-child { border-top: 0; }
.quote-row .num { text-align: right; font-family: var(--mono); font-weight: 600; }
.quote-row .num small { display: block; font-size: 11px; }
.spark { width: 96px; height: 28px; display: block; }
.spark path.line { fill: none; stroke-width: 1.5; }
.spark path.area { stroke: none; opacity: .12; }

.chart-box { position: relative; height: 300px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.big-price { font-family: var(--mono); font-size: 28px; font-weight: 700; line-height: 1.1; }

/* ---------- Calendar ---------- */
.imp { display: inline-flex; gap: 2px; }
.imp i { width: 6px; height: 12px; border-radius: 1px; background: #d6dde8; }
.imp.l1 i:nth-child(-n+1), .imp.l2 i:nth-child(-n+2) { background: #0b1f45; }
.imp.l3 i { background: var(--red); }
body.pro .imp.l1 i:nth-child(-n+1), body.pro .imp.l2 i:nth-child(-n+2) { background: var(--green); }
.cur { display: inline-block; min-width: 40px; text-align: center; padding: 2px 6px; border-radius: 6px; background: #0b1f45; color: #fff; font-size: 11px; font-weight: 800; }
td.day { background: var(--bg-2); font-weight: 800; }
.event-row { display: grid; grid-template-columns: 52px 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.event-row:first-child { border-top: 0; }

/* ---------- News / course cards ---------- */
.cover { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background: #0b1f45; margin-bottom: 14px; }
body.pro .cover { background: #0a140e; border: 1px solid var(--border); }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover > img { width: 100%; height: 100%; object-fit: cover; }
.article__img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.thumb { width: 48px; height: 32px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.img-field { display: grid; gap: 8px; }
.img-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.cover__label { position: absolute; left: 12px; top: 10px; color: #fff; font-family: Georgia, serif; font-size: 12px; }
.cover__meta { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 800; font-size: 13px; }
.post { padding: 14px; display: flex; flex-direction: column; cursor: pointer; text-decoration: none; }
.post:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.post .kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--green); letter-spacing: .04em; }
.post h3 { font-size: 16.5px; margin: 6px 0 8px; }
.post p { color: var(--text-2); font-size: 14px; flex: 1; }
.post__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.level-beginner { color: var(--green); }
.level-middle { color: var(--blue); }
.level-pro { color: var(--red); }
.progress { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.price-tag { font-family: var(--mono); font-weight: 700; }

.article { max-width: 760px; }
.article h1 { font-size: clamp(26px, 3.4vw, 36px); }
.article .body { font-size: 16.5px; line-height: 1.75; white-space: pre-wrap; }

/* ---------- Lesson ---------- */
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--border); text-decoration: none; }
.lesson-list li:first-child a { border-top: 0; }
.lesson-list li a:hover { background: var(--bg-2); }
.lesson-list .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 1px solid var(--border); }
.lesson-list .done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.lesson-list .current .dot { background: #0b1f45; border-color: #0b1f45; color: #fff; }
.lesson-list .locked { opacity: .55; }
.video { aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #0b1f45; display: grid; place-items: center; color: #c9d4e6; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }

/* ---------- Simulator ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
.stat span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.stat b { font-family: var(--mono); font-size: 20px; }
.trade-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trade-btns .btn { flex-direction: column; gap: 0; padding: 10px; font-size: 15px; }
.trade-btns .btn small { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.amount-chips .chip { text-align: center; padding: 7px 0; }
.side { padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; }
.side.buy { background: var(--green-soft); color: var(--green); }
.side.sell { background: var(--red-soft); color: var(--red); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); font-size: 14.5px; }
.input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
textarea.input { resize: vertical; min-height: 80px; }
.form-grid { display: grid; gap: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { accent-color: var(--green); width: 16px; height: 16px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.toggle-row:first-child { border-top: 0; }
.toggle-row b { display: block; font-size: 14.5px; }
.toggle-row small { color: var(--muted); }
.error-text { color: var(--red); font-size: 13.5px; font-weight: 600; min-height: 1.2em; }

/* ---------- Contest ---------- */
.contest-hero { background: #0b1f45; color: #fff; border-radius: 20px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 20px; }
body.pro .contest-hero { background: #0d1711; border: 1px solid var(--border); }
.contest-hero h2 { font-size: 30px; }
.contest-hero p { color: #c8d3e6; max-width: 560px; }
.countdown { display: flex; gap: 8px; }
.countdown div { width: 56px; padding: 8px 0; text-align: center; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.countdown b { display: block; font-family: var(--mono); font-size: 22px; }
.countdown small { font-size: 10px; color: #c8d3e6; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--bg-2); }
.rank.top { background: var(--green); color: #fff; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 560px; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); border-radius: var(--radius) var(--radius) 0 0; }
.msg { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 14px; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.msg small { display: block; text-align: right; font-family: var(--mono); font-size: 10.5px; opacity: .75; margin-top: 4px; }
.msg b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.msg.team { align-self: flex-start; background: #0b1f45; color: #fff; border-bottom-left-radius: 4px; }
body.pro .msg.team { background: #1a2a20; }
.msg.other { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat__form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat__form textarea { min-height: 44px; height: 44px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(11, 31, 69, .45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
body.pro .modal-backdrop { background: rgba(0,0,0,.7); }
.modal { width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px rgba(11,31,69,.25); }
.modal--wide { max-width: 640px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal__head img { height: 34px; }
.modal h3 { font-size: 21px; margin-bottom: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg-2); border-radius: 12px; margin: 14px 0; }
.seg button { padding: 9px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.seg button.active { background: var(--green); color: #fff; }
body.pro .seg button.active { color: #04170b; }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.otp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.otp input { height: 54px; text-align: center; font-size: 22px; font-weight: 800; font-family: var(--mono); }
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; width: 190px; margin: 4px auto 6px; }
.qr img, .qr canvas { width: 164px; height: 164px; image-rendering: pixelated; }
.steps-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; font-size: 13.5px; }
.steps-list li { display: flex; gap: 10px; align-items: center; }
.steps-list li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; flex-shrink: 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv span { color: var(--text-2); }
.kv b { text-align: right; }
.waiting { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: 13.5px; font-weight: 700; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.success-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 4px auto 14px; }
.legal { font-size: 11.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: #0b1f45; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: fade .2s; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }

/* ---------- Pro page ---------- */
.pro-label { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.big-narx { font-family: var(--mono); font-size: 40px; font-weight: 700; margin: 16px 0 2px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; flex-shrink: 0; }

/* ---------- Profile ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e6edf8; color: #0b1f45; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.avatar--lg { width: 78px; height: 78px; font-size: 26px; margin: 0 auto 10px; }
.menu-list a, .menu-list button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 13px 16px; border: 0; border-top: 1px solid var(--border); background: none; text-decoration: none; font-weight: 700; cursor: pointer; text-align: left; }
.menu-list > :first-child { border-top: 0; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.side-nav { padding: 10px; position: sticky; top: 80px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; }
.side-nav a:hover { background: var(--bg-2); }
.side-nav a.active { background: #0b1f45; color: #fff; }
body.pro .side-nav a.active { background: var(--green); color: #04170b; }
.side-nav .count { margin-left: auto; min-width: 20px; height: 20px; border-radius: 99px; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 6px; }
.kpi span { font-size: 13px; color: var(--text-2); }
.kpi b { display: block; font-family: var(--mono); font-size: 26px; margin: 4px 0; }
.kpi small { font-size: 12px; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding: 0 4px; }
.bars div { flex: 1; background: #0b1f45; border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div:last-child { background: var(--green); }
body.pro .bars div { background: #1f3a2a; }
body.pro .bars div:last-child { background: var(--green); }
.inbox { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 520px; }
.inbox__list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 620px; }
.inbox__item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.inbox__item:hover, .inbox__item.active { background: var(--bg-2); }
.inbox__item p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__thread { display: flex; flex-direction: column; min-width: 0; }
.mini-select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.footer { background: #0b1f45; color: #c8d3e6; padding: 40px 0 0; font-size: 14px; }
body.pro .footer { background: #000; border-top: 1px solid var(--border); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-bottom: 32px; }
.footer__brand img { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 4px 8px; margin-bottom: 14px; }
.footer__brand p { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col b { color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.footer__col a { color: #c8d3e6; text-decoration: none; }
.footer__col a:hover { color: #4ade80; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #8b9ab5; }
.footer__risk { max-width: 560px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- Maintenance ---------- */
.maintenance { text-align: center; padding: 80px 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .nav.open { display: grid; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 16px 14px; gap: 2px;
    background: var(--card); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(11,31,69,.1); }
  .nav.open a { padding: 12px; font-size: 15px; }
  .menu-btn { display: inline-grid; }
  .header__inner { position: relative; }
  .split, .split--wide, .hero, .admin, .inbox { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side-nav a { white-space: nowrap; }
  .inbox__list { border-right: 0; border-bottom: 1px solid var(--border); max-height: 260px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { padding-bottom: 66px; }
  main { padding-top: 18px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__inner { height: 56px; }
  .brand img { height: 32px; }
  .pro-toggle { padding-left: 10px; }
  .contest-hero { grid-template-columns: 1fr; }
  .quote-row { grid-template-columns: 1fr 72px auto; }
  .spark { width: 72px; }
  .chat { height: 70vh; }
  .msg { max-width: 88%; }
  .hide-sm { display: none !important; }
  #nav-admin { padding: 7px 10px; }
  .pro-toggle { padding: 4px 4px 4px 9px; gap: 6px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; text-decoration: none; font-size: 10.5px; font-weight: 700; color: var(--text-2); }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { background: var(--green-soft); color: var(--green); }
  td, th { padding: 10px; }
  .footer { padding-top: 28px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
