/* exchange-work — user-facing site.
   Design system: cool graphite (not black), a restrained indigo signal used only where it matters,
   muted semantic status colors, Space Grotesk for display/numbers, Plus Jakarta Sans for body.
   Flat, divided layout — boxes are reserved for tables, forms and the one hero balance panel.
   Tokens live in tokens.css, shared with the rest of the customer-facing stylesheets. */
@import url('tokens.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); }
html { color-scheme: dark; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-feature-settings: "calt" 0, "liga" 0;
}
input, select, textarea {
  font: inherit;
  color: var(--bone);
  background: var(--card, var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal-strong); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Scroll-reveal — see scroll-reveal.js. Only takes effect once JS adds .reveal-ready, so content
   is never hidden for no-JS visitors or unsupported browsers. */
[data-reveal] { transition: opacity .5s ease, transform .5s ease; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); }
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--bone);
  font-weight: 600;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--panel-3); background: var(--panel-3); }
.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--bone) 28%, transparent);
  color: var(--bone);
  border-radius: 100px;
  transition:
    border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    height 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
  color: #fff;
}
.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  width: 720px;
  height: 720px;
  opacity: 1;
}
.btn--primary:active:not(:disabled) {
  transform: scale(0.95);
}
.btn--primary:disabled,
.btn--primary[disabled] {
  transform: none;
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.btn--primary:disabled::before,
.btn--primary[disabled]::before {
  content: none;
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--panel); }
.btn--danger { color: var(--bad); }
.btn--block { width: 100%; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }

/* Divided row — replaces "four boxed stat cards" with one strip separated by hairlines. */
.stat-row { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-row__item { flex: 1 1 160px; padding: 16px 18px; border-left: 1px solid var(--line); }
.stat-row__item:first-child { border-left: 0; }
.stat-row__label { color: var(--stone); font-size: 11.5px; font-weight: 600; margin-bottom: 7px; }
.stat-row__value { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.stat-row__value.pos { color: var(--ok); }
.stat-row__value.neg { color: var(--bad); }
.stat-row__sub { color: var(--faint); font-size: 11.5px; margin-top: 3px; }

/* ── Auth pages ─────────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; background: transparent; color: #fff; }
.auth__box {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.auth__brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; font-weight: 700; font-size: 16px; font-family: var(--display); color: #fff; }
.auth__brand-name { letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.auth__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
.auth__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: #c5c9f0;
  font-weight: 700;
  font-family: var(--display);
}
.auth__intro { text-align: center; margin-bottom: 28px; }
.auth__box h1 { font-size: 28px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.auth__box p.hint { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 14px; font-weight: 500; }
.auth__form { display: flex; flex-direction: column; }
.auth__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth__field label { font-size: 11.5px; color: var(--stone); font-weight: 600; }
.auth__field input, .auth__field textarea, .auth__field select { width: 100%; height: 44px; }
.auth__float { position: relative; margin-bottom: 28px; }
.auth__float input {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.auth__float input:focus { outline: none; border-color: #93c5fd; }
.auth__float input:-webkit-autofill,
.auth__float input:-webkit-autofill:hover,
.auth__float input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px transparent inset;
}
.auth__float label {
  position: absolute;
  left: 0;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  font-weight: 500;
  pointer-events: none;
  transform-origin: left center;
  transition: transform .28s ease, color .28s ease;
}
.auth__float label svg { flex-shrink: 0; }
.auth__float input:focus + label,
.auth__float input:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.78);
  color: #93c5fd;
}
.auth__row { display: flex; justify-content: flex-end; margin: -8px 0 22px; }
.auth__row a { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); font-weight: 500; transition: color .15s ease; }
.auth__row a:hover { color: #fff; }
.auth__submit {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 14.5px;
  transition: background .2s ease;
}
.auth__submit:hover { background: #1d4ed8; }
.auth__submit svg { transition: transform .25s ease; }
.auth__submit:hover svg { transform: translateX(4px); }
.auth__form:not(:has(.auth__check input:checked)) .auth__submit {
  opacity: .45;
  pointer-events: none;
}
.auth__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -6px 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  cursor: pointer;
}
.auth__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.auth__check input:checked {
  background: #2563eb;
  border-color: #2563eb;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.auth__check input:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.auth__check a { color: #93c5fd; font-weight: 600; }
.auth__check a:hover { color: #bfdbfe; }
.auth__error { background: color-mix(in srgb, var(--bad) 18%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 36%, transparent); color: #fecaca; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.auth__foot { margin-top: 22px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.auth__foot a { color: #93c5fd; font-weight: 600; }
.auth__foot a:hover { color: #bfdbfe; }

/* ── LK chrome lives in lk-shell.css (PolyBet desk skeleton, exchange routes). ── */

/* ── Profile page (Overview / Positions / History / Settings / Trade / Deposit / Withdraw) ── */
.profile-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-page__identity { display: flex; align-items: center; gap: 14px; }
.profile-page__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; font-family: var(--display); }
.profile-page__title { font-size: 22px; font-weight: 600; font-family: var(--display); display: flex; align-items: center; gap: 8px; }
.profile-page__verified { color: var(--ok); font-size: 11px; }
.profile-page__hash { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 3px; }

.profile-page__overview-top { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 20px; margin-bottom: 28px; }
.profile-page__overview-bottom { display: flex; flex-direction: column; gap: 28px; }

.balance-panel { padding: 2px 0 0; }
.balance-panel .eyebrow { margin-bottom: 10px; }
.balance-panel__amount { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.balance-panel__amount span { font-size: 20px; color: var(--stone); font-weight: 500; }
.balance-panel__actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.section { margin-bottom: 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head h2 { font-size: 15px; margin: 0; font-weight: 600; }
.section__head a { font-size: 12.5px; color: var(--signal); font-weight: 600; }
.section__head a:hover { color: var(--bone); }

.quick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-row a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 13px;
  font-weight: 600;
}
.quick-row a:hover { background: var(--panel); border-color: var(--panel-3); }
.quick-row a.is-primary { background: var(--signal-strong); border-color: var(--signal-strong); color: #f3e8ec; }
.quick-row a.is-primary:hover { background: var(--signal); border-color: var(--signal); }
.quick-row a svg { color: var(--stone); flex-shrink: 0; }
.quick-row a.is-primary svg { color: #f3e8ec; }

.alloc__bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--panel-2); margin-bottom: 16px; }
.alloc__seg { height: 100%; }
.alloc__legend { display: flex; flex-wrap: wrap; gap: 18px; row-gap: 8px; }
.alloc__row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.alloc__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.alloc__row .name { color: var(--stone); }
.alloc__row .pct { font-family: var(--mono); color: var(--bone); font-weight: 600; }

.status-row { display: flex; flex-direction: column; }
.status-row__item { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.status-row__item:last-child { border-bottom: 0; }
.status-row__item .k { color: var(--stone); }
.status-row__item .v { color: var(--bone); font-weight: 600; }

@media (max-width: 900px) {
  .profile-page__overview-top { grid-template-columns: 1fr; }
  .profile-page__head { flex-direction: column; align-items: flex-start; }
}

/* ── Filter chips (History, admin lists) ───────────────────────────── */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs a { padding: 7px 13px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; color: var(--stone); border: 1px solid var(--line); }
.filter-tabs a.is-active { background: var(--panel-2); color: var(--bone); border-color: var(--panel-3); }

/* ── Settings page ──────────────────────────────────────────────────── */
.settings-stack { display: flex; flex-direction: column; gap: 22px; max-width: 920px; }
.settings-card {
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-2) 35%, transparent);
}
.settings-card h2 { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.settings-card > p.hint { margin: 0 0 20px; color: var(--stone); font-size: 12.5px; }
.settings-inline-form { display: flex; gap: 12px; align-items: flex-end; max-width: 520px; }
.settings-inline-form .auth__field { flex: 1; margin: 0; }

.ref-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.ref-link input {
  flex: 1;
  min-width: 0;
  height: 44px;
  font-family: var(--mono);
  font-size: 12.5px;
  cursor: text;
}
.ref-link .btn { flex: none; height: 44px; padding: 0 14px; }
.ref-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.ref-stats__cell {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.ref-stats__cell span {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.ref-stats__cell strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.ref-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ref-rules li {
  font-size: 12.5px;
  color: var(--stone);
  padding-left: 14px;
  position: relative;
}
.ref-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.7;
}

.credit-stats { max-width: 920px; margin: 0 0 22px; }
.credit-lede {
  margin: 0 0 14px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.5;
}
.credit-quote {
  margin: 4px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.credit-quote p { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.credit-quote span { font-size: 12px; color: var(--stone); }
.credit-faq {
  margin: 0;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.55;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sec-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.sec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sec-row:first-of-type { padding-top: 0; }
.sec-row__icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--bone); border: 1px solid var(--line);
}
.sec-row__text { flex: 1; min-width: 0; }
.sec-row__text strong { display: block; font-size: 13.5px; font-weight: 600; }
.sec-row__text span { display: block; font-size: 12px; color: var(--stone); margin-top: 2px; }
.sec-row__actions { display: flex; gap: 8px; flex-shrink: 0; }

.profile-page__notif-list { display: flex; flex-direction: column; }
.profile-page__notif-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.profile-page__notif-row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-page__notif-ico {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--stone); border: 1px solid var(--line);
}
.profile-page__notif-ico--on { color: var(--bone); }
.profile-page__notif-text { flex: 1; min-width: 0; }
.profile-page__notif-text strong { display: block; font-size: 13.5px; font-weight: 600; }
.profile-page__notif-text span { display: block; font-size: 12px; color: var(--stone); margin-top: 2px; }

.lk-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lk-sheet[hidden] { display: none !important; }
.lk-sheet__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); }
.lk-sheet__panel {
  position: relative; width: min(520px, 100%); max-height: min(88vh, 760px); overflow: auto;
  background: var(--card, var(--panel)); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 24px 20px;
}
.lk-sheet__panel h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.lk-sheet__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.lk-sup-gate.lk-sheet { z-index: 140; }
.lk-sup-gate .lk-sheet__panel {
  width: min(420px, 100%);
  box-shadow: none;
}
.lk-sup-gate .lk-sheet__panel p {
  margin: 0;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.5;
}
.totp-setup { display: flex; gap: 18px; align-items: center; margin: 16px 0 20px; flex-wrap: wrap; }
.totp-setup img { border-radius: 10px; background: #fff; padding: 8px; }
.totp-secret { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0.06em; word-break: break-all; color: var(--bone); }

.toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-soft); gap: 16px; }
.toggle:last-child { border-bottom: 0; }
.toggle__label { font-size: 13.5px; font-weight: 600; }
.toggle__desc { font-size: 12px; color: var(--stone); margin-top: 2px; }
.switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; display: inline-block; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; transition: background .15s, border-color .15s; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; background: var(--stone); border-radius: 50%; transition: transform .15s, background .15s; }
.switch input:checked + .track { background: var(--signal-strong); border-color: var(--signal-strong); }
.switch input:checked + .track .thumb { transform: translateX(17px); background: #f3e8ec; }

.kyc-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.kyc-box .k-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--stone); }

.kyc-page { max-width: 1100px; }
.kyc-page__head { margin-bottom: 22px; }
.kyc-page__head h1 { font-size: 22px; font-weight: 650; font-family: var(--display); margin: 0 0 6px; }
.kyc-page__head p { margin: 0; color: var(--stone); font-size: 13.5px; }
.kyc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 28.8rem; }
.kyc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 100%;
}
.kyc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kyc-card__top h2 { margin: 0; font-size: 16px; font-weight: 650; font-family: var(--display); }
.kyc-card__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.kyc-card__status--ok { color: var(--ok); }
.kyc-card__status--wait { color: var(--signal); }
.kyc-card__status--off { color: var(--bad); }
.kyc-card__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kyc-card__features li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.kyc-card__features li.is-on { color: var(--bone); }
.kyc-card__features li.is-off { color: var(--faint); }
.kyc-card__mark { display: inline-flex; color: inherit; }
.kyc-card__features li.is-on .kyc-card__mark { color: var(--ok); }
.kyc-card__features li.is-off .kyc-card__mark { color: var(--bad); }
.kyc-card__reqs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.kyc-card__reqs-k { display: block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.kyc-card__reqs p { margin: 0 0 6px; display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--stone); }
.kyc-card__reqs p small { display: block; color: var(--faint); font-size: 11px; }
.kyc-card__cta { margin-top: 4px; width: 100%; justify-content: center; text-align: center; }
.kyc-card__cta--ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  color: var(--faint); font-size: 13px; font-weight: 600;
}
.kyc-apply {
  margin-top: 22px;
  max-width: 480px;
  padding: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.kyc-apply h3 { margin: 0 0 14px; font-size: 16px; font-family: var(--display); }
.kyc-apply select, .kyc-apply textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel-2); color: var(--bone);
  font-size: 13.5px; font-family: inherit;
}
.kyc-apply__check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--stone); margin: 8px 0 14px; }
.kyc-apply__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
@media (max-width: 900px) {
  .kyc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .settings-inline-form { flex-direction: column; align-items: stretch; }
  .sec-row { flex-wrap: wrap; }
  .ref-link { flex-wrap: wrap; }
  .ref-link .btn { width: 100%; }
  .ref-stats { grid-template-columns: 1fr; }
  /* Phone: pin the panel to the bottom. Overlay does not scroll — only the
     panel body does — so the sheet cannot be dragged with the page behind it. */
  .lk-sheet {
    padding: 0;
    align-items: flex-end;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  .lk-sheet__backdrop {
    touch-action: none;
  }
  .lk-sheet__panel {
    width: 100%;
    max-width: none;
    max-height: min(88dvh, calc(100dvh - 12px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
    margin: 0;
    flex-shrink: 0;
    touch-action: pan-y;
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
  }
  .lk-sheet:not([hidden]) .lk-sheet__panel {
    transform: translateY(0);
  }
  @starting-style {
    .lk-sheet:not([hidden]) .lk-sheet__panel {
      transform: translateY(100%);
    }
  }
  /* Markets table (4 cols: Asset/Network/Price/24h) has no mobile handling —
     "Network" text (Bitcoin/Ethereum/TRC20…) pushes Price+24h off the right
     edge with no scroll affordance. Drop the least-essential column and
     tighten padding so the other three fit without clipping. */
  .landing__markets th:nth-child(2),
  .landing__markets td:nth-child(2) {
    display: none;
  }
  .landing__markets th,
  .landing__markets td {
    padding: 12px 8px;
  }
  .landing__markets th:first-child,
  .landing__markets td:first-child {
    padding-left: 4px;
  }
  .landing__markets th:last-child,
  .landing__markets td:last-child {
    padding-right: 4px;
  }
  .landing__markets .sym > div > span { display: none; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .lk-sheet__panel { transition: none; }
}

/* ── Notifications ──────────────────────────────────────────────────── */
.notif-card .lk-desk__more {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.notif-list { display: flex; flex-direction: column; }
.notif-row-form { display: contents; }
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 10px;
  margin: 0 -10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.notif-row:hover { background: color-mix(in srgb, var(--bone) 5%, transparent); }
.notif-row.is-unread .notif-row__title { font-weight: 700; }
.notif-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--panel-2);
  color: var(--stone);
}
.notif-row__icon--ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.notif-row__icon--bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.notif-row__icon--welcome {
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 16%, transparent);
}
.notif-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-row__title { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.notif-row__desc { font-size: 13px; color: var(--stone); line-height: 1.4; }
.notif-row__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; flex-shrink: 0; padding-top: 2px; }
.notif-row__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }

/* ── Tables ─────────────────────────────────────────────────────────── */
table.holdings, table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.holdings th, table.grid th { text-align: left; color: var(--stone); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
table.holdings td, table.grid td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
table.holdings tr:last-child td, table.grid tr:last-child td { border-bottom: 0; }
.asset-cell { display: flex; align-items: center; gap: 10px; }
.asset-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; flex-shrink: 0; overflow: hidden; position: relative; }
.asset-ico > * { grid-area: 1 / 1; }
.asset-ico img, .asset-ico svg { width: 100%; height: 100%; display: block; }
.asset-ico img { object-fit: contain; }
.asset-ico__fallback { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; }
.asset-cell strong { display: block; font-size: 13px; }
.asset-cell span:not(.asset-ico):not(.asset-ico__fallback) { display: block; color: var(--stone); font-size: 11.5px; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }

.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.activity-row:last-child { border-bottom: 0; }
.activity-row .what { font-size: 13.5px; font-weight: 600; }
.activity-row .meta { font-size: 12px; color: var(--stone); margin-top: 2px; }
.activity-row .when { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; }
.pill--ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill--bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.pill--wait { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }

/* ── Forms (deposit/withdraw/trade) ────────────────────────────────── */
.form-panel { max-width: 460px; }
.form-panel--deposit { max-width: none; }
.deposit-step { margin-bottom: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.deposit-step--last { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.deposit-step__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.deposit-step__num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--panel-2); border: 1px solid var(--line);
  font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--bone);
}
.deposit-step__title { font-size: 14px; font-weight: 600; }
.deposit-step__hint { font-size: 12px; color: var(--stone); margin-top: 2px; }

.asset-select { position: relative; display: flex; flex-direction: column; gap: 6px; }
.asset-select__btn { display: none; }
.asset-select.is-ready .asset-select__native {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.asset-select.is-ready .asset-select__btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--bone); text-align: left;
}
.asset-select__btn:hover { border-color: var(--panel-3); }
.asset-select.is-open .asset-select__btn { border-color: var(--signal-strong); }
.asset-select__btn .asset-ico { width: 24px; height: 24px; }
.asset-select__btn-text {
  display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1;
}
.asset-select__btn-text strong { font-size: 14px; font-weight: 700; }
.asset-select__btn-text span {
  font-size: 12.5px; color: var(--stone);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asset-select__btn > svg { color: var(--faint); transition: transform .15s ease; flex-shrink: 0; }
.asset-select.is-open .asset-select__btn > svg { transform: rotate(180deg); color: var(--stone); }
.asset-select__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  display: flex; flex-direction: column; max-height: 340px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(0,0,0,.45);
  overflow: hidden;
}
.asset-select__menu[hidden] { display: none; }
.asset-select__search { padding: 10px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.asset-select__search input {
  width: 100%; height: 36px; padding: 0 10px; background: var(--ink);
}
.asset-select__search input::placeholder { color: var(--faint); }
.asset-select__list { overflow-y: auto; padding: 6px; }
.asset-select__row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent;
  border-radius: var(--radius-sm); color: inherit; text-align: left;
}
.asset-select__row:hover { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.asset-select__row.is-active { background: color-mix(in srgb, var(--signal) 10%, transparent); }
.asset-select__row .asset-ico { width: 24px; height: 24px; }
.asset-select__sym { font-size: 13px; }
.asset-select__sym strong { color: var(--bone); }
.asset-select__row.is-active .asset-select__sym strong { color: var(--signal); }
.asset-select__name {
  margin-left: auto; font-size: 12px; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asset-select__check { flex-shrink: 0; color: var(--signal); opacity: 0; }
.asset-select__row.is-active .asset-select__check { opacity: 1; }
.asset-select__empty {
  padding: 16px 10px; font-size: 12.5px; color: var(--faint); text-align: center;
}
.deposit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.deposit-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 6px;
  border: 1px solid var(--line); background: var(--panel-2);
  border-radius: var(--radius-sm); color: var(--stone); font-weight: 600; font-size: 12.5px;
}
.deposit-chip .asset-ico { width: 22px; height: 22px; }
.deposit-chip:hover { border-color: var(--panel-3); color: var(--bone); }
.deposit-chip.is-active { border-color: var(--signal); color: var(--bone); background: color-mix(in srgb, var(--signal) 12%, var(--panel-2)); }
.deposit-nets { display: flex; flex-direction: column; gap: 8px; }
.deposit-net {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 13px;
}
.deposit-net input { accent-color: var(--signal); }
.deposit-net.is-active { border-color: var(--signal); }
.deposit-result { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.deposit-qr {
  width: 168px; height: 168px; padding: 8px;
  background: #fff; border-radius: var(--radius-sm);
}
.deposit-qr svg { display: block; width: 100%; height: 100%; }
.withdraw-amount {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 4px 4px 0;
}
.withdraw-amount input {
  flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; box-shadow: none;
}
.withdraw-amount input:focus { outline: none; border-color: transparent; }
.withdraw-amount__all {
  border: 0; background: transparent; color: var(--signal); font-weight: 700; font-size: 13px; padding: 0 8px; height: 36px;
}
.withdraw-amount__all:hover { color: var(--bone); }
.withdraw-amount__sym {
  display: inline-flex; align-items: center; height: 32px; padding: 0 10px;
  border-radius: var(--radius-sm); background: color-mix(in srgb, var(--signal) 16%, var(--panel-2));
  color: var(--bone); font-weight: 700; font-size: 12px; margin-right: 4px;
}
.withdraw-amount__meta {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 8px;
  font-size: 12px; color: var(--stone);
}
.withdraw-amount__meta strong { color: var(--bone); font-weight: 600; }
.notice { padding: 11px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 18px; border: 1px solid; }
.notice--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: #b6d6bc; border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.notice--bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: #e0b3a6; border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.deposit-address { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; margin-bottom: 12px; }
.mono-small { font-family: var(--mono); font-size: 11px; color: var(--stone); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Price chart (lightweight-charts wrapper) ──────────────────────── */
.price-chart { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.price-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.price-chart__sym { display: flex; align-items: center; gap: 10px; }
.price-chart__sym strong { font-size: 15px; }
.price-chart__stats { display: flex; align-items: center; gap: 10px; }
.price-chart__price { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.price-chart__change { font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-sm); }
.price-chart__change--pos { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.price-chart__change--neg { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.price-chart__canvas { position: relative; height: 300px; width: 100%; margin: 0 -6px 4px; isolation: isolate; }
.price-chart__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12.5px; text-align: center; padding: 0 20px; pointer-events: none; }
.price-chart__glow {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 45%;
  /* Stop short of the chart's time-axis row (~28px) — bottom:0 used to run
     the glow all the way down, tinting the axis labels green/red. */
  bottom: 30px;
  background: radial-gradient(ellipse at center bottom, color-mix(in srgb, var(--glow-color, var(--signal)) 24%, transparent) 0%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.price-chart__live {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--dot-color, var(--signal));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-color, var(--signal)) 28%, transparent);
  pointer-events: none;
}
.price-chart__live::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--dot-color, var(--signal));
  opacity: 0.5;
  animation: priceChartPulse 2.2s ease-out infinite;
}
.price-chart__live[hidden] { display: none; }
@keyframes priceChartPulse {
  0% { transform: scale(0.4); opacity: 0.55; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .price-chart__live::after { animation: none; display: none; }
}
.price-chart__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  min-width: 108px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-3) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-chart__tip[hidden] { display: none; }
.price-chart__tip strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.price-chart__tip strong::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot-color, var(--signal));
}
.price-chart__tip span {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}
.price-chart__pills { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.price-chart__pill { border: 1px solid var(--line); background: var(--panel-2); color: var(--stone); border-radius: var(--radius-sm); padding: 7px 13px; font-size: 12px; font-weight: 600; font-family: var(--mono); }
.price-chart__pill:hover { color: var(--bone); border-color: var(--panel-3); }
.price-chart__pill.is-active { background: var(--signal-ink); color: var(--bone); border-color: var(--signal-strong); }

/* ── Candlestick chart (real OHLC, see getOHLC()) — homepage markets + trade terminal ────── */
.candle-chart { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.candle-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.candle-chart__label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--faint); text-transform: uppercase; }
.candle-chart__tf { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px; }
.candle-chart__tf-btn { border: 0; background: transparent; color: var(--stone); border-radius: 5px; padding: 5px 10px; font-size: 11.5px; font-weight: 600; font-family: var(--mono); }
.candle-chart__tf-btn:hover { color: var(--bone); }
.candle-chart__tf-btn.is-active { background: var(--panel-2); color: var(--bone); }
.candle-chart__price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.candle-chart__price { font-family: var(--mono); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; }
.candle-chart__chg { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.candle-chart__chg.pos { color: var(--ok); }
.candle-chart__when { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.candle-chart__ohlc { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; font-size: 11px; color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.candle-chart__ohlc strong { color: var(--stone); font-weight: 600; margin-left: 4px; }
.candle-chart__ohlc strong.pos { color: var(--ok); }
.candle-chart__ohlc strong.neg { color: var(--bad); }
.candle-chart__canvas { position: relative; height: 320px; width: 100%; margin: 0 -6px 4px; }
.candle-chart__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12.5px; text-align: center; padding: 0 20px; pointer-events: none; z-index: 1; }
@media (max-width: 640px) {
  .candle-chart__head { flex-wrap: wrap; }
  .candle-chart__canvas { height: 260px; }
}

/* ── Trading terminal (/app/trade) ─────────────────────────────────────
   Real order-book layout: book + tape on the left, chart + orders center,
   buy/sell form on the right. Flat/blockless throughout — dividers, not
   boxed cards, matching the rest of the site. */
.terminal__pairbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.terminal__pair-icon { display: inline-flex; width: 26px; height: 26px; }
.terminal__pair-icon svg, .terminal__pair-icon img { width: 100%; height: 100%; }
.terminal__pair-select { position: relative; }
.terminal__pair-select-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--bone); font-size: 15px; font-weight: 700; padding: 4px 2px; cursor: pointer; }
.terminal__pair-select-btn svg { color: var(--faint); transition: transform .15s ease; flex-shrink: 0; }
.terminal__pair-select-btn:hover svg { color: var(--stone); }
.terminal__pair-select.is-open .terminal__pair-select-btn svg { transform: rotate(180deg); }

.terminal__pair-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 40; width: 300px; max-height: 420px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(0,0,0,.45); overflow: hidden; }
.terminal__pair-menu[hidden] { display: none; }
.terminal__pair-menu-search { padding: 10px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.terminal__pair-menu-search input { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--bone); font-size: 12.5px; padding: 8px 10px; box-sizing: border-box; }
.terminal__pair-menu-search input:focus { outline: none; border-color: var(--panel-3); }
.terminal__pair-menu-search input::placeholder { color: var(--faint); }
.terminal__pair-menu-list { overflow-y: auto; padding: 6px; }
.terminal__pair-menu-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.terminal__pair-menu-row:hover { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.terminal__pair-menu-row.is-active { background: color-mix(in srgb, var(--signal) 10%, transparent); color: var(--signal); }
.terminal__pair-menu-row .asset-ico { width: 24px; height: 24px; flex-shrink: 0; }
.terminal__pair-menu-sym { font-size: 13px; white-space: nowrap; }
.terminal__pair-menu-sym strong { color: var(--bone); }
.terminal__pair-menu-row.is-active .terminal__pair-menu-sym strong { color: var(--signal); }
.terminal__pair-menu-sym small { color: var(--faint); font-weight: 400; }
.terminal__pair-menu-name { margin-left: auto; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal__pair-menu-row.is-active .terminal__pair-menu-name { display: none; }
.terminal__pair-menu-row svg { flex-shrink: 0; color: var(--signal); }
.terminal__pair-price-block { display: flex; flex-direction: column; gap: 1px; }
.terminal__pair-price { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.terminal__pair-price.pos { color: var(--ok); }
.terminal__pair-price.neg { color: var(--bad); }
.terminal__pair-chg { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.terminal__pair-chg.pos { color: var(--ok); }
.terminal__pair-chg.neg { color: var(--bad); }
.terminal__pair-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.terminal__pair-stats > div { display: flex; flex-direction: column; gap: 2px; }
.terminal__pair-stats span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.terminal__pair-stats strong { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--stone); }

.terminal__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.terminal__chart-col, .terminal__form-col { min-width: 0; }

/* lightweight-charts v4 leaves touch-action unset on its own canvases, so on touch devices the
   browser's native scroll/zoom claims the gesture before the library's own pan/pinch/axis-drag
   handlers get a chance to run. Split by region: the main plot allows vertical page-scroll
   passthrough (matches handleScroll.vertTouchDrag:false in trade-chart.js) while letting the
   library capture horizontal drag/pinch; the price-scale (right) and time-scale (bottom) strips
   need touch-action:none so dragging them to rescale isn't swallowed as a page scroll. */
/* Right price scale is always the last cell of the plot row; the time scale is the last row.
   Both are addressed positionally rather than by index, since a left price axis may or may not
   be present. The plot cell itself is deliberately left alone so the page still scrolls
   vertically over the candles (trade-chart.js pins it to pan-y explicitly). */
.trade-chart__canvas table tr:first-child td:last-child,
.trade-chart__canvas table tr:first-child td:last-child div,
.trade-chart__canvas table tr:first-child td:last-child canvas,
.trade-chart__canvas table tr:last-child td,
.trade-chart__canvas table tr:last-child td div,
.trade-chart__canvas table tr:last-child td canvas {
  touch-action: none;
}

.terminal__tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.terminal__tabs button { background: transparent; border: none; color: var(--stone); font-size: 12.5px; font-weight: 700; padding: 8px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.terminal__tabs button:hover { color: var(--bone); }
.terminal__tabs button.is-active { color: var(--bone); border-bottom-color: var(--signal); }

.terminal__book-head { display: flex; justify-content: space-between; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 0 2px 6px; }
.terminal__book-side { display: flex; flex-direction: column; min-height: 36px; }
.terminal__book-row { position: relative; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; padding: 3px 4px; overflow: hidden; border-radius: 2px; }
.terminal__book-depth { position: absolute; top: 0; bottom: 0; right: 0; z-index: 0; }
.terminal__book-row--ask .terminal__book-depth { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.terminal__book-row--bid .terminal__book-depth { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.terminal__book-row--ask .terminal__book-price { color: var(--bad); }
.terminal__book-row--bid .terminal__book-price { color: var(--ok); }
.terminal__book-price, .terminal__book-qty { position: relative; z-index: 1; }
.terminal__book-qty { color: var(--stone); }
.terminal__book-mid { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--bone); text-align: center; padding: 9px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 2px 0; }
.terminal__book-empty { color: var(--faint); font-size: 11.5px; padding: 16px 4px; text-align: center; line-height: 1.5; }

.terminal__trade-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; padding: 3px 4px; }
.terminal__trade-time { color: var(--faint); }

/* Horizontal order-book strip — sits full-width below .terminal__grid: bids left, best-price
   divider in the middle, asks right. Same underlying row/depth-bar styles as above. */
.terminal__book-strip { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.terminal__book-strip-grid { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 0; align-items: stretch; }
.terminal__book-strip-col { min-width: 0; padding: 0 18px; }
.terminal__book-strip-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); padding: 0 12px; }
.terminal__book-strip-mid-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.terminal__book-strip-mid span:last-child { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--bone); }

.terminal__side-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.terminal__side-tabs button { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: transparent; color: var(--stone); font-weight: 700; font-size: 13px; cursor: pointer; }
.terminal__side-tabs button:hover { border-color: var(--panel-3); color: var(--bone); }
.terminal__side-tabs button[data-side-tab="buy"].is-active { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.terminal__side-tabs button[data-side-tab="sell"].is-active { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

.terminal__type-tabs { display: flex; gap: 16px; margin-bottom: 16px; }
.terminal__type-tabs button { background: transparent; border: none; color: var(--stone); font-size: 12.5px; font-weight: 700; padding: 0 0 6px; cursor: pointer; border-bottom: 2px solid transparent; }
.terminal__type-tabs button:hover { color: var(--bone); }
.terminal__type-tabs button.is-active { color: var(--bone); border-bottom-color: var(--panel-3); }

.terminal__pct-row { display: flex; gap: 6px; margin: -6px 0 16px; }
.terminal__pct-row button { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--stone); font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: var(--radius-sm); cursor: pointer; }
.terminal__pct-row button:hover { color: var(--bone); border-color: var(--panel-3); }

.terminal__avail { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--stone); margin-bottom: 8px; }
.terminal__avail span { color: var(--bone); font-family: var(--mono); }
.terminal__fee-note { font-size: 10.5px; color: var(--faint); line-height: 1.5; margin: 6px 0 16px; }

.terminal__form-col .btn.is-buy,
.terminal__form-col .btn.is-sell {
  border-radius: 10px;
  transform: none;
}
.terminal__form-col .btn.is-buy::before,
.terminal__form-col .btn.is-sell::before {
  content: none;
}
.terminal__form-col .btn.is-buy { background: var(--ok); border-color: var(--ok); color: #0d1b12; }
.terminal__form-col .btn.is-buy:hover { filter: brightness(1.08); color: #0d1b12; border-radius: 10px; }
.terminal__form-col .btn.is-sell { background: var(--bad); border-color: var(--bad); color: #200e0a; }
.terminal__form-col .btn.is-sell:hover { filter: brightness(1.08); color: #200e0a; border-radius: 10px; }

.terminal__balances { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.terminal__balances > div { display: flex; justify-content: space-between; }
.terminal__balances span { color: var(--stone); }
.terminal__balances strong { font-family: var(--mono); color: var(--bone); font-weight: 600; }

@media (max-width: 960px) {
  .terminal__grid { grid-template-columns: 1fr; }
  .terminal__chart-col { order: 0; }
  .terminal__form-col { order: 1; }
  .terminal__pair-stats { gap: 14px; }
  .terminal__book-strip-grid { grid-template-columns: 1fr; }
  .terminal__book-strip-mid { flex-direction: row; justify-content: space-between; border-left: none; border-right: none; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 10px 4px; }
}

.landing { min-height: 100vh; position: relative; z-index: 1; }

.site-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
  background: var(--ink);
}

/* Full-bleed sticky bar; the centered max-width nav sits inside it so the background/blur spans
   the whole viewport width while the links stay aligned with the rest of the page content. */
.landing__nav-bar { position: sticky; top: 0; z-index: 60; background: transparent; padding: 14px 20px 0; border-bottom: 0; }
.landing__nav-bar.is-scrolled { background: transparent; }

.landing__nav { position: relative; display: flex; flex-direction: column; width: min(1100px, 100%); margin: 0 auto; }
.landing__nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 16px; }
.landing__brand { display: flex; align-items: center; height: 40px; gap: 12px; font-weight: 700; font-size: 14px; font-family: var(--display); flex-shrink: 0; }
.landing__brand-name { letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.landing__brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--signal); font-weight: 700; font-family: var(--display); font-size: 13px; flex-shrink: 0; }
.landing__brand-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.landing__nav-links { display: flex; align-items: center; gap: 2px; }
.landing__nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--stone); }
.landing__nav-links a:hover { color: var(--bone); }
.landing__nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.landing__nav-actions .btn { height: 40px; padding: 0 18px; font-size: 14px; }

.landing__hero { position: relative; padding: 60px 0; }
.landing__hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 6vw; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 52px; align-items: center; }
.landing__hero-art { display: flex; justify-content: center; transform: translateX(-36px); }
.landing__hero-art img { width: 100%; max-width: 460px; height: auto; display: block; }
.landing__hero-content { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.landing__hero h1 { font-family: var(--display); font-size: clamp(28px, 3.1vw, 42px); line-height: 1.12; margin: 0 0 22px; letter-spacing: -0.03em; font-weight: 600; }
.landing__hero h1 span { display: block; white-space: nowrap; }
.landing__hero h1 em { font-style: normal; color: var(--signal); }
.landing__hero-lead { border-top: 2px solid var(--line); padding-top: 20px; }
.landing__hero-lead p { font-size: 15px; color: var(--stone); margin: 0 0 22px; line-height: 1.65; max-width: 460px; }
.landing__hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.landing__join {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 520px);
  height: 56px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  background: var(--bone);
}
.landing__join-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
}
.landing__join-input::placeholder { color: var(--faint); }
.landing__join-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.landing__join-go {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 40%, transparent);
}
.landing__join-go:hover,
.landing__join-go:focus-visible {
  color: #fff;
}
.landing__hero .btn { height: 46px; padding: 0 22px; font-size: 13.5px; }
.landing__hero-note { font-size: 12px; color: var(--faint); }
.landing__hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--stone); flex-wrap: wrap; }
.landing__hero-trust__stars { color: #00b67a; font-size: 15px; letter-spacing: 1px; }
.landing__hero-trust__text strong { color: var(--bone); font-weight: 600; }
.landing__hero-trust__text > strong:first-child { margin-right: 0.4em; }
.landing__hero-trust__brand { color: #00b67a; font-weight: 700; letter-spacing: -0.01em; margin-left: 0.15em; }

@media (max-width: 900px) {
  .landing__hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .landing__hero-actions { justify-content: center; }
  .landing__hero-trust { justify-content: center; }
  .landing__hero-lead p { margin-left: auto; margin-right: auto; }
  .landing__hero-art { transform: none; }
  .landing__hero-art img { max-width: 300px; }
  .landing__hero h1 span { white-space: normal; }
}

.landing__strip { padding: 54px 0; position: relative; overflow: hidden; }
.landing__strip::before { content: ''; position: absolute; top: 16%; right: 9%; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); opacity: .5; }
.landing__strip-row { display: flex; flex-wrap: wrap; gap: 72px; max-width: 1240px; margin: 0 auto; padding: 0 6vw; }
.landing__strip-item { position: relative; flex: 0 0 auto; }
.landing__strip-item:nth-child(1)::after { content: ''; position: absolute; left: 2px; bottom: -16px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); opacity: .5; }
.landing__strip-item:nth-child(2)::after { content: ''; position: absolute; right: -18px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); opacity: .45; }
.strip-avatars { display: flex; margin-bottom: 12px; }
.strip-avatars__item { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -10px; }
.strip-avatars__item:first-child { margin-left: 0; }
.landing__strip-item .n { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.landing__strip-item .l { font-size: 13px; color: var(--stone); margin-top: 8px; }

.landing__section { padding: 60px 6vw; max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.landing__section-head { margin-bottom: 32px; max-width: 640px; }
.landing__section-head .eyebrow { margin-bottom: 10px; }
.landing__section-head h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 10px; font-weight: 600; letter-spacing: -0.03em; }
.landing__section-head p { margin: 0; color: var(--stone); font-size: 14px; line-height: 1.6; }

.landing__markets table { width: 100%; border-collapse: collapse; font-size: 13px; }
.landing__markets th { text-align: left; color: var(--stone); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.landing__markets td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.landing__markets tr:last-child td { border-bottom: 0; }
.landing__markets tbody tr { transition: background .12s ease; }
.landing__markets tbody tr:hover { background: var(--panel-2); }
.landing__markets .sym { display: flex; align-items: center; gap: 10px; }
.landing__markets .sym > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.landing__markets .sym strong { transition: color .15s ease; line-height: 1.15; }
.landing__markets .sym span { color: var(--stone); font-size: 12px; line-height: 1.15; }
.landing__markets .sym:hover strong { color: var(--signal); }
.landing__markets .num { font-family: var(--mono); }
.landing__markets td.num.pos, .landing__markets td.num.neg { display: table-cell; }
.landing__markets .num.pos span, .landing__markets .num.neg span { display: inline-flex; padding: 4px 9px; border-radius: var(--radius-sm); font-weight: 700; font-size: 12px; }
.landing__markets .num.pos span { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.landing__markets .num.neg span { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }

.landing__grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.landing__list { display: flex; flex-direction: column; }
.landing__list-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.landing__list-item:first-child { padding-top: 0; }
.landing__list-item:last-child { border-bottom: 0; }
.landing__list-item .tag { font-family: var(--mono); font-size: 11px; color: var(--faint); flex-shrink: 0; width: 26px; padding-top: 2px; }
.landing__list-item h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.landing__list-item p { font-size: 13px; color: var(--stone); margin: 0; line-height: 1.6; }

.landing__panel-flat { border-left: 1px solid var(--line); padding-left: 28px; }
.landing__panel-flat .eyebrow { margin-bottom: 14px; }
@media (max-width: 900px) { .landing__panel-flat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }

.landing__faq { display: flex; flex-direction: column; max-width: 760px; }
.landing__faq-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.landing__faq-item:last-child { border-bottom: 0; }
.landing__faq-item h3 { font-size: 14.5px; margin: 0 0 8px; font-weight: 600; }
.landing__faq-item p { font-size: 13.5px; color: var(--stone); margin: 0; line-height: 1.65; }

.landing__cta { padding: 60px 6vw 76px; max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); text-align: center; }
.landing__cta h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 42px); margin: 0 0 14px; font-weight: 600; letter-spacing: -0.02em; }
.landing__cta p { margin: 0 0 26px; color: var(--stone); font-size: 14px; }
.landing__cta .btn { height: 48px; padding: 0 28px; font-size: 14px; }

.landing__foot { padding: 26px 6vw 40px; max-width: 1240px; margin: 0 auto; color: var(--faint); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.landing__foot a { color: var(--faint); }
.landing__foot a:hover { color: var(--stone); }

.landing__nav-links a.is-active { color: var(--bone); }

/* professional multi-column footer, used across all public/marketing pages */
.landing__foot2 { border-top: 1px solid var(--line); background: transparent; margin-top: 40px; }
.landing__foot2-top { max-width: 1240px; margin: 0 auto; padding: 48px 6vw 32px; display: grid; grid-template-columns: 1.45fr 0.85fr 0.85fr 0.85fr 1.9fr; gap: 32px; align-items: start; }
.landing__foot2-brand p { color: var(--stone); font-size: 12.5px; line-height: 1.65; margin: 14px 0 0; max-width: 280px; }
.landing__foot2-marks {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 22px;
  max-width: none;
}
.landing__foot2-marks img {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  opacity: 0.72;
}
.landing__foot2-col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.landing__foot2-col h4 { margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.landing__foot2-col a { font-size: 13px; color: var(--stone); }
.landing__foot2-col a:hover { color: var(--bone); }
.landing__foot2-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  align-items: start;
}
.landing__foot2-legal > div { display: flex; flex-direction: column; gap: 11px; }
.landing__foot2-desk {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 6vw 32px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1.15fr;
  gap: 32px 40px;
  align-items: start;
}
.landing__foot2-desk-col h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
}
.landing__foot2-desk-col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}
.landing__foot2-desk-col strong { color: var(--bone); font-weight: 700; }
.landing__foot2-ids { display: block; margin-top: 12px; }
.landing__foot2-desk-col dl { margin: 0; }
.landing__foot2-desk-col dl > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.45;
}
.landing__foot2-desk-col dt { flex: 0 0 auto; margin: 0; color: var(--faint); font-weight: 400; }
.landing__foot2-desk-col dd { margin: 0; color: var(--stone); }
.landing__foot2-desk-col a { color: inherit; }
.landing__foot2-desk-col a:hover { color: var(--bone); }
.landing__foot2-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 6vw 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
}
.landing__foot2-copy { margin: 0; }
.landing__foot2-notice { margin: 0; max-width: 1080px; }
.landing__foot2-notice strong { color: var(--stone); font-weight: 650; }
@media (max-width: 900px) {
  .landing__foot2-top { grid-template-columns: 1fr 1fr; }
  .landing__foot2-brand { grid-column: 1 / -1; }
  .landing__foot2-col--legal { grid-column: 1 / -1; }
  .landing__foot2-desk { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .landing__foot2-legal { grid-template-columns: 1fr; }
}

/* markets page */
.markets-page__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.markets-page__search-wrap { position: relative; width: 260px; }
.markets-page__search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.markets-page__search { height: 38px; padding: 0 14px 0 36px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--bone); font-size: 13px; width: 100%; }
.markets-page__search:focus { outline: none; border-color: var(--signal-strong); }
.markets-page__count { color: var(--stone); font-size: 12.5px; }
.landing__markets .rank { color: var(--faint); font-family: var(--mono); font-size: 12px; width: 32px; }

/* simple content pages (about/fees/security/support/terms/privacy) */
.doc-page { max-width: 1100px; margin: 0 auto; padding: 64px 6vw 40px; }
.doc-page__eyebrow { margin-bottom: 14px; }
.doc-page h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; font-weight: 600; letter-spacing: -0.02em; }
.doc-page > p.lead,
.doc-page__body > p.lead { color: var(--stone); font-size: 15px; line-height: 1.65; margin: 0 0 40px; max-width: 620px; }
.doc-page section { padding: 28px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 96px; }
.doc-page section:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; }
.doc-page h2 { font-size: 17px; margin: 0 0 12px; font-weight: 600; }
.doc-page h3 { font-size: 14px; margin: 20px 0 8px; font-weight: 600; color: var(--bone); }
.doc-page p { color: var(--stone); font-size: 13.5px; line-height: 1.75; margin: 0 0 12px; }
.doc-page ul { margin: 0 0 12px; padding-left: 18px; color: var(--stone); font-size: 13.5px; line-height: 1.75; }
.doc-page li { margin-bottom: 6px; }
.doc-page table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 16px; }
.doc-page th { text-align: left; color: var(--stone); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.doc-page td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--bone); }

/* two-column layout: sticky "on this page" sidebar + body — injected by doc-toc.js when a page
   has enough sections to be worth navigating */
.doc-page--toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 32px; }
.doc-page__body { min-width: 0; }
.doc-page__toc {
  position: sticky;
  top: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.doc-page__toc-label { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.doc-page__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-page__toc a {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--stone);
}
.doc-page__toc a:hover { color: var(--signal); }
@media (max-width: 900px) {
  .doc-page--toc { grid-template-columns: 1fr; }
  .doc-page__toc { position: static; order: -1; margin-bottom: 8px; }
}

.placeholder-panel { margin-top: 8px; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.placeholder-panel__icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--signal); margin-bottom: 4px; }
.placeholder-panel strong { font-size: 14.5px; font-weight: 600; color: var(--bone); }
.placeholder-panel span { font-size: 13px; color: var(--stone); line-height: 1.6; max-width: 440px; }
.doc-page .doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.doc-page .doc-toc a { font-size: 12px; color: var(--stone); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 11px; }
.doc-page .doc-toc a:hover { color: var(--bone); border-color: var(--panel-3); }
.doc-page__updated { color: var(--faint); font-size: 11.5px; margin-bottom: 6px; }

@media (max-width: 900px) {
  .landing__nav-links { display: none; }
  .landing__nav-row { grid-template-columns: 1fr auto; padding-left: 12px; }
  .landing__strip-row { gap: 32px 40px; }
  .landing__strip-item { flex: 1 1 40%; }
  .landing__grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Homepage atmosphere — backgrounds, not boxes ──────────────────────
   Every section stays blockless (no filled/shadowed cards); "interesting"
   comes from layered CSS gradients + inline SVG line-art sitting *behind*
   the content, at low opacity, never competing with text. Applied as
   modifier classes on the existing full-bleed .landing__* wrappers. */
.bg-atmos { position: relative; }
.bg-atmos > .bg-atmos__layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-atmos > *:not(.bg-atmos__layer):not(.hex-overlay) { position: relative; z-index: 1; }


/* Real tiled hex pattern (defined once as <pattern id="hexTile">, referenced via url()) rather
   than a flat CSS gradient — faded at the edges with a CSS mask so it reads as atmosphere, not
   wallpaper. */
.hex-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hex-overlay--mobile { mask-image: radial-gradient(560px circle at 20% 50%, black 0%, transparent 72%); -webkit-mask-image: radial-gradient(560px circle at 20% 50%, black 0%, transparent 72%); }

/* ── Mobile app — Download 7 layout: centered copy, store chips, layered phones ─ */
.mobile-app {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.mobile-app__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  min-height: 420px;
  container-type: inline-size;
}
.mobile-app__brand {
  margin-bottom: 22px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.mobile-app__copy h2 {
  font-family: var(--display);
  font-size: clamp(28px, 8.4cqi, 48px);
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: none;
  white-space: nowrap;
}
.mobile-app__copy p {
  color: var(--stone);
  font-size: 20px;
  line-height: 1.6;
  max-width: 22em;
  margin: 0 0 36px;
}
.mobile-app__em {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-style: normal;
}
.mobile-app__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.mobile-app__copy .store-badge svg {
  width: 210px;
  height: 62px;
}
.mobile-app__copy p.mobile-app__note {
  margin: 0 !important;
  font-size: 15px !important;
  color: var(--faint) !important;
  max-width: none !important;
  width: max-content;
  line-height: 1.45;
  white-space: nowrap;
}
.mobile-app__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
  margin-top: 0;
}
.mobile-app__deck {
  position: relative;
  width: min(100%, 480px);
  height: 420px;
}
.mobile-app__shot {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: bottom center;
}
.mobile-app__shot--front {
  width: 240px;
  transform: translateX(-50%) translateX(52px);
  z-index: 3;
}
.mobile-app__shot--left {
  width: 200px;
  transform: translateX(-50%) translateX(-78px) rotate(-14deg) translateY(18px);
  z-index: 1;
}

.store-badge { display: inline-flex; cursor: not-allowed; opacity: 1; }
.store-badge svg { display: block; flex-shrink: 0; }

@media (max-width: 900px) {
  .mobile-app { grid-template-columns: 1fr; }
  .mobile-app__copy { max-width: none; min-height: 0; }
  .mobile-app__copy h2 { font-size: clamp(32px, 8vw, 44px); }
  .mobile-app__art { min-height: 0; margin-top: 12px; }
  /* .mobile-app__shot is bottom:0-anchored with height:auto — at width:180px
     the front shot's native ~700:1517 aspect ratio renders ~390px tall, well
     over a 320px deck, so it pokes up past the deck's own box and overlaps
     .mobile-app__note above it. Give the deck enough height to fully contain
     the taller (front) shot instead of trimming it upward. */
  .mobile-app__deck { height: 400px; }
  .mobile-app__shot--front { width: 180px; transform: translateX(-50%) translateX(40px); }
  .mobile-app__shot--left { width: 148px; transform: translateX(-50%) translateX(-56px) rotate(-12deg) translateY(14px); }
  /* Store badges are a fixed 210x62 SVG box each — two side by side need
     434px+ (plus gap), more than a phone screen has, so flex-wrap drops the
     second one to its own row. Shrink them so both fit on one line. */
  .mobile-app__cta { gap: 10px; margin-bottom: 32px; }
  .mobile-app__copy .store-badge svg { width: 165px; height: 48px; }
}

.bg-atmos--soft { background-image: none; }

.bg-atmos--feature > .bg-atmos__layer { background: radial-gradient(560px circle at 4% 105%, color-mix(in srgb, var(--signal) 15%, transparent), transparent 60%); }

.bg-atmos--cta { background: none; }

/* Lets the CTA gradient bleed to the viewport edge while its content stays in the same centered
   column as the rest of the page — a wash behind the section, not a colored card floating on it. */
.cta-bleed { width: 100%; }
.cta-bleed .landing__cta { border-top: 0; }

/* Decorative inline SVG motifs — currentColor/var() so they inherit the palette. */
.motif-orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .45; }

/* ── Feature-highlight rows (alternating text / decorative graphic) ───── */
.feature-rows { display: flex; flex-direction: column; gap: 64px; }
.feature-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.feature-row--rev .feature-row__art { order: 2; }
.feature-row__eyebrow { color: var(--signal); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.feature-row__body h3 { font-family: var(--display); font-size: clamp(20px, 2.6vw, 27px); margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
.feature-row__body p { color: var(--stone); font-size: 14px; line-height: 1.7; margin: 0 0 16px; max-width: 460px; }
.feature-row__body a { font-size: 13px; color: var(--signal); font-weight: 600; }
.feature-row__art { position: relative; height: 220px; display: grid; place-items: center; }
.feature-row__art-icon { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--signal); background: var(--ink); }
@media (max-width: 900px) {
  .feature-row, .feature-row--rev { grid-template-columns: 1fr; gap: 20px; }
  .feature-row--rev .feature-row__art { order: 0; }
  .feature-row__art { height: 160px; }
}

/* ── Popular-rates table sparklines (real price_history, never faked) ── */
.sparkline { display: block; overflow: visible; }
.sparkline polyline, .sparkline path { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sparkline--pos polyline, .sparkline--pos path { stroke: var(--ok); }
.sparkline--neg polyline, .sparkline--neg path { stroke: var(--bad); }
.sparkline--flat { color: var(--faint); font-size: 11px; }

/* ── Coin logo strip ("All markets") — bordered chips, not filled cards ── */
.coin-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.coin-strip__item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 96px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.coin-strip__item:hover { border-color: var(--panel-3); }
.coin-strip__item strong { font-size: 12.5px; display: block; }
.coin-strip__item span { font-size: 10.5px; color: var(--faint); display: block; margin-top: 3px; }

/* ── FAQ accordion ─────────────────────────────────────────────────── */
.landing__faq-item { cursor: pointer; }
.landing__faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing__faq-item__q svg { flex-shrink: 0; color: var(--faint); transition: transform .18s ease; }
.landing__faq-item.is-open .landing__faq-item__q svg { transform: rotate(180deg); color: var(--signal); }
.landing__faq-item__a { margin: 10px 0 0; display: none; }
.landing__faq-item.is-open .landing__faq-item__a { display: block; }

/* Live chat floor — bots talking to each other, read-only spectator. */
.live-room {
  display: flex;
  flex-direction: column;
  min-height: min(640px, calc(100dvh - 230px));
  max-width: 920px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.live-room__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--stone);
  font-weight: 700;
  flex-shrink: 0;
}
.live-room__live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.live-room__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.live-room__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.live-room__top strong {
  display: block;
  font-size: 14px;
  text-transform: capitalize;
}
.live-room__top span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--stone);
}
.live-room__feed {
  flex: 1;
  min-height: 280px;
  overflow: auto;
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.live-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 720px;
}
.live-msg.is-in { animation: live-in 0.28s ease; }
@keyframes live-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.live-msg__body { min-width: 0; }
.live-msg__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 3px;
}
.live-msg__meta strong { font-size: 13px; }
.live-msg__meta span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.live-msg__reply {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--stone);
  font-size: 11px;
  font-weight: 700;
}
.live-msg__reply:hover { color: var(--bone); }
.live-msg__quote {
  margin: 0 0 6px;
  padding: 6px 10px;
  border-left: 2px solid var(--signal);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--panel-2) 80%, transparent);
  color: var(--stone);
  font-size: 12px;
  line-height: 1.4;
}
.live-msg__quote strong {
  display: inline;
  margin-right: 6px;
  color: var(--bone);
  font-size: 12px;
}
.live-msg p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bone);
}
.live-msg--me { margin-left: auto; }
.live-msg--me .live-msg__meta strong { color: var(--ok); }
.live-room__typing {
  min-height: 22px;
  padding: 0 18px 6px;
  font-size: 12px;
  color: var(--stone);
  font-style: italic;
}
.live-room__typing[hidden] { display: none !important; min-height: 0; padding: 0; }
.live-room__dock {
  margin-top: auto;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.live-room__replying {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--stone);
  font-size: 12px;
  font-weight: 600;
}
.live-room__replying[hidden] { display: none !important; }
.live-room__replying-x {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--stone);
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}
.live-room__replying-x:hover { color: var(--bone); }
.live-room__composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.live-room__composer input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  padding: 0 14px;
}
.live-room__composer .btn {
  flex: 0 0 auto;
  height: 42px;
  min-width: 92px;
  padding: 0 18px;
}
.live-room__err {
  margin: 0 16px 12px;
  min-height: 16px;
  font-size: 12px;
  color: var(--bad);
}
.live-room__err[hidden] { display: none !important; min-height: 0; margin: 0; }

.desk-sup {
  display: flex;
  flex-direction: column;
  min-height: min(640px, calc(100dvh - 230px));
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.desk-sup__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.desk-sup__face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in srgb, #3c9bf4 35%, transparent);
  flex: none;
}
.desk-sup__face--msg { width: 32px; height: 32px; margin-top: 2px; }
.desk-sup__top-copy { min-width: 0; }
.desk-sup__top-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.desk-sup__top-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--stone);
}
.desk-sup__feed {
  flex: 1;
  min-height: 280px;
  overflow: auto;
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(color-mix(in srgb, var(--line) 80%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
}
.desk-sup__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 86%;
}
.desk-sup__row.is-me {
  margin-left: auto;
  flex-direction: row-reverse;
}
.desk-sup__bubble {
  min-width: 0;
  padding: 8px 12px 7px;
  border-radius: 14px 14px 14px 4px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.desk-sup__row.is-me .desk-sup__bubble {
  background: #3c9bf4;
  border-color: transparent;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.desk-sup__bubble p {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.desk-sup__bubble span {
  display: block;
  font-size: 10.5px;
  opacity: 0.65;
}
.desk-sup__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.desk-sup__composer textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, #000);
  color: inherit;
  font: inherit;
  line-height: 1.4;
}
.desk-sup__composer textarea:focus {
  outline: none;
  border-color: #3c9bf4;
}
.desk-sup__send {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 21px;
  background: #3c9bf4;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.desk-sup__send:disabled { opacity: 0.45; cursor: default; }
.desk-sup__err {
  margin: 0 16px 12px;
  font-size: 12px;
  color: var(--bad);
}
.desk-sup__bubble--media { padding-bottom: 8px; }
.desk-sup__img-wrap {
  display: block;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.desk-sup__img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}
.desk-sup__attach {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--stone);
  cursor: pointer;
}
.desk-sup__attach:hover { background: color-mix(in srgb, var(--panel) 70%, #000); }
.desk-sup__preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 0;
}
.desk-sup__preview[hidden] { display: none; }
.desk-sup__preview img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.desk-sup__preview-clear {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: var(--panel);
  color: var(--stone);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.desk-sup-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.desk-sup-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}
.desk-sup-lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wd-result.lk-sheet { z-index: 90; }
.wd-result .lk-sheet__panel {
  width: min(400px, 100%);
  padding: 28px 24px 20px;
  text-align: center;
}
.wd-result__icon {
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.wd-result__icon svg { display: block; }
.wd-result.is-ok .wd-result__icon { color: #7ee89a; }
.wd-result.is-err .wd-result__icon { color: #ff8f78; }
.wd-result.is-wait .wd-result__icon { color: #e0b45c; }
.wd-result__kicker {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wd-result__kicker--err { color: #ff5c42; }
.wd-result__kicker--ok { color: #34c759; }
.wd-result__kicker--wait { color: #e0b45c; }
.wd-result__title {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--bone);
  text-align: left;
}
.wd-result__title.wd-result__title--plain {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-align: center;
}
.wd-result__title p { margin: 0 0 10px; }
.wd-result__title p:last-child { margin-bottom: 0; }
.wd-result__title h2 { font-size: 1.3em; font-weight: 700; margin: 0 0 10px; }
.wd-result__title h3 { font-size: 1.15em; font-weight: 700; margin: 0 0 10px; }
.wd-result__title h2:last-child, .wd-result__title h3:last-child { margin-bottom: 0; }
.wd-result__title ul, .wd-result__title ol { margin: 0 0 10px; padding-left: 1.3em; text-align: left; }
.wd-result__title blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid currentColor; opacity: 0.85; }
.wd-result__title a { color: inherit; text-decoration: underline; }
.wd-result__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 18px;
  text-align: left;
}
.wd-result__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft, var(--line));
}
.wd-result__facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.wd-result__facts dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--bone) 72%, var(--stone));
}
.wd-result__facts dd {
  margin: 0;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--bone);
  text-align: right;
  word-break: break-all;
}
.wd-result__facts .is-total dd { font-size: 16px; letter-spacing: -0.02em; }
.wd-result__lede {
  margin: 8px 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.4;
}
.wd-result__actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.wd-result__actions .btn { width: auto; padding-left: 22px; padding-right: 22px; }
body:has(.wd-result) .lk-sup { display: none !important; }

/* ── Public help center ──────────────────────────────────────────────── */
.help-hc {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 6vw 64px;
}
.help-hc__hero { position: relative; margin: 0 0 48px; max-width: 760px; }
.help-hc__hero--tight { margin-bottom: 28px; }
.help-hc__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--signal);
}
.help-hc h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.help-hc__lead, .help-hc__dek {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 640px;
}
.help-hc__meta { color: var(--faint); font-size: 12.5px; margin: 12px 0 0; }
.help-hc__search {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 640px;
}
.help-hc__search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.help-hc__search input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  height: 52px;
  padding: 0 16px 0 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--bone);
  font: inherit;
  font-size: 15px;
}
.help-hc__search input:focus { outline: none; border-color: var(--signal-strong); }
.help-hc__search .btn { height: 52px; padding: 0 20px; border-radius: 14px; flex-shrink: 0; }
.help-hc__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-width: 640px;
}
.help-hc__suggest ul { list-style: none; margin: 0; padding: 6px; }
.help-hc__suggest a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--bone);
}
.help-hc__suggest a:hover { background: var(--panel-2); }
.help-hc__suggest em { font-style: normal; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.help-hc__suggest-empty { margin: 0; padding: 14px 16px; color: var(--stone); font-size: 13px; }
.help-hc__block { margin: 0 0 48px; }
.help-hc__h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}
.help-hc__cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.help-hc__cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--bone);
  min-height: 168px;
}
.help-hc__cat:hover { border-color: var(--signal); }
.help-hc__cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--signal);
}
.help-hc__cat strong { font-size: 16px; font-weight: 650; }
.help-hc__cat span { color: var(--stone); font-size: 13.5px; line-height: 1.5; flex: 1; }
.help-hc__cat em { font-style: normal; font-size: 12px; color: var(--faint); }
.help-hc__list, .help-hc__popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-hc__list a, .help-hc__popular a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--bone);
}
.help-hc__popular a { background: var(--panel); }
.help-hc__list a:hover, .help-hc__popular a:hover { border-color: var(--signal); }
.help-hc__list strong, .help-hc__popular strong { font-size: 15px; }
.help-hc__list span, .help-hc__popular span { color: var(--stone); font-size: 13.5px; line-height: 1.5; }
.help-hc__kicker { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--signal); }
.help-hc__empty { color: var(--stone); }
.help-hc__popular { counter-reset: pop; }
.help-hc__popular li { counter-increment: pop; }
.help-hc__popular a { padding-left: 52px; position: relative; }
.help-hc__popular a::before {
  content: counter(pop, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.help-hc__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 28px;
}
.help-hc__crumbs a { color: var(--stone); }
.help-hc__crumbs a:hover { color: var(--bone); }
.help-hc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.help-hc__top .help-hc__crumbs { margin: 0; flex: 1; min-width: 200px; }
.help-hc__search--mini { max-width: 280px; width: 100%; }
.help-hc__search--mini input[type="text"] { height: 42px; border-radius: 12px; font-size: 13.5px; }
.help-hc__search--mini .help-hc__search-ico { left: 12px; }
.help-hc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}
.help-hc__paper {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: transparent;
  padding: 32px 36px 40px;
}
.help-hc__paper h1 { font-size: clamp(26px, 3.4vw, 36px); }
.help-hc__updated { color: var(--faint); font-size: 12.5px; margin: -8px 0 24px; }
.help-hc__body h2 {
  font-size: 18px;
  margin: 28px 0 10px;
  font-weight: 650;
  scroll-margin-top: 88px;
}
.help-hc__body p, .help-hc__body li {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.75;
}
.help-hc__body p { margin: 0 0 12px; }
.help-hc__body ul, .help-hc__body ol { margin: 0 0 14px; padding-left: 20px; }
.help-hc__body li { margin-bottom: 6px; }
.help-hc__body a { color: var(--signal); font-weight: 600; }
.help-hc__body code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--bone);
}
.help-hc__aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.help-hc__toc, .help-hc__aside-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  padding: 16px 18px;
}
.help-hc__toc h2, .help-hc__aside-card h2 {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}
.help-hc__toc ul { list-style: none; margin: 0; padding: 0; }
.help-hc__toc a { display: block; padding: 5px 0; color: var(--stone); font-size: 13px; line-height: 1.4; }
.help-hc__toc a:hover { color: var(--bone); }
.help-hc__aside-card p { color: var(--stone); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.help-hc__aside-card .btn { width: 100%; justify-content: center; }
.help-hc__contact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: transparent;
}
.help-hc__contact h2 { margin: 0 0 8px; font-size: 22px; }
.help-hc__contact p { margin: 0; color: var(--stone); font-size: 14.5px; line-height: 1.55; max-width: 560px; }
.help-hc__contact-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.help-hc__contact-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .help-hc__cats { grid-template-columns: 1fr 1fr; }
  .help-hc__layout { grid-template-columns: 1fr; }
  .help-hc__aside { position: static; }
}
@media (max-width: 720px) {
  .help-hc { padding-top: 36px; }
  .help-hc__cats { grid-template-columns: 1fr; }
  /* Input + button stay in one row on phone too (not stacked) — just
     tighter: the button shrinks to a compact fixed width instead of the
     desktop's roomier padding, and the input (flex:1 from the base rule)
     takes whatever width is left. Row keeps the cross-axis (height) sized
     by align-items:center off each item's own `height`, same as desktop —
     switching to column here previously broke that (flex-basis:0% from
     `flex:1` applies to the vertical axis in a column, collapsing the input
     to its intrinsic single-line minimum instead of its declared height). */
  .help-hc__search { gap: 8px; }
  .help-hc__search .btn {
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    padding: 0 16px;
    font-size: 13.5px;
  }
  .help-hc__paper { padding: 22px 18px 28px; }
  .help-hc__contact { flex-direction: column; align-items: flex-start; padding: 22px; }
  .help-hc__search--mini { max-width: none; }
  /* Full-width now instead of a compact 280px sidebar box — the mini
     variant's 42px/13.5px sizing reads as thin and cramped stretched that
     wide, so bring it back up to the same proportions as the regular
     .help-hc__search field on phone. */
  .help-hc__search--mini input[type="text"] {
    height: 48px;
    border-radius: 14px;
    font-size: 15px;
    padding-left: 44px;
  }
  .help-hc__search--mini .help-hc__search-ico { left: 16px; }
}

/* LK inner pages — same quiet surfaces as wallet, no boxed hairlines. */
.lk-app .profile-page__head {
  border-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.lk-app .settings-card,
.lk-app .form-panel {
  border: 0;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}
.lk-app .settings-card { padding: 22px 24px 18px; }
.lk-app table.holdings th,
.lk-app table.grid th {
  border-bottom: 0;
  color: var(--faint);
}
.lk-app table.holdings td,
.lk-app table.grid td {
  border-bottom: 1px solid var(--line-ghost);
}
.lk-app table.holdings tr:last-child td,
.lk-app table.grid tr:last-child td { border-bottom: 0; }
.lk-app .filter-tabs a {
  border: 0;
  background: var(--panel-2);
}
.lk-app .filter-tabs a.is-active {
  background: color-mix(in srgb, var(--signal) 16%, transparent);
  color: var(--bone);
  border-color: transparent;
}
.lk-app .nb__btn {
  border: 0;
  background: var(--panel-2);
}
.lk-app .section__head { margin-bottom: 12px; }

/* Mobile Safari/Chrome auto-zoom the page when a focused input's font-size is under 16px —
   most of this site's inputs are 12-14px for the desktop layout, so every field tap on a phone
   triggered an unwanted zoom. Forcing 16px on touch-width viewports is the standard fix; !important
   is needed since dozens of unrelated rules across several stylesheets set font-size on inputs.
   Date/time inputs are excluded: they open a native picker rather than a text caret, so they
   don't trigger the zoom, and forcing them to 16px visibly blows out tight layouts (the P&L
   custom-range popover in particular). */
@media (max-width: 768px) {
  input:not([type="date"]):not([type="time"]):not([type="datetime-local"]):not([type="month"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Cookie consent banner — informational only (doesn't gate any script or feature), shown once
   per browser via localStorage. Sits below modals/sheets (z-index 80) and above nothing else. */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: min(640px, calc(100vw - 32px));
  padding: 16px 18px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.cookie-banner__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 26px;
  line-height: 1;
}
.cookie-banner__text {
  margin: 0;
  min-width: 0;
  max-width: 58ch;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--stone);
}
.cookie-banner__text a { color: var(--bone); text-decoration: underline; }
.cookie-banner__btn {
  flex-shrink: 0;
  width: auto;
  padding: 0 20px;
  height: 38px;
}
@media (max-width: 560px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner__text {
    max-width: none;
  }
  .cookie-banner__btn {
    align-self: stretch;
    width: 100%;
  }
}
