/* IBM Plex Sans, self-hosted variable font (400-700): no render-blocking request to Google Fonts */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Signal Pilot, exchange-style theme (Binance palette), dark and white. One file, no build step. */

:root {
  --bg: #181a20;
  --bg-deep: #0b0e11;
  --card: #1e2329;
  --card-2: #2b3139;
  --card-3: #363c45;
  --line: #2b3139;
  --text: #eaecef;
  --text-2: #b7bdc6;
  --muted: #848e9c;
  --faint: #5e6673;
  --yellow: #fcd535;
  --yellow-2: #f0b90b;
  --yellow-ink: #202630;
  --accent: #fcd535; /* yellow used as text/icon colour */
  --green: #2ebd85;
  --green-bg: rgba(46, 189, 133, .12);
  --red: #f6465d;
  --red-bg: rgba(246, 70, 93, .12);
  --yellow-bg: rgba(240, 185, 11, .12);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 4px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --row-hover: rgba(43, 49, 57, .45);
}

/* White theme (Binance light). Yellow text turns gold so it stays readable on white. */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-deep: #fafafa;
  --card: #f5f5f5;
  --card-2: #eaecef;
  --card-3: #d8dce1;
  --line: #eaecef;
  --text: #1e2329;
  --text-2: #474d57;
  --muted: #616a78;              /* 4.6:1+ on every light surface (was #707a8a, 3.97:1) */
  --faint: #b7bdc6;
  --accent: #866300;             /* gold text, 4.6:1+ on white/cards (was #c99400, 2.7:1) */
  --green: #027f53;             /* 4.6:1+ on white/cards (was #03a66d, 2.9:1) */
  --green-bg: rgba(3, 166, 109, .1);
  --red: #cf304a;
  --red-bg: rgba(207, 48, 74, .08);
  --yellow-bg: rgba(240, 185, 11, .14);
  --shadow: 0 12px 32px rgba(24, 26, 32, .12);
  --row-hover: #fafafa;
}
html[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
.num, .tbl, .price { font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--muted); }
.yellow { color: var(--accent); }
.small { font-size: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-sm); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color .12s, opacity .12s; }
.btn svg { width: 16px; height: 16px; }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn-yellow:hover { background: var(--yellow-2); color: var(--yellow-ink); }
.btn-grey { background: var(--card-2); color: var(--text); }
.btn-grey:hover { background: var(--card-3); color: var(--text); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #29a877; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #e03f54; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--card-3); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--accent); flex: none; }
.logo:hover { color: var(--accent); }
.logo svg { width: 26px; height: 26px; }
.logo b { color: var(--text); font-weight: 700; }
.theme-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--card-2); color: var(--text-2); cursor: pointer; }
.theme-btn:hover { background: var(--card-3); color: var(--text); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun, [data-theme="light"] .theme-btn .i-moon { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav a { color: var(--text); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credit-chip { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); background: var(--card-2); font-size: 13px; font-weight: 500; }
.credit-chip:hover { color: var(--text); background: var(--card-3); }
.credit-chip span { color: var(--muted); font-weight: 400; }
.credit-chip i { width: 1px; height: 14px; background: var(--card-3); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); color: var(--accent); font-weight: 600; font-size: 13px; }
.menu-pop { position: absolute; right: 0; top: 42px; width: 240px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.menu-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .who b { display: block; font-weight: 600; }
.menu-pop .who span { color: var(--muted); font-size: 12px; word-break: break-all; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-sm); text-align: left; cursor: pointer; font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--card-2); color: var(--text); }
.menu-pop svg { width: 16px; height: 16px; color: var(--muted); }
.burger { display: none; }
.nav .show-sm { display: none; }

@media (max-width: 900px) {
  .hdr-in { padding: 0 16px; gap: 12px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .hdr-right .hide-sm { display: none; }
  .nav .show-sm { display: block; }
}
@media (max-width: 480px) {
  .hdr-in { gap: 8px; }
  .hdr-right { gap: 8px; }
  .hdr-right .hide-xs { display: none; }
  .logo { font-size: 17px; }
  .logo svg { width: 22px; height: 22px; }
}

/* Sub navigation with the yellow underline, like the exchange tabs */
.tabs { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 12px 0; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--text); }
.tabs [aria-current="page"]::after, .tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--yellow); }
.tabs-lg a, .tabs-lg button { font-size: 20px; font-weight: 600; }
.subnav { border-bottom: 1px solid var(--line); }
.subnav .tabs a { padding: 14px 0; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills a { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; font-size: 13px; }
.pills a:hover { color: var(--text); }
.pills a[aria-current="true"] { background: var(--card-2); color: var(--text); }

/* ---------- Cards, stats ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 20px; }
.card-line { border: 1px solid var(--line); background: transparent; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { font-size: 16px; font-weight: 600; }
.card-h a { color: var(--muted); font-size: 13px; }
.card-h a:hover { color: var(--accent); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--card-2); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-long { background: var(--green-bg); color: var(--green); }
.badge-short { background: var(--red-bg); color: var(--red); }
.badge-yellow { background: var(--yellow-bg); color: var(--accent); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .badge-live::before { animation: none; } }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) var(--side, 360px); gap: 16px; align-items: start; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.statbar { display: flex; flex-wrap: wrap; gap: 0; }
.statbar > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--card-3); }
.statbar > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.statbar span { display: block; color: var(--muted); font-size: 13px; }
.statbar b { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .statbar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .statbar > div { border: 0; margin: 0; padding: 0; }
  .statbar b { font-size: 20px; }
}

/* ---------- Coin icon ---------- */
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-ic { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent); overflow: hidden; }
.coin-ic img { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--card-2); }
.coin-lg .coin-ic { width: 36px; height: 36px; font-size: 13px; }
.coin b { font-weight: 600; }
.coin small { color: var(--muted); font-size: 12px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 0 12px 12px; color: var(--muted); font-weight: 400; font-size: 12px; text-align: left; white-space: nowrap; }
.tbl td { padding: 14px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr { transition: background-color .1s; }
.tbl-hover tbody tr:hover { background: var(--row-hover); }
.tbl-hover tbody tr { cursor: pointer; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; }
.tbl td.wrap-ok { white-space: normal; min-width: 180px; }
@media (max-width: 600px) { .tbl td.wrap-sm { white-space: normal; } }

/* On phones, rows become stacked cards with labels. */
/* Phones: each row becomes a compact card (exchange-app style). The row's name (m-lead), side badge (m-tag)
   and key figure (m-end) share the top line; the other cells sit under it in a 3-column grid, label above value. */
@media (max-width: 760px) {
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody { display: block; width: 100%; }
  .tbl-cards tr { display: flex; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
  .tbl-cards tr::after { content: ""; order: -1; flex: 0 0 100%; height: 0; }   /* line break after the top line */
  .tbl-cards tbody tr:first-child { border-top: 0; }
  .tbl.tbl-cards td { display: block; flex: 0 0 33.333%; min-width: 0; padding: 0 8px 0 0; border: 0; text-align: left; font-size: 13px; white-space: normal; overflow-wrap: anywhere; margin-top: 12px; }
  .tbl-cards td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
  .tbl-cards td[data-label=""]::before, .tbl-cards td.m-lead::before, .tbl-cards td.m-tag::before, .tbl-cards td.m-end::before { content: none; }
  .tbl.tbl-cards td.m-lead, .tbl.tbl-cards td.m-tag, .tbl.tbl-cards td.m-end { margin-top: 0; }
  .tbl.tbl-cards td.m-lead { order: -4; flex: 1 1 0; }
  .tbl.tbl-cards td.m-tag { order: -3; flex: 0 0 auto; padding-right: 12px; }
  .tbl.tbl-cards td.m-end { order: -2; flex: 0 0 auto; padding-right: 0; text-align: right; font-size: 16px; }
  .tbl-cards td.m-end .sub { font-size: 11px; }
  .tbl.tbl-cards td.m-full { flex-basis: 100%; }
  .tbl-cards td.m-full:empty, .tbl-cards td.m-hide { display: none; }
}

.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--card-3); }
.empty .btn { margin-top: 16px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field > label, .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.hint { font-size: 12px; color: var(--muted); }
.error { font-size: 12px; color: var(--red); }
.input { width: 100%; height: 44px; padding: 0 14px; background: transparent; color: var(--text); border: 1px solid var(--card-3); border-radius: var(--r-sm); font: inherit; font-size: 14px; transition: border-color .12s; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--yellow); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--card); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input-fill { background: var(--card-2); border-color: transparent; }
.affix { position: relative; display: flex; align-items: center; }
.affix .input { padding-right: 64px; }
.affix > span { position: absolute; right: 14px; color: var(--muted); font-size: 13px; pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--yellow); flex: none; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.frow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frow > .field + .field { margin-top: 0; }
.frow + .field, .field + .frow, .frow + .frow { margin-top: 16px; }
@media (max-width: 600px) { .frow, .frow-3 { grid-template-columns: 1fr; } }

/* Toggle switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch b { display: block; font-weight: 500; }
.switch small { color: var(--muted); }
.switch input { appearance: none; flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--card-3); position: relative; cursor: pointer; transition: background-color .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--yellow); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:disabled { opacity: .4; cursor: not-allowed; }

/* Long / Short segmented control, as on a futures order ticket */
.side { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); border-radius: var(--r-sm); padding: 3px; }
.side input { position: absolute; opacity: 0; pointer-events: none; }
.side label { height: 36px; display: grid; place-items: center; border-radius: 6px; font-weight: 600; color: var(--muted); cursor: pointer; }
.side input:checked + label.long { background: var(--green); color: #fff; }
.side input:checked + label.short { background: var(--red); color: #fff; }
.side input:checked + label.plain { background: var(--card); color: var(--text); }
.side input:focus-visible + label { outline: 2px solid var(--yellow); }

.alert { padding: 12px 16px; border-radius: var(--r-sm); background: var(--yellow-bg); color: var(--accent); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.alert-ok { background: var(--green-bg); color: var(--green); }
.alert-err { background: var(--red-bg); color: var(--red); }
.alert a { text-decoration: underline; }

/* ---------- Public: hero ---------- */
.hero { padding: 64px 0 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 530px; gap: 64px; align-items: center; }
.hero-in > * { min-width: 0; }   /* let the price strip scroll instead of widening the page */
.hero-big { font-size: clamp(44px, 6.4vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: -.01em; text-transform: uppercase; }
.hero-big .yellow { display: block; }
.hero-sub { margin-top: 20px; font-size: 20px; font-weight: 500; color: var(--text); max-width: 30ch; }
.hero-points { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-point { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.hero-point b { display: block; color: var(--accent); font-size: 18px; font-weight: 700; line-height: 1.1; }
@media (max-width: 600px) {
  .hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-point { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.35; }
  .hero-point svg { width: 22px; height: 22px; }
  .hero-point b { font-size: 15px; margin-bottom: 2px; }
}
.signup { display: flex; gap: 12px; margin-top: 36px; max-width: 480px; }
.signup .input { height: 48px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.panel { background: var(--card); border-radius: 16px; padding: 20px 24px; }
.panel + .panel { margin-top: 16px; }
.mkt-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 80px; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; }
.mkt-row .price { text-align: right; font-weight: 500; }
.mkt-row .chg { text-align: right; font-weight: 500; }
.flash-up { animation: flash-up .6s; }
.flash-down { animation: flash-down .6s; }
.flash-up.flash-b { animation-name: flash-up-b; }       /* a second copy lets JS restart the flash without a reflow */
.flash-down.flash-b { animation-name: flash-down-b; }
@keyframes flash-up { from { color: var(--green); } }
@keyframes flash-down { from { color: var(--red); } }
@keyframes flash-up-b { from { color: var(--green); } }
@keyframes flash-down-b { from { color: var(--red); } }
[data-live-price], [data-live-chg], [data-r-out] { font-variant-numeric: tabular-nums; }
.sig-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 11px 0; font-size: 14px; }
.sig-row:hover { color: var(--text); }
.sig-row:hover b.coin-name { color: var(--accent); }

@media (max-width: 1080px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 600px) {
  .hero { padding: 32px 0 48px; }
  .signup { flex-direction: column; }
  .panel { padding: 16px; }
  .mkt-row { grid-template-columns: minmax(0, 1fr) 100px 64px; font-size: 14px; }
}

/* ---------- Public: sections ---------- */
.sec { padding: 72px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; }
.sec-h p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 60ch; }
.sec-h a { color: var(--muted); font-weight: 500; }
.sec-h a:hover { color: var(--accent); }

/* Lead trader card (copy-trading leaderboard style) */
.lead { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: border-color .15s; }
.lead:hover { border-color: var(--card-3); }
.lead-top { display: flex; gap: 12px; align-items: center; }
.lead-av { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 2px solid var(--yellow); }
.lead-av svg { width: 26px; height: 26px; }
.lead-name { font-size: 16px; font-weight: 600; }
.lead-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.lead-pnl { display: grid; grid-template-columns: 1fr 140px; align-items: end; gap: 12px; margin: 22px 0 18px; }
.lead-pnl span { color: var(--muted); font-size: 12px; }
.lead-pnl b { display: block; font-size: 26px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.lead-pnl small { font-size: 12px; font-weight: 500; }
.spark { width: 100%; height: 48px; overflow: visible; }
.spark path.l { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark path.a { stroke: none; }
.spark line { stroke: var(--card-3); stroke-dasharray: 2 3; }
.lead .kvs { margin-bottom: 18px; }
.lead .btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: auto; }
.lead-soon { opacity: .7; }

/* Steps */
.step { background: var(--card); border-radius: var(--r); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--yellow-bg); color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Channel strip */
.chan { display: flex; gap: 14px; align-items: flex-start; }
.chan-ic { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--card-2); display: grid; place-items: center; color: var(--accent); }
.chan-ic svg { width: 22px; height: 22px; }
.chan h3 { font-size: 15px; margin-bottom: 4px; }
.chan p { color: var(--muted); font-size: 13px; }

/* Buy widget (credit calculator) */
.buy { background: var(--card); border-radius: 16px; padding: 24px; }
.buy .tabs { margin: -8px 0 16px; }
.buy-box { display: block; background: var(--card-2); border-radius: var(--r); padding: 14px 16px; border: 1px solid transparent; transition: border-color .12s; }
.buy-box:focus-within { border-color: var(--yellow); }
.buy-box + .buy-box { margin-top: 8px; }
.buy-box .top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.buy-box .mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.buy-box input { width: 100%; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 26px; font-weight: 600; padding: 0; font-variant-numeric: tabular-nums; }
.buy-box input:focus { outline: none; }
.buy-box .unit { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; flex: none; }
.buy-box .out { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.buy-quick button { height: 32px; border: 1px solid var(--card-3); background: none; border-radius: var(--r-sm); color: var(--text-2); cursor: pointer; font-size: 13px; }
.buy-quick button:hover, .buy-quick button.on { border-color: var(--yellow); color: var(--accent); }
.buy .kv { font-size: 13px; }
.buy .btn { margin-top: 16px; }
.buy .error { display: block; margin-top: 8px; }
.hero .buy + .panel { margin-top: 16px; }
.buy-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.buy-foot span { display: inline-flex; align-items: center; gap: 5px; }
.buy-foot svg { width: 14px; height: 14px; }
.buy-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.45; }
.co-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--card-2, rgba(0,0,0,.04)); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.co-note b { color: var(--text); font-weight: 600; }
.credit-eq { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }

/* Live market tape along the bottom edge of the hero calculator (scrolls slowly, pauses on hover) */
.tape { margin: 18px -24px -24px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; overflow: hidden; background: var(--bg-deep);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape { contain: layout paint; }                        /* price changes inside never re-lay-out the page */
.tape-track { display: flex; width: max-content; animation: tape 38s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-set { display: flex; }
.tape-i { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line); }
.tape-i .coin { gap: 6px; }
.tape-i .coin-ic { width: 18px; height: 18px; font-size: 8px; }
.tape-i .coin small { display: none; }
.tape-p { font-weight: 600; font-variant-numeric: tabular-nums; display: inline-block; min-width: 8ch; }
.tape-c { font-variant-numeric: tabular-nums; font-size: 12px; display: inline-block; min-width: 6ch; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } .tape { overflow-x: auto; } }
@media (max-width: 600px) { .tape { margin: 16px -16px -16px; } }

/* ---------- Recent signals: trade cards ---------- */
.rs-sum { display: flex; gap: 24px; flex-wrap: wrap; margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.rs-sum b { color: var(--text); font-weight: 600; }
.rs-sum b.up { color: var(--green); } .rs-sum b.down { color: var(--red); }
.tcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcard { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.tcard:hover { color: var(--text); border-color: var(--card-3); transform: translateY(-2px); }
.tcard-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tcard-roi span { display: block; color: var(--muted); font-size: 12px; }
.tcard-roi b { font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tcard-bar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red-bg), var(--card-2) 45%, var(--green-bg)); margin: 4px 0 2px; }
.tcard-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--muted); opacity: .5; }
.tcard.is-win .tcard-fill { background: var(--green); opacity: .8; }
.tcard.is-loss .tcard-fill { background: var(--red); opacity: .8; }
.tcard-entry { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.tcard-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--card); border: 3px solid var(--muted); }
.tcard.is-win .tcard-dot { border-color: var(--green); }
.tcard.is-loss .tcard-dot { border-color: var(--red); }
.tcard-lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.tcard-lv span:nth-child(2) { text-align: center; } .tcard-lv span:nth-child(3) { text-align: right; }
.tcard-lv small { display: block; color: var(--muted); font-size: 11px; }
.tcard-f { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tcard-f b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .rs-sum { gap: 16px; font-size: 13px; }
  /* phones: a swipeable row of cards, like an app */
  .tcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .tcards::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- Upcoming signals (pair and prices hidden until entry) ---------- */
.upc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.upc-sec { font-size: 18px; font-weight: 600; margin: 32px 0 14px; }
.upc { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.card .upc { background: var(--bg); }
.upc.is-upcoming { border-color: color-mix(in srgb, var(--yellow) 45%, var(--line)); }
.upc.is-dropped { opacity: .7; }
.upc-h { display: flex; align-items: center; gap: 8px; }
.upc-pair { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.upc-pair small { display: block; color: var(--muted); font-size: 12px; }
.upc-blur { filter: blur(6px); user-select: none; pointer-events: none; }
.upc-levels { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--card-2); }
.card .upc-levels, .upc .upc-levels { background: var(--card-2); }
.upc-levels span { display: block; color: var(--muted); font-size: 11px; }
.upc-levels b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.upc-lock { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 6px; margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--card-3); color: var(--text-2) !important; font-size: 12px !important; font-weight: 500; }
.upc-lock svg { width: 14px; height: 14px; }
.upc-why h4 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.upc-why p { color: var(--text-2); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.upc-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.upc-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 500; }
.upc-ok svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .upc-grid { grid-template-columns: 1fr; } .upc { padding: 16px; } }

/* ---------- Checkout ---------- */
.checkout { padding: 28px 0 72px; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.checkout-h { font-size: 30px; font-weight: 600; margin-bottom: 6px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; margin-top: 24px; }
@media (max-width: 960px) { .checkout-grid { grid-template-columns: 1fr; } }
.co-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.co-step h2, .co-sum h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.co-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 13px; }
.co-who { display: flex; align-items: center; gap: 12px; }
.co-who small { display: block; color: var(--muted); font-size: 12px; }
.pay-opt { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--card-3); border-radius: var(--r); cursor: pointer; transition: border-color .12s, background-color .12s; }
.pay-opt + .pay-opt { margin-top: 8px; }
.pay-opt:hover { border-color: var(--muted); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt:has(input:checked) { border-color: var(--yellow); background: var(--yellow-bg); }
.pay-opt:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }
.pay-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--card-2); color: var(--accent); }
.pay-ic svg { width: 20px; height: 20px; }
.pay-t b { display: block; font-weight: 600; }
.pay-t small { color: var(--muted); font-size: 12px; }
.pay-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--card-3); }
.pay-opt:has(input:checked) .pay-dot { border: 5px solid var(--yellow); }
.co-sum { position: sticky; top: 80px; }
.co-sum .kv { font-size: 13px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-total b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-sum .btn svg { width: 16px; height: 16px; }
.co-safe { margin-top: 12px; text-align: center; }
.co-status-wrap { max-width: 520px; }
.co-status { text-align: center; padding: 36px 28px; }
.co-status h1 { font-size: 24px; font-weight: 600; margin: 16px 0 8px; }
.co-status > p { color: var(--text-2); }
.co-status .alert b { overflow-wrap: anywhere; }
.co-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; }
.co-badge svg { width: 28px; height: 28px; stroke-width: 2.4; }
.co-badge.ok { background: var(--green-bg); color: var(--green); }
.co-badge.wait { background: var(--yellow-bg); color: var(--accent); }
.co-badge.bad { background: var(--red-bg); color: var(--red); }
.co-spin { width: 28px; height: 28px; margin: 20px auto 0; border: 3px solid var(--card-3); border-top-color: var(--yellow); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-lines { margin-top: 24px; text-align: left; }
/* after paying: confirm the e-mail with a code before the next steps */
.co-verify { margin-top: 20px; padding: 18px; border-radius: var(--r-md, 12px); background: var(--yellow-bg); text-align: left; }
.co-verify h2 { font-size: 17px; margin: 0 0 6px; }
.co-verify p { margin: 0 0 12px; }
.co-verify-form { display: flex; gap: 8px; }
.co-verify-form .input { flex: 1; min-width: 0; font-size: 20px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.co-lines .kv { font-size: 13px; }
.co-acts { display: grid; gap: 8px; margin-top: 20px; }
@media (max-width: 600px) {
  .checkout-h { font-size: 24px; }
  .co-step { grid-template-columns: 1fr; gap: 10px; }
  .co-status { padding: 28px 18px; }
}

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); color: var(--text-2); font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); font-size: 15px; max-width: 80ch; }

.cta { background: var(--card); border-radius: 16px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 36px); }
.cta p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 600px) { .cta { padding: 28px 20px; } }

.ftr { border-top: 1px solid var(--line); margin-top: 72px; padding: 48px 0 40px; color: var(--muted); font-size: 13px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr h4 { margin: 0 0 14px; color: var(--text); font-size: 15px; font-weight: 500; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a:hover { color: var(--accent); }
.ftr-risk { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--faint); }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-in > :first-child { grid-column: 1 / -1; } }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { height: 64px; display: flex; align-items: center; padding: 0 24px; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 64px; }
.auth-card { width: min(425px, 100%); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.auth-card h1 { font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.auth-card .btn-block { margin-top: 24px; height: 48px; font-size: 15px; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); }
.auth-foot a, .link { color: var(--accent); font-weight: 500; }
.auth-foot a:hover, .link:hover { color: var(--yellow-2); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
@media (max-width: 600px) { .auth-card { border: 0; padding: 8px 0; } }

/* ---------- App pages ---------- */
.page { padding: 28px 0 64px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-h h1 { font-size: 28px; font-weight: 600; }
.page-h p { margin-top: 4px; color: var(--muted); }
.page-h .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }

/* Balance overview (wallet style) */
.bal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.bal-label { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bal-big { margin-top: 8px; font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bal-big small { font-size: 16px; font-weight: 500; color: var(--text-2); margin-left: 6px; }
.bal-split { display: flex; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.bal-split div span { display: block; color: var(--muted); font-size: 13px; }
.bal-split div b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bal-acts { display: flex; gap: 8px; }
@media (max-width: 600px) { .bal { grid-template-columns: 1fr; } .bal-acts .btn { flex: 1; } }

.meter { height: 4px; border-radius: 2px; background: var(--card-2); overflow: hidden; margin-top: 8px; width: 140px; }
.meter i { display: block; height: 100%; background: var(--yellow); }
.meter.low i { background: var(--red); }

/* Signal page: chart + ticket */
.chart-box { height: 460px; background: var(--card); border-radius: var(--r); overflow: hidden; position: relative; }
.chart-box .chart-note { position: absolute; left: 16px; top: 12px; z-index: 3; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .chart-box { height: 340px; } }
.ticket-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ticket-h h1 { font-size: 22px; font-weight: 600; }
.ladder .kv { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ladder .kv:first-child { border-top: 0; }
.ladder .tp b { color: var(--green); }
.ladder .sl b { color: var(--red); }
.ladder .en b { color: var(--accent); }
.live-r { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 16px 20px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.tl li::after { content: ""; position: absolute; left: 3.5px; top: 19px; bottom: 0; width: 1px; background: var(--card-3); }
.tl li:last-child::after { display: none; }
.tl time { display: block; font-size: 12px; color: var(--muted); }

.pagination { display: flex; gap: 4px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span > span { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); color: var(--muted); font-size: 13px; }
.pagination a:hover { background: var(--card-2); color: var(--text); }
.pagination [aria-current="page"] > span { background: var(--card-2); color: var(--text); }
.pagination .disabled > span { opacity: .4; }

.code-box { padding: 12px 14px; background: var(--bg-deep); border-radius: var(--r-sm); font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-2); overflow-x: auto; white-space: pre; }

/* ================= Admin panel: its own layout (sidebar + top bar), separate from the member site ================= */
body.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-deep); border-right: 1px solid var(--line); padding: 18px 12px; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 18px; font-weight: 700; font-size: 16px; color: var(--accent); }
.adm-brand svg { width: 22px; height: 22px; }
.adm-brand b { color: var(--text); }
.adm-brand em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--yellow); color: var(--yellow-ink); margin-left: 2px; }
.adm-nav { display: grid; gap: 2px; }
.adm-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.adm-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; }
.adm-nav a svg { width: 18px; height: 18px; flex: none; }
.adm-nav a:hover { background: var(--card); color: var(--text); }
.adm-nav a[aria-current="page"] { background: var(--card-2); color: var(--text); }
.adm-nav a[aria-current="page"] svg { color: var(--accent); }
.adm-nav a i { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--yellow); color: var(--yellow-ink); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.adm-nav a i.ok { background: var(--green); color: #fff; }
.adm-nav a.adm-sub { height: 32px; padding-left: 38px; font-size: 13px; }
.adm-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.adm-site { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); color: var(--muted); font-size: 13px; }
.adm-site svg { width: 16px; height: 16px; }
.adm-site:hover { background: var(--card); }
.adm-me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--card); }
.adm-me-t { flex: 1; min-width: 0; }
.adm-me-t b { display: block; font-size: 13px; }
.adm-me-t small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-me button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; }
.adm-me button:hover { background: var(--card-2); color: var(--red); }
.adm-me button svg { width: 16px; height: 16px; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.adm-crumb { font-weight: 600; color: var(--muted); }
.adm-top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.adm-top-r .btn svg { width: 14px; height: 14px; }
.adm-burger { display: none; width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: var(--card-2); color: var(--text); cursor: pointer; place-items: center; }
.adm-burger svg { width: 18px; height: 18px; }
.adm-body { padding: 28px; max-width: 1320px; width: 100%; }
.adm-scrim { display: none; }
@media (max-width: 960px) {
  body.adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; z-index: 60; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.adm.nav-open .adm-side { transform: none; }
  body.adm.nav-open .adm-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .35); }
  .adm-burger { display: grid; }
  .adm-top { padding: 0 16px; }
  .adm-body { padding: 20px 16px 48px; }
  .adm-top-r .btn span, .adm-crumb { font-size: 14px; }
}
.set-row > span { display: flex; align-items: center; gap: 10px; }
.set-row b { font-weight: 500; text-align: right; }
.set-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.set-dot.ok { background: var(--green); }
.set-dot.no { background: var(--red); }
/* Admin sign-in page */
body.adm-login { min-height: 100vh; display: grid; place-items: center; background: var(--bg-deep); padding: 24px 16px; }
.adm-login-in { width: min(420px, 100%); }
.adm-login-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.adm-login-card h1 { font-size: 24px; font-weight: 600; margin: 6px 0 6px; }
.adm-login-card > p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.adm-brand-lg { padding: 0 0 14px; }
.adm-login-note { text-align: center; color: var(--faint); font-size: 12px; margin-top: 14px; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-save { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .set-grid { grid-template-columns: 1fr; } }
.adm-trade { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); background: var(--yellow); color: var(--yellow-ink); font-weight: 600; font-size: 13px; }
.adm-trade:hover { background: var(--yellow-2); color: var(--yellow-ink); }
.adm-trade svg { width: 16px; height: 16px; }
.adm-trade svg:last-child { margin-left: auto; width: 14px; height: 14px; opacity: .7; }

/* ---------- Admin bar charts (one series each; colours validated for light and dark) ---------- */
.bars { --bar: #a07400; margin: 0; }
.bars-pay { --bar: #03855a; }
html[data-theme="dark"] .bars { --bar: #b8890a; }
html[data-theme="dark"] .bars-pay { --bar: #20a472; }
.bars-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.bars-h span { color: var(--text-2); font-size: 13px; }
.bars-h b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars-plot { position: relative; height: 160px; display: flex; align-items: flex-end; gap: 2px; padding-top: 16px; border-bottom: 1px solid var(--card-3);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 16px / 100% 50%; }
.bars-compact .bars-plot { height: 90px; }
.bars-max { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { position: relative; flex: 1 1 0; min-width: 2px; height: var(--h); background: var(--bar); border-radius: 4px 4px 0 0; outline: none; }
.bar[style*="--h: 0%"] { height: 0; }
.bar::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 0; height: 160px; }   /* hover target: the whole column */
.bars-compact .bar::before { height: 90px; }
.bar:hover, .bar:focus-visible { filter: brightness(1.15); }
.bar:hover::after, .bar:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 4px 8px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 12px; white-space: nowrap; pointer-events: none; }
.bars-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.bars-table { margin-top: 14px; }
.bars-table summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.bars-table .tbl-wrap { max-height: 280px; overflow-y: auto; margin-top: 8px; }

/* Line chart, several measures indexed to their own peak (x-lines). Colours validated light + dark; revenue is
   also dashed so it never depends on colour alone. */
.lines { margin: 0; --c-visitors: #a07400; --c-signups: #2a78d6; --c-revenue: #03855a; }
html[data-theme="dark"] .lines { --c-visitors: #b8890a; --c-signups: #3987e5; --c-revenue: #20a472; }
.lines-visitors { --bar: var(--c-visitors); stroke: var(--c-visitors); }
.lines-signups { --bar: var(--c-signups); stroke: var(--c-signups); }
.lines-revenue { --bar: var(--c-revenue); stroke: var(--c-revenue); }
.lines .bars-key.lines-revenue i { background: repeating-linear-gradient(90deg, var(--bar) 0 4px, transparent 4px 6px); height: 3px; border-radius: 2px; }
.lines .bars-key i { width: 16px; height: 3px; border-radius: 2px; }
.lines-plot { position: relative; height: var(--lh); border-bottom: 1px solid var(--card-3);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.lines-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines-plot path { fill: none; stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lines-plot path.lines-revenue { stroke-dasharray: 6 4; }
.lines-hit { position: absolute; inset: 0; }
.lines-hit span { position: absolute; top: 0; bottom: 0; left: var(--x); width: 24px; margin-left: -12px; outline: none; }
.lines-hit span:hover::before, .lines-hit span:focus-visible::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--muted); }
.lines-hit span:hover::after, .lines-hit span:focus-visible::after { content: attr(data-tip); position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; line-height: 1.5; white-space: pre; pointer-events: none; }
.lines-hit span:nth-last-child(-n+4)::after { left: auto; right: 50%; transform: none; }
.lines-hit span:nth-child(-n+4)::after { left: 50%; transform: none; }

/* Admin signals list: filters, bulk delete */
.sig-filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sig-filters .pills { flex-wrap: wrap; }
.sig-search { display: flex; gap: 8px; }
.sig-search .input { height: 36px; width: auto; }
.sig-search input[type=search] { width: 200px; }
.bulk-bar[hidden] { display: none; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-sm); background: var(--red-bg); }
.bulk-bar .input { flex: 1; min-width: 220px; height: 36px; background: var(--bg); }
.bulk-bar .btn { height: 36px; }
.sig-tbl th.ck, .sig-tbl td.ck { width: 28px; padding-right: 4px; }
.sig-tbl input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--yellow); cursor: pointer; }
@media (max-width: 760px) { .sig-tbl td.ck { flex: 0 0 auto; order: -5; margin: 0 6px 0 0; } .sig-search, .sig-search input[type=search] { width: 100%; } }

/* Signals list: checkboxes only in bulk mode */
.sig-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sig-tbl .ck { display: none; }
.bulk-on .sig-tbl .ck { display: table-cell; }
@media (max-width: 760px) { .bulk-on .sig-tbl td.ck { display: block; } }
.bulk-on .sig-tbl tbody tr { cursor: default; }
.sig-list { min-width: 0; }
/* grouped bars (several series, one scale) */
.bars-grouped .bars-plot { gap: 4px; }
.bar-group { flex: 1 1 0; display: flex; align-items: flex-end; gap: 2px; height: 100%; min-width: 4px; }
.bar-group .bar { flex: 1 1 0; }
.bar-group .bar::before { height: 160px; }
.bars-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.bars-title { font-weight: 600; color: var(--text); margin-right: 6px; }
.bars-key { display: inline-flex; align-items: center; gap: 6px; }
.bars-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--bar); }
.bars-key b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Admin settings: tabs */
.set-tabs { margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.set-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--red-bg); color: var(--red); font-style: normal; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.set-panel { min-height: 120px; }
.set-form .set-save { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.set-form .set-save[hidden] { display: none; }

/* Members growth: preset ranges + custom From/To */
.range-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.range-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding: 4px; border-radius: var(--r-sm); }
.range-form.on { background: var(--card-2); }
.range-form label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); }
.range-form .input { height: 32px; width: 150px; padding: 0 8px; font-size: 13px; }
@media (max-width: 600px) { .range-form, .range-form label { width: 100%; } .range-form .input { width: 100%; } }

/* ================= Phone app shell (≤760px): bottom tab bar, account sheet, compact bars ================= */
.tabbar, .co-bar, .show-m, .menu-pop .show-m { display: none; }
html { -webkit-tap-highlight-color: transparent; }

@media (max-width: 760px) {
  .show-m { display: revert; }
  .menu-pop a.show-m { display: flex; }
  .hide-m { display: none !important; }

  /* Bottom tab bar */
  .tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    height: calc(58px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: none;
    color: var(--muted); font-size: 11px; font-weight: 500; cursor: pointer; }
  .tabbar a:hover { color: var(--muted); }
  .tabbar [aria-current="page"], .tabbar [aria-current="page"]:hover { color: var(--text); }
  .tabbar [aria-current="page"] svg { color: var(--accent); stroke-width: 2.2; }
  .tabbar-ic { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
  .tabbar-ic svg { width: 22px; height: 22px; }
  .tabbar-ic i { position: absolute; top: -4px; left: 15px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff;
    font-style: normal; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
  .tabbar a:active .tabbar-ic, .tabbar button:active .tabbar-ic { transform: scale(.88); }
  .tabbar-fab .tabbar-ic { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 4px 14px rgba(240, 185, 11, .35), 0 0 0 4px var(--bg); }
  .tabbar-fab .tabbar-ic svg, .tabbar-fab[aria-current="page"] .tabbar-ic svg { color: var(--yellow-ink); stroke-width: 2.4; }
  body.has-tabbar { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  /* Top bar: compact, respects the notch; no burger (the tab bar and account sheet hold the links) */
  .hdr { padding-top: env(safe-area-inset-top); }
  .hdr-in { height: 56px; }
  .hdr .burger, .hdr .nav { display: none !important; }
  .subnav { display: none; }

  /* Account menu becomes a bottom sheet */
  .menu[open] .sheet-scrim { position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .45); animation: fade .18s; }
  .menu-pop { position: fixed; z-index: 2; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 85vh; overflow-y: auto;
    padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; animation: sheet-up .22s ease-out; }
  .menu-pop::before { content: ""; display: block; width: 36px; height: 4px; margin: 2px auto 10px; border-radius: 2px; background: var(--card-3); }
  .menu-pop a, .menu-pop button { padding: 13px 10px; font-size: 15px; }
  .menu-pop svg { width: 18px; height: 18px; }
  .menu-credits { display: flex; align-items: center; gap: 24px; margin: 4px 0 8px; padding: 14px !important; border-radius: var(--r) !important; background: var(--card-2); }
  .menu-credits span small { display: block; color: var(--muted); font-size: 12px; }
  .menu-credits span b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .menu-credits em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--yellow); color: var(--yellow-ink); }

  /* Pages: tighter, app-like spacing */
  .page { padding: 16px 0 32px; }
  .page-h { margin-bottom: 16px; align-items: flex-start; }
  .page-h h1 { font-size: 24px; }
  .page-h p { font-size: 13px; }
  .page-h .acts .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .card { padding: 16px; border-radius: 16px; }
  .sec { padding: 40px 0; }
  .sec-h { margin-bottom: 18px; }
  .sec-h p { font-size: 14px; }
  .ftr { margin-top: 32px; padding: 32px 0 24px; }
  .ftr-in { gap: 24px; }
  .ftr-risk { margin-top: 24px; }

  /* Touch: 16px inputs (no iOS zoom on focus), bigger hit areas, press feedback */
  .input, .buy-box input, textarea.input, select.input { font-size: 16px; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 36px; }
  .btn:active, .tcard:active, .lead:active, .pay-opt:active { transform: scale(.98); }
  .tbl-hover tbody tr:active { background: var(--row-hover); }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .pills::-webkit-scrollbar { display: none; }
  .pills a { flex: none; height: 34px; }

  /* Checkout: fixed pay bar at the bottom */
  .co-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    transition: transform .2s ease; }
  .co-bar.is-hidden { transform: translateY(110%); }
  .co-bar span { display: block; color: var(--muted); font-size: 12px; }
  .co-bar b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .co-bar .btn { flex: 1; max-width: 220px; }
  body.no-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .checkout { padding: 16px 0 24px; }

  /* Admin: tab bar replaces the burger; the sidebar is the "More" drawer */
  .adm-top { height: 52px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
  .adm-burger { display: none !important; }
  .adm-crumb { font-size: 17px !important; color: var(--text); }
  .adm-body { padding: 16px 16px 32px; }
  .adm-side { width: min(300px, 86vw); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .adm-nav a { height: 44px; }
}
@media (max-width: 480px) { .credit-chip { display: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .menu-pop, .menu[open] .sheet-scrim { animation: none; } .co-bar { transition: none; } }

/* Phone fixes: admin bulk checkboxes, one-row filter pills, compact footer, anchors below the sticky bar */
.tbl.sig-tbl .ck { display: none; }
.bulk-on .tbl.sig-tbl .ck { display: table-cell; }
#co-sum { scroll-margin-top: 72px; }
@media (max-width: 760px) {
  .bulk-on .tbl.sig-tbl td.ck { display: block; }
  .sig-filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sig-filters .pills { flex-wrap: nowrap; }
  .adm-brand-m { display: flex; padding: 0; font-size: 15px; }
  .ftr-in > :not(:first-child) { display: none; }
  .ftr-in > :first-child p { max-width: none !important; }
}

/* ---------- Locked signals (member without the signal): blurred stand-ins + unlock ---------- */
.tbl tr.is-locked td { background: color-mix(in srgb, var(--yellow) 4%, transparent); }
.tbl tr.is-locked .badge svg { width: 12px; height: 12px; }
.unlock-f { display: inline-block; }
.unlock-f .btn svg { width: 14px; height: 14px; }
.lock-chart { position: relative; height: 380px; border-radius: var(--r); background: var(--card); overflow: hidden; }
.lock-chart > svg { position: absolute; inset: 24px 16px; width: calc(100% - 32px); height: calc(100% - 48px); filter: blur(5px); opacity: .7; }
.lock-chart .u { fill: var(--green); stroke: var(--green); }
.lock-chart .d { fill: var(--red); stroke: var(--red); }
.lock-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.lock-over b { font-size: 17px; font-weight: 600; }
.lock-over span:not(.lock-ic) { color: var(--text-2); font-size: 13px; }
.lock-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 6px 20px rgba(240, 185, 11, .35); }
.lock-ic svg { width: 24px; height: 24px; stroke-width: 2.2; }
@media (max-width: 760px) {
  .lock-chart { height: 240px; }
  .tbl.tbl-cards tr.is-locked td.m-full { margin-top: 12px; }
  .tbl-cards tr.is-locked .unlock-f, .tbl-cards tr.is-locked .unlock-f .btn { display: flex; width: 100%; }
  .tbl-cards tr.is-locked { padding-inline: 12px; margin: 0 -12px; border-radius: 12px; }
}
@media (max-width: 760px) {
  .tbl-cards tr.is-locked td { background: none; }
  .tbl-cards tr.is-locked { background: color-mix(in srgb, var(--yellow) 6%, transparent); }
}


/* ================= Signals page: summary, filter bar, signal cards ================= */
.dot-live { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); animation: blink 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

.sg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sg-top h1 { font-size: 28px; font-weight: 600; }
.sg-top p { margin-top: 4px; color: var(--muted); max-width: 60ch; }
.sg-bal { display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 16px; border-radius: var(--r); background: var(--card); }
.sg-bal:hover { color: inherit; }
.sg-bal span small { display: block; color: var(--muted); font-size: 11px; }
.sg-bal span b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-bal em { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); background: var(--yellow); color: var(--yellow-ink); font-style: normal; font-weight: 600; font-size: 13px; }
.sg-bal em svg { width: 14px; height: 14px; stroke-width: 2.4; }
.sg-bal:hover em { background: var(--yellow-2); }

.sg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r); background: var(--card); margin-bottom: 8px; }
.sg-stats > div { padding: 16px 20px; min-width: 0; }
.sg-stats > div + div { border-left: 1px solid var(--line); }
.sg-stats span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.sg-stats span svg { width: 13px; height: 13px; }
.sg-stats b { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-stats b small { font-size: 13px; font-weight: 500; color: var(--muted); }

.sg-bar { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 20px; padding: 4px 0 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.sg-tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.sg-tabs::-webkit-scrollbar { display: none; }
.sg-tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 0 14px; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; }
.sg-tabs a:hover { color: var(--text); }
.sg-tabs a i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--card-2); color: var(--text-2); font-style: normal; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.sg-tabs a.is-lock i { background: var(--yellow-bg); color: var(--accent); }
.sg-tabs a[aria-current="page"] { color: var(--text); }
.sg-tabs a[aria-current="page"] i { background: var(--text); color: var(--bg); }
.sg-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--yellow); }
.seg { display: inline-flex; flex: none; padding: 3px; border-radius: var(--r-sm); background: var(--card-2); }
.seg a { height: 28px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.scards-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 4px 0 12px; }
.scards + .scards-h { margin-top: 32px; }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }

/* card */
.sc { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid transparent; border-radius: 16px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sc:hover { border-color: var(--card-3); transform: translateY(-2px); box-shadow: var(--shadow); }
.sc.is-locked { background: linear-gradient(180deg, var(--yellow-bg), transparent 140px), var(--card); border-color: color-mix(in srgb, var(--yellow) 45%, var(--line)); }
.sc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 0; }
.sc-h:hover { color: inherit; }
.sc-h .coin-name { font-size: 17px; }
.sc-kpi { text-align: right; flex: none; }
.sc-kpi span { display: block; color: var(--muted); font-size: 11px; }
.sc-kpi b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sc-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 18px 14px; }
.sc-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--card-2); color: var(--text-2); font-size: 12px; font-weight: 500; }
.sc-tag svg { width: 12px; height: 12px; }
.sc-long { background: var(--green-bg); color: var(--green); font-weight: 600; }
.sc-short { background: var(--red-bg); color: var(--red); font-weight: 600; }
.sc-code { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.sc-chart { position: relative; display: block; height: 220px; background: var(--bg); border-block: 1px solid var(--line); }
.sc-chart:hover { color: inherit; }
.sc-plot { position: absolute; inset: 0; }
.sc-plot .chart-note { position: absolute; left: 12px; top: 10px; font-size: 12px; color: var(--muted); }
.sc .lock-chart { height: 220px; border-radius: 0; }
.sc .lock-over b { font-size: 14px; font-weight: 500; color: var(--text-2); }
.sc .lock-ic { width: 44px; height: 44px; margin-bottom: 2px; }
.sc-nochart { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.sc-nochart svg { width: 34px; height: 34px; color: var(--card-3); }

/* stop -> entry -> target bar */
.sc-body { padding: 16px 18px 4px; }
.sc-bar { position: relative; height: 6px; border-radius: 3px; margin: 4px 0 14px; background: linear-gradient(90deg, var(--red-bg), var(--card-2) 50%, var(--green-bg)); }
.sc-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--muted); opacity: .45; transition: left .4s, width .4s; }
.sc.is-up .sc-fill, .sc-bar.is-up .sc-fill { background: var(--green); opacity: .85; }
.sc.is-down .sc-fill, .sc-bar.is-down .sc-fill { background: var(--red); opacity: .85; }
.sc-entry { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--text); }
.sc-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--card); border: 3px solid var(--muted); transition: left .4s; }
.sc.is-up .sc-dot, .sc-bar.is-up .sc-dot { border-color: var(--green); }
.sc.is-down .sc-dot, .sc-bar.is-down .sc-dot { border-color: var(--red); }
.sc.is-live .sc-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.sc-bar.upc-blur { filter: blur(3px); }
.sc-lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }
.sc-lv > div:nth-child(2) { text-align: center; }
.sc-lv > div:nth-child(3) { text-align: right; }
.sc-lv span { display: block; color: var(--muted); font-size: 11px; }
.sc-lv b { display: block; font-size: 14px; font-weight: 600; }
.sc-lv small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.sc-lv small.up { color: var(--green); }
.sc-lv small.down { color: var(--red); }
.sc-lv em { font-style: normal; color: var(--text-2); }
.sc-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 18px 16px; }
.sc-when { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.sc-missed { font-style: normal; font-weight: 600; font-size: 11px; padding: 2px 7px; border-radius: 4px; background: var(--card-2); color: var(--text-2); }
.sc-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.sc-open svg { width: 15px; height: 15px; transition: transform .15s; }
.sc:hover .sc-open { color: var(--accent); }
.sc:hover .sc-open svg { transform: translateX(3px); }
.sc-f form { margin: 0; }
.sc-f .btn { height: 36px; font-weight: 600; }
.sc-f .btn svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .sg-top { margin-bottom: 14px; }
  .sg-top h1 { font-size: 24px; }
  .sg-top p { font-size: 13px; }
  .sg-bal { width: 100%; }
  .sg-bal em { margin-left: auto; }
  .sg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-stats > div { padding: 12px 14px; }
  .sg-stats > div:nth-child(3) { border-left: 0; }
  .sg-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sg-stats b { font-size: 18px; }
  .sg-bar { top: calc(56px + env(safe-area-inset-top)); flex-direction: column; align-items: stretch; gap: 8px; margin-inline: -16px; padding: 4px 16px 10px; }
  .sg-tabs { gap: 20px; margin-inline: -16px; padding-inline: 16px; }
  .sg-tabs a { padding: 10px 0 12px; font-size: 14px; }
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .scards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sc:hover { transform: none; box-shadow: none; }
  .sc-h { padding: 16px 16px 0; }
  .sc-tags { padding: 10px 16px 12px; }
  .sc-body { padding: 14px 16px 2px; }
  .sc-f { padding: 12px 16px 14px; }
  .sc-chart, .sc .lock-chart { height: 200px; }
  .sc.is-locked .sc-f { flex-direction: column; align-items: stretch; }
  .sc.is-locked .sc-f .btn { width: 100%; height: 44px; }
}
.sc .lock-over b { padding: 4px 12px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 85%, transparent); }
.sg-top { margin-bottom: 16px; }

/* ---------- Credits page: balance, tabs, buy + ways to pay ---------- */
.cr-bal { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.cr-split { display: flex; gap: 12px; }
.cr-split > div { min-width: 130px; padding: 12px 16px; border-radius: var(--r); background: var(--bg); }
.cr-split span { display: block; color: var(--muted); font-size: 12px; }
.cr-split b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-split small { color: var(--muted); font-size: 11px; }
.cr-bar { position: static; }
.cr-buy { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.cr-pay { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cr-pay:first-of-type { border-top: 0; padding-top: 0; }
.cr-facts { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pay-opt.is-soon { cursor: default; opacity: .75; }
.pay-opt.is-soon:hover { border-color: var(--card-3); }
.pay-opt.is-soon .badge { justify-self: end; }
.pay-opt.is-soon { grid-template-columns: 40px minmax(0, 1fr) auto; }
@media (max-width: 960px) { .cr-buy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .cr-split { width: 100%; }
  .cr-split > div { flex: 1; min-width: 0; }
  .cr-bar { margin-inline: -16px; padding: 0 16px; }
}

/* ---------- Credits: history + orders as a wallet activity feed ---------- */
.cr-sum { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: -4px 0 12px; font-size: 14px; color: var(--text-2); }
.cr-sum b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.cr-sum b.up { color: var(--green); }
.chips { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; height: 32px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 16px; border: 1px solid var(--card-3); color: var(--text-2); font-size: 13px; font-weight: 500; }
.chips a:hover { border-color: var(--muted); color: var(--text); }
.chips a[aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.feed-day { margin: 22px 0 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.feed-day:first-of-type { margin-top: 0; }
.feed { background: var(--card); border-radius: 16px; padding: 4px 0; }
.feed-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.feed-row:first-child { border-top: 0; }
a.feed-row:hover { color: inherit; background: var(--row-hover); }
.feed:has(a.feed-row) a.feed-row:first-child:hover { border-radius: 16px 16px 0 0; }
.feed-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--text-2); }
.feed-ic svg { width: 19px; height: 19px; }
.feed-up { background: var(--green-bg); color: var(--green); }
.feed-refund { background: var(--yellow-bg); color: var(--accent); }
.feed-wait { background: var(--yellow-bg); color: var(--accent); }
.feed-coin { justify-content: center; }
.feed-coin .coin-ic { width: 40px; height: 40px; font-size: 13px; }
.feed-coin > span:last-child { display: none; }
.feed-t { min-width: 0; }
.feed-t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-t small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-amt { display: grid; justify-items: end; gap: 3px; text-align: right; }
.feed-amt b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feed-amt small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.feed-go { grid-column: 2 / -1; justify-self: start; }
@media (max-width: 600px) {
  .feed { border-radius: 14px; }
  .feed-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; }
  .feed-ic, .feed-coin .coin-ic { width: 36px; height: 36px; }
  .feed-t b { font-size: 14px; }
  .feed-go { width: 100%; justify-self: stretch; height: 40px; }
}
@media (max-width: 600px) { .feed-t small { white-space: normal; } }

/* ---------- Upcoming setup card (sc-watch): pair + live chart, levels hidden ---------- */
.sc-watch { border-color: color-mix(in srgb, var(--yellow) 35%, var(--line)); }
.sc-watch.is-dropped { opacity: .7; }
.sc-watching { background: var(--yellow-bg); color: var(--accent); }
.sc-watching .dot-live { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-bg); width: 6px; height: 6px; }
.sc-chart-note { position: absolute; left: 10px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--text-2); font-size: 11px; font-weight: 500; }
.sc-hidden { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); }
.sc-lock-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.sc-lock-note svg { width: 13px; height: 13px; }
.sc-why { margin-top: 14px; }
.sc-why h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.sc-why p { color: var(--text-2); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.sc-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 600; }
.sc-ok svg { width: 14px; height: 14px; }
.sc-watch .sc-f .btn { height: 38px; }
.upc-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.card .sc { background: var(--bg); border-color: var(--line); }
.card .sc .sc-chart, .card .sc .sc-hidden { background: var(--card); }
@media (max-width: 760px) {
  .upc-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-watch .sc-f { flex-direction: column; align-items: stretch; }
  .sc-watch .sc-f .btn { width: 100%; height: 44px; }
}

/* ---------- Pop-up (native <dialog>): centred card on desktop, bottom sheet on phones ---------- */
.sc-why-btn { margin-top: 14px; }
.sc-why-btn svg { width: 16px; height: 16px; }
.modal { width: min(560px, calc(100% - 32px)); max-height: min(85vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.modal::backdrop { background: rgba(11, 14, 17, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { display: flex; flex-direction: column; animation: modal-in .2s ease-out; }
.modal-in { display: flex; flex-direction: column; min-height: 0; max-height: inherit; padding: 22px 24px 20px; overflow-y: auto; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--text-2); cursor: pointer; }
.modal-x:hover { background: var(--card-3); color: var(--text); }
.modal-x svg { width: 18px; height: 18px; }
.modal-t { margin: 20px 0 10px; font-size: 18px; font-weight: 600; }
.modal-body { color: var(--text-2); font-size: 15px; line-height: 1.7; white-space: pre-line; }
.modal .sc-lock-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.modal-f { margin-top: 16px; }
html.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 600px) {
  .modal { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .modal[open] { animation: sheet-up .25s ease-out; }
  .modal-in { padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
  .modal-in::before { content: ""; align-self: center; width: 36px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--card-3); }
}
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* ================= Member Home (dashboard) ================= */
.dh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-bottom: 8px; }
.dh-main, .dh-perf { border-radius: 16px; background: var(--card); padding: 22px 24px; }
.dh-main { display: flex; flex-direction: column; background: radial-gradient(120% 140% at 100% 0%, var(--yellow-bg), transparent 55%), var(--card); }
.dh-hi { color: var(--text-2); font-size: 15px; font-weight: 500; }
.dh-bal { margin: 14px 0 18px; }
.dh-bal span { display: block; color: var(--muted); font-size: 13px; }
.dh-bal b { font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dh-acts { display: flex; gap: 8px; margin-top: auto; }
.dh-acts .btn svg { width: 15px; height: 15px; stroke-width: 2.4; }
.dh-warn { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--accent); font-size: 13px; }
.dh-warn svg { width: 15px; height: 15px; flex: none; }
.dh-perf { display: grid; grid-template-columns: minmax(0, 1fr) 160px; grid-template-rows: auto auto 1fr; column-gap: 16px; transition: box-shadow .15s; }
.dh-perf:hover { color: inherit; box-shadow: inset 0 0 0 1px var(--card-3); }
.dh-perf-l { grid-column: 1; color: var(--muted); font-size: 13px; }
.dh-perf > b { grid-column: 1; font-size: 32px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dh-perf .spark { grid-column: 2; grid-row: 1 / 3; align-self: center; height: 56px; }
.dh-perf-s { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.dh-perf-s small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

.dsec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 12px; }
.dsec-h h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.dsec-h h2 > i:not(.dot-live) { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--card-2); color: var(--text-2); font-style: normal; font-size: 12px; display: inline-grid; place-items: center; }
.dsec-h a { color: var(--muted); font-size: 13px; font-weight: 500; }
.dsec-h a:hover { color: var(--accent); }

.up-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.up-tile { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid color-mix(in srgb, var(--yellow) 30%, var(--line)); transition: border-color .15s, transform .15s; }
.up-tile:hover { color: inherit; border-color: var(--yellow); transform: translateY(-2px); }
.up-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-tile-mid { display: flex; gap: 6px; flex-wrap: wrap; }
.up-tile-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.up-tile-f small { display: block; color: var(--muted); font-size: 11px; }
.up-tile-f b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-t b .sc-tag { height: 18px; padding: 0 6px; font-size: 11px; margin-left: 6px; vertical-align: 1px; }

.dfoot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.dfoot .card-h { margin-bottom: 12px; }
.dchan { display: flex; gap: 8px; flex-wrap: wrap; }
.dchan > * { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--card-2); color: var(--muted); font-size: 13px; font-weight: 500; }
.dchan svg { width: 15px; height: 15px; }
.dchan .on { background: var(--green-bg); color: var(--green); }
.dchan a { background: var(--yellow-bg); color: var(--accent); }
.dinv { display: flex; gap: 8px; }
.dinv .input { flex: 1; min-width: 0; height: 40px; font-size: 13px; }
.dinv .btn svg { width: 15px; height: 15px; }
.sc-watch { scroll-margin-top: 80px; }
.sc-watch:target { box-shadow: 0 0 0 2px var(--yellow); }

@media (max-width: 960px) {
  .dh { grid-template-columns: minmax(0, 1fr); }
  .up-tiles { grid-template-columns: minmax(0, 1fr); }
  .dfoot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dh-main, .dh-perf { padding: 18px; }
  .dh-bal b { font-size: 38px; }
  .dh-acts .btn { flex: 1; }
  .dh-perf { grid-template-columns: minmax(0, 1fr) 120px; }
  .dh-perf > b { font-size: 26px; }
  .dsec-h { margin: 24px 0 10px; }
  .dsec-h h2 { font-size: 16px; }
  /* upcoming tiles: a swipeable row on phones */
  .up-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .up-tiles::-webkit-scrollbar { display: none; }
  .up-tile { flex: 0 0 78%; scroll-snap-align: start; }
  .up-tiles:has(.up-tile:only-child) .up-tile { flex-basis: 100%; }
}
.dh-empty { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); font-size: 13px; max-width: 46ch; }
.dh-none { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; color: var(--muted); font-size: 14px; }
.dh-none svg { width: 26px; height: 26px; color: var(--card-3); flex: none; }
.dh-none p { flex: 1; min-width: 200px; }

/* ================= Member settings: account center ================= */
.acc { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-side { display: grid; gap: 12px; position: sticky; top: 80px; }
.acc-me { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 20px; border-radius: 16px;
  background: radial-gradient(120% 140% at 100% 0%, var(--yellow-bg), transparent 60%), var(--card); }
.acc-av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-size: 22px; font-weight: 700; }
.acc-who { min-width: 0; }
.acc-who b { display: block; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who span { display: block; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.acc-cred { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--r); background: var(--bg); }
.acc-cred:hover { color: inherit; }
.acc-cred small { display: block; color: var(--muted); font-size: 11px; }
.acc-cred b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-cred em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--accent); }

.acc-menu { display: grid; padding: 6px; border-radius: 16px; background: var(--card); }
.acc-menu form { margin: 0; }
.acc-menu a, .acc-menu button { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.acc-menu a:hover, .acc-menu button:hover { color: var(--text); background: var(--row-hover); }
.acc-menu [aria-current="page"] { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.acc-menu [aria-current="page"] .acc-ic { background: var(--yellow); color: var(--yellow-ink); }
.acc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); color: var(--text-2); flex: none; }
.acc-ic svg { width: 18px; height: 18px; }
.acc-t b { display: block; font-weight: 600; font-size: 14px; }
.acc-t small { display: block; color: var(--muted); font-size: 12px; }
.acc-go { width: 16px; height: 16px; color: var(--faint); }
.acc-out .acc-t b, .acc-out .acc-ic { color: var(--red); }
.acc-out .acc-ic { background: var(--red-bg); }
.acc-theme .i-moon { display: none; }
[data-theme="dark"] .acc-theme .i-moon { display: inline; }
[data-theme="dark"] .acc-theme .i-sun { display: none; }

.acc-main { display: grid; gap: 16px; min-width: 0; }
.acc-back { display: none; color: var(--muted); font-size: 14px; }
.acc-card { padding: 24px 28px; border-radius: 16px; }
.acc-card h2 { font-size: 20px; font-weight: 600; }
.acc-lead { margin: 4px 0 20px; color: var(--muted); font-size: 14px; }
.acc-card .field { max-width: 480px; }
.acc-save { display: flex; justify-content: flex-start; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.acc-sw { display: flex; align-items: center; gap: 12px; }
.acc-card .switch { padding: 14px 0; }
.acc-tg-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.acc-tg-h > div { flex: 1; min-width: 0; }
.acc-tg-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #229ed9; color: #fff; flex: none; }
.acc-tg-ic svg { width: 22px; height: 22px; }
.acc-steps { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.acc-card .btn svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .acc { grid-template-columns: minmax(0, 1fr); }
  .acc-side { position: static; }
  /* phones: the menu is the page; a section replaces it, with a back link */
  .acc.is-root .acc-main { display: none; }
  .acc:not(.is-root) .acc-side { display: none; }
  .acc-back { display: inline-block; }
  .acc-menu [aria-current="page"] { background: none; box-shadow: none; }
  .acc-menu [aria-current="page"] .acc-ic { background: var(--card-2); color: var(--text-2); }
  .acc-menu a, .acc-menu button { padding: 12px 10px; }
  .acc-card { padding: 18px; }
  .acc-card .field { max-width: none; }
  .acc-save .btn { width: 100%; }
}

/* Phones, logged in: logo mark only in the header; the space goes to the credits chip */
@media (max-width: 760px) {
  .hdr-member .logo span { display: none; }
  .hdr-member .logo svg { width: 28px; height: 28px; }
  .hdr-member .credit-chip { display: flex; height: 34px; padding: 0 12px; }
}

/* ================= Admin: menu search, staff & roles, activity ================= */
.adm-find { position: relative; display: block; margin: 0 4px 10px; }
.adm-find svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--muted); pointer-events: none; }
.adm-find input { width: 100%; height: 36px; padding: 0 10px 0 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.adm-find input:focus { outline: none; border-color: var(--yellow); }
.adm-nav a[hidden], .adm-group[hidden] { display: none; }
.adm-none { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.adm-me-t:hover { color: var(--text); }
.adm-prof { margin-left: 2px; }
.st-bells { display: flex; gap: 6px; }
.st-bells form { margin: 0; }
.st-bell { height: 26px; padding: 0 10px; border: 1px solid var(--card-3); border-radius: 13px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.st-bell.on { border-color: transparent; background: var(--green-bg); color: var(--green); font-weight: 600; }
.st-bell.on::before { content: "● "; }
.role-form { display: grid; gap: 16px; max-width: 980px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; }
.perm-group { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; align-content: start; }
.perm-group legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
[data-role-perms].is-off .perm-grid { opacity: .4; pointer-events: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn.is-armed { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.act-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.act-filters .input { height: 38px; width: auto; min-width: 160px; }
.act-filters input[type=search] { flex: 1; min-width: 200px; }
.act-more summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 4px; }
.act-more .code-box { margin-top: 6px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
@media (max-width: 760px) { .act-filters .input { width: 100%; } .form-actions .btn { flex: 1; } }

/* ================= General settings, policy pages, maintenance, cookie notice, editor ================= */
.gs-card { max-width: 900px; }
.gs-save { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row input[type=color] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--card-3); border-radius: var(--r-sm); background: none; cursor: pointer; }
.color-row .input { width: 180px; }
.color-preview { background: var(--yellow); color: var(--yellow-ink); pointer-events: none; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brand-box { display: grid; gap: 8px; align-content: start; }
.brand-prev { display: grid; place-items: center; min-height: 96px; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px dashed var(--card-3); }
.brand-prev img { max-height: 56px; max-width: 100%; }
.brand-prev.favicon img { width: 48px; height: 48px; }
.brand-img { display: block; height: 32px; width: auto; max-width: 200px; object-fit: contain; }
.adm-brand .brand-img { height: 26px; max-width: 150px; }
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; }
textarea.code-input { min-height: 320px; }
.gs-policy .chips { margin-bottom: 14px; }
.cron-h { display: flex; align-items: center; gap: 12px; }
.cron-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.cron-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.cron-dot.late { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-bg); }
@media (max-width: 760px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } .gs-save .btn { width: 100%; } }

/* rich-text editor */
.rte { border: 1px solid var(--card-3); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.rte:focus-within { border-color: var(--yellow); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--card); }
.rte-bar > button { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rte-bar > button:hover, .rte-bar > button.on { background: var(--card-2); color: var(--text); }
.rte-bar > button:last-of-type { margin-left: auto; font-size: 11px; }
.rte-link { display: flex; gap: 6px; flex-basis: 100%; padding-top: 6px; }
.rte-link[hidden] { display: none; }
.rte-link input { flex: 1; height: 32px; padding: 0 10px; border: 1px solid var(--card-3); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.rte-link button { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--yellow); color: var(--yellow-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rte-area { min-height: 220px; max-height: 560px; overflow-y: auto; padding: 14px 16px; outline: none; }
.rte > textarea { display: none; border: 0; border-radius: 0; min-height: 260px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.rte.is-code .rte-area { display: none; }
.rte.is-code > textarea { display: block; }

/* readable long text (policies, maintenance message, blog later) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.prose > * + * { margin-top: .9em; }
.prose h2 { color: var(--text); font-size: 22px; margin-top: 1.6em; }
.prose h3 { color: var(--text); font-size: 18px; margin-top: 1.3em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--yellow); color: var(--text); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.policy { max-width: 820px; padding: 32px 0 24px; }
.policy h1 { font-size: 34px; margin: 18px 0 18px; }
.policy-nav { margin: 0; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 13px; }
.ftr-legal a:hover { color: var(--accent); }
.maint { min-height: 100vh; max-width: 560px; margin: 0 auto; padding: 48px 20px; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.maint .logo { margin-bottom: 24px; }
.maint-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow-bg); color: var(--accent); }
.maint-ic svg { width: 30px; height: 30px; }
.maint h1 { font-size: 30px; }
.cookie-bar { position: fixed; z-index: 44; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); }
.cookie-bar p { flex: 1; }
.cookie-acts { display: flex; gap: 12px; flex: none; }
.cookie-acts .btn { min-height: 36px; padding: 0 14px; }
@media (max-width: 760px) { .cookie-bar { bottom: calc(70px + env(safe-area-inset-bottom)); } body.no-tabbar .cookie-bar { bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ================= Notifications: bell, templates, log, broadcasts ================= */
.bell { position: relative; }
.bell-btn { position: relative; list-style: none; }
.bell-btn::-webkit-details-marker { display: none; }
.bell-btn i { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-style: normal; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-pop { width: 340px; padding: 6px; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.bell-h form { margin: 0; }
.bell-h button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bell-item { display: grid !important; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 10px !important; }
.bell-item.unread { background: var(--yellow-bg); }
.bell-item small { display: block; color: var(--muted); font-size: 11px; }
.bell-t { display: block; font-size: 13px; line-height: 1.35; white-space: normal; }
.bell-ic, .feed-ic.bell-member, .feed-ic.bell-order, .feed-ic.bell-ticket, .feed-ic.bell-signal, .feed-ic.bell-system { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); color: var(--text-2); }
.bell-ic svg { width: 16px; height: 16px; }
.bell-order { background: var(--green-bg) !important; color: var(--green) !important; }
.bell-ticket { background: var(--yellow-bg) !important; color: var(--accent) !important; }
.bell-system { background: var(--red-bg) !important; color: var(--red) !important; }
.bell-empty { padding: 14px 10px; color: var(--muted); font-size: 13px; }
.bell-all { justify-content: center; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; font-size: 13px !important; }
.feed-row.is-unread { background: var(--yellow-bg); }
.ch-pills { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ch-pills span { height: 20px; padding: 0 7px; border-radius: 10px; background: var(--card-2); color: var(--faint); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; text-decoration: line-through; }
.ch-pills span.on { background: var(--green-bg); color: var(--green); text-decoration: none; }
.tbl tr.tpl-group td { padding: 18px 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.tbl-hover tbody tr.tpl-group:hover { background: none; cursor: default; }
.tpl-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tpl-side { position: sticky; top: 80px; }
.switch-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.switch-inline input { width: 16px; height: 16px; accent-color: var(--yellow); }
.sc-list { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.sc-chip { display: grid; gap: 1px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.sc-chip:hover { border-color: var(--yellow); }
.sc-chip code { font-size: 12px; font-weight: 600; color: var(--accent); }
.sc-chip span { font-size: 11px; color: var(--muted); }
.mail-frame { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #f5f5f5; }
.mail-frame.big { height: 640px; border: 0; border-radius: 0; }
.gs-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.aud-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.aud-opt:first-of-type { border-top: 0; }
.aud-opt input { accent-color: var(--yellow); }
.aud-opt b { font-variant-numeric: tabular-nums; }
.bc-card { max-width: 720px; }
.bc-num b { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-num span { color: var(--muted); }
.bc-bar { height: 10px; margin: 12px 0; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.bc-bar i { display: block; height: 100%; background: var(--yellow); transition: width .4s; }
@media (max-width: 960px) { .tpl-edit { grid-template-columns: minmax(0, 1fr); } .tpl-side { position: static; } }
@media (max-width: 760px) { .bell-pop { width: auto; } .mail-frame.big { height: 480px; } }
.acc-phone { max-width: 360px; margin: 4px 0 12px 48px; }

/* ================= Support tickets ================= */
.thread { display: grid; gap: 12px; }
.msg { max-width: 760px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid transparent; }
.msg-me { justify-self: end; background: var(--yellow-bg); border-color: color-mix(in srgb, var(--yellow) 30%, transparent); }
.msg-note { background: repeating-linear-gradient(135deg, var(--card), var(--card) 10px, var(--card-2) 10px, var(--card-2) 20px); border-color: var(--card-3); justify-self: stretch; max-width: none; }
.msg-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.msg-h time { margin-left: auto; color: var(--muted); font-size: 12px; }
.msg-h form { margin: 0; }
.msg-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); color: var(--accent); font-size: 12px; font-weight: 700; }
.msg-staff .msg-av { background: var(--yellow); color: var(--yellow-ink); }
.msg-body { color: var(--text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.msg-del { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.msg-del:hover { background: var(--red-bg); color: var(--red); }
.msg-del svg { width: 14px; height: 14px; }
.msg-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.msg-file { display: flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; }
.msg-file:hover { border-color: var(--yellow); color: inherit; }
.msg-file img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.msg-file svg { width: 28px; height: 28px; padding: 6px; border-radius: 6px; background: var(--card-2); color: var(--muted); }
.msg-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { display: block; color: var(--muted); }
.composer { margin-top: 14px; }
.composer textarea { min-height: 110px; }
.composer-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.composer-f .spacer { flex: 1; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn svg { width: 14px; height: 14px; }
.tk-opt { font-size: 12px; align-items: center; }
.tk-head h1 { font-size: 24px; }
.tk-head p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tk-side { position: sticky; top: 80px; }
.tk-side .field + .field { margin-top: 10px; }
.tk-side a.kv:hover span { color: var(--accent); }
.tk-title { font-size: 24px; margin-bottom: 16px; }
.tk-tips ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact { max-width: 760px; padding: 32px 0; }
.contact-h h1 { font-size: 34px; }
.contact-h p { margin: 8px 0 20px; color: var(--muted); }
@media (max-width: 960px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk-side { position: static; } }
@media (max-width: 760px) { .msg { max-width: 100%; } .composer-f .btn-yellow { width: 100%; } }

/* ================= E-mail automation ================= */
.au-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.3fr); gap: 16px; align-items: center; }
.au-stats > div span { display: block; color: var(--muted); font-size: 12px; }
.au-stats > div b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.au-stats small { font-size: 13px; color: var(--muted); font-weight: 500; }
.au-limit { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.au-limit label { font-size: 12px; color: var(--muted); }
.au-limit > div { display: flex; gap: 6px; }
.au-limit .input { height: 34px; width: 110px; }
.au-group { margin: 28px 0 12px; font-size: 16px; font-weight: 600; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.au-rule { display: flex; flex-direction: column; gap: 12px; border: 1px solid transparent; }
.au-rule.is-on { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.au-top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.au-top b { font-size: 15px; }
.au-top p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.au-top form { margin: 0; }
.au-switch { position: relative; flex: none; width: 40px; height: 22px; border: 0; border-radius: 11px; background: var(--card-3); cursor: pointer; }
.au-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.au-switch[aria-checked="true"] { background: var(--green); }
.au-switch[aria-checked="true"] i { transform: translateX(18px); }
.au-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.au-pills span { height: 22px; padding: 0 8px; border-radius: 6px; background: var(--card-2); color: var(--text-2); font-size: 12px; display: inline-grid; place-items: center; }
.au-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-block: 1px solid var(--line); }
.au-nums span { display: block; color: var(--muted); font-size: 11px; }
.au-nums b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.au-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.au-acts form { margin: 0; }
@media (max-width: 1080px) { .au-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .au-limit { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .au-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= Extensions ================= */
.ext-h { display: flex; gap: 12px; align-items: flex-start; }
.ext-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--yellow-bg); color: var(--accent); font-weight: 700; }
.ext-help summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.ext-help p { margin-top: 6px; color: var(--text-2); font-size: 13px; }
.switch-plain { position: relative; flex: none; cursor: pointer; }
.switch-plain input { position: absolute; opacity: 0; }
.switch-plain i { display: block; width: 40px; height: 22px; border-radius: 11px; background: var(--card-3); position: relative; transition: background-color .15s; }
.switch-plain i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch-plain input:checked + i { background: var(--green); }
.switch-plain input:checked + i::after { transform: translateX(18px); }
.switch-plain input:focus-visible + i { outline: 2px solid var(--yellow); outline-offset: 2px; }
.captcha { margin-top: 14px; }

/* ================= Languages ================= */
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-pop { width: 220px; }
.lang-pop a { display: grid !important; gap: 0; }
.lang-pop a[aria-current="true"] { background: var(--yellow-bg); }
.lang-pop small { color: var(--muted); font-size: 12px; }
@media (max-width: 480px) { .hide-xs-m { display: none; } }
.lg-bar { height: 6px; width: 140px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.lg-bar i { display: block; height: 100%; background: var(--green); }
.tr-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; background: var(--card); }
.tr-row.is-missing { background: color-mix(in srgb, var(--yellow) 6%, var(--card)); }
.tr-en { font-size: 14px; color: var(--text-2); padding-top: 9px; overflow-wrap: anywhere; }
.tr-row textarea { min-height: 38px; resize: vertical; }
.tr-save { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 0; background: var(--card); }
@media (max-width: 760px) { .tr-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .tr-en { padding-top: 0; } }
[dir="rtl"] .hdr-right { margin-left: 0; margin-right: auto; }

/* ---------- SEO manager + blog editor (admin) ---------- */
.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.seo-side h3, .be-side h3 { font-size: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.seo-img { display: block; max-width: 100%; max-height: 160px; border-radius: var(--r-sm); margin-bottom: 8px; object-fit: cover; }
.seo-pre { margin-top: 8px; padding: 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
textarea.mono { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.serp { padding: 14px; border-radius: var(--r-sm); background: #fff; color: #202124; font-family: Arial, sans-serif; border: 1px solid var(--line); }
.serp-url { display: block; font-size: 12px; color: #4d5156; overflow-wrap: anywhere; }
.serp-title { display: block; margin-top: 4px; color: #1a0dab; font-size: 18px; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { margin-top: 4px; color: #4d5156; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.og-card { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.og-card img, .og-empty { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.og-empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--card-2); }
.og-card > div { padding: 10px 12px; }
.og-card small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.og-card b { display: block; font-size: 14px; margin-top: 2px; }
.be-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.be-side { display: grid; gap: 16px; position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; }
.be-title { font-size: 18px; font-weight: 600; height: 48px; }
.be-slug { display: flex; align-items: center; border: 1px solid var(--card-3); border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.be-slug span { padding: 0 4px 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.be-slug .input { border: 0; padding-left: 0; background: none; min-width: 0; }
.be-acts { display: grid; gap: 8px; margin-top: 14px; }
.be-score { font-size: 14px; padding: 2px 8px; border-radius: 10px; background: var(--card-2); }
.be-score.up { color: var(--green, #0ecb81); } .be-score.mid { color: var(--yellow); } .be-score.down { color: var(--red, #f6465d); }
.be-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.be-checks li { position: relative; padding-left: 22px; color: var(--text-2); }
.be-checks li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.be-checks li.ok::before { content: "✓"; color: var(--green, #0ecb81); }
.be-checks li.no::before { content: "•"; color: var(--muted); }
.be-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.be-stats span { padding: 8px 4px; border-radius: var(--r-sm); background: var(--card-2); text-align: center; font-size: 11px; color: var(--muted); }
.be-stats b { display: block; font-size: 16px; color: var(--text); }
.be-links { list-style: none; padding: 0; margin: 8px 0 0; max-height: 220px; overflow-y: auto; }
.be-links button { display: block; width: 100%; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.be-links button:hover { color: var(--accent); }
.rte-area img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.rte-area figure { margin: 1em 0; }
.rte-uploading { color: var(--muted); font-style: italic; }
.bl-row { display: flex; gap: 12px; align-items: center; }
.bl-row img, .bl-noimg { flex: none; width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--card-2); }
.bc-list { display: grid; }
.bc-item { border-bottom: 1px solid var(--line); }
.bc-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.bc-item summary::-webkit-details-marker { display: none; }
.bc-item .sub { display: block; color: var(--muted); font-size: 12px; }
.bc-item form { padding-bottom: 16px; }
@media (max-width: 1000px) { .seo-grid, .be-grid { grid-template-columns: minmax(0, 1fr); } .be-side { position: static; max-height: none; } }

/* ---------- Public blog ---------- */
.blog-search { position: relative; width: min(320px, 100%); }
.blog-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search .input { padding-left: 36px; }
.blog-img { position: relative; aspect-ratio: 1200 / 630; border-radius: var(--r); overflow: hidden; background: var(--card); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--card-3); background: linear-gradient(135deg, var(--card), var(--card-2)); }
.blog-ph svg { width: 40px; height: 40px; }
.blog-cat { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.blog-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.blog-feat { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 32px; color: inherit; }
.blog-feat h2 { margin-top: 8px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; }
.blog-feat p { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.blog-card { display: flex; flex-direction: column; color: inherit; }
.blog-card-t { padding-top: 14px; }
.blog-card h3 { margin-top: 6px; font-size: 18px; line-height: 1.35; }
.blog-card p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.blog-card:hover h3, .blog-feat:hover h2 { color: var(--accent); }
.blog-card:hover img, .blog-feat:hover img { transform: scale(1.03); }
.post { max-width: 1040px; padding: 32px 0 48px; }
.post-crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.post-crumbs a { color: var(--muted); } .post-crumbs a:hover { color: var(--accent); }
.post-h { max-width: 760px; margin: 16px auto 0; text-align: center; }
.post-h h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.post-lead { margin-top: 14px; color: var(--text-2); font-size: 18px; }
.post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.post-cover { display: block; width: 100%; max-height: 520px; object-fit: cover; margin-top: 28px; border-radius: var(--r); }
.post-body { max-width: 740px; margin: 32px auto 0; }
.post-body.has-toc { max-width: none; display: grid; grid-template-columns: 220px minmax(0, 740px); gap: 40px; justify-content: center; }
.post-toc details { position: sticky; top: 88px; font-size: 13px; }
.post-toc summary { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; margin-bottom: 8px; }
.post-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; border-left: 2px solid var(--line); }
.post-toc a { display: block; padding-left: 12px; color: var(--text-2); }
.post-toc a:hover { color: var(--accent); }
.post-prose { font-size: 17px; }
.post-prose h2 { scroll-margin-top: 88px; }
.post-prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.post-prose figure { margin: 1.4em 0; }
.post-prose figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: center; }
.post-f { max-width: 740px; margin: 40px auto 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { padding: 4px 10px; border-radius: 14px; background: var(--card); color: var(--text-2); font-size: 13px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-share span { color: var(--muted); font-size: 13px; margin-right: 4px; }
.post-share a, .post-share button { height: 32px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 16px; border: 1px solid var(--card-3); background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--accent); color: var(--accent); }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.post-cta p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.post-rel { margin-top: 56px; }
.post-rel h2 { font-size: 22px; margin-bottom: 18px; }
@media (max-width: 900px) {
  .blog-feat { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body.has-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .post-toc details { position: static; padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); }
  .post-toc details:not([open]) summary { margin-bottom: 0; }
}
@media (max-width: 600px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } .post-prose { font-size: 16px; } .post-h { text-align: left; } .post-meta { justify-content: flex-start; } }

/* ---------- Admin analytics ---------- */
.an-bar { flex-wrap: wrap; }
.an-custom { display: flex; align-items: center; gap: 6px; }
.an-custom .input { height: 34px; width: auto; padding: 0 8px; font-size: 13px; }
.an-custom span { color: var(--muted); }
.an-live { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); font-size: 13px; color: var(--text-2); }
.an-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #0ecb81); box-shadow: 0 0 0 0 rgba(14, 203, 129, .5); animation: an-pulse 2s infinite; }
@keyframes an-pulse { 70% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); } }
@media (prefers-reduced-motion: reduce) { .an-live i { animation: none; } }
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.an-kpi > span { display: block; color: var(--muted); font-size: 13px; }
.an-kpi > b { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.an-kpi > small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.an-d { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--card-2); }
.an-d.up { color: var(--green, #0ecb81); } .an-d.down { color: var(--red, #f6465d); }
.an-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.an-stack { display: grid; gap: 16px; }
.an-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.an-wide { grid-column: 1 / -1; }
.an-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.an-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.an-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.an-meter { height: 6px; margin-top: 5px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.an-meter i { display: block; height: 100%; border-radius: 3px; background: var(--yellow); }
.an-bar-row + .an-bar-row { margin-top: 12px; }
.an-funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.an-funnel small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.an-h3 { margin: 18px 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.an-tbl .sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.an-settings { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.an-keep { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.an-keep .input { width: 90px; height: 34px; }
@media (max-width: 1100px) { .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .an-grid { grid-template-columns: minmax(0, 1fr); } .an-kpis { gap: 10px; } .an-kpi > b { font-size: 21px; } .an-custom { width: 100%; padding-bottom: 10px; } .an-custom .input { flex: 1; min-width: 0; } }

/* ---------- After payment: join the bot and the channel ---------- */
.tg-ready { margin-top: 22px; padding: 18px; border-radius: var(--r); border: 1px solid var(--yellow); background: var(--bg); text-align: left; }
.tg-ready h2 { font-size: 18px; }
.tg-ready > p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.tg-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tg-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-sm); background: var(--card); }
.tg-steps li b { display: block; font-size: 14px; }
.tg-steps li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tg-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); font-weight: 700; font-size: 14px; }
.tg-num i { font-style: normal; }
.tg-num svg { display: none; width: 16px; height: 16px; }
.tg-steps li.done .tg-num { background: var(--green, #0ecb81); color: #fff; }
.tg-steps li.done .tg-num i { display: none; }
.tg-steps li.done .tg-num svg { display: block; }
.tg-steps li.done .btn { opacity: .55; }
.tg-wait { margin-top: 10px; }
.tg-done { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--green, #0ecb81); font-weight: 600; font-size: 14px; }
.tg-done svg { width: 16px; height: 16px; }
.tg-ready.is-done { border-color: var(--green, #0ecb81); }
@media (max-width: 480px) { .tg-steps li { grid-template-columns: 32px minmax(0, 1fr); } .tg-steps li .btn { grid-column: 1 / -1; } }
.tg-check { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 13px; }

/* ---------- Signal page stage: chart (with replay) / ROI snapshot / PnL replay as slides, full screen ---------- */
.stage { position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 0 12px; }
.stage-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button { height: 34px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.stage-tabs button:hover { color: var(--text); }
.stage-tabs button.on { color: var(--text); border-bottom-color: var(--yellow); }
.stage-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex: none; }
.stage-btn:hover { background: var(--card-2); color: var(--text); }
.stage-btn svg { width: 18px; height: 18px; }
.stage .ic-close, .stage.is-full .ic-open { display: none; }
.stage.is-full .ic-close { display: block; }
.stage-track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; transition: height .25s ease; }
.stage-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; flex-direction: column; }
.stage .chart-box { border-radius: 0; background: transparent; }
.slide-roi, .slide-pnl { align-items: center; justify-content: center; gap: 12px; padding: 20px 16px; min-height: 460px; }
.slide-roi .tcard { width: 100%; max-width: 440px; background: var(--card-2); }
.slide-roi .tcard-roi b { font-size: 40px; }
.tcard-bar.is-up .tcard-fill { background: var(--green); opacity: .8; }
.tcard-bar.is-down .tcard-fill { background: var(--red); opacity: .8; }
.tcard-bar.is-up .tcard-dot { border-color: var(--green); }
.tcard-bar.is-down .tcard-dot { border-color: var(--red); }
.pnl-card { display: block; height: min(640px, 72vh); width: auto; max-width: 100%; aspect-ratio: 39 / 80; border-radius: 18px; background: #1e2329; box-shadow: 0 0 0 6px #0b0e11, 0 18px 40px rgba(0,0,0,.35); margin: 6px 0; }
.pnl-acts { display: flex; gap: 8px; }
.replay { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px 10px; border-top: 1px solid var(--line); }
.replay [hidden], .replay[hidden] { display: none !important; }
.replay-ctl { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.replay-ctl input[type=range] { flex: 1; min-width: 60px; accent-color: var(--yellow); }
.replay-info { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.replay-info b { color: var(--text); font-weight: 600; }
.replay-info .up { color: var(--green); } .replay-info .down { color: var(--red); }
.replay-speed { width: 40px; }
@media (max-width: 600px) {
  .slide-roi, .slide-pnl { min-height: 0; padding: 14px 12px; }
  .replay-info .rp-date { display: none; }
}
/* Full screen (the browser's, or a fixed overlay where the page can't go full screen, e.g. iPhone Safari) */
.stage.is-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; display: flex; flex-direction: column; background: var(--bg); }
.stage.is-full .stage-track { flex: 1; min-height: 0; align-items: stretch; }
.stage.is-full .slide { height: 100%; }
.stage.is-full .chart-box { flex: 1; height: auto; min-height: 0; }
.stage.is-full .slide-roi .tcard { max-width: 560px; }
.stage.is-full .pnl-card { height: calc(100vh - 150px); }
body.stage-open { overflow: hidden; }
