:root {
  --bg: #0c0e12;
  --bg-2: #12151b;
  --panel: #161a21;
  --chart-bg: #0a0c10;
  --chip: #222833;
  --text: #f3f5f7;
  --muted: #9aa3ad;
  --faint: #6e7884;
  --border: rgba(255, 255, 255, 0.08);
  --lamp: #2dd4bf;
  --lamp-ink: #062924;
  --lamp-dim: rgba(45, 212, 191, 0.18);
  --copper: #7eeade;
  --ember: #ff5c73;
  --ember-dim: rgba(255, 92, 115, 0.16);
  --green: #2dd4bf;
  --green-dim: rgba(45, 212, 191, 0.16);
  --red: #ff5c73;
  --red-dim: rgba(255, 92, 115, 0.16);
  --blue: #2dd4bf;
  --blue-dim: rgba(45, 212, 191, 0.16);
  --chart-line: #f4f7f8;
  --chart-fill: 255, 255, 255;
  --chart-grid: rgba(255, 255, 255, 0.06);
  --price-tag: #2dd4bf;
  --price-tag-text: #062924;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 58px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #e7f7f4;
  --bg-2: #f4fbfa;
  --panel: #ffffff;
  --chart-bg: #f3fbf9;
  --chip: #d7f4ef;
  --text: #08332e;
  --muted: #2f6f66;
  --faint: #4d8f85;
  --border: rgba(8, 51, 46, 0.12);
  --lamp: #0f9d8e;
  --lamp-ink: #f4fffd;
  --lamp-dim: rgba(15, 157, 142, 0.14);
  --copper: #0b7f73;
  --ember: #e23d55;
  --ember-dim: rgba(226, 61, 85, 0.12);
  --green: #0f9d8e;
  --green-dim: rgba(15, 157, 142, 0.12);
  --red: #e23d55;
  --red-dim: rgba(226, 61, 85, 0.12);
  --blue: #0f9d8e;
  --blue-dim: rgba(15, 157, 142, 0.12);
  --chart-line: #0c8f82;
  --chart-fill: 15, 157, 142;
  --chart-grid: rgba(8, 51, 46, 0.08);
  --price-tag: #08332e;
  --price-tag-text: #f4fffd;
  --shadow: 0 18px 40px rgba(8, 40, 24, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
::selection { background: rgba(45, 212, 191, 0.35); color: #062924; }
* { scrollbar-width: thin; scrollbar-color: #343b46 transparent; }

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.boot-card { text-align: center; }
.boot-card strong {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -0.04em;
}
.boot-card p { color: var(--muted); }
.boot-card button {
  border: 0;
  background: var(--lamp);
  color: var(--lamp-ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.app-banner[hidden] { display: none; }
.app-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  background: #2dd4bf;
  color: #062924;
}
.app-banner-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(6, 41, 36, 0.12);
}
.app-banner-copy { flex: 1; min-width: 0; }
.app-banner-copy b, .app-banner-copy small { display: block; }
.app-banner-copy b { font-size: 14px; line-height: 1.2; }
.app-banner-copy small { color: #0b3f36; font-size: 12px; }
.app-banner-go {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0f766e;
  font-weight: 800;
  flex: none;
}
.app-banner-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #062924;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: var(--header-h);
  background: rgba(12, 14, 18, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .header { background: rgba(231, 247, 244, 0.94); }
.header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px 6px 7px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.product-pill i {
  background: #ef3b4a;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 6px;
}
.header-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.header-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.header-nav button:hover { color: var(--text); }
.header-nav button.is-active {
  color: var(--lamp-ink);
  background: var(--lamp);
  border-color: transparent;
  font-weight: 700;
}
html[data-theme="light"] .header-nav button.is-active {
  color: var(--lamp-ink);
  background: var(--lamp);
}
.header-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn:hover { color: var(--text); background: var(--chip); }
.ai-scan {
  height: 36px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(180deg, #5eecc0 0%, #14986a 100%);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.ai-scan svg { display: block; flex: none; }
.sound-btn .vol-on { display: none; }
.sound-btn.is-on .vol-on { display: block; }
.sound-btn.is-on .vol-off { display: none; }
.sound-btn.is-on { color: var(--text); }
.mobile-tools { display: none; }
.balance-chip, .deposit-btn, .ghost-btn {
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 600;
}
.account-wrap { position: relative; }
.balance-chip {
  border: 1px solid var(--border);
  background: #171c27;
  padding: 0 10px 0 5px;
  gap: 8px;
}
html[data-theme="light"] .balance-chip {
  background: #ffffff;
  color: #08332e;
}
.account-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--lamp);
  color: var(--lamp-ink);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}
.account-badge.is-demo { background: var(--ember); color: #fff; }
.balance-chip .chev { color: var(--muted); flex: none; }
.account-menu { right: 0; left: auto; min-width: 248px; padding: 8px; }
.account-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: left;
}
.account-option:hover { background: var(--chip); }
.account-option .name { flex: 1; font-weight: 600; }
.acct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
  flex: none;
}
.acct-dot.demo { background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 92, 115, 0.16); }
.acct-state { color: var(--lamp); font-size: 13px; font-weight: 600; }
.account-option:not(.is-on) .acct-state { visibility: hidden; }
.account-reset {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  background: transparent;
  color: var(--muted);
  padding: 12px 10px 8px;
  text-align: left;
  font-weight: 600;
}
.account-reset:hover { color: var(--text); background: var(--chip); }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lamp);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
.deposit-btn, .ghost-btn { border-radius: 999px; padding: 0 14px; }
.deposit-btn { border: 0; background: var(--lamp); color: var(--lamp-ink); }
.ghost-btn { border: 1px solid var(--border); background: transparent; color: var(--text); }
.bell-wrap, .symbol-wrap, .profile-wrap { position: relative; }
.bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

.stage { min-height: 0; overflow: hidden; }
.workspace {
  height: 100%;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}
.chart-panel { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--chart-bg); }
.ticket {
  grid-column: 3;
  grid-row: 1;
  background: var(--panel);
  border-left: 1px solid var(--border);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.positions {
  grid-column: 1;
  grid-row: 1;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dock-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.tabs { display: flex; gap: 0; padding: 0 8px; width: 100%; }
.tabs button {
  flex: 1;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 14px 4px 12px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
}
.tabs button.is-on { color: var(--text); border-bottom-color: var(--lamp); }
.position-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}
.session-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
}
.session-row, .last-row, .field-row, .ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.session-row { gap: 10px; }
.session-row strong, .pos-grid b, .money b, .payout-readout strong { font-family: var(--mono); }
.session-row strong.up, .up { color: var(--green); }
.session-row strong.down, .down { color: var(--red); }
.session-meta { color: var(--muted); font-size: 13px; }
.ledger-foot { gap: 8px; }
.ledger-foot .session-row span { color: #8b93a7; }
.ledger-foot .session-row strong { color: var(--text); font-family: inherit; font-weight: 650; font-size: 14px; }
.ledger-foot .session-row strong.up { color: #3dce7a; }
.ledger-foot .session-row strong.down { color: #ff5c73; }
.position-list.is-ledger { gap: 0; padding: 6px 0 8px; }
.position-list.is-deals { gap: 0; padding: 0; }
.deal { width: 100%; padding: 12px 14px 14px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; background: transparent; text-align: left; cursor: default; }
.deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.deal-id { display: flex; gap: 8px; min-width: 0; }
.deal-id b { display: block; font-size: 14px; font-weight: 700; }
.deal-id small { display: block; color: #8b93a7; font-size: 12px; font-weight: 500; }
.deal-spark { color: var(--lamp); }
.deal-side { display: inline-flex; align-items: center; gap: 6px; color: var(--lamp); font-size: 13px; font-weight: 700; white-space: nowrap; }
.deal-side i { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }
.deal-status { margin: 8px 0 0; color: #9aa3b5; font-size: 13px; }
.deal-ccy { margin: 2px 0 8px; color: #6d7586; font-size: 12px; }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.deal-grid span { display: block; color: #8b93a7; font-size: 12px; }
.deal-grid b { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.deal-grid b.flat { color: var(--text); }
.deal-grid b.up { color: #3dce7a; }
.deal-grid b.down { color: #ff4d6a; }
.deal-banner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 10px; }
.deal-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; }
.deal-banner.up .deal-flag, .deal-banner.up strong { color: #3dce7a; }
.deal-banner.down .deal-flag, .deal-banner.down strong { color: #ff4d6a; }
.deal-banner strong { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
html[data-theme="light"] .deal { border-bottom-color: var(--border); }
.tx-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "mark title amt"
    "mark contract bal"
    "mark time time";
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  padding: 11px 14px 10px;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.tx-mark {
  grid-area: mark;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tx-mark.stake { background: #c9842a; color: #24180a; }
.tx-mark.win { background: #1f9d5a; color: #f4fff8; }
.tx-mark.loss { background: #d64555; color: #fff; }
.tx-title { grid-area: title; font-size: 14px; font-weight: 700; min-width: 0; }
.tx-market { margin-left: 8px; color: #8b93a7; font-weight: 500; font-size: 13px; }
.tx-amt { grid-area: amt; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.tx-amt.stake { color: #e0a04a; }
.tx-amt.win { color: #3dce7a; }
.tx-amt.loss { color: #ff5c73; }
.tx-contract { grid-area: contract; color: #9aa3b5; font-size: 12px; letter-spacing: 0.04em; }
.tx-bal { grid-area: bal; color: #8b93a7; font-size: 12px; text-align: right; }
.tx-time { grid-area: time; color: #6d7586; font-size: 12px; }
html[data-theme="light"] .tx-amt.stake { color: #b86a12; }
html[data-theme="light"] .tx-amt.win { color: #0f9d55; }
html[data-theme="light"] .tx-amt.loss { color: #d23b4a; }
html[data-theme="light"] .ledger-foot .session-row strong.up { color: #0f9d55; }
html[data-theme="light"] .ledger-foot .session-row strong.down { color: #d23b4a; }
.text-btn { border: 0; background: none; color: var(--faint); padding: 0; }
.text-btn:hover { color: var(--text); }

.empty { margin: auto; text-align: center; color: var(--muted); padding: 18px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin: 0 0 4px; font-family: var(--serif); font-weight: 560; }
.pos, .tx {
  border: 1px solid var(--border);
  background: var(--chip);
  border-radius: 14px;
  padding: 10px 12px;
  flex: 0 0 auto;
  width: 100%;
}
.pos header, .tx header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pos header b, .tx header b { font-size: 14px; }
.sym, .rule, .pos time, .tx time { color: var(--muted); margin: 4px 0; }
.rule { font-size: 12px; }
.pos-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-top: 8px; }
.pos-grid span:nth-child(odd) { color: var(--muted); }
.pos-grid span:nth-child(even) { text-align: right; font-family: var(--mono); }
.pill { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.pill.won { color: var(--lamp-ink); background: var(--lamp); }
html[data-theme="light"] .pill.won { color: #f7f3ea; background: var(--green); }
.pill.lost { color: #fff; background: var(--ember); }
.pill.open { color: var(--lamp-ink); background: var(--copper); }

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 6px;
}
.symbol-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  max-width: min(280px, 40vw);
}
.symbol-button #symbol-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.symbol-bars, .symbol-price, #symbol-change { display: none; }
.symbol-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.symbol-button.is-vol {
  border-radius: 14px;
  background: #172033;
  max-width: none;
  padding: 8px 12px;
  gap: 10px;
}
html[data-theme="light"] .symbol-button.is-vol { background: #e7eef8; }
.symbol-button.is-vol .tick-badge,
.symbol-button.is-vol .symbol-chev { display: none; }
.symbol-button.is-vol .symbol-bars,
.symbol-button.is-vol .symbol-price,
.symbol-button.is-vol #symbol-change { display: block; }
.symbol-button.is-vol .symbol-bars { color: #3b82f6; flex: none; }
.symbol-button.is-vol #symbol-label { font-weight: 700; font-size: 14px; line-height: 1.1; }
.symbol-price { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.tick-badge {
  background: var(--lamp);
  color: var(--lamp-ink);
  border-radius: 999px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.seam-row { display: flex; gap: 6px; min-width: 0; overflow: auto; flex: 1; }
.seam-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}
.seam-chip i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  flex: none;
}
.seam-chip small { display: block; font-size: 10px; color: var(--faint); }
.seam-chip.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.seam-chip.is-on small { color: inherit; opacity: 0.7; }
.quote { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.quote-figures { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.last-digit {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--lamp);
  color: var(--lamp-ink);
  font-family: var(--serif);
  font-weight: 680;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.live-price { font-family: var(--mono); font-size: 18px; letter-spacing: -0.03em; }
.live-price .ld { color: var(--copper); }
.live-change { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.split-meter {
  width: 54px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--chip);
}
.split-meter span:first-child { background: var(--lamp); flex: 1; }
.split-meter span:last-child { background: var(--ember); flex: 1; }

.core-tape {
  display: flex;
  gap: 3px;
  padding: 0 14px 8px;
  min-height: 34px;
}
.core {
  flex: 1 1 0;
  min-width: 0;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.core.even { background: var(--lamp-dim); color: var(--lamp); }
.core.odd { background: var(--ember-dim); color: var(--ember); }
.core.is-last { outline: 1px solid currentColor; }
html[data-theme="light"] .core.even { color: var(--green); }
html[data-theme="light"] .core.odd { color: var(--ember); }

.chart-stage { position: relative; flex: 1; min-height: 180px; }
.chart-stage canvas { display: block; width: 100%; height: 100%; }
.chart-note {
  position: absolute;
  left: 14px;
  top: 8px;
  margin: 0;
  max-width: calc(100% - 130px);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zoom-controls { position: absolute; left: 12px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.zoom-controls button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.86);
  color: var(--text);
}
html[data-theme="light"] .zoom-controls button { background: rgba(243, 251, 249, 0.92); }
.result-flash {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 36px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 560;
  text-align: center;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.result-flash.won { color: var(--lamp); }
.result-flash.lost { color: var(--ember); }
html[data-theme="light"] .result-flash.won { color: var(--green); }

.digit-bar { display: flex; align-items: center; gap: 12px; padding: 6px 16px 14px; }
.digit-caption { color: var(--faint); font-size: 11px; width: 78px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.digit-caption small { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--muted); }
.digits { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; flex: 1; height: auto; align-items: center; }
.digit {
  height: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  --ring: #3a4250;
}
.digit b {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--mono);
  line-height: 1;
  color: var(--text);
  background:
    radial-gradient(circle at center, var(--chart-bg) 58%, transparent 60%),
    conic-gradient(var(--ring) calc(var(--p) * 1%), #2a3140 0);
}
.digit b > span { font-size: 15px; font-weight: 650; }
.digit em { font-style: normal; font-size: 9px; font-family: var(--mono); color: #d5dbe3; }
.digit.is-max { --ring: #3ee0a2; }
.digit.is-max em { color: #3ee0a2; }
.digit.is-min { --ring: #ff5c73; }
.digit.is-min em { color: #ff5c73; }
.digit.is-hit b,
.digit.is-miss b {
  background: #ff3b4a;
  box-shadow: none;
}
.digit.is-hit b { background: #2fe08a; }
.digit.is-hit em,
.digit.is-miss em,
.digit.is-hit b > span,
.digit.is-miss b > span { color: #fff; }
.digit.is-hot::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #f5b43c;
}
.digit.is-selected b { box-shadow: 0 0 0 2px var(--text); }

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.notif-panel { right: 0; left: auto; width: 320px; }
.profile-menu { right: 0; left: auto; min-width: 248px; padding: 6px; }
.settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: start center;
  padding: 24px 16px 16px;
  overflow: auto;
}
.settings-sheet[hidden] { display: none; }
.settings-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 8, 14, 0.55);
}
.settings-card {
  position: relative;
  width: min(320px, 100%);
  background: #151b24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px 8px 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.settings-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 8px;
  color: #d7e0ea;
}
.settings-card header svg { color: #8b97a8; flex: none; }
.settings-card h2 { margin: 0; font-size: 16px; font-weight: 750; }
.settings-card button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: left;
  color: #c5ced8;
  font-size: 15px;
}
.settings-card button svg { color: #8b97a8; flex: none; }
.settings-card button:hover { background: rgba(255, 255, 255, 0.04); }
html[data-theme="light"] .settings-card { background: #fff; border-color: var(--border); }
html[data-theme="light"] .settings-card header,
html[data-theme="light"] .settings-card button { color: var(--text); }
.acct-card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #151b24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.acct-back {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c5ced8;
  font-size: 20px;
  line-height: 1;
}
.acct-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 28px;
}
.acct-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
}
.acct-icon.is-teal { background: rgba(45, 212, 191, 0.16); color: #3ee0a8; }
.acct-icon.is-blue { background: rgba(96, 165, 250, 0.16); color: #7db4ff; }
.acct-head h2 { margin: 0; font-size: 18px; font-weight: 750; color: #f3f5f7; }
.acct-head p { margin: 3px 0 0; color: #8b97a8; font-size: 13px; }
.acct-avatar {
  width: 88px;
  height: 88px;
  margin: 8px auto 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2dd4bf;
  color: #062924;
  font-size: 34px;
  font-weight: 800;
}
.acct-label { display: block; margin: 0 0 8px; color: #c5ced8; font-size: 13px; font-weight: 650; }
.acct-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 14px;
  color: #8b97a8;
}
.acct-field input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: #e8eef4;
  min-width: 0;
}
.acct-field.is-lock { opacity: 0.72; }
.acct-field .eye {
  border: 0;
  background: transparent;
  color: #8b97a8;
  padding: 6px 0 6px 6px;
}
.acct-hint { margin: -6px 0 16px; color: #6e7884; font-size: 12px; }
.acct-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2dd4bf;
  color: #062924;
  font-weight: 800;
  font-size: 15px;
}
.acct-btn:disabled { opacity: 0.45; cursor: default; }
.acct-btn.is-off { background: #2a3340; color: #8b97a8; }
.acct-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a222d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.acct-status strong { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.acct-status span { display: flex; align-items: center; gap: 6px; color: #8b97a8; font-size: 13px; margin-top: 2px; }
.acct-tick { color: #3ee0a8; flex: none; }
.acct-dot {
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-radius: 999px;
  background: #3a4452;
  box-shadow: inset 0 0 0 4px #1a222d;
}
.acct-status.is-on { background: rgba(45, 212, 191, 0.1); }
.acct-status.is-on .acct-dot { background: #2dd4bf; }
.acct-box {
  background: #12181f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.acct-box h3 { margin: 0 0 10px; font-size: 14px; font-weight: 750; }
.acct-box ol, .acct-box ul { margin: 0; padding-left: 18px; color: #9aa3ad; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.4; }
.acct-box li.is-ok { color: #3ee0a8; }
.acct-check { color: #3ee0a8; }
.acct-secret {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0c1118;
  color: #3ee0a8;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}
.acct-qr { display: block; width: 168px; height: 168px; margin: 8px auto 12px; border-radius: 12px; background: #fff; }
.kyc-slot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #12181f;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  color: inherit;
}
.kyc-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #1c2430;
  color: #8b97a8;
  overflow: hidden;
  flex: none;
}
.kyc-mark img { width: 100%; height: 100%; object-fit: cover; }
.kyc-slot strong { display: block; font-size: 14px; }
.kyc-slot span { display: block; color: #8b97a8; font-size: 12px; margin-top: 2px; }
html[data-theme="light"] .acct-card { background: #fff; border-color: var(--border); }
html[data-theme="light"] .acct-head h2,
html[data-theme="light"] .acct-label,
html[data-theme="light"] .acct-field input { color: var(--text); }
html[data-theme="light"] .acct-field,
html[data-theme="light"] .acct-box,
html[data-theme="light"] .acct-status,
html[data-theme="light"] .kyc-slot { background: var(--bg-2); }
.profile-head { padding: 10px 12px 8px; }
.profile-head strong { display: block; font-size: 15px; font-weight: 700; }
.profile-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.profile-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 11px 10px;
  text-align: left;
  color: var(--text);
}
.profile-menu button svg { color: var(--muted); flex: none; }
.profile-menu button:hover { background: var(--chip); }
.profile-menu .sign-out {
  color: var(--ember);
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
.profile-menu .sign-out svg { color: var(--ember); }
.profile-btn.is-on,
#profile-btn[aria-expanded="true"] { color: var(--lamp); background: var(--chip); }
.menu-head { padding: 8px 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.symbol-option, .notif-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.symbol-option small { display: block; color: var(--faint); }
.symbol-option.is-on { background: var(--lamp); color: var(--lamp-ink); }
.symbol-option.vol-option { justify-content: flex-start; gap: 10px; }
.symbol-option.vol-option svg { color: var(--muted); flex: none; }
.symbol-option.vol-option.is-on {
  background: #172033;
  color: var(--text);
  padding: 10px 12px;
}
html[data-theme="light"] .symbol-option.vol-option.is-on { background: #e7eef8; }
.vol-option.is-on .vol-bars { color: #3b82f6; }
.vol-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vol-copy b { font-size: 14px; font-weight: 700; line-height: 1.1; }
.vol-copy small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.vol-change { font-family: var(--mono); font-style: normal; font-weight: 700; font-size: 13px; }
.vol-change.up { color: #3ee0a2; }
.vol-change.down { color: #ff5c73; }
#symbol-menu { min-width: 280px; max-height: 420px; overflow: auto; }
.symbol-option.is-on small { color: inherit; }
.symbol-option span:last-child { font-family: var(--mono); }
.notif-list { max-height: 320px; overflow: auto; }
.notif-item { color: var(--muted); cursor: default; display: block; }
.notif-item strong { display: block; color: var(--text); font-weight: 500; }

.ticket-scroll { flex: 1; overflow: auto; padding: 16px 16px 8px; }
.ticket-head, .field-row { color: var(--muted); margin: 14px 0 8px; }
.ticket-head { margin-top: 0; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--chip);
  padding: 4px;
  border-radius: 14px;
}
.segment button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  min-height: 36px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.segment button.is-on { background: var(--lamp); color: var(--lamp-ink); font-weight: 700; }
#mode-switch button { min-height: 34px; }
.contract-tabs { grid-template-columns: 1fr 1fr 1fr; margin-top: 8px; }
.contract-tabs button { font-size: 12px; padding: 6px 4px; }
.mini-switch { display: flex; gap: 10px; }
.mini-switch button { border: 0; background: none; color: var(--faint); padding: 0; }
.mini-switch button.is-on { color: var(--text); font-weight: 700; }
.stake-box { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; }
.stake-box > button, .stepper button {
  border: 1px solid var(--border);
  background: var(--chip);
  border-radius: 12px;
  font-size: 18px;
}
.stake-field {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 0 12px;
}
.stake-field input, .big-input, .chat-form input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 20px;
  outline: none;
}
.quick-row, .pick-row { display: flex; gap: 6px; margin-top: 8px; }
.quick-row button, .pick-row button {
  flex: 1;
  min-height: 34px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
}
.quick-row button.is-on, .pick-row button.is-on {
  color: var(--lamp-ink);
  background: var(--lamp);
  border-color: transparent;
  font-weight: 700;
}
.payout-readout { display: none; }
.payout-readout span { display: block; color: var(--muted); margin-bottom: 2px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.payout-readout strong { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--lamp); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 28px; height: 28px; }
.stepper b { min-width: 64px; text-align: center; font-weight: 600; }
.auto-box { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.auto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: #1b202a;
  text-align: center;
  cursor: text;
}
html[data-theme="light"] .auto-card { background: var(--chip); border-color: var(--border); }
.auto-kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}
.auto-kicker svg { display: block; width: 14px; height: 14px; }
.auto-card.target .auto-kicker svg { color: #3ddc97; }
.auto-card.stop .auto-kicker svg { color: #ff5c73; }
.auto-card.mult .auto-kicker svg { color: #f5c451; }
.auto-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.auto-value > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}
.auto-box .auto-card input {
  width: 3.2ch;
  min-width: 0;
  max-width: 6ch;
  field-sizing: content;
  flex: 0 1 auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  color: var(--text);
}
.hint, .settle-note, .demo-foot, .modal-copy { color: var(--muted); line-height: 1.45; }
.hint { margin: 8px 0 0; font-size: 12px; }
.last-row { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); }
.last-row span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.last-row strong { font-family: var(--mono); }

.ticket-actions { padding: 10px 16px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.trade-btn {
  position: relative;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
}
.trade-btn.even { background: var(--lamp); color: var(--lamp-ink); }
.trade-btn.odd { background: var(--ember); color: #fffaf2; }
.trade-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.trade-btn .money { text-align: right; line-height: 1.15; }
.trade-btn .money b { display: block; font-size: 13px; }
.trade-btn .money span { display: block; font-size: 11px; opacity: 0.75; }
.trade-btn .money .payout-tag { display: none; }
.trade-btn:hover:not(:disabled) { filter: brightness(1.05); }
.trade-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ticket-actions.is-arming .trade-btn:disabled:not(.is-loading) { opacity: 1; }
.trade-loader {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f6c445;
  font-size: 16px;
  font-weight: 600;
}
.trade-spin { width: 18px; height: 18px; animation: trade-spin 0.75s linear infinite; }
.trade-btn.is-loading,
.trade-btn.is-loading:disabled {
  opacity: 1;
  background: #171c27;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: progress;
}
.trade-btn.is-loading .trade-name,
.trade-btn.is-loading .money { visibility: hidden; }
.trade-btn.is-loading .trade-loader { display: flex; }
.trade-btn.is-loading .trade-stop { display: none; }
.trade-stop {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f5b43c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.trade-stop i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #f5b43c;
}
.trade-btn.is-stop,
.trade-btn.is-stop:disabled {
  opacity: 1;
  background: #e6b325;
  border: 0;
  color: #1a1406;
  cursor: pointer;
}
.trade-btn.is-stop .trade-stop { color: #1a1406; }
.trade-btn.is-stop .trade-stop i { background: #1a1406; }
.trade-btn.is-stop .trade-name,
.trade-btn.is-stop .money { visibility: hidden; }
.trade-btn.is-stop .trade-stop { display: flex; }
.trade-btn.is-loading.is-stop .trade-stop { display: none; }
.ticket-actions:has(.trade-btn.is-stop) .trade-btn:disabled:not(.is-stop):not(.is-loading) {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
.live-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c1812;
  border: 1px solid rgba(245, 180, 60, 0.38);
}
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.live-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5b43c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.live-kicker em { font-style: normal; }
.live-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b43c;
  box-shadow: 0 0 0 3px rgba(245, 180, 60, 0.18);
}
.live-card.is-last {
  gap: 0;
  padding: 8px 12px;
  background: #1c2129;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.live-card.is-last .live-kicker { color: #8b97a8; }
.live-card.is-last .live-kicker i,
.live-card.is-last .live-stake { display: none; }
.live-kicker b { color: #f4f7fa; font-weight: 700; letter-spacing: 0; }
.live-pl { font-family: var(--mono); font-size: 18px; font-weight: 700; color: #f4f7fa; }
.live-pl.up { color: #3ee0a2; }
.live-pl.down { color: #ff4d4f; }
.live-stake { display: flex; justify-content: space-between; align-items: center; color: #9aa3ad; font-size: 14px; }
.payout-tag { display: none; }
.run-stop { display: none; }
.live-stake b { color: #f5b43c; font-weight: 700; }
@keyframes trade-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .trade-spin { animation: none; }
}
.settle-note { margin: 0; font-size: 12px; }
.demo-foot { margin: 0; text-align: center; font-size: 11px; }

.subview { height: 100%; overflow: auto; }
.page { max-width: 1080px; margin: 0 auto; padding: 32px 22px 56px; }
.kicker { margin: 0 0 6px; color: var(--copper); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 22px; }
.page h1 { margin: 0 0 8px; font-family: var(--serif); font-size: 40px; font-weight: 560; letter-spacing: -0.04em; line-height: 1.05; }
.page-head p { margin: 0; color: var(--muted); max-width: 560px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.primary-block, .ghost-block, .boot-card button { border: 0; }
.primary-block, .ghost-block { border-radius: 999px; padding: 11px 16px; font-weight: 700; }
.primary-block { background: var(--lamp); color: var(--lamp-ink); }
.ghost-block { background: transparent; border: 1px solid var(--border) !important; color: var(--text); }
.stat-grid, .hub-grid { display: grid; gap: 12px; }
.stat-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.hub-grid { grid-template-columns: 1.3fr 0.8fr; }
.stat-grid article, .card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
}
.stat-grid article.stat-hero { background: var(--lamp); color: var(--lamp-ink); border-color: transparent; }
.stat-grid article.stat-hero span,
.stat-grid article.stat-hero strong { color: var(--lamp-ink); }
.stat-grid span { color: var(--muted); display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.stat-grid strong { font-family: var(--serif); font-size: 28px; font-weight: 560; letter-spacing: -0.03em; }
.card h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 560; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .pos, .stack .tx { flex: none; }
.steps { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.history-switch { grid-template-columns: 1fr 1fr; min-width: 180px; }
.cash-board {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.cash-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.cash-tabs button {
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent;
}
.cash-tabs button.is-on {
  color: #3ee0a8;
  box-shadow: inset 0 -2px 0 #3ee0a8;
}
.cash-list { display: flex; flex-direction: column; }
.cash-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cash-row:last-child { border-bottom: 0; }
.cash-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #22c55e;
}
.cash-mark.pending { color: #e6c15a; }
.cash-mark.rejected { color: #ff8b9a; }
.cash-copy { min-width: 0; }
.cash-copy strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.cash-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.cash-copy .cash-receipt { letter-spacing: 0.08em; color: #8b97a4; font-family: ui-monospace, Consolas, monospace; text-transform: none; }
.cash-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-transform: lowercase;
}
.cash-pill.approved { color: #3ee0a2; background: rgba(62, 224, 162, 0.12); }
.cash-pill.pending { color: #e6c15a; background: rgba(230, 193, 90, 0.12); }
.cash-pill.rejected { color: #ff8b9a; background: rgba(255, 92, 115, 0.12); }
.cash-list .empty { padding: 28px 16px; }
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-row button { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; }
.filter-row button.is-on { color: var(--lamp-ink); background: var(--lamp); border-color: transparent; font-weight: 700; }

.assay-bars {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.assay-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.assay-col span { width: 100%; border-radius: 10px 10px 4px 4px; min-height: 4px; display: block; }
.assay-col.even span { background: var(--lamp); }
.assay-col.odd span { background: var(--ember); }
.assay-col b { font-family: var(--mono); }
.assay-col em { font-style: normal; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.assay-tape { padding: 0; flex-wrap: wrap; }
.assay-tape .core { flex: 0 0 32px; height: 32px; }

.chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(380px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 32px));
  background: #121820;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  z-index: 45;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.chat[hidden] { display: none !important; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 14px;
  border: 0;
  color: #f4fffd;
  background: linear-gradient(90deg, #1ec9b0 0%, #128f72 100%);
}
.chat-badge, .chat-empty-mark {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
}
.chat-badge { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.18); }
.chat-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.chat-titles strong { font-size: 16px; font-weight: 700; font-family: var(--sans); }
.chat-titles small { display: flex; align-items: center; gap: 6px; color: rgba(244, 255, 253, 0.88); font-size: 12px; }
.chat-titles small i { width: 8px; height: 8px; border-radius: 50%; background: #3ee0a2; display: block; }
.chat-close { color: #fff; margin-left: auto; }
.chat-close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 28px 32px;
  color: #d5dbe3;
}
.chat-empty[hidden] { display: none; }
.chat-empty-mark { width: 74px; height: 74px; margin-bottom: 8px; color: #2dd4bf; background: rgba(45, 212, 191, 0.12); }
.chat-empty strong { font-size: 18px; }
.chat-empty p { margin: 0; max-width: 280px; color: #8b97a8; line-height: 1.45; font-size: 14px; }
.chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chat-log[hidden] { display: none; }
.bubble { max-width: 78%; width: fit-content; align-self: flex-start; padding: 8px 12px; border-radius: 16px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.bubble img { width: 160px; max-width: 100%; border-radius: 10px; display: block; }
.bubble.me { align-self: flex-end; background: #14986a; color: #f4fffd; }
.bubble .ticks { align-self: flex-end; display: flex; color: rgba(244, 255, 253, 0.72); line-height: 0; }
.bubble .ticks.is-read { color: #7ecbff; }
.bubble.bot { background: #2a3140; color: #e6ebf2; }
.chat-preview { position: relative; display: block; width: 44px; height: 44px; flex: none; }
.chat-preview[hidden] { display: none; }
.chat-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; display: block; }
.chat-preview button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #1c2430; color: #d5dbe3; }
.chat-form { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 0; }
.chat-attach, .chat-send {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
}
.chat-attach { position: relative; overflow: hidden; background: #1c2430; color: #9aa6b5; cursor: pointer; }
.chat-attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.chat-attach.is-on { color: #2dd4bf; }
.chat-form input {
  height: 44px;
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--sans);
  background: #1c2430;
  color: #f4f7fb;
}
.chat-form input::placeholder { color: #8b97a8; }
.chat-send { background: linear-gradient(180deg, #5eecc0 0%, #14986a 100%); color: #062924; }
html[data-theme="light"] .chat { background: #f7fafc; }
html[data-theme="light"] .chat-empty { color: #1c2430; }
html[data-theme="light"] .chat-empty p { color: #5c6b7a; }
html[data-theme="light"] .bubble.bot { background: #e7eef6; color: #1c2430; }
html[data-theme="light"] .chat-attach,
html[data-theme="light"] .chat-form input,
html[data-theme="light"] .chat-preview button { background: #e7eef6; color: #1c2430; }
html[data-theme="light"] .chat-form input::placeholder { color: #5c6b7a; }

.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; }
.scanner { display: none; position: fixed; inset: 0; z-index: 85; place-items: center; padding: 18px; }
.scanner.is-open { display: grid; }
.scanner-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.72); }
.scanner-card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
}
.scanner-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; border: 0; }
.scanner-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #5eecc0 0%, #14986a 100%);
  flex: none;
}
.scanner-card h2 { margin: 0; flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.scanner-card .icon-btn { margin-left: auto; }
.scanner-copy {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.scanner-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.scanner-value {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 650;
}
.scanner-field select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}
.scanner-ready { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.scanner-ready span:last-child { font-family: var(--mono); }
#scanner-details[hidden] { display: none; }
.scanner-bar { height: 4px; border-radius: 999px; background: #2a3140; overflow: hidden; margin-bottom: 16px; }
.scanner-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #14986a, #5eecc0); }
.scanner-pct { color: #3ee0a2; font-weight: 800; }
.scanner-go {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #5eecc0 0%, #14986a 100%);
}
.scanner-go:disabled { opacity: 0.65; cursor: progress; }
.scanner-result {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 224, 138, 0.45);
  background: rgba(47, 224, 138, 0.1);
  color: #d7ffe8;
  font-size: 14px;
  line-height: 1.4;
}
.scanner-result[hidden] { display: none; }
.scanner-result i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2fe08a;
  color: #062924;
  display: grid;
  place-items: center;
  flex: none;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.scanner-load {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(47, 224, 138, 0.55);
  background: transparent;
  color: #5eecc0;
  font-weight: 700;
}
.scanner-load:disabled { opacity: 0.4; cursor: not-allowed; }
html[data-theme="light"] .scanner-load { color: #0f766e; }
html[data-theme="light"] .scanner-result { color: #14685c; }
html[data-theme="light"] .scanner-pct { color: #0f766e; }
.run-card { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.run-card.is-open { display: grid !important; }
.run-card-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.72); }
.run-card-panel {
  position: relative;
  width: min(320px, 100%);
  padding: 26px 20px 18px;
  border-radius: 18px;
  background: #1b2230;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.run-card-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #3ee0a2;
  background: rgba(46, 214, 154, 0.12);
  border: 1px solid rgba(62, 224, 162, 0.45);
}
.run-card-panel h2 {
  margin: 0;
  color: #3ee0a2;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.run-card-pl { margin: 10px 0 18px; color: #fff; }
.run-card-pl strong {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.run-card-pl span { margin-left: 2px; color: #9aa3ad; font-size: 13px; font-weight: 600; }
.run-card-stats {
  margin: 0 0 16px;
  padding: 4px 14px;
  border-radius: 12px;
  background: #121722;
  text-align: left;
}
.run-card-stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}
.run-card-stats dt { color: #8b95a3; font-size: 14px; }
.run-card-stats dd { margin: 0; color: #f4f7fa; font-weight: 700; font-variant-numeric: tabular-nums; }
.run-card-stats .win { color: #3ee0a2; }
.run-card-stats .loss { color: #ff5c73; }
.run-card-go {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #2bd67a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.run-card-go:hover { filter: brightness(1.05); }
.run-card .mark-loss { display: none; }
.run-card.is-loss .mark-win { display: none; }
.run-card.is-loss .mark-loss { display: block; }
.run-card.is-loss .run-card-mark {
  color: #ff5c73;
  background: rgba(255, 77, 103, 0.14);
  border-color: rgba(255, 92, 115, 0.55);
}
.run-card.is-loss h2,
.run-card.is-loss .run-card-pl strong { color: #ff4d67; }
.run-card.is-loss .run-card-go { background: #ff4d67; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.66); }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.modal-card header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.modal-card header h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 560; }
.modal-card #modal-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.profile-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.profile-field input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}
.big-input {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 12px;
}
.form-error { color: var(--red); margin: 0; }
.modal-card.is-deposit, .modal-card.is-app { width: min(420px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #141824; }
.modal-card.is-app header { border-bottom: 0; }
.modal-card.is-app header h2 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; }
.modal-card.is-app #modal-body { overflow: auto; padding-top: 0; }
.app-sheet { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.app-sheet h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.app-kicker, .app-meta { margin: 0; color: #8b97a8; font-size: 14px; }
.app-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.app-tab {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text);
  font-weight: 750;
}
.app-tab.is-on { border-color: #2dd4bf; color: #2dd4bf; background: rgba(45, 212, 191, 0.08); }
.app-go {
  width: 100%;
  margin: 0;
  height: 48px;
  border-radius: 14px;
  background: #2dd4bf;
  color: #062924;
  display: grid;
  place-items: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
button.app-go {
  border: 0;
  font: inherit;
  font-weight: 800;
}
.app-label { align-self: flex-start; margin: 4px 0 0; color: #8b97a8; font-size: 12px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.app-points, .app-steps { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.app-points div { padding: 12px 14px; border-radius: 14px; background: #1a2030; }
.app-points b { display: block; }
.app-points span, .app-steps span { color: #c5ceda; font-size: 13px; line-height: 1.4; }
.app-steps { list-style: none; margin: 0; padding: 0; }
.app-steps li { display: flex; gap: 10px; align-items: flex-start; }
.app-steps b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2dd4bf;
  color: #062924;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}
.modal-card.is-received {
  width: min(400px, 100%);
  padding: 8px;
  background: linear-gradient(180deg, #16362c 0%, #0d1c18 100%);
  border: 1px solid rgba(52, 211, 153, 0.38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(31, 191, 120, 0.16);
}
.modal-card.is-processing {
  width: min(380px, 100%);
  background: linear-gradient(180deg, #10241c 0%, #0c1914 100%);
  border: 1px solid rgba(62, 224, 168, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal-card.is-processing header { display: none; }
.modal-card.is-processing #modal-body { padding: 28px 22px 22px; }
.stk-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.stk-spin {
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 4px solid rgba(31, 191, 120, 0.2);
  border-top-color: #1fbf78;
  animation: stk-spin 0.8s linear infinite;
}
@keyframes stk-spin { to { transform: rotate(360deg); } }
.stk-card h3 { margin: 6px 0 0; color: #3ee0a8; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.stk-lead { margin: 0; max-width: 240px; color: #d5e4dc; font-size: 15px; line-height: 1.45; }
.stk-detail { margin: 8px 0 0; color: #7c6cff; font-size: 14px; font-weight: 700; line-height: 1.45; }
.stk-brand { margin: 10px 0 0; color: #6e7884; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; }
.stk-close {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
}
.funds-card.is-withdraw { padding-top: 8px; }
.funds-card.is-withdraw .funds-check { background: #14c48a; box-shadow: 0 0 0 10px rgba(20, 196, 138, 0.22); }
.funds-card.is-withdraw h3 { color: #fff; }
.funds-card.is-withdraw .funds-lead { max-width: 280px; margin-top: 8px; line-height: 1.45; }
.funds-card.is-withdraw .funds-go { margin-top: 18px; }
.stk-x {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9aa6b2;
  font-size: 26px;
  line-height: 1;
}
.modal-card.is-received header { display: none; }
.modal-card.is-received #modal-body { padding: 0; }
.funds-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #10241c 0%, #0a1613 100%);
  border: 1px solid rgba(52, 211, 153, 0.22);
}
.funds-check {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #16c784;
  box-shadow: 0 0 0 10px rgba(22, 199, 132, 0.16);
}
.funds-card h3 { margin: 4px 0 0; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.funds-lead { margin: 4px 0 0; color: #9aa8b4; font-size: 15px; }
.funds-amount { margin: 14px 0 0; color: #34d399; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.funds-kes { margin: 4px 0 0; color: #8b97a4; font-size: 14px; }
.funds-balance {
  width: 100%;
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(8, 22, 18, 0.7);
}
.funds-balance span {
  display: block;
  color: #8b97a4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.funds-balance strong { display: block; margin-top: 6px; color: #fff; font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.funds-receipt { margin: 16px 0 0; color: #8b97a4; font-size: 13px; }
.funds-brand {
  margin: 10px 0 14px;
  color: #6b7a74;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.42em;
}
.funds-go, .funds-close {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}
.funds-go {
  border: 0;
  color: #052e1d;
  background: linear-gradient(180deg, #4ade80 0%, #16c784 100%);
  box-shadow: 0 10px 28px rgba(22, 199, 132, 0.36);
}
.funds-close {
  margin-top: 8px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.modal-card.is-deposit { width: min(420px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #141824; }
.modal-card.is-deposit #modal-body { overflow: auto; }
.modal-card.is-deposit header { border-bottom: 0; padding: 18px 18px 0; }
.modal-card.is-deposit header h2 { font-family: var(--sans); font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.modal-card.is-deposit #modal-body { padding: 8px 18px 18px; gap: 10px; }
.deposit-kicker { margin: 0; color: var(--muted); font-size: 14px; }
.deposit-min { margin: 0 0 4px; color: #2dd4bf; font-size: 14px; font-weight: 700; }
.pay-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b2130;
  color: var(--text);
}
.pay-method.is-on { border-color: #2dd4bf; }
.pay-method small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.pay-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pay-copy b { font-size: 15px; }
.pay-method > svg { color: var(--faint); flex: none; }
.pay-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.pay-mark.is-phone { color: #2dd4bf; background: rgba(45, 212, 191, 0.14); }
.pay-mark.is-coin { color: #f5b942; background: rgba(245, 185, 66, 0.16); }
.pay-mark.is-globe { color: #d5dbe3; background: rgba(255, 255, 255, 0.08); }
.pay-mark.is-mpesa { width: 40px; height: 40px; border-radius: 12px; color: #062924; background: #2dd4bf; }
.pay-mark.is-usdt { width: 40px; height: 40px; border-radius: 12px; color: #fff; background: #26a17b; }
.withdraw-balance { margin: 0 0 6px; color: #8b97a8; font-size: 14px; font-weight: 500; }
.withdraw-methods { display: flex; flex-direction: column; gap: 10px; }
.withdraw-methods .pay-method { padding: 14px 12px; border-radius: 16px; background: #1a2030; }
.wd-field { display: flex; flex-direction: column; gap: 8px; color: #8b97a8; font-size: 14px; }
.wd-field input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #12151e;
  color: #c5ceda;
  padding: 0 14px;
  font-size: 16px;
}
.wd-limit { margin: 0; color: #8b97a8; font-size: 13px; }
.wd-method { margin: 6px 0 0; font-size: 15px; font-weight: 750; }
.wd-dest { margin: 0; color: #d7dee8; font-size: 14px; line-height: 1.45; }
.wd-dest b { font-weight: 750; }
.wd-go {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #2dd4bf;
  color: #062924;
  font-size: 16px;
  font-weight: 750;
}
.wd-go:disabled { opacity: 0.4; }
.wld-brand {
  width: 56px;
  height: 56px;
  margin: 4px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a2030;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.usdt-brand {
  width: 56px;
  height: 56px;
  margin: 4px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3ba2f;
  color: #1a1408;
  font-size: 28px;
  font-weight: 800;
}
.usdt-lead { margin: 0; color: #d7dee8; font-size: 14px; line-height: 1.45; }
.usdt-lead b { color: #fff; }
.usdt-label { margin: 4px 0 0; color: #8b97a8; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.usdt-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12161c;
}
.usdt-addr input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #d7dee8;
  font-family: var(--mono);
  font-size: 12px;
}
.usdt-copy { border: 0; background: transparent; color: #8b97a8; padding: 6px; }
.usdt-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6b325;
  color: #f0c14a;
  font-size: 13px;
  line-height: 1.45;
}
.usdt-warn b { color: #ffe08a; }
.usdt-field { display: flex; flex-direction: column; gap: 8px; color: #8b97a8; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.usdt-input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12161c;
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.usdt-input::placeholder { color: #5c6778; }
.usdt-help { margin: 0; color: #8b97a8; font-size: 13px; line-height: 1.45; }
.usdt-support { border: 0; background: transparent; color: #fff; font-weight: 750; text-decoration: underline; padding: 0; }
.deposit-points {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.deposit-points span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  transform: translateY(-1px);
}
.pay-copy small.is-limit { color: #2dd4bf; font-weight: 700; }
.mpesa-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b2130;
}
.mpesa-card .pay-method { border: 0; background: transparent; padding: 0 0 2px; }
.mpesa-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #2dd4bf;
  background: #141824;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.mpesa-amount input {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
}
.mpesa-kes { margin: 0; color: var(--muted); font-size: 13px; }
.mpesa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mpesa-chip {
  min-width: 52px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #2a3142;
  color: var(--text);
  font-weight: 700;
}
.mpesa-phone { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.mpesa-phone input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141824;
  color: var(--text);
  padding: 0 12px;
  font-weight: 650;
}
.mpesa-phone input[readonly] { color: var(--muted); }
.mpesa-note { margin: 0; color: var(--faint); font-size: 12px; }
.mpesa-go {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #2dd4bf;
  color: #062924;
  font-weight: 800;
  font-size: 16px;
}
.pay-back {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 750;
  padding: 0;
}
.modal-card .quick-row button { flex: 1; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 0;
  max-width: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lamp);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast.bad { border-left-color: var(--ember); }
.toast.good { border-left-color: var(--lamp); }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

@media (max-width: 1180px) {
  .stage { overflow: auto; }
  .header { grid-template-columns: 1fr; }
  .product-pill { display: none; }
  .header-tools { justify-self: start; }
  .workspace { display: flex; flex-direction: column; height: auto; }
  .chart-panel { order: 1; height: 680px; }
  .ticket { order: 2; border-left: 0; border-top: 1px solid var(--border); }
  .positions { order: 3; min-height: 360px; border-right: 0; border-top: 1px solid var(--border); }
  .stat-grid, .hub-grid { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }
  .seam-row { display: none; }
}

.nav-toggle, .mobile-nav, .run-line { display: none; }

@media (max-width: 760px) {
  .app-banner,
  .app-banner[hidden] { display: none; }
  .app { grid-template-rows: auto minmax(0, 1fr) auto; }
  .header { grid-row: 1; }
  .stage { grid-row: 2; }
  .mobile-nav { grid-row: 3; }
  .chat { right: 8px; bottom: 67px; height: min(560px, calc(100dvh - 83px)); }
  .nav-toggle { display: grid; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: center;
    background: #10141b;
    border-top: 1px solid var(--border);
    padding-top: 3px;
    z-index: 8;
  }
  .mobile-tools { width: 100%; justify-content: center; padding: 0; }
  .header-tools .ai-scan { display: none; }
  .mobile-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
  }
  .mobile-tools .ai-scan {
    height: 32px;
    min-height: 32px;
    padding: 0 10px 0 8px;
    border-radius: 10px;
    font-size: 12px;
    flex-direction: row;
    gap: 5px;
    color: #fff;
    background: linear-gradient(180deg, #5eecc0 0%, #14986a 100%);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: var(--faint);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 51px;
    padding: 6px 0 1px;
    font-size: 11px;
    font-weight: 600;
  }
  .mobile-nav button.is-on { color: var(--lamp); }
  .header {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
  }
  html.is-apk .header { padding-top: 38px; }
  .header-left { flex: none; gap: 2px; flex-wrap: nowrap; }
  .brand-name, .product-pill, .header-tools > .icon-btn, .header-tools > .ghost-btn { display: none; }
  .header-tools > .sound-btn { display: grid; order: 2; width: 32px; height: 32px; }
  .header-tools > .account-wrap { order: 1; }
  .header-tools > .deposit-btn { order: 3; }
  .header-tools > .bell-wrap { order: 4; }
  .header-tools > .profile-wrap { display: none; }
.drawer { display: none; position: fixed; inset: 0; z-index: 90; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.55); }
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--panel);
  color: var(--text);
  overflow: auto;
  padding: 8px 10px 20px;
  box-shadow: var(--shadow);
}
.drawer-top { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.drawer-top strong { font-size: 16px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 12px 8px 16px; }
.drawer-user strong { display: block; font-size: 16px; }
.drawer-user span { color: var(--muted); font-size: 13px; }
.drawer-user .drawer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #5eecc0 0%, #14986a 100%);
  color: #062924;
  font-weight: 800;
  flex: none;
}
.drawer-link {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 15px;
}
.drawer-link svg { color: var(--muted); flex: none; }
.drawer-link.is-on { background: rgba(45, 212, 191, 0.16); color: #7eeade; }
.drawer-link.is-on svg { color: #5eecc0; }
html[data-theme="light"] .drawer-link.is-on { color: #0f766e; }
.drawer-brand i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2dd4bf;
  color: #062924;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.drawer-theme { justify-content: space-between; }
.drawer-theme span { display: inline-flex; align-items: center; gap: 12px; }
.drawer-switch {
  width: 46px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #2a3140;
  position: relative;
  flex: none;
  padding: 0;
}
.drawer-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}
.drawer-switch.is-on { background: #2fe08a; }
.drawer-switch.is-on i { transform: translateX(18px); }
.drawer-out { color: #ff5c73; margin-top: 8px; }
.drawer-out svg { color: #ff5c73; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    z-index: 7;
  }
  .header-nav.is-open { display: flex; }
  .header-nav button { text-align: left; }
  .header-tools { margin-left: auto; flex-wrap: nowrap; gap: 4px; }
  .balance-chip { padding-right: 8px; }
  .account-menu, .profile-menu, .notif-panel { right: 0; left: auto; max-width: calc(100vw - 16px); }
  .stage { overflow: hidden; }
  .workspace { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; padding-bottom: 151.7px; }
  #app[data-trade-mode="auto"] .workspace,
  #app:has(#group-auto:not([hidden])) .workspace { padding-bottom: 220px; }
  .zoom-controls { display: none; }
  .chart-panel, .ticket, .ticket-scroll { display: contents; }
  .positions { display: none; min-height: 70dvh; border: 0; }
  #app[data-pane="positions"] .stage { overflow: auto; }
  #app[data-pane="positions"] .workspace { padding-bottom: 0; }
  #app[data-pane="positions"] .positions { display: flex; }
  #app[data-pane="positions"] .chart-toolbar,
  #app[data-pane="positions"] #core-tape,
  #app[data-pane="positions"] .chart-stage,
  #app[data-pane="positions"] .digit-bar,
  #app[data-pane="positions"] .ticket-head,
  #app[data-pane="positions"] #mode-switch,
  #app[data-pane="positions"] .contract-tabs,
  #app[data-pane="positions"] .field-row,
  #app[data-pane="positions"] .stake-box,
  #app[data-pane="positions"] .quick-row,
  #app[data-pane="positions"] .payout-readout,
  #app[data-pane="positions"] #group-digit,
  #app[data-pane="positions"] #group-barrier,
  #app[data-pane="positions"] .auto-box,
  #app[data-pane="positions"] .hint,
  #app[data-pane="positions"] .last-row,
  #app[data-pane="positions"] .run-line,
  #app[data-pane="positions"] .ticket-actions { display: none !important; }
  .contract-tabs { order: 1; margin: 10px 12px 0; grid-template-columns: 1fr 1fr 1fr; }
  .contract-tabs button { font-size: 11px; white-space: nowrap; padding: 8px 2px; }
  .chart-toolbar {
    order: 2;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 0;
  }
  .chart-toolbar .symbol-wrap { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 96px); }
  .chart-toolbar .symbol-button { max-width: 100%; }
  .chart-toolbar .quote { flex: none; margin-left: auto; }
  .seam-row {
    display: flex;
    flex: 1 0 100%;
    order: 3;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .seam-row::-webkit-scrollbar { display: none; }
  .seam-chip { flex: none; min-height: 32px; padding: 4px 10px; font-size: 12px; }
  .chart-stage { order: 3; flex: 1 1 0; height: auto; min-height: 0; margin: 0; }
  .contract-tabs,
  .chart-toolbar,
  .digit-bar,
  #mode-switch,
  .stake-box,
  .quick-row,
  .auto-box,
  #group-digit,
  #group-barrier,
  .ticket-actions { flex-shrink: 0; }
  .digit-bar { order: 4; padding: 4px 8px 8px; }
  #mode-switch { order: 5; margin: 4px 12px 8px; }
  #mode-switch button { min-height: 38px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
  .field-row, .stake-box, .quick-row, .auto-box, #group-digit, #group-barrier, .run-line, .ticket-actions { order: 6; }
  .ticket-head, #core-tape, .chart-note, .payout-readout, .hint, .last-row, .demo-foot, .settle-note, .last-digit, .split-meter, .digit-caption, .field-row { display: none; }
  .quote-figures { display: flex; align-items: flex-end; }
  .live-price { font-size: 16px; }
  .field-row, .stake-box, .quick-row, #group-digit, #group-barrier, .run-line { margin-left: 12px; margin-right: 12px; }
  .auto-box {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 151.7px;
    z-index: 5;
    margin: 0;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .quick-row { gap: 4px; }
  .quick-row button { min-height: 32px; padding: 0 2px; font-size: 12px; border-radius: 8px; }
  .stake-field input { font-size: 28px; text-align: center; }
  .stake-field { justify-content: center; }
  .digit b { width: 100%; height: auto; aspect-ratio: 1; max-width: 40px; }
  .digit b > span { font-size: 12px; }
  .digit em { font-size: 7px; }
  .digits { gap: 2px; }
  .ticket-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 56.7px;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--bg);
  }
  .live-card, .settle-note { grid-column: 1 / -1; }
  .live-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
  }
  .live-card .live-top { width: 100%; }
  .live-card .live-stake { display: none; }
  .live-card.is-last {
    padding: 0 12px;
    height: 36px;
    min-height: 36px;
    background: #1c2129;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }
  .live-card.is-last .live-kicker {
    color: #8b97a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    gap: 6px;
  }
  .live-card.is-last .live-kicker b { font-size: 13px; font-weight: 700; letter-spacing: 0; color: #c5ccd6; }
  .live-card.is-last .live-kicker i { display: none; }
  .live-card.is-last .live-pl { font-size: 16px; font-weight: 700; }
  .live-pl { font-size: 16px; }
  .ticket-actions.is-live { grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 3px; }
  .ticket-actions.is-live .settle-note,
  .ticket-actions.is-live .run-stop { display: none; }
  .ticket-actions.is-live .trade-btn:not(.is-stop) { visibility: visible; pointer-events: none; opacity: 0.45; min-height: 53px; height: 53px; }
  .ticket-actions.is-live .trade-btn.is-stop,
  .ticket-actions.is-live .trade-btn.is-stop.even,
  .ticket-actions.is-live .trade-btn.is-stop.odd {
    min-height: 53px;
    height: 53px;
    background: #e6b325;
    border: 0;
    color: #1a1406;
    opacity: 1;
  }
  .trade-btn {
    min-height: 53px;
    height: 53px;
    padding: 10px 14px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 8px;
    row-gap: 0;
    color: #fff;
  }
  .trade-btn.even { background: #22c55e; color: #fff; }
  .trade-btn.odd { background: #ff4d5a; color: #fff; }
  .trade-btn .trade-name { grid-column: 1; grid-row: 1; font-size: 17px; }
  .trade-btn [data-icon] { display: none; }
  .trade-btn .money { display: contents; }
  .trade-btn [data-pct] { grid-column: 1; grid-row: 2; justify-self: start; font-size: 12px; font-weight: 500; opacity: 0.88; }
  .trade-btn [data-payout] { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; font-size: 16px; font-weight: 700; opacity: 1; }
  .trade-btn .money .payout-tag { display: block; grid-column: 2; grid-row: 2; justify-self: end; font-size: 12px; font-weight: 500; opacity: 0.88; text-align: right; }
  .page { padding-bottom: 28px; }
  .toasts { bottom: 67px; right: 8px; gap: 4px; }
  .toast { font-size: 10px; padding: 1px 7px; }
  .result-flash { font-size: 16px; }
  .page h1 { font-size: 30px; }
  .stat-grid, .hub-grid { grid-template-columns: 1fr; }
  .dock-head { align-items: stretch; flex-direction: row; padding-bottom: 0; }
}

.gate {
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(45, 212, 191, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
}
.land-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(12, 14, 18, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .land-nav { background: rgba(231, 247, 244, 0.92); }
.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.land-links { display: flex; gap: 18px; margin-left: 12px; }
.land-links a { color: var(--muted); text-decoration: none; }
.land-links a:hover { color: var(--text); }
.land-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.land-hero, .land-section, .land-meters, .land-close, .phone-band, .land-foot { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.land-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
  padding: 64px 0 28px;
}
.land-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--lamp);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.land-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lamp);
}
.land-hero h1, .land-section h2, .land-close h2 {
  margin: 0 0 12px;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-weight: 600;
}
.land-hero h1 { font-size: 64px; max-width: 640px; }
.land-hero h1 em { font-style: normal; color: var(--lamp); }
.land-hero-copy > p, .land-section p, .land-close p { color: var(--muted); line-height: 1.55; }
.land-hero-copy > p { max-width: 480px; font-size: 17px; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.land-main { min-height: 44px; padding: 0 18px; }
.land-cta a { text-decoration: none; }
.land-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.land-pills li, .contract-row li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
}
.land-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.land-stage header, .land-stage footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.land-stage header span, .land-stage footer span { color: var(--faint); font-size: 12px; }
.land-quote { text-align: right; }
.land-quote b { display: block; font-family: var(--mono); font-size: 22px; }
.land-quote span { font-family: var(--mono); font-size: 12px; }
.land-chart-wrap { position: relative; height: 210px; margin: 12px 0; }
.land-chart-wrap canvas { width: 100%; height: 100%; display: block; }
.land-digit {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lamp);
  color: var(--lamp-ink);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
}
.land-digits { display: flex; gap: 6px; margin-top: 6px; }
.land-digits i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
}
.land-digits i.even { background: var(--lamp-dim); color: var(--lamp); }
.land-digits i.odd { background: var(--ember-dim); color: var(--ember); }
.land-tape-wrap { background: #10141b; border-block: 1px solid var(--border); overflow: hidden; margin: 10px 0 20px; }
.land-tape { display: flex; gap: 28px; width: max-content; padding: 14px 18px; animation: tape 36s linear infinite; }
.tape-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.tape-item b { font-weight: 700; letter-spacing: 0.02em; }
.tape-item em { font-style: normal; font-family: var(--mono); color: var(--text); }
.tape-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-block;
  flex: none;
}
.tape-chg { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tape-chg.up { color: #3dd68c; }
.tape-chg.down { color: #ff5c73; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.land-section { padding: 54px 0 10px; }
.land-section h2, .land-close h2 { font-size: 40px; max-width: 680px; }
.land-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.land-bento article, .note-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.land-bento .wide { grid-column: 1 / -1; }
.land-bento h3, .note-grid p { margin: 0 0 8px; }
.land-bento p { margin: 0; }
.contract-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.land-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.land-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.land-steps b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lamp);
  color: var(--lamp-ink);
}
.land-steps strong { display: block; margin-bottom: 4px; }
.land-steps span { color: var(--muted); }
.land-meters {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.land-meters article { padding: 22px; }
.land-meters article + article { border-left: 1px solid var(--border); }
.land-meters strong { display: block; font-size: 32px; letter-spacing: -0.04em; color: var(--lamp); }
.land-meters span { color: var(--muted); }
.split-note { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
.digit-sample { display: flex; gap: 8px; align-items: end; justify-content: flex-end; }
.digit-sample span {
  width: 54px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 28px;
}
.digit-sample .dot { width: auto; height: auto; border: 0; background: transparent; }
.digit-sample .hit { background: var(--lamp); color: var(--lamp-ink); border-color: transparent; height: 92px; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.note-grid span { color: var(--faint); font-size: 13px; }
.land-close {
  margin-top: 48px;
  margin-bottom: 18px;
  padding: 36px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.16), transparent 55%),
    var(--panel);
  border: 1px solid var(--border);
}
.phone-band {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 36px;
  border-radius: 28px;
  color: #f7fffd;
  background:
    radial-gradient(480px 200px at 78% 0%, rgba(255, 255, 255, 0.28), transparent 62%),
    linear-gradient(105deg, #5eead4 0%, #2dd4bf 38%, #0f766e 100%);
}
.phone-mock {
  position: relative;
  width: 108px;
  height: 164px;
  margin-left: 8px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.phone-screen {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}
.phone-badge {
  position: absolute;
  right: -12px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(6, 41, 36, 0.28);
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 600;
}
.phone-band h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 32px;
  letter-spacing: -0.03em;
}
.phone-copy > p:last-of-type {
  margin: 0;
  max-width: 520px;
  color: rgba(247, 255, 253, 0.92);
}
.phone-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 18px;
}
.phone-btn {
  border: 0;
  background: #fff;
  color: #0f766e;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.phone-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 255, 253, 0.92);
  font-size: 13px;
}
.phone-traits li { display: inline-flex; align-items: center; gap: 6px; }
.phone-traits li::before { content: ""; }
.phone-traits li + li::before { content: "·"; margin-right: 8px; }
.auth {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: auto;
}
.auth[hidden] { display: none !important; }
.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 108px 64px 72px;
  color: #f7fffd;
  background:
    radial-gradient(640px 380px at 18% 88%, rgba(255, 255, 255, 0.18), transparent 62%),
    linear-gradient(155deg, #5eead4 0%, #2dd4bf 22%, #0f766e 70%, #115e59 100%);
}
.auth-brand {
  position: absolute;
  top: 32px;
  left: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: #f7fffd;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}
.auth-side h2 {
  margin: 0 0 14px;
  max-width: 460px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.auth-side p {
  margin: 0;
  max-width: 420px;
  color: rgba(247, 255, 253, 0.88);
  font-size: 16px;
  line-height: 1.5;
}
.auth-stats { display: flex; gap: 36px; margin-top: 36px; }
.auth-stats strong { display: block; font-size: 28px; letter-spacing: -0.03em; }
.auth-stats span { color: rgba(247, 255, 253, 0.78); font-size: 13px; }
.auth-checks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 440px;
}
.auth-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.auth-checks li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}
.auth-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px 28px 40px;
  background: #101318;
}
html[data-theme="light"] .auth-panel { background: #f3f6f8; }
.auth-theme { position: absolute; top: 18px; right: 18px; }
.auth-back {
  display: none;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.auth-card { width: min(420px, 100%); }
.auth-card[hidden] { display: none !important; }
.auth-card h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.auth-card .lede { margin: 0 0 22px; color: var(--muted); }
.auth-field { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.auth-field > span { position: relative; display: block; margin-top: 6px; }
.auth-field > span > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.auth-field input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c222c;
  color: var(--text);
  padding: 0 44px;
  font: inherit;
}
html[data-theme="light"] .auth-field input {
  background: #fff;
  border-color: rgba(6, 41, 36, 0.12);
  color: #10211e;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
}
.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  font-size: 13px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 16px;
}
.auth-row .check { margin: 0; }
.check input { accent-color: var(--lamp); margin-top: 2px; }
.auth .link {
  border: 0;
  background: none;
  color: var(--lamp);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--lamp);
  color: var(--lamp-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-submit:disabled { opacity: 0.6; cursor: wait; }
.auth-switch { text-align: center; color: var(--muted); margin: 16px 0 0; font-size: 14px; }
.auth-error { margin: 0 0 12px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { order: -1; min-height: 100dvh; }
  .auth-side { display: none; }
  .auth-back { display: inline-flex; }
  .auth-side h2 { font-size: 32px; }
  .auth-brand { left: 24px; top: 20px; }
}
.land-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 900px) {
  .land-links { display: none; }
  .land-hero, .land-bento, .split-note, .note-grid, .land-meters { grid-template-columns: 1fr; }
  .land-hero h1 { font-size: 42px; }
  .land-meters article + article { border-left: 0; border-top: 1px solid var(--border); }
  .land-nav { padding: 12px; }
  html.is-apk .land-nav { padding-top: 48px; }
  html.is-apk .land-hero { padding-top: 5px; }
  .land-hero, .land-section, .land-meters, .land-close, .phone-band, .land-foot { width: min(1120px, calc(100% - 28px)); }
  .phone-band { grid-template-columns: 1fr; justify-items: start; padding: 24px; }
  .digit-sample { justify-content: flex-start; flex-wrap: wrap; }
}
