/* =====================================================================
   Nexora Capital — design system
   Ported 1:1 from the original React/Tailwind token set to plain CSS.
   ===================================================================== */

:root {
  --background: 222 26% 5%;
  --foreground: 210 20% 94%;
  --card: 222 22% 8%;
  --popover: 222 24% 7%;
  --primary: 168 58% 42%;
  --primary-foreground: 210 40% 98%;
  --secondary: 222 18% 12%;
  --muted: 222 18% 11%;
  --muted-foreground: 215 14% 52%;
  --destructive: 0 72% 56%;
  --border: 217 14% 16%;
  --input: 217 14% 18%;
  --ring: 168 58% 42%;
  --positive: 152 54% 50%;
  --negative: 0 74% 60%;
  --warn: 38 92% 56%;
  --gold: 43 74% 60%;
  --sidebar-bg: 222 24% 6%;
  --sidebar-fg: 215 16% 65%;
  --sidebar-accent: 222 18% 12%;
  --sidebar-border: 217 14% 14%;
  --radius: 0.5rem;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sidebar-w: 240px;
}

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 20px; }
h2 { font-size: 14px; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* ---------- utilities ---------- */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: hsl(var(--muted-foreground)); }
.pos { color: hsl(var(--positive)); }
.neg { color: hsl(var(--negative)); }
.warn { color: hsl(var(--warn)); }
.gold { color: hsl(var(--gold)); }
.accent { color: hsl(var(--primary)); }
.small { font-size: 12px; }
.xsmall { font-size: 11px; }
.label-caps { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--muted-foreground)); }
.right { text-align: right; }
.center { text-align: center; }
.mono-break { word-break: break-all; }
.hide-sm { display: revert; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.space-y > * + * { margin-top: 24px; }
.space-y-sm > * + * { margin-top: 12px; }
.full { width: 100%; }
.nowrap { white-space: nowrap; }

.scroll-x { overflow-x: auto; }
.scroll-x::-webkit-scrollbar, .scroll-y::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-x::-webkit-scrollbar-thumb, .scroll-y::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 3px; }

.fade-in { animation: fade-in .25s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- grid ---------- */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }

/* ---------- cards ---------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid hsl(var(--border));
}
.card-body { padding: 20px; }
.card-link:hover { border-color: hsl(var(--primary) / .5); }
.card-gold {
  border-color: hsl(var(--gold) / .3);
  background: linear-gradient(140deg, hsl(var(--gold) / .1), hsl(var(--card)) 60%);
}

/* stat card */
.stat { padding: 16px; }
.stat .stat-value { font-size: 22px; margin-top: 8px; }
.stat .stat-meta { margin-top: 6px; font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- badges & alerts ---------- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .02em; border: 1px solid transparent;
}
.badge-positive { color: hsl(var(--positive)); background: hsl(var(--positive) / .12); border-color: hsl(var(--positive) / .3); }
.badge-negative { color: hsl(var(--negative)); background: hsl(var(--negative) / .12); border-color: hsl(var(--negative) / .3); }
.badge-warn     { color: hsl(var(--warn));     background: hsl(var(--warn) / .12);     border-color: hsl(var(--warn) / .3); }
.badge-muted    { color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / .8); border-color: hsl(var(--border)); }

.alert {
  border-radius: var(--radius); padding: 12px 14px; font-size: 13px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .6);
  margin-bottom: 14px;
}
.alert-success { color: hsl(var(--positive)); border-color: hsl(var(--positive) / .3); background: hsl(var(--positive) / .1); }
.alert-danger  { color: hsl(var(--negative)); border-color: hsl(var(--negative) / .3); background: hsl(var(--negative) / .1); }
.alert-warning { color: hsl(var(--warn));     border-color: hsl(var(--warn) / .3);     background: hsl(var(--warn) / .1); }
.alert-info    { color: hsl(var(--foreground)); }

.notice-banner {
  border: 1px solid hsl(var(--primary) / .3); background: hsl(var(--primary) / .08);
  color: hsl(var(--foreground)); border-radius: var(--radius); padding: 10px 14px; font-size: 13px;
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: hsl(var(--foreground));
  background: hsl(var(--background)); border: 1px solid hsl(var(--input));
  border-radius: var(--radius); transition: border-color .15s ease;
}
.input-lg { padding: 13px 12px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: hsl(var(--primary)); }
.input::placeholder, .textarea::placeholder { color: hsl(var(--muted-foreground)); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, hsl(var(--muted-foreground)) 50%), linear-gradient(135deg, hsl(var(--muted-foreground)) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-inline { display: flex; gap: 8px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; margin-bottom: 14px; color: hsl(var(--muted-foreground)); }
.checkbox-row input { margin-top: 2px; accent-color: hsl(var(--primary)); width: 16px; height: 16px; }
.help { font-size: 11px; color: hsl(var(--muted-foreground)); }
input[type="file"] { font-size: 13px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; font: inherit; font-weight: 500; cursor: pointer;
  border-radius: var(--radius); border: 1px solid transparent;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-lg { padding: 13px 18px; width: 100%; }
.btn-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { border-color: hsl(var(--primary) / .6); }
.btn-ghost { background: transparent; color: hsl(var(--muted-foreground)); }
.btn-ghost:hover { color: hsl(var(--foreground)); }
.btn-danger { background: hsl(var(--destructive)); }
.btn-warn { background: hsl(var(--warn)); color: #201603; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-link { background: none; border: none; padding: 0; color: hsl(var(--primary)); cursor: pointer; font: inherit; }
.btn-link:hover { text-decoration: underline; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  text-align: right; padding: 10px 14px; font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .07em; color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border)); white-space: nowrap;
}
.table thead th:first-child, .table tbody td:first-child { text-align: left; }
.table tbody td { padding: 12px 14px; text-align: right; border-bottom: 1px solid hsl(var(--border)); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: hsl(var(--muted) / .4); }
.table-empty td { text-align: center; padding: 40px 16px; color: hsl(var(--muted-foreground)); }
.table-wide { min-width: 820px; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: hsl(var(--sidebar-bg)); border-right: 1px solid hsl(var(--sidebar-border));
  z-index: 40;
}
.sidebar-brand { height: 64px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid hsl(var(--sidebar-border)); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); padding: 12px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 6px;
  font-size: 13px; color: hsl(var(--sidebar-fg)); transition: background .15s, color .15s;
}
.nav-item:hover { background: hsl(var(--sidebar-accent) / .6); color: hsl(var(--foreground)); }
.nav-item.active { background: hsl(var(--sidebar-accent)); color: hsl(var(--foreground)); }
.nav-item svg { width: 16px; height: 16px; flex: none; }
.sidebar-foot { border-top: 1px solid hsl(var(--sidebar-border)); padding: 12px; }
.avatar {
  width: 32px; height: 32px; border-radius: 999px; flex: none;
  background: hsl(var(--sidebar-accent)); color: hsl(var(--foreground));
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500;
}

.topbar { display: none; }
.content { padding: 24px 32px 48px; max-width: 1600px; margin: 0 auto; }
.main { margin-left: var(--sidebar-w); }
.mobile-nav, .drawer { display: none; }

.brand { display: flex; align-items: center; gap: 10px; user-select: none; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .18em; line-height: 1; }
.brand-sub { font-size: 9px; letter-spacing: .32em; color: hsl(var(--muted-foreground)); margin-top: 3px; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.wide { max-width: 620px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-icon {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px;
  background: hsl(var(--primary) / .12); border: 1px solid hsl(var(--primary) / .3);
  display: grid; place-items: center; color: hsl(var(--primary));
}
.auth-title { font-size: 20px; font-weight: 600; }
.auth-sub { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.auth-foot { text-align: center; font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 18px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 26px; }

/* ---------- landing ---------- */
.landing-header {
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px);
  background: hsl(var(--background) / .9); border-bottom: 1px solid hsl(var(--border));
}
.landing-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero { max-width: 1200px; margin: 0 auto; padding: 84px 24px 64px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; max-width: 18ch; }
.hero p { margin-top: 18px; font-size: 16px; color: hsl(var(--muted-foreground)); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: hsl(var(--primary)); border: 1px solid hsl(var(--primary) / .3);
  background: hsl(var(--primary) / .08); border-radius: 999px; padding: 5px 12px; margin-bottom: 22px;
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: hsl(var(--positive)); }
.section { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.section-title { font-size: 26px; font-weight: 600; }
.section-sub { color: hsl(var(--muted-foreground)); margin-top: 8px; max-width: 60ch; }
.ticker-strip { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card) / .5); }
.ticker-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 28px; overflow-x: auto; }
.ticker-item { display: flex; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.site-footer { border-top: 1px solid hsl(var(--border)); margin-top: 40px; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* ---------- misc components ---------- */
.data-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: hsl(var(--muted-foreground)); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid hsl(var(--border)); overflow-x: auto; }
.tab { padding: 9px 14px; font-size: 13px; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: hsl(var(--foreground)); }
.tab.active { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--primary)); }
.qr-box { background: #fff; padding: 10px; border-radius: 8px; width: max-content; }
.addr-box {
  display: flex; align-items: center; gap: 10px; background: hsl(var(--muted) / .6);
  border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 10px 12px;
  font-family: var(--font-mono); font-size: 12px; word-break: break-all;
}
.progress { height: 6px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.progress > span { display: block; height: 100%; background: hsl(var(--primary)); }
.chart-holder { position: relative; height: 280px; }
.chart-holder-sm { position: relative; height: 150px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.doc-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid hsl(var(--border)); }
.pill-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 16px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background) / .95); backdrop-filter: blur(8px);
  }
  .content { padding: 20px 16px 96px; }
  .mobile-nav {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 35; height: 64px;
    align-items: center; justify-content: space-around;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--background) / .96); backdrop-filter: blur(8px);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: hsl(var(--muted-foreground)); }
  .mobile-nav a.active { color: hsl(var(--primary)); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .drawer { display: block; position: fixed; inset: 0; z-index: 60; }
  .drawer[hidden] { display: none; }
  .drawer-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .6); }
  .drawer-panel {
    position: relative; width: 288px; max-width: 82%; height: 100%; display: flex; flex-direction: column;
    background: hsl(var(--sidebar-bg)); border-right: 1px solid hsl(var(--sidebar-border));
  }
  .grid-5, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .card-pad, .card-body { padding: 16px; }
  .hero { padding: 56px 20px 40px; }
}

/* ==========================================================================
   v2 — landing page, onboarding, notifications, education, converter
   Built on the same tokens as the rest of the sheet; no new colour values.
   ========================================================================== */

/* --- generic helpers ---------------------------------------------------- */
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-5 { margin-bottom: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.inline { display: inline-block; }
.sep { color: hsl(var(--border)); margin: 0 6px; }
.positive { color: hsl(var(--positive)); }
.negative { color: hsl(var(--negative)); }
.badge-success { color: hsl(var(--positive)); background: hsl(var(--positive) / .12); border-color: hsl(var(--positive) / .3); }
.badge-danger  { color: hsl(var(--negative)); background: hsl(var(--negative) / .12); border-color: hsl(var(--negative) / .3); }
.btn-full { width: 100%; justify-content: center; }
.grid-2-1 { display: grid; gap: 20px; grid-template-columns: 1.6fr 1fr; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty { padding: 28px 16px; text-align: center; color: hsl(var(--muted-foreground)); font-size: 13px; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid hsl(var(--border) / .6); }
.stat-row:last-child { border-bottom: 0; }
.stat-label { font-size: 12px; color: hsl(var(--muted-foreground)); }
.steps-list { margin: 12px 0 0; padding-left: 18px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.7; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .field { margin: 0; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 16px; font-size: 13px; }
.pager .is-disabled { opacity: .4; pointer-events: none; }

.table-kv { width: 100%; font-size: 13px; }
.table-kv th { text-align: left; font-weight: 500; color: hsl(var(--muted-foreground)); padding: 7px 14px 7px 0; vertical-align: top; white-space: nowrap; }
.table-kv td { padding: 7px 0; }

/* Manual on/off switches in admin settings. */
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); cursor: pointer; }
.switch:hover { border-color: hsl(var(--primary) / .45); }
.switch input { margin-top: 3px; accent-color: hsl(var(--primary)); width: 16px; height: 16px; flex: none; }
.switch strong { font-size: 13px; display: block; }
.switch span { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* --- landing: layout shells -------------------------------------------- */
body.landing { padding: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { max-width: none; margin: 0; padding: 72px 0; }
.section-alt { background: hsl(var(--card) / .3); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.section-intro { max-width: 680px; }
.section-intro h2 { font-size: clamp(25px, 3.2vw, 34px); letter-spacing: -.02em; }
.section-intro p { margin-top: 14px; color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.7; }
.section-intro.center { text-align: center; }
.section-copy { margin-top: 14px; color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.7; }
.landing-flash { max-width: 1200px; margin: 0 auto; padding: 88px 24px 0; }

/* --- landing: fixed navbar --------------------------------------------- */
.nav-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background) / .9); backdrop-filter: blur(10px); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: hsl(var(--muted-foreground)); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: 14px; font-weight: 500; color: hsl(var(--foreground)); text-decoration: none; }
.nav-signin:hover { color: hsl(var(--primary)); }
.nav-burger { display: none; background: none; border: 0; color: hsl(var(--muted-foreground)); cursor: pointer; padding: 6px; }
.nav-mobile { border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); padding: 12px 24px 16px; }
.nav-mobile a { display: block; padding: 10px 0; font-size: 14px; color: hsl(var(--muted-foreground)); text-decoration: none; }
.nav-mobile-cta { display: flex; gap: 10px; padding-top: 10px; }
.nav-mobile-cta .btn { flex: 1; justify-content: center; }

/* --- landing: hero ----------------------------------------------------- */
.hero-split { position: relative; overflow: hidden; padding: 132px 0 80px; }
.hero-glow { position: absolute; inset: 0; background:
  radial-gradient(900px 420px at 78% 12%, hsl(var(--primary) / .09), transparent 70%),
  linear-gradient(180deg, hsl(var(--primary) / .05), transparent 55%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: hsl(var(--muted-foreground)); margin-bottom: 22px; }
.hero-title { font-size: clamp(38px, 6vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; margin: 0; }
.hero-title .accent { color: hsl(var(--primary)); }
.hero-lead { margin-top: 22px; font-size: 18px; color: hsl(var(--muted-foreground)); max-width: 30ch; }
.hero-sub { margin-top: 12px; font-size: 14px; color: hsl(var(--muted-foreground) / .85); max-width: 52ch; line-height: 1.7; }
.hero-split .hero-cta { margin-top: 30px; }
.hero-cta.center-cta { justify-content: center; }
.hero-trust { display: flex; gap: 24px; margin-top: 30px; font-size: 12px; color: hsl(var(--muted-foreground)); flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: hsl(var(--primary)); }
.hero-preview { display: block; }
.preview-mobile { display: none; }

/* --- landing: terminal mock-up ----------------------------------------- */
.preview { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); overflow: hidden; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .8); }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; border-bottom: 1px solid hsl(var(--border)); }
.pv-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.pv-dot-red { background: hsl(var(--negative) / .6); }
.pv-dot-amber { background: hsl(var(--warn) / .6); }
.pv-dot-green { background: hsl(var(--positive) / .6); }
.pv-title { margin-left: 8px; font-size: 10px; color: hsl(var(--muted-foreground)); }
.preview-body { padding: 16px; display: grid; gap: 12px; }
.pv-row { display: flex; align-items: center; justify-content: space-between; }
.pv-label { font-size: 11px; color: hsl(var(--muted-foreground)); }
.pv-price { font-size: 19px; font-weight: 600; margin-top: 2px; }
.pv-change { font-size: 13px; font-weight: 600; margin-top: 2px; }
.pv-chart { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.pv-bar { flex: 1; border-radius: 2px; background: hsl(var(--primary)); }
.pv-wallets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-wallet { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--muted) / .6); padding: 8px; display: grid; gap: 2px; }
.pv-wallet-label { font-size: 9px; color: hsl(var(--muted-foreground)); }
.pv-wallet-value { font-size: 12px; }
.pv-actions { display: flex; gap: 8px; }
.pv-buy, .pv-sell { flex: 1; border-radius: 8px; padding: 8px; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: hsl(var(--background)); }
.pv-buy { background: hsl(var(--positive)); }
.pv-sell { background: hsl(var(--negative)); }

/* --- landing: statistics ----------------------------------------------- */
.stats-bar { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card) / .4); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding-top: 32px; padding-bottom: 32px; }
.stats-value { font-size: 26px; font-weight: 700; }
.stats-label { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 4px; }

/* --- landing: cards, splits, highlight --------------------------------- */
.feature-card { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); padding: 24px; transition: border-color .15s ease, transform .15s ease; }
.feature-card:hover { border-color: hsl(var(--primary) / .4); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 15px; font-weight: 600; }
.feature-card p { margin-top: 8px; font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.7; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.is-reversed .split-visual { order: -1; }
.split h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.split-visual { display: block; }

.tick-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.6; }
.tick-list svg { color: hsl(var(--primary)); flex: none; margin-top: 2px; }
.link-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; font-size: 14px; font-weight: 500; color: hsl(var(--primary)); text-decoration: none; }
.link-cta:hover { text-decoration: underline; }

.highlight { border: 1px solid hsl(var(--border)); border-radius: 20px; padding: 40px; background:
  linear-gradient(135deg, hsl(var(--primary) / .1), hsl(var(--card)) 45%, hsl(var(--card))); }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.highlight h2 { font-size: clamp(23px, 2.8vw, 30px); letter-spacing: -.02em; }
.leader-stack { display: grid; gap: 12px; }
.leader-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); padding: 16px; }
.leader-return { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: hsl(var(--positive)); white-space: nowrap; }

.step-card { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); padding: 24px; }
.step-num { font-size: 24px; font-weight: 700; color: hsl(var(--primary)); }
.step-card h3 { margin-top: 12px; font-size: 14px; font-weight: 600; }
.step-card p { margin-top: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* --- FAQ accordion ----------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); overflow: hidden; }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: none; border: 0; color: inherit; font: inherit; font-weight: 500; font-size: 14px; text-align: left; cursor: pointer; }
.faq-chevron { color: hsl(var(--muted-foreground)); flex: none; display: inline-flex; transition: transform .2s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.7; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p { margin: 0; }

/* --- landing footer ---------------------------------------------------- */
.site-foot { border-top: 1px solid hsl(var(--border)); background: hsl(var(--sidebar-bg, var(--card))); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; }
.foot-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { font-size: 12px; color: hsl(var(--muted-foreground)); text-decoration: none; }
.foot-col a:hover { color: hsl(var(--foreground)); }
.foot-base { margin-top: 40px; padding: 22px 0 40px; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* --- onboarding -------------------------------------------------------- */
.onboard-body { min-height: 100vh; display: flex; flex-direction: column; background: hsl(var(--background)); }
.onboard-head { border-bottom: 1px solid hsl(var(--border)); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.onboard-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.onboard-wrap { width: 100%; max-width: 780px; }
.onboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.onboard-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.choice { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); padding: 18px; cursor: pointer; color: inherit; font: inherit; transition: border-color .15s ease, background .15s ease; }
.choice:hover { border-color: hsl(var(--primary) / .5); }
.choice.is-active { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .08); }
.choice-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
.choice-text strong { display: block; font-size: 14px; }
.choice-text span { display: block; margin-top: 5px; font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* --- verification code input ------------------------------------------- */
.code-input { letter-spacing: .5em; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }

/* --- tabs -------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 13px; color: hsl(var(--muted-foreground)); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: hsl(var(--foreground)); }
.tab.is-active { color: hsl(var(--primary)); border-bottom-color: hsl(var(--primary)); }

/* --- page bar with notification bell ----------------------------------- */
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background) / .8); }
.page-bar-title { font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.notif { position: relative; }
.bell { position: relative; background: none; border: 1px solid hsl(var(--border)); border-radius: 9px; padding: 7px; color: hsl(var(--muted-foreground)); cursor: pointer; display: inline-flex; }
.bell:hover { color: hsl(var(--foreground)); border-color: hsl(var(--primary) / .45); }
.bell-dot { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 999px; background: hsl(var(--negative)); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 330px; max-width: calc(100vw - 32px); border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); box-shadow: 0 24px 60px -24px rgb(0 0 0 / .8); z-index: 60; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); font-size: 13px; font-weight: 600; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border) / .6); text-decoration: none; color: inherit; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: hsl(var(--muted) / .5); }
.notif-item.is-unread { background: hsl(var(--primary) / .05); }
.notif-dot { width: 7px; height: 7px; border-radius: 999px; margin-top: 6px; flex: none; background: hsl(var(--muted-foreground)); }
.level-success .notif-dot, .notif-dot.level-success { background: hsl(var(--positive)); }
.level-warning .notif-dot, .notif-dot.level-warning { background: hsl(var(--warn)); }
.level-danger  .notif-dot, .notif-dot.level-danger  { background: hsl(var(--negative)); }
.level-info    .notif-dot, .notif-dot.level-info    { background: hsl(var(--primary)); }
.notif-empty { padding: 26px 14px; text-align: center; font-size: 12px; color: hsl(var(--muted-foreground)); }
.notif-foot { padding: 10px 14px; border-top: 1px solid hsl(var(--border)); text-align: center; font-size: 12px; }
.notif-full { display: grid; gap: 10px; }
.notif-row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); padding: 14px; }
.notif-row.is-unread { border-color: hsl(var(--primary) / .45); }

/* --- education --------------------------------------------------------- */
.course-card { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.course-card.is-owned { border-color: hsl(var(--positive) / .45); }
.course-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.course-price { font-size: 15px; font-variant-numeric: tabular-nums; }
.course-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.course-meta { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.course-meta li { display: inline-flex; align-items: center; gap: 5px; }
.course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }

/* --- converter --------------------------------------------------------- */
.convert-result { border: 1px solid hsl(var(--primary) / .35); border-radius: 12px; background: hsl(var(--primary) / .07); padding: 18px; margin-top: 18px; }
.convert-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- public document pages --------------------------------------------- */
.doc-body { background: hsl(var(--background)); min-height: 100vh; display: flex; flex-direction: column; }
.doc-head { border-bottom: 1px solid hsl(var(--border)); padding: 18px 24px; }
.doc-head .wrap, .doc-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.doc-main { flex: 1; padding: 48px 0 64px; }
.doc-body-text { font-size: 15px; line-height: 1.8; color: hsl(var(--muted-foreground)); }
.doc-body-text h2, .doc-body-text h3 { color: hsl(var(--foreground)); margin-top: 28px; }
.doc-body-text p { margin: 14px 0; }
.doc-foot { border-top: 1px solid hsl(var(--border)); padding: 22px 24px 40px; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-grid, .split, .highlight-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-preview, .split-visual { display: none; }
  .preview-mobile { display: block; }
  .split.is-reversed .split-visual { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-split { padding: 104px 0 56px; }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .onboard-grid { grid-template-columns: 1fr; }
  .highlight { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-bar { padding: 12px 16px; }
  .pv-wallets { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .wrap, .wrap-narrow { padding: 0 18px; }
}

/* Landing hero/CTA buttons sit side by side rather than filling the column. */
body.landing .hero-cta .btn-lg { width: auto; padding: 14px 22px; }
body.landing .wrap-narrow.center > h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
@media (max-width: 560px) {
  body.landing .hero-cta { flex-direction: column; }
  body.landing .hero-cta .btn-lg { width: 100%; }
}

/* Radio and checkbox controls inherit the platform accent. */
.choice input[type="radio"], .choice input[type="checkbox"] { accent-color: hsl(var(--primary)); width: 15px; height: 15px; margin-top: 3px; flex: none; }
/* Narrow tables inside cards scroll rather than bleeding past the edge. */
.table-scroll { max-width: 100%; }
.table-scroll .table-wide { min-width: 460px; font-size: 13px; }
