/* ==========================================================================
   Zenvorika — shared stylesheet
   1. Tokens  2. Base  3. Layout  4. Buttons & forms  5. Header  6. Ticker
   7. Hero  8. Sections & cards  9. Tables & market data  10. Accordion
   11. Footer & banners  12. Inner pages  13. Auth  14. Trade terminal
   15. Utilities & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #0A0D13;
  --surface: #11161F;
  --raised: #171E2A;
  --border: #232C3B;
  --border-strong: #2E3950;
  --text: #E8EDF5;
  --text-2: #8A95A8;
  --accent: #1ED8A0;
  --accent-hover: #17B887;
  --accent-soft: rgba(30, 216, 160, .12);
  --up: #1ED8A0;
  --down: #FF5C6C;
  --up-soft: rgba(30, 216, 160, .14);
  --down-soft: rgba(255, 92, 108, .14);
  --warn: #F5B94A;
  --warn-soft: rgba(245, 185, 74, .12);
  --on-accent: #04130D;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--text-2); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.section__head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 600 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.2fr 1fr; } }

/* 4. Buttons & forms ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm);
  font: 600 .95rem/1 var(--font-head); border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 36px; padding: 8px 14px; font-size: .85rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sell { background: var(--down); color: #1A0508; }
.btn--sell:hover { background: #E84A5A; color: #1A0508; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem var(--font-head); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field__label { font: 500 .85rem var(--font-body); color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #5E6A7E; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--down); }
.field__error { color: var(--down); font-size: .82rem; min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); margin-bottom: 16px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-top: 14px; border: 1px solid; }
.form-msg[hidden] { display: none; }
.form-msg--ok { background: var(--accent-soft); border-color: rgba(30,216,160,.4); color: var(--text); }
.form-msg--info { background: var(--warn-soft); border-color: rgba(245,185,74,.4); color: var(--text); }
.input-group { display: flex; gap: 8px; flex-wrap: wrap; }
.input-group .input { flex: 1 1 220px; }

/* 5. Header ---------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 19, .88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__scan { height: 1px; background: var(--border); position: relative; overflow: hidden; }
.header__scan::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 45%, var(--accent) 55%, transparent);
  opacity: .55; animation: scan 6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { opacity: .25; transform: scaleX(.6); } 50% { opacity: .8; transform: scaleX(1); } }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.2rem var(--font-head); letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  color: var(--text-2); font: 500 .92rem var(--font-head); padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; background: var(--accent); border-radius: 2px; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); font: 600 .72rem var(--font-mono); color: var(--text-2); letter-spacing: .06em;
}
.lang-pill svg { width: 13px; height: 13px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav, .header__actions .btn, .header__actions .lang-pill { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .mobile-nav {
    display: block; position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; z-index: 99;
    background: var(--bg); padding: 20px var(--gutter) 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a:not(.btn) {
    display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--border);
    color: var(--text); font: 600 1.15rem var(--font-head);
  }
  .mobile-nav a:not(.btn)::after { content: "→"; color: var(--text-2); }
  .mobile-nav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* 6. Ticker ---------------------------------------------------------------- */
.ticker { border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-right: 1px solid var(--border); font-size: .85rem; white-space: nowrap; color: var(--text); }
.ticker__item:hover { color: var(--text); background: var(--raised); }
.ticker__sym { font: 600 .82rem var(--font-head); }
.ticker__item .num { font-size: .82rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 7. Hero ------------------------------------------------------------------ */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .28;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero .split { position: relative; }
.hero h1 span { color: var(--accent); }
.hero__sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); max-width: 540px; margin-bottom: 28px; }
.hero__form { max-width: 520px; }
.hero__fine { font-size: .82rem; color: var(--text-2); margin-top: 12px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; list-style: none; font-size: .88rem; color: var(--text-2); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }

.mock { position: relative; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mock { grid-template-columns: 1.45fr 1fr; align-items: start; } }
.mock__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.mock__chart { grid-row: span 2; }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mock__pair { display: flex; align-items: center; gap: 10px; font: 600 .95rem var(--font-head); }
.mock__price { font: 600 1.6rem var(--font-mono); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.mock__svg { width: 100%; height: 180px; margin-top: 10px; }
.mock__tfs { display: flex; gap: 4px; font: 500 .72rem var(--font-mono); color: var(--text-2); }
.mock__tfs span { padding: 3px 7px; border-radius: 5px; }
.mock__tfs span.is-on { background: var(--raised); color: var(--text); }
.mock__order .seg { margin-bottom: 12px; }
.mock__row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-2); padding: 7px 0; border-bottom: 1px dashed var(--border); }
.mock__row .num { color: var(--text); }
.mock__book { font: 400 .76rem var(--font-mono); }
.mock__book div { display: flex; justify-content: space-between; padding: 2px 6px; position: relative; }
.mock__book div i { position: absolute; top: 0; bottom: 0; right: 0; opacity: .5; border-radius: 2px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
@media (min-width: 800px) { .stat { border-bottom: 0; border-right: 1px solid var(--border) !important; } .stat:last-child { border-right: 0 !important; } }
.stat__value { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem) var(--font-mono); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--text-2); font-size: .88rem; }
.stats-note { font-size: .8rem; color: var(--text-2); margin-top: 10px; }

/* 8. Sections & cards ------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .25s var(--ease), border-color .25s;
}
.card--raised { background: var(--raised); }
a.card, .card--hover { color: var(--text); display: block; }
a.card:hover, .card--hover:hover { transform: translateY(-3px); border-color: var(--border-strong); color: var(--text); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-2); font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(30,216,160,.25);
}
.card__icon svg { width: 22px; height: 22px; }
.card .link-arrow { margin-top: 8px; }
.product-card { display: flex; flex-direction: column; }
.product-card p { flex: 1; }

.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 40px; color: var(--text-2); }
.feature-list li strong { color: var(--text); display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft);
  border: 1px solid rgba(30,216,160,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231ED8A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vault { position: relative; aspect-ratio: 1 / 1; max-width: 440px; margin: 0 auto; width: 100%; }
.vault svg { width: 100%; height: 100%; }

/* Phone mockup */
.phone {
  width: 250px; height: 510px; margin: 0 auto; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #1E2635, #0E131B); border: 1px solid var(--border-strong); position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; background: #05070B; border-radius: 12px; z-index: 2; }
.phone__screen { height: 100%; border-radius: 30px; background: var(--bg); overflow: hidden; padding: 48px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone__bal { font: 600 1.35rem var(--font-mono); }
.phone__label { font-size: .7rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; }
.phone__chart { height: 80px; }
.phone__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.phone__row .num { margin-left: auto; text-align: right; }
.phone__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.phone__btns span { text-align: center; padding: 10px; border-radius: 10px; font: 600 .78rem var(--font-head); background: var(--accent); color: var(--on-accent); }
.phone__btns span + span { background: var(--raised); color: var(--text); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
  font: 600 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(30,216,160,.3);
}
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245,185,74,.35); }
.badge--muted { background: var(--raised); color: var(--text-2); border-color: var(--border); }

/* Article cards */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card__art { aspect-ratio: 16 / 8; background: var(--raised); border-bottom: 1px solid var(--border); }
.post-card__art svg { width: 100%; height: 100%; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font: 500 .75rem var(--font-mono); color: var(--text-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.08rem; }
.post-card p { flex: 1; }

/* Tabs / segmented control */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.tab {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 8px 14px; border-radius: 7px;
  font: 600 .85rem var(--font-head); transition: background .2s, color .2s; min-height: 36px;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.seg button, .seg span { border: 0; background: transparent; color: var(--text-2); padding: 8px; border-radius: 7px; font: 600 .85rem var(--font-head); cursor: pointer; text-align: center; }
.seg [aria-selected="true"], .seg .is-buy { background: var(--up); color: var(--on-accent); }
.seg .is-sell[aria-selected="true"] { background: var(--down); color: #1A0508; }
.seg--plain [aria-selected="true"] { background: var(--raised); color: var(--text); }

/* 9. Tables & market data -------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table thead th { font: 500 .78rem var(--font-body); color: var(--text-2); background: var(--surface); position: sticky; top: 0; letter-spacing: .02em; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--raised); }
.table .r { text-align: right; }
.table td.num, .table th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table--data td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table--data td:first-child { font-family: var(--font-body); }
.table caption { caption-side: bottom; text-align: left; padding: 12px 16px; font-size: .8rem; color: var(--text-2); }
.table--wrap th, .table--wrap td { white-space: normal; }
.sort-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sort-btn::after { content: "↕"; opacity: .4; font-size: .8em; }
th[aria-sort="ascending"] .sort-btn::after { content: "↑"; opacity: 1; color: var(--accent); }
th[aria-sort="descending"] .sort-btn::after { content: "↓"; opacity: 1; color: var(--accent); }
.coin { display: flex; align-items: center; gap: 12px; }
.coin__icon { width: 30px; height: 30px; flex: none; }
.coin__icon--sm { width: 22px; height: 22px; }
.coin__sym { font: 600 .95rem var(--font-head); color: var(--text); }
.coin__sym small { color: var(--text-2); font-weight: 500; }
.coin__name { font-size: .78rem; color: var(--text-2); }
.chg { display: inline-block; min-width: 72px; text-align: right; padding: 3px 8px; border-radius: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .85rem; }
.chg.up { background: var(--up-soft); }
.chg.down { background: var(--down-soft); }
.spark { width: 110px; height: 34px; }
.star {
  all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #4C5870;
}
.star:hover { color: var(--warn); }
.star[aria-pressed="true"] { color: var(--warn); }
.star svg { width: 16px; height: 16px; }
.star:focus-visible { outline: 2px solid var(--accent); }
.flash-up { animation: flashUp .9s ease-out; }
.flash-down { animation: flashDown .9s ease-out; }
@keyframes flashUp { 0% { background-color: rgba(30,216,160,.28); color: var(--up); } 100% { background-color: transparent; } }
@keyframes flashDown { 0% { background-color: rgba(255,92,108,.28); color: var(--down); } 100% { background-color: transparent; } }
.data-note {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-2);
}
.data-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.market-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-2); pointer-events: none; }
.search .input { padding-left: 40px; }
.markets-table tbody tr { cursor: pointer; }
.empty-row td { text-align: center !important; color: var(--text-2); padding: 40px 16px !important; font-family: var(--font-body) !important; }
.movers-table td:nth-child(n+2), .movers-table th:nth-child(n+2) { text-align: right; }
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .table th, .table td { padding: 12px 10px; }
  .spark { width: 76px; }
}

/* 10. Accordion ------------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font: 600 1rem var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq__body { padding: 0 22px 20px; color: var(--text-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* 11. Footer & banners ----------------------------------------------------- */
.risk-banner { border-top: 1px solid var(--border); background: linear-gradient(90deg, rgba(245,185,74,.08), transparent 60%); }
.risk-banner .wrap { display: flex; gap: 16px; align-items: flex-start; padding-block: 22px; }
.risk-banner svg { width: 22px; height: 22px; color: var(--warn); flex: none; margin-top: 2px; }
.risk-banner p { margin: 0; font-size: .92rem; color: var(--text); }
.risk-banner a { color: var(--warn); text-decoration: underline; text-underline-offset: 3px; }
.risk-inline {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--warn-soft); border: 1px solid rgba(245,185,74,.3); font-size: .88rem; color: var(--text);
}
.risk-inline svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 2px; }
.risk-inline p { margin: 0; }
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: .9rem; }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.3fr repeat(4, 1fr); } }
.footer__brand p { color: var(--text-2); margin-top: 14px; max-width: 300px; }
.footer__col h2 { font: 600 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--text); }
.footer__col a:hover { color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 900px) { .footer__cols { display: contents; } }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer__risk { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-2); font-size: .82rem; line-height: 1.7; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--text-2); font-size: .82rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--text); }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px;
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45); transform: translateY(20px); opacity: 0; transition: .3s var(--ease);
}
.cookie.is-visible { transform: none; opacity: 1; }
.cookie h2 { font-size: 1rem; margin-bottom: 6px; }
.cookie p { font-size: .88rem; color: var(--text-2); margin-bottom: 14px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 160; opacity: 0; pointer-events: none;
  background: var(--raised); border: 1px solid var(--border-strong); padding: 12px 18px; border-radius: 10px; font-size: .9rem;
  transition: .25s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 12. Inner pages ---------------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(30,216,160,.14), transparent 65%);
}
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); max-width: 820px; }
.page-hero p { color: var(--text-2); font-size: 1.1rem; max-width: 680px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--text-2); margin-bottom: 18px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }

.prose { max-width: 740px; font-size: 1.02rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #C6CEDB; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--raised); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--text); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; color: var(--text); }
.prose .callout, .callout { background: var(--accent-soft); border: 1px solid rgba(30,216,160,.3); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.6em 0; }
.prose .callout p { color: var(--text); margin: 0; }
.prose .note, .note { font-size: .88rem; color: var(--text-2) !important; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 2.4em; }
.prose .updated { font: 500 .82rem var(--font-mono); color: var(--text-2); }
.prose dl.glossary { margin: 0; }
.prose dl.glossary dt { font: 600 1.02rem var(--font-head); color: var(--text); margin-top: 1.2em; }
.prose dl.glossary dd { margin: .3em 0 0; color: #C6CEDB; }
.doc-layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .88rem; }
.toc h2 { font: 600 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--text-2); margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 999px) { .toc { position: static; } .toc ol { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.article-foot { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 48px; }
.article-foot a { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); }
.article-foot a:hover { border-color: var(--accent); }
.article-foot small { display: block; color: var(--text-2); font-size: .78rem; margin-bottom: 4px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; padding-left: 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; transform: rotate(45deg) scale(.75); background: var(--bg); border: 2px solid var(--accent); }
.timeline time { font: 600 .82rem var(--font-mono); color: var(--accent); }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--text-2); margin: 0; }

.calc { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc__out { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; display: grid; gap: 12px; align-content: start; }
.calc__line { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: var(--text-2); }
.calc__line .num { color: var(--text); }
.calc__total { border-top: 1px solid var(--border); padding-top: 12px; font-size: 1rem; color: var(--text); }
.calc__total .num { font-size: 1.4rem; color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); }

.support-search { max-width: 620px; margin-top: 28px; }
.support-search .input { min-height: 54px; font-size: 1.02rem; }
.faq-group { margin-bottom: 40px; }
.faq-group h3 { font-size: 1rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.faq-empty { color: var(--text-2); padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius); }

.err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err__code { font: 700 clamp(5rem, 4rem + 8vw, 10rem)/1 var(--font-mono); color: transparent; -webkit-text-stroke: 1px var(--accent); letter-spacing: -.04em; }
.err p { color: var(--text-2); max-width: 460px; margin: 0 auto 28px; }

/* 13. Auth ----------------------------------------------------------------- */
.auth { display: grid; min-height: calc(100vh - var(--header-h) - 1px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__form { display: grid; place-items: center; padding: 56px var(--gutter); }
.auth__inner { width: 100%; max-width: 420px; }
.auth__inner h1 { font-size: 2rem; }
.auth__inner > p { color: var(--text-2); }
.auth__art { display: none; position: relative; overflow: hidden; background: var(--surface); border-left: 1px solid var(--border); }
@media (min-width: 960px) { .auth__art { display: grid; place-items: center; padding: 48px; } }
.auth__art svg { width: 100%; max-width: 460px; height: auto; }
.auth__art-copy { position: absolute; left: 48px; right: 48px; bottom: 40px; color: var(--text-2); font-size: .9rem; }
.auth__alt { margin-top: 20px; font-size: .92rem; color: var(--text-2); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--text-2); font: 600 .78rem var(--font-head); cursor: pointer; padding: 8px; }
.pw-toggle:hover { color: var(--accent); }
.pw-meter { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--down); transition: width .25s, background .25s; }

/* 14. Trade terminal ------------------------------------------------------- */
.tr-body { background: var(--bg); }
.tr { display: grid; gap: 1px; background: var(--border); min-height: calc(100vh - var(--header-h) - 1px); grid-template-columns: 1fr; }
.tr > * { background: var(--bg); min-width: 0; }
@media (min-width: 1100px) {
  .tr { grid-template-columns: minmax(0, 1fr) 300px 320px; grid-template-rows: auto minmax(520px, 1fr) auto; }
  .tr__bar { grid-column: 1 / -1; }
  .tr__chart { grid-column: 1; grid-row: 2; }
  .tr__book { grid-column: 2; grid-row: 2 / span 2; }
  .tr__order { grid-column: 3; grid-row: 2 / span 2; }
  .tr__orders { grid-column: 1; grid-row: 3; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .tr { grid-template-columns: minmax(0, 1fr) 300px; }
  .tr__bar, .tr__chart, .tr__orders { grid-column: 1 / -1; }
}
.tr__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 12px 20px; }
.tr__stats { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .8rem; }
.tr__stat > span { display: block; color: var(--text-2); font-size: .72rem; white-space: nowrap; }
.tr__stat .num { font-size: .85rem; }
.tr__last { font: 600 1.35rem var(--font-mono); font-variant-numeric: tabular-nums; }
.tr__status { margin-left: auto; }
.pair-select { position: relative; }
.pair-btn {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; font: 700 1.05rem var(--font-head);
}
.pair-btn:hover { border-color: var(--border-strong); }
.pair-btn svg.chev { width: 14px; height: 14px; color: var(--text-2); }
.pair-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: min(360px, calc(100vw - 32px));
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.pair-pop[hidden] { display: none; }
.pair-list { list-style: none; padding: 0; margin: 10px 0 0; max-height: 320px; overflow-y: auto; }
.pair-list button {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; width: 100%;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .85rem; align-items: center;
}
.pair-list button:hover, .pair-list button:focus-visible { background: var(--surface); }
.pair-list .num { text-align: right; min-width: 64px; }
.pair-list b { font-family: var(--font-head); font-weight: 600; }
.pair-list b small { color: var(--text-2); font-weight: 500; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); min-height: 48px; }
.panel-head h2 { font: 600 .88rem var(--font-head); margin: 0; }
.tr__chart { display: flex; flex-direction: column; min-height: 460px; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.tf-group { display: flex; gap: 2px; }
.tf-group button, .ma-toggle {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 6px 9px; border-radius: 6px; font: 500 .8rem var(--font-mono);
}
.tf-group button:hover, .ma-toggle:hover { color: var(--text); }
.tf-group button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.ma-toggle { display: inline-flex; align-items: center; gap: 6px; }
.ma-toggle i { width: 10px; height: 2px; border-radius: 1px; }
.ma-toggle[aria-pressed="false"] { opacity: .45; }
.chart-legend { font: 400 .75rem var(--font-mono); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 12px 0; min-height: 24px; }
.chart-legend b { font-weight: 500; color: var(--text); }
.chart-box { position: relative; flex: 1; min-height: 380px; touch-action: none; cursor: crosshair; }
.chart-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-box.is-dragging { cursor: grabbing; }
.chart-hint { font-size: .72rem; color: var(--text-2); margin-left: auto; }

.book { font: 400 .78rem var(--font-mono); font-variant-numeric: tabular-nums; }
.book__cols, .book__row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 16px; position: relative; }
.book__cols { color: var(--text-2); font-family: var(--font-body); font-size: .72rem; padding-block: 8px; }
.book__cols span:nth-child(n+2), .book__row span:nth-child(n+2) { text-align: right; }
.book__row span { position: relative; z-index: 1; }
.book__row i { position: absolute; top: 1px; bottom: 1px; right: 0; z-index: 0; transition: width .4s var(--ease); }
.book__asks .book__row span:first-child { color: var(--down); }
.book__asks .book__row i { background: var(--down-soft); }
.book__bids .book__row span:first-child { color: var(--up); }
.book__bids .book__row i { background: var(--up-soft); }
.book__mid { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 16px; border-block: 1px solid var(--border); margin: 4px 0; }
.book__mid .num:first-child { font-size: 1.1rem; font-weight: 600; }
.book__mid small { color: var(--text-2); font-size: .72rem; }
.trades { border-top: 1px solid var(--border); }
.trades__list { max-height: 300px; overflow: hidden; }
.trades__list .book__row { animation: rowIn .35s var(--ease); }
@keyframes rowIn { from { background: var(--raised); } to { background: transparent; } }

.tr__order { padding-bottom: 20px; }
.order-body { padding: 16px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.order-field { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.order-field:focus-within { border-color: var(--accent); }
.order-field label { padding: 0 0 0 12px; font-size: .78rem; color: var(--text-2); min-width: 58px; }
.order-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 8px; text-align: right; font: 500 .92rem var(--font-mono); outline: none; }
.order-field input:disabled { color: var(--text-2); }
.order-field span { padding: 0 12px 0 0; font: 600 .78rem var(--font-head); color: var(--text-2); }
.pct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pct button { border: 1px solid var(--border); background: transparent; border-radius: 6px; padding: 6px 0; color: var(--text-2); font: 500 .78rem var(--font-mono); cursor: pointer; }
.pct button:hover, .pct button.is-on { border-color: var(--accent); color: var(--accent); }
.order-line { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); }
.order-line .num { color: var(--text); }
.balances { border-top: 1px solid var(--border); padding: 16px; display: grid; gap: 8px; }
.balances h3 { font-size: .85rem; margin: 0 0 4px; }
.order-msg { font-size: .8rem; min-height: 1.2em; margin: 0; }
.tr__orders { overflow-x: auto; }
.tr__orders .table th, .tr__orders .table td { padding: 10px 16px; font-size: .8rem; }
.tr__orders .table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cancel-btn { border: 1px solid var(--border); background: transparent; color: var(--text-2); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: .75rem; }
.cancel-btn:hover { color: var(--down); border-color: var(--down); }
.tr-tabs { display: none; }
.tr-risk { padding: 14px 20px; background: var(--bg); grid-column: 1 / -1; }
@media (max-width: 759px) {
  .tr-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px 12px; position: sticky; top: calc(var(--header-h) + 1px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
  .tr-tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 10px; border-radius: 8px; font: 600 .88rem var(--font-head); cursor: pointer; }
  .tr-tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); border-color: var(--accent); }
  .tr[data-view="chart"] .tr__book, .tr[data-view="chart"] .tr__order { display: none; }
  .tr[data-view="book"] .tr__chart, .tr[data-view="book"] .tr__order, .tr[data-view="book"] .tr__orders { display: none; }
  .tr[data-view="trade"] .tr__chart, .tr[data-view="trade"] .tr__book { display: none; }
  .tr__status { margin-left: 0; }
  .tr__bar { padding: 12px 16px; }
}

/* 15. Utilities & motion --------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.cta-band { border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); background: radial-gradient(ellipse at top right, rgba(30,216,160,.14), transparent 60%), var(--surface); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--text-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-list li { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: .85rem; color: var(--text-2); }
.num-list { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 16px; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.num-list li::before { content: counter(n, decimal-leading-zero); font: 600 .9rem var(--font-mono); color: var(--accent); border: 1px solid var(--border); border-radius: 10px; height: 44px; display: grid; place-items: center; }
.num-list strong { display: block; font-family: var(--font-head); }
.num-list p { color: var(--text-2); margin: 2px 0 0; font-size: .95rem; }
.lift { transition: transform .25s var(--ease); }
.lift:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; overflow-x: auto; }
  .ticker { overflow-x: auto; }
}

/* Live data status */
[data-market-status].is-down { color: var(--warn); }
[data-market-status]:not(.is-down)::before { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }

/* Accounts (PHP backend) */
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg--error { background: var(--down-soft); border-color: rgba(255,92,108,.45); color: var(--text); }
.header__user { display: inline-flex; align-items: center; gap: 10px; }
.user-pill {
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  font: 500 .82rem var(--font-body); color: var(--text);
}
.user-pill:hover { border-color: var(--accent); color: var(--text); }
.mobile-nav__user { margin-top: 24px; display: grid; gap: 10px; }
.mobile-nav__user p { margin: 0; }
button[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 1080px) { .header__actions .header__user { display: none !important; } }
