:root {
  --bg: #070b16;          /* near-black navy */
  --bg-2: #0b1222;
  --surface: #0f172a;
  --surface-2: #16213b;
  --line: #233150;
  --text: #e8edf7;
  --muted: #8f9bb3;
  --accent: #22c98a;
  --accent-2: #6ff0b6;
  --accent-ink: #03140d;
  --up: #3ddc97;
  --down: #ff7a7a;
  --warn: #f6c056;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, .09), transparent 60%), var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.block { display: block; }
.mono { font-family: var(--mono); font-size: .8rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #109266); box-shadow: 0 6px 18px rgba(34, 201, 138, .35); }
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; }
.brand-mark circle { fill: var(--accent-ink); stroke: none; }

/* ---- Buttons & inputs ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 999px; padding: .7rem 1.2rem; font: inherit; font-weight: 650; cursor: pointer; color: var(--text); background: var(--surface-2); transition: transform .12s, background .15s, border-color .15s, opacity .15s; text-decoration: none !important; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #14a873); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(34, 201, 138, .25); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
input:not([type="checkbox"]) { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 201, 138, .18); }
input:disabled { opacity: .5; }
.money-input { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding-left: .9rem; }
.money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 201, 138, .18); }
.money-input span { color: var(--muted); font-size: 1.2rem; font-weight: 600; }
.money-input input { border: 0; background: transparent; font-size: 1.35rem; font-weight: 700; padding-left: .4rem; box-shadow: none !important; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.presets { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.3rem 0 .9rem; }
.presets button { font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.presets button:hover { border-color: var(--accent); }

/* ---- Cards & misc ---- */
.card { background: linear-gradient(180deg, var(--surface), rgba(15, 23, 42, .88)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.card + .card, .grid-2 + .card, .card + .grid-2, .stat-row + .card, .grid-2 + .grid-2 { margin-top: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.card-head h2 { margin: 0; }
.link { display: inline-flex; align-items: center; gap: .1rem; font-size: .88rem; font-weight: 600; }
.link .ico { width: 16px; height: 16px; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.pill-demo { color: var(--warn); background: rgba(246, 192, 86, .1); border: 1px solid rgba(246, 192, 86, .3); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; font-size: .82rem; font-weight: 650; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); }
.chip.up { background: rgba(61, 220, 151, .12); }
.chip.down { background: rgba(255, 122, 122, .12); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 4px; flex: none; }
.swatch.lg { width: 40px; height: 40px; border-radius: 13px; opacity: .9; }
.notice { font-size: .85rem; color: var(--warn); background: rgba(246, 192, 86, .08); border: 1px solid rgba(246, 192, 86, .25); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.flash { border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 550; border: 1px solid; transition: opacity .4s; }
.flash-ok { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .35); color: var(--up); }
.flash-error { background: rgba(255, 122, 122, .1); border-color: rgba(255, 122, 122, .35); color: var(--down); }
.flash.fade { opacity: 0; pointer-events: none; }
.empty { text-align: center; padding: 1.5rem 1rem; }
.steps { text-align: left; max-width: 420px; margin: 0 auto 1.2rem; color: var(--muted); display: grid; gap: .4rem; }
.steps strong { color: var(--text); }

.risk { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.risk-bars { display: inline-flex; gap: 3px; }
.risk-bars i { width: 6px; height: 14px; border-radius: 2px; background: var(--line); }
.risk-bars i.on.r1, .risk-bars i.on.r2 { background: #7dd3fc; }
.risk-bars i.on.r3 { background: var(--accent); }
.risk-bars i.on.r4 { background: var(--warn); }
.risk-bars i.on.r5 { background: #f472b6; }

/* ---- App shell ---- */
.sidebar { display: none; }
.main { min-height: 100vh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; background: rgba(7, 11, 22, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .page-title { display: none; font-size: 1.25rem; margin: 0; }
.topbar-brand .brand { font-size: 1.05rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.topbar-actions form { margin: 0; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); }
.content { max-width: 1120px; margin: 0 auto; padding: 1rem; }
.foot-note { margin: 2rem 0 1rem; font-size: .78rem; color: var(--muted); line-height: 1.6; }

.bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); background: rgba(9, 14, 28, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bottom-nav a { flex: 1; display: grid; justify-items: center; gap: .15rem; padding: .35rem 0; font-size: .7rem; font-weight: 600; color: var(--muted); border-radius: 12px; text-decoration: none; }
.bottom-nav a.active { color: var(--accent-2); }
.bottom-nav a.active .ico { stroke-width: 2.2; }
.bottom-nav .ico { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: fixed; inset: 0 auto 0 0; width: 248px; padding: 1.4rem 1rem; border-right: 1px solid var(--line); background: rgba(9, 14, 28, .6); }
  .sidebar .brand { padding: 0 .5rem; }
  .side-nav { display: grid; gap: .25rem; }
  .side-nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
  .side-nav a:hover { background: var(--surface); color: var(--text); }
  .side-nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
  .side-card { margin-top: auto; display: grid; gap: .5rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
  .side-card .ico { color: var(--accent); }
  .side-card p { margin: 0; }
  .side-card strong { color: var(--text); }
  .main { margin-left: 248px; padding-bottom: 0; }
  .topbar { padding: 1rem 2rem; }
  .topbar-brand { display: none; }
  .topbar .page-title { display: block; }
  .content { padding: 1.5rem 2rem; }
  .bottom-nav { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ---- Dashboard ---- */
.balance-card { background: radial-gradient(500px 200px at 0% 0%, rgba(59, 130, 246, .16), transparent 70%), linear-gradient(180deg, var(--surface), var(--surface)); }
.balance-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.balance { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.1; margin: .2rem 0 .5rem; }
.balance.sm { font-size: 1.8rem; }
.balance-sub { display: flex; flex-wrap: wrap; gap: .4rem; }
.quick-actions { display: flex; gap: .6rem; }
.qa { display: grid; justify-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--text); min-width: 64px; text-decoration: none !important; }
.qa span { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-2); transition: border-color .15s, transform .15s; }
.qa:hover span { border-color: var(--accent); transform: translateY(-2px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.split small, .stat small { display: block; }
.split strong { font-size: 1.15rem; }
.wallet-top { margin-bottom: 1rem; }

.alloc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; margin-bottom: 1rem; }
.alloc-bar i { display: block; min-width: 2px; }
.alloc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.alloc-list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.alloc-list li span:last-child { margin-left: auto; font-weight: 650; }

.tx-list { list-style: none; padding: 0; margin: 0; }
.tx { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.tx-deposit .tx-ico, .tx-sell .tx-ico { color: var(--up); }
.tx-main { min-width: 0; flex: 1; }
.tx-main strong { display: block; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-main small { color: var(--muted); font-size: .78rem; }
.amt { font-weight: 700; white-space: nowrap; }
.amt.down { color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: .8rem; font-size: .9rem; }

/* ---- Charts ---- */
.chart { position: relative; height: 220px; margin: 1rem -.25rem .25rem; color: var(--muted); touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; cursor: crosshair; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .35rem .6rem; font-size: .75rem; color: var(--muted); white-space: nowrap; pointer-events: none; display: grid; text-align: center; box-shadow: var(--shadow); }
.chart-tip strong { color: var(--text); font-size: .9rem; }
.chart-range { position: absolute; left: .25rem; bottom: -1.4rem; font-size: .75rem; font-weight: 650; }
.range-tabs { display: inline-flex; gap: .25rem; padding: .25rem; margin-top: 1rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.range-tabs button { font: inherit; font-size: .78rem; font-weight: 700; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .3rem .75rem; cursor: pointer; }
.range-tabs button.active { background: var(--surface-2); color: var(--text); }
.chart + .split, .chart + .stats { margin-top: 2rem; }
.spark { width: 120px; height: 36px; flex: none; }
.spark svg { width: 100%; height: 100%; display: block; }

/* ---- Invest ---- */
.intro { max-width: 720px; }
.product-list { display: grid; gap: .75rem; }
.product-row { display: flex; align-items: center; gap: 1rem; color: var(--text); text-decoration: none !important; padding: 1rem 1.1rem; transition: border-color .15s, transform .15s; }
.product-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.product-row > .ico { color: var(--muted); }
.pr-main { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.pr-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-stat { text-align: right; display: grid; }
.product-row .spark { display: none; }
@media (min-width: 640px) { .product-row .spark { display: block; } }
.back { display: inline-block; margin-bottom: .8rem; font-weight: 600; font-size: .9rem; }
.grid-detail { display: grid; gap: 1rem; }
@media (min-width: 1040px) { .grid-detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .trade-col { position: sticky; top: 90px; } }
.trade-col { display: grid; gap: 1rem; }
.trade-col .card + .card { margin-top: 0; }
.product-head { display: flex; align-items: center; gap: .8rem; }
.product-head h2, .product-head h3 { margin: 0; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-top: 1rem; }
.price { font-size: 1.9rem; font-weight: 780; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 2rem 0 1rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats div { background: var(--surface); padding: .8rem 1rem; }
.stats dt { font-size: .78rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.about { border-top: 1px solid var(--line); padding-top: 1rem; }
.about .risk { margin-bottom: .8rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; gap: .25rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 1.1rem; }
.seg button { font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .55rem; cursor: pointer; }
.seg button.active { background: var(--surface-2); color: var(--text); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.est { margin: -.4rem 0 .4rem; }
.position h3 { margin-bottom: 0; }

/* ---- Portfolio / tables ---- */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row .card { margin: 0; padding: 1rem; }
.stat strong { display: block; font-size: 1.25rem; letter-spacing: -.01em; }
.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; white-space: nowrap; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.table td { padding: .8rem .75rem; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: rgba(255, 255, 255, .02); }
.table .num { text-align: right; }
.table td small { display: block; font-size: .75rem; }
.cell-name { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; }

/* ---- Public site ---- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1160px; margin: 0 auto; padding: 1.1rem 1rem; }
.site-header nav { display: flex; gap: .5rem; }
.site > .flash { max-width: 1160px; margin: 0 auto 1rem; }
.landing { max-width: 1160px; margin: 0 auto; padding: 0 1rem 2rem; }
.hero { display: grid; gap: 2rem; padding: 2rem 0 3rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; padding: 4rem 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--accent-2); background: rgba(34, 201, 138, .1); border: 1px solid rgba(34, 201, 138, .25); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1.2rem; }
.eyebrow .ico { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); letter-spacing: -.04em; line-height: 1.03; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .ico { color: var(--accent); width: 18px; height: 18px; }
.hero-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hero-card-head small { display: block; }
.big { font-size: 2rem; font-weight: 780; letter-spacing: -.02em; }
.hero-card .chart { margin-bottom: 1.8rem; }
.compare, .products-section { padding: 2rem 0; }
.compare h2, .products-section h2, .cta-band h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.compare-grid, .product-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 700px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .compare-grid { grid-template-columns: repeat(4, 1fr); } .product-grid { grid-template-columns: repeat(3, 1fr); } }
.compare-grid .card, .product-grid .card { margin: 0; }
.compare-grid p { color: var(--muted); font-size: .92rem; margin: 0; }
.product-card { display: grid; gap: .8rem; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.kv dt { font-size: .72rem; color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 2rem; }
.cta-band p { margin: 0; }
.site-footer { max-width: 1160px; margin: 0 auto; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: grid; gap: .8rem; }
.site-footer p { margin: 0; max-width: 820px; }

.auth { display: grid; place-items: center; padding: 2rem 1rem 4rem; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem 1.5rem; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .btn-block { margin: .5rem 0 1rem; }
.auth-card label small { font-weight: 400; }

/* ---- v2: currency, copy trading, bots ---- */
select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ea89c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 2.4rem .75rem .9rem; appearance: none; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 201, 138, .18); }
select option { background: var(--bg-2); color: var(--text); }
.flash-info { background: rgba(125, 211, 252, .08); border-color: rgba(125, 211, 252, .3); color: #a5dcf7; }
.pill-ccy { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); letter-spacing: .04em; }
.pill-on { color: var(--up); background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .3); }
.pill-off { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.mobile-only { display: grid; }
@media (min-width: 960px) { .mobile-only { display: none; } }
@media (max-width: 420px) { .topbar .pill-demo { display: none; } }

.avatar[data-color] { color: var(--accent-ink); border: 0; }
.avatar.sm { width: 38px; height: 38px; flex: none; }
.avatar.lg { width: 48px; height: 48px; border-radius: 15px; font-size: 1rem; flex: none; }
.right { margin-left: auto; text-align: right; display: grid; }
.right small { font-size: .78rem; }

.ccy-preview { display: flex; align-items: center; gap: .5rem; margin: -.4rem 0 .3rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: rgba(34, 201, 138, .08); border: 1px solid rgba(34, 201, 138, .25); font-size: .88rem; }
.ccy-preview .ico { color: var(--accent); }
.ccy-note { margin-bottom: 1rem; }

.split-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .split-3 { grid-template-columns: 1fr 1fr; } .split-3 > :last-child { grid-column: 1 / -1; } }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sources small { display: block; font-size: .75rem; }
.sources strong { font-size: .95rem; }
.quick-actions { flex-wrap: wrap; }

.promo { display: flex; align-items: center; gap: 1rem; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.promo:hover { border-color: var(--accent); transform: translateY(-1px); }
.promo > div { flex: 1; display: grid; gap: .15rem; }
.promo > .ico { color: var(--muted); }
.promo-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(34, 201, 138, .12); color: var(--accent-2); flex: none; }
.empty-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface-2); color: var(--accent-2); margin-bottom: .6rem; }
.empty-ico .ico { width: 28px; height: 28px; }

.strat-grid { display: grid; gap: 1rem; margin: 1rem 0; }
@media (min-width: 700px) { .strat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .strat-grid { grid-template-columns: repeat(3, 1fr); } }
.strat-grid .card { margin: 0; }
.strat-card { display: grid; gap: .9rem; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.strat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.strat-card .alloc-bar { margin: 0; height: 8px; }
.strat-head { display: flex; align-items: center; gap: .8rem; }
.strat-head > div { display: grid; flex: 1; min-width: 0; }
.strat-head h2 { margin: 0; }
.spark.wide { width: 100%; height: 48px; }
.chart-label { margin: 1rem 0 -.5rem; }

.bot-list { display: grid; gap: 1rem; }
.bot-list .card { margin: 0; }
.bot-head { display: flex; align-items: center; gap: .8rem; }
.bot-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-ink); flex: none; }
.kv-4 { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
@media (min-width: 560px) { .kv-4 { grid-template-columns: repeat(4, 1fr); } }
.kv dd small { display: block; font-size: .75rem; font-weight: 600; }
.bot-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.bot-rules { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.bot-actions { display: flex; gap: .4rem; }
.bot-actions form { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.trade h3 { margin-bottom: 1rem; }

.features { display: grid; gap: 1rem; padding: 1rem 0 2rem; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .card { margin: 0; }
.feature .promo-ico { margin-bottom: .9rem; }
.feature p { margin: 0; font-size: .92rem; }

.inline-form { display: inline-flex; gap: .4rem; justify-content: flex-end; margin: 0; }
.inline-form input { width: 130px; padding: .4rem .6rem; font-size: .9rem; text-align: right; }

/* ---- v3: crypto deposits ---- */
.pill-info { color: #a5dcf7; background: rgba(125, 211, 252, .1); border: 1px solid rgba(125, 211, 252, .3); }
.pill-bad { color: var(--down); background: rgba(255, 122, 122, .1); border: 1px solid rgba(255, 122, 122, .3); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--down); color: #2a0606; font-size: .72rem; font-weight: 800; }
.side-nav a .badge { margin-left: auto; }
.icon-btn { position: relative; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; }
.count { font-weight: 700; color: var(--muted); font-size: .8rem; }
.mono-input { font-family: var(--mono) !important; font-size: .9rem !important; }
.break { word-break: break-all; }
.block.note { max-width: 260px; white-space: normal; margin-top: .25rem; }

.methods { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.methods legend, .addr-label { font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; padding: 0; }
.method { display: flex; align-items: center; gap: .8rem; margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.method:has(input:checked) { border-color: var(--accent); background: rgba(34, 201, 138, .07); }
.method input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.method-main { display: grid; color: var(--text); font-weight: 500; }
.coin { display: inline-grid; place-items: center; min-width: 52px; height: 30px; padding: 0 .5rem; border-radius: 8px; background: var(--surface-2); color: var(--accent-2); font-size: .75rem; font-weight: 800; letter-spacing: .04em; flex: none; }
.coin .ico { width: 16px; height: 16px; }
.howto { padding-left: 1.2rem; margin: 0 0 .8rem; display: grid; gap: .6rem; color: var(--muted); font-size: .9rem; }
.howto strong { color: var(--text); }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: 0; margin: .5rem 0 1.4rem; }
.stepper li { display: grid; justify-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; position: relative; }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; z-index: 1; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--line); }
.stepper li.done span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper li.done:not(:last-child)::after { background: var(--accent); }
.stepper li.current { color: var(--text); }
.stepper li.current span { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 0 4px rgba(34, 201, 138, .15); }

.send-box { text-align: center; padding: 1.2rem; margin-bottom: 1.2rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: .3rem; }
.send-amount { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.addr-label { display: block; }
.addr-box { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed var(--accent); margin-bottom: .9rem; }
.addr-box code { flex: 1 1 220px; font-family: var(--mono); font-size: .92rem; word-break: break-all; color: var(--text); user-select: all; }
.copy-btn:not(.btn) { font: inherit; font-size: .75rem; font-weight: 700; color: var(--accent-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; cursor: pointer; vertical-align: middle; }
.copy-btn.copied { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.warn { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(246, 192, 86, .08); border: 1px solid rgba(246, 192, 86, .3); color: var(--warn); font-size: .88rem; margin-bottom: .9rem; }
.warn p { margin: 0; }
.warn strong { color: #ffd88a; }
.txid-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.txid-form + form .btn { margin-top: .5rem; }

.state { text-align: center; padding: 1.5rem .5rem; display: grid; justify-items: center; gap: .4rem; }
.state p { max-width: 460px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; margin-bottom: .6rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.state-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: .4rem; }
.state-ico .ico { width: 28px; height: 28px; }
.state-ico.ok { background: rgba(61, 220, 151, .12); color: var(--up); }
.state-ico.bad { background: rgba(255, 122, 122, .12); color: var(--down); }

.details { margin: 0; display: grid; gap: .6rem; }
.details div { display: grid; grid-template-columns: 110px 1fr; gap: .6rem; font-size: .88rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; min-width: 0; }

.tabs { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .2rem; margin-bottom: 1rem; }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; border: 1px solid var(--line); text-decoration: none; }
.tabs a.active { color: var(--text); background: var(--surface-2); border-color: var(--accent); }
.review-list { display: grid; gap: 1rem; margin-bottom: 1rem; }
.review-list .card { margin: 0; }
.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.review-head strong { font-size: 1.4rem; display: block; }
.checklist { margin: 1rem 0; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.review-actions { display: grid; gap: 1rem; }
@media (min-width: 760px) { .review-actions { grid-template-columns: 1fr 1fr; } }
.review-actions form { padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(0, 0, 0, .12); }
.method-admin { display: grid; gap: .6rem; }
.method-edit { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.method-edit summary { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.method-edit summary::-webkit-details-marker { display: none; }
.method-edit summary small { word-break: break-all; }
.method-edit summary .pill { margin-left: auto; }
.method-form { display: grid; gap: 0 1rem; padding: 0 1rem 1rem; }
@media (min-width: 700px) { .method-form { grid-template-columns: 1fr 1fr; } .method-form .wide, .method-form .check, .method-form .btn { grid-column: 1 / -1; } .method-form .btn { justify-self: start; } }

/* ---- v4: coin picker, earnings, daily returns ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.coin-icon { width: 34px; height: 34px; flex: none; display: block; }
.coin-title { display: inline-flex; align-items: center; gap: .55rem; }
.coin-title .coin-icon { width: 30px; height: 30px; }
.tx-ico.coin-ico { background: none; }
.tx-ico.coin-ico .coin-icon { width: 34px; height: 34px; }
.coin-select { position: relative; margin-bottom: 1rem; }
.coin-select > select { margin-bottom: 0; }
.cs-button { width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cs-button:hover, .cs-button[aria-expanded="true"] { border-color: var(--accent); }
.cs-button[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(34, 201, 138, .18); }
.cs-button .cs-chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.cs-button[aria-expanded="true"] .cs-chev { transform: rotate(180deg); }
.cs-current, .cs-list li { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.cs-text { display: grid; min-width: 0; }
.cs-text strong { font-weight: 650; }
.cs-text small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; outline: none; }
.cs-list li { padding: .6rem .7rem; border-radius: 10px; cursor: pointer; }
.cs-list li:hover, .cs-list li.active { background: rgba(34, 201, 138, .1); }
.cs-list li[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.method-edit summary .coin-icon { width: 30px; height: 30px; }

.earnings-card { background: radial-gradient(400px 160px at 100% 0%, rgba(134, 239, 172, .12), transparent 70%), var(--surface); }
.earnings-card .card-head h2 .ico { color: var(--up); }
.earn-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .6rem; }
.earn-row small { display: block; }
.transfer-form { display: flex; gap: .5rem; margin-bottom: .35rem; }
.transfer-form .money-input { flex: 1; min-width: 0; }
.transfer-form .money-input input { font-size: 1.05rem; padding: .6rem .4rem; }
.wallet-top { margin-bottom: 1rem; }
.wallet-top .card { margin: 0; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover strong { color: var(--accent-2); }

.daily-list { list-style: none; padding: 0; margin: 1rem 0 .8rem; display: grid; gap: .35rem; }
.daily-list li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: .75rem; font-size: .85rem; }
.daily-day { color: var(--muted); }
.daily-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.daily-bar i { display: block; height: 100%; border-radius: 999px; }
.daily-bar i.up { background: var(--up); }
.daily-bar i.down { background: var(--down); }
.daily-bar i.flat { background: var(--line); }
.daily-amt { text-align: right; font-weight: 650; white-space: nowrap; }
.daily-amt small { display: block; font-size: .72rem; font-weight: 500; }

.target { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin: 1.25rem 0 .5rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.target small { display: block; }
.target strong { font-size: 1.2rem; }
.target strong small { display: inline; font-size: .78rem; color: var(--muted); font-weight: 500; }
.target-days { grid-column: 1 / -1; }
.target-days span { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.target-days .chip { font-size: .75rem; }
.pr-stat small { font-size: .75rem; }
/* ---- v5: signal strength ---- */
.signal { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; white-space: nowrap; }
.signal strong { font-size: .85rem; }
.signal em { font-style: normal; font-weight: 650; }
.signal small { font-size: .7rem; font-weight: 700; }
.sig-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sig-bars i { width: 3px; border-radius: 1px; background: var(--line); }
.sig-bars i:nth-child(1) { height: 30%; } .sig-bars i:nth-child(2) { height: 37%; } .sig-bars i:nth-child(3) { height: 44%; } .sig-bars i:nth-child(4) { height: 51%; } .sig-bars i:nth-child(5) { height: 58%; }
.sig-bars i:nth-child(6) { height: 65%; } .sig-bars i:nth-child(7) { height: 72%; } .sig-bars i:nth-child(8) { height: 79%; } .sig-bars i:nth-child(9) { height: 86%; } .sig-bars i:nth-child(10) { height: 100%; }
.sig-up { color: var(--up); } .sig-down { color: var(--down); } .sig-flat { color: var(--warn); }
.sig-up .sig-bars i.on { background: var(--up); }
.sig-down .sig-bars i.on { background: var(--down); }
.sig-flat .sig-bars i.on { background: var(--warn); }
.signal.compact strong { font-size: .8rem; }
.pr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }

.signal-panel h3 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.signal-panel .card-head { flex-wrap: wrap; }
.sig-gauge { margin: .4rem 0 .8rem; }
.sig-value { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.sig-value strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sig-value span { font-weight: 700; font-size: 1rem; }
.sig-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 122, 122, .25), rgba(246, 192, 86, .2) 50%, rgba(61, 220, 151, .25)); overflow: visible; }
.sig-track i { display: block; height: 100%; border-radius: 999px; }
.sig-up .sig-track i { background: var(--up); } .sig-down .sig-track i { background: var(--down); } .sig-flat .sig-track i { background: var(--warn); }
.sig-50 { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .5; border-radius: 1px; }
.sig-scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: .3rem; }
.sig-guidance { font-size: .9rem; margin: 0 0 .9rem; }
.signal-panel .details { margin-bottom: 1rem; }
.signal-panel .details dd { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.sig-history { display: block; width: 100%; height: 56px; }
.sig-history .sig-mid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.sig-history rect.up { fill: var(--up); } .sig-history rect.down { fill: var(--down); } .sig-history rect.flat { fill: var(--warn); opacity: .7; }
.sig-history rect.next { opacity: .45; stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 2; }
.sig-accuracy { margin: .7rem 0 0; }
.signal-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .1rem; }
.signal-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.signal-list li:last-child { border-bottom: 0; }
.signal-list a { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; min-width: 0; }
.signal-list small { text-align: right; font-weight: 650; }
@media (max-width: 520px) { .signal-list li { grid-template-columns: 1fr auto; } .signal-list small { display: none; } }
.alloc-list .signal { margin-left: auto; }
.alloc-list .signal + span { margin-left: .8rem; }
.notice.small { font-size: .8rem; }
/* ---- v6: investment plans ---- */
.plan-grid { display: grid; gap: 1rem; margin: 1rem 0; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-grid .card { margin: 0; }
.plan-card { position: relative; display: grid; gap: .9rem; align-content: start; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.plan-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.plan-card.suggested { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 201, 138, .18), var(--shadow); }
.plan-card .alloc-bar { margin: 0; height: 8px; }
.plan-badge { position: absolute; top: .9rem; right: .9rem; }
.plan-name { font-size: 1.15rem; }
.plan-return { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: .8rem; }
.plan-return small { display: block; }
.plan-return strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fit h2 { margin-bottom: .8rem; }
.fit-form { display: grid; gap: 0 1rem; align-items: end; }
@media (min-width: 860px) { .fit-form { grid-template-columns: 1fr 1fr auto; } .fit-form .btn { margin-bottom: .9rem; } }
.fit-result { margin: .2rem 0 0; padding: .7rem .9rem; border-radius: var(--radius-sm); background: rgba(34, 201, 138, .08); border: 1px solid rgba(34, 201, 138, .3); }
.sources-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .sources-4 { grid-template-columns: repeat(4, 1fr); } }
.promo-wide { margin-bottom: 1rem; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .features { grid-template-columns: repeat(4, 1fr); } }
/* ---- v7: plan signal, maturity lock, auto-trade ---- */
.plan-signal { display: grid; gap: .35rem; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.plan-signal > div:first-child { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.plan-signal > div:first-child small { flex-basis: 100%; }
.plan-signal strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan-signal span { font-weight: 700; }
.plan-signal > small { font-size: .72rem; }
.target-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .target-3 { grid-template-columns: 1fr 1fr; } }
.mature-bar { display: block; height: 6px; margin-top: .4rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.mature-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--warn), var(--accent)); border-radius: 999px; }
.mature { margin: .8rem 0 .6rem; }
.mature .sig-scale { margin: 0; }
.plan-pos .tx-main strong { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.plan-pos .tx-main small .pill { font-size: .66rem; padding: .15rem .5rem; }
.plan-pos .tx-main small { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.lock-box { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; margin-bottom: .9rem; border-radius: var(--radius-sm); background: rgba(246, 192, 86, .08); border: 1px solid rgba(246, 192, 86, .3); }
.lock-box .ico { color: var(--warn); margin-top: .1rem; }
.lock-box div { display: grid; gap: .15rem; }
.lock-box small { color: var(--muted); font-size: .82rem; }
.lock-box small strong { color: var(--text); }
.position .card-head { margin-bottom: .4rem; }
.position .card-head h3 { margin: 0; }
.trade-log { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.trade-log summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); }
.trade-log ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; font-size: .82rem; }
.trade-log li { display: flex; gap: .5rem; }
.trade-log li span:last-child { margin-left: auto; font-weight: 650; }
/* ---- Mobile navigation drawer ---- */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.menu-close, .side-user, .side-logout { display: none; }
.menu-btn { flex: none; }
@media (max-width: 959px) {
  .sidebar { display: flex; flex-direction: column; gap: 1.1rem; position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(300px, 86vw); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); box-shadow: 12px 0 40px rgba(0, 0, 0, .45); transform: translateX(-105%); transition: transform .25s ease, visibility 0s linear .25s; visibility: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  body.nav-open { overflow: hidden; }
  .nav-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(2, 4, 10, .65); backdrop-filter: blur(2px); }
  .menu-close { display: grid; }
  .side-user { display: flex; align-items: center; gap: .7rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
  .side-user div { display: grid; min-width: 0; }
  .side-user small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-nav { display: grid; gap: .2rem; }
  .side-nav a { display: flex; align-items: center; gap: .8rem; padding: .75rem .8rem; border-radius: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
  .side-nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
  .side-nav a .badge { margin-left: auto; }
  .side-card { display: grid; gap: .5rem; padding: .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
  .side-card .ico { color: var(--accent); }
  .side-card p { margin: 0; }
  .side-logout { display: block; margin-top: auto; }
  .side-logout .btn { justify-content: center; }
  .topbar-brand .brand span:last-child { display: none; }
}
@media (max-width: 959px) and (min-width: 400px) { .topbar-brand .brand span:last-child { display: inline; } }
@media (min-width: 960px) { .menu-btn, .nav-overlay { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
/* ---- Welcome greeting, account ---- */
.welcome { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin: .2rem 0 1rem; }
.welcome h2 { font-size: clamp(1.35rem, 4.5vw, 1.8rem); letter-spacing: -.02em; margin: 0 0 .2rem; }
.welcome p { margin: 0; }
.welcome-tip { display: grid; gap: .15rem; padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.welcome-tip:hover { border-color: var(--accent); }
.welcome-tip span { display: flex; align-items: center; gap: .6rem; font-weight: 650; }
a.avatar { color: var(--text); text-decoration: none; }
a.avatar:hover { border-color: var(--accent); }
a.side-user { color: var(--text); text-decoration: none; }
.pw-banner { display: flex; align-items: center; gap: .6rem; }
.pw-banner a { color: inherit; text-decoration: underline; font-weight: 700; }
/* ---- Admin panel ---- */
.admin-tag { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #a5dcf7; background: rgba(125, 211, 252, .1); border: 1px solid rgba(125, 211, 252, .3); }
.admin-tag .ico { width: 16px; height: 16px; }
.admin-area .topbar { box-shadow: inset 0 -2px 0 rgba(125, 211, 252, .35); }
.head-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.card-head h2 small { font-weight: 500; font-size: .85rem; margin-left: .3rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; align-items: end; margin-bottom: .6rem; }
.filters .grow { grid-column: 1 / -1; }
.filters label { margin-bottom: .7rem; }
.filters input, .filters select { padding: .55rem .7rem; font-size: .9rem; }
.filter-actions { display: flex; gap: .4rem; margin-bottom: .7rem; grid-column: 1 / -1; }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr repeat(4, 1fr) auto; } .filters .grow, .filter-actions { grid-column: auto; } }
.cell-user { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.cell-user > span:last-child { display: grid; }
.cell-user small { font-size: .75rem; }
.stat-row-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stat-row-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stat-row-6 { grid-template-columns: repeat(6, 1fr); } }
.stat small { display: block; font-size: .75rem; }
.user-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.user-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .2rem; }
.user-head p { margin: 0 0 .2rem; }
.user-head-main { min-width: 0; }
.stack { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.stack .card + .card { margin-top: 0; }
.narrow { max-width: 720px; }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .wide, .form-grid .btn { grid-column: 1 / -1; } .form-grid .btn { justify-self: start; } }
.btn-danger { background: rgba(255, 122, 122, .14); color: var(--down); border-color: rgba(255, 122, 122, .45); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 122, 122, .24); }
.danger-zone { border-color: rgba(255, 122, 122, .35); }
.danger-zone h3 { color: var(--down); }
.audit-list { list-style: none; padding: 0; margin: 0; }
.audit-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.audit-list li:last-child { border-bottom: 0; }
.audit-list li > small { text-align: right; flex: none; font-size: .75rem; }
.audit-list li small.block { margin-top: .2rem; word-break: break-word; }
.alert-promo { border-color: rgba(255, 122, 122, .45); }
.alert-promo .promo-ico { background: rgba(255, 122, 122, .12); color: var(--down); }
/* ---- Admin catalog ---- */
textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 201, 138, .18); }
input[type="color"] { padding: .25rem; height: 46px; cursor: pointer; }
.alloc-editor { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem 1rem; margin: 0 0 1rem; display: grid; gap: .35rem; }
.alloc-editor legend { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 650; color: var(--muted); padding: 0 .3rem; }
.alloc-total { font-weight: 800; padding: .1rem .55rem; border-radius: 999px; background: var(--surface-2); }
.alloc-total.ok { color: var(--up); background: rgba(61, 220, 151, .12); }
.alloc-total.bad { color: var(--warn); background: rgba(246, 192, 86, .12); }
.alloc-row { display: grid; grid-template-columns: auto 1fr auto 90px; align-items: center; gap: .7rem; margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text); }
.alloc-row:last-of-type { border-bottom: 0; }
.alloc-row.retired { opacity: .65; }
.alloc-name { display: grid; }
.alloc-name small { font-weight: 500; font-size: .75rem; }
.alloc-input { display: flex; align-items: center; gap: .3rem; color: var(--muted); }
.alloc-input input { padding: .45rem .6rem; text-align: right; }
@media (max-width: 560px) { .alloc-row { grid-template-columns: auto 1fr 80px; } .alloc-row .signal { display: none; } }
.mix-cell { min-width: 140px; }
.mix-cell .alloc-bar { margin: 0; height: 8px; }
.danger-zone h3.mt { margin-top: 1.2rem; }
.method-delete { padding: 0 1rem 1rem; }
/* ---- Withdrawals & organised admin pages ---- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.page-head > div:first-child { flex: 1 1 260px; }
.page-head h2 { margin-bottom: .2rem; }
.page-head p { margin: 0; }
.page-head-stats { display: flex; gap: 1.5rem; }
.page-head-stats small { display: block; font-size: .75rem; }
.page-head-stats strong { font-size: 1.3rem; }
.tabs .tab-split { margin-left: auto; }
.method-form-card { border-color: var(--accent); margin-bottom: 1rem; }
.method-form-card .card-head h2 { display: flex; align-items: center; gap: .5rem; }
.method-form-card .coin-icon { width: 28px; height: 28px; }
.flags { list-style: none; padding: .7rem .9rem; margin: 1rem 0; display: grid; gap: .35rem; border-radius: var(--radius-sm); background: rgba(246, 192, 86, .08); border: 1px solid rgba(246, 192, 86, .3); color: var(--warn); font-size: .85rem; }
.flags li { display: flex; gap: .5rem; align-items: flex-start; }
.flags .ico { width: 16px; height: 16px; flex: none; margin-top: .1rem; }
.seg-opt { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .55rem; border-radius: 999px; color: var(--muted); font-weight: 700; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt .ico { width: 16px; height: 16px; }
.seg-opt.active { background: var(--surface-2); color: var(--text); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--accent-2); }
.seg-opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
h3.mt { margin-top: 1.4rem; }
.tx form { margin: 0 0 0 .4rem; }
/* ---- Auto-Trading ---- */
.at-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1rem; transition: border-color .2s, box-shadow .2s; }
.at-control.is-on { border-color: rgba(61, 220, 151, .55); box-shadow: 0 0 0 3px rgba(61, 220, 151, .08), var(--shadow); }
.at-control.compact { padding: .9rem 1.1rem; }
.at-switch-wrap { display: flex; align-items: center; gap: 1rem; flex: 1 1 320px; }
.at-switch-wrap form { margin: 0; }
.at-switch-wrap > div { display: grid; gap: .15rem; min-width: 0; }
.at-state { font-size: 1.15rem; letter-spacing: -.01em; }
.is-on .at-state { color: var(--up); }
.at-switch { position: relative; width: 64px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; flex: none; transition: background .2s, border-color .2s; }
.at-switch .knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.at-switch[aria-checked="true"] { background: rgba(61, 220, 151, .25); border-color: var(--up); }
.at-switch[aria-checked="true"] .knob { transform: translateX(28px); background: var(--up); }
.at-switch:disabled { opacity: .45; cursor: not-allowed; }
.at-switch:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .at-switch, .at-switch .knob { transition: none; } }
.at-next { display: grid; text-align: right; }
.at-next strong { font-size: 1.1rem; }
.at-hero { background: radial-gradient(500px 220px at 100% 0%, rgba(59, 130, 246, .16), transparent 70%), var(--surface); margin-bottom: 1rem; }
.at-hero h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); margin: .2rem 0 .5rem; }
.profiles { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
@media (min-width: 900px) { .profiles { grid-template-columns: repeat(3, 1fr); } }
.profiles legend { font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.profile-card { display: grid; gap: .45rem; margin: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; color: var(--text); font-weight: 500; }
.profile-card:has(input:checked) { border-color: var(--accent); background: rgba(34, 201, 138, .07); box-shadow: 0 0 0 3px rgba(34, 201, 138, .12); }
.profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.profile-card:has(input:focus-visible) { outline: 2px solid var(--accent-2); }
.profile-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mini-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.mini-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.mini-chip .swatch { width: 7px; height: 7px; }
.at-log { list-style: none; padding: 0; margin: 0; }
.at-log li { display: grid; grid-template-columns: 64px 1fr auto; gap: .7rem; align-items: start; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.at-log li:last-child { border-bottom: 0; }
.at-log li > div { display: grid; min-width: 0; }
.at-log li > div small { color: var(--muted); }
.at-log li > small { font-size: .72rem; white-space: nowrap; }
.at-badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: .2rem .3rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.at-buy .at-badge { color: var(--up); background: rgba(61, 220, 151, .12); }
.at-sell .at-badge, .at-exit .at-badge, .at-stop .at-badge { color: var(--down); background: rgba(255, 122, 122, .12); }
.at-start .at-badge, .at-resume .at-badge { color: #a5dcf7; background: rgba(125, 211, 252, .12); }
.at-pause .at-badge { color: var(--warn); background: rgba(246, 192, 86, .12); }
.at-log.compact li { grid-template-columns: 56px 1fr auto; padding: .4rem 0; }
.mt-sm { margin-top: .6rem; }
/* ---- Notices ---- */
.notice-box { display: flex; gap: .85rem; align-items: flex-start; padding: .95rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-sm); border: 1px solid; background: var(--surface); box-shadow: var(--shadow); }
.notice-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.notice-body { flex: 1; min-width: 0; }
.notice-body strong { display: block; margin-bottom: .15rem; }
.notice-body p { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-btn { background: var(--surface-2); border: 1px solid var(--line); }
.notice-dismiss { margin: 0; }
.notice-dismiss .icon-btn { width: 32px; height: 32px; }
.notice-info { border-color: rgba(96, 165, 250, .45); }
.notice-info .notice-ico { background: rgba(96, 165, 250, .14); color: #93c5fd; }
.notice-success { border-color: rgba(61, 220, 151, .45); }
.notice-success .notice-ico { background: rgba(61, 220, 151, .12); color: var(--up); }
.notice-warning { border-color: rgba(246, 192, 86, .5); }
.notice-warning .notice-ico { background: rgba(246, 192, 86, .12); color: var(--warn); }
.notice-urgent { border-color: rgba(255, 122, 122, .6); background: linear-gradient(180deg, rgba(255, 122, 122, .08), var(--surface)); }
.notice-urgent .notice-ico { background: rgba(255, 122, 122, .14); color: var(--down); }
.notice-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.notice-dot.notice-info { background: #60a5fa; } .notice-dot.notice-success { background: var(--up); } .notice-dot.notice-warning { background: var(--warn); } .notice-dot.notice-urgent { background: var(--down); }
.row-actions { white-space: nowrap; }
.row-actions form, .row-actions a { display: inline-flex; vertical-align: middle; }
.adjust-card { border-color: rgba(96, 165, 250, .4); }
/* ---- Notifications ---- */
.bell { position: relative; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden; }
@media (max-width: 520px) { .bell-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.bell-head form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; font-weight: 650; color: var(--accent-2); cursor: pointer; }
.bell-empty { padding: 1rem; margin: 0; }
.bell-all { display: block; text-align: center; padding: .7rem; font-size: .85rem; font-weight: 650; border-top: 1px solid var(--line); }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list.compact { max-height: 360px; overflow-y: auto; }
.notif a { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.notif:last-child a { border-bottom: 0; }
.notif a:hover { background: var(--surface-2); }
.notif.unread a { background: rgba(96, 165, 250, .06); }
.notif-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: #93c5fd; }
.notif-ico .ico { width: 18px; height: 18px; }
.notif-success .notif-ico { color: var(--up); background: rgba(61, 220, 151, .12); }
.notif-warning .notif-ico { color: var(--warn); background: rgba(246, 192, 86, .12); }
.notif-urgent .notif-ico { color: var(--down); background: rgba(255, 122, 122, .12); }
.notif-main { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.notif-main strong { font-size: .9rem; }
.notif-main small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.notif-main em { font-style: normal; font-size: .72rem; color: var(--muted); }
.notif.unread .notif-main strong { color: #fff; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; flex: none; margin-top: .4rem; }
.notif-list:not(.compact) .notif a { padding: 1rem .5rem; }
/* ---- Landing v2: header, video, ticker, live markets, testimonials, FAQ, footer, legal ---- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.site-header { position: sticky; top: 0; z-index: 40; max-width: none; padding: .9rem max(1rem, calc((100vw - 1160px) / 2)); background: rgba(7, 11, 22, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-links { display: none; gap: 1.4rem; margin: 0 auto; }
.site-links a { color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.site-links a:hover, .site-links a.active { color: var(--text); }
@media (min-width: 860px) { .site-links { display: flex; } }
.site-auth { display: flex; gap: .5rem; }

.hero-video { grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-video { grid-template-columns: 1fr 1.05fr; } }
.video-card { position: relative; padding: 0; overflow: hidden; margin: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(96, 165, 250, .12); }
.hero-video-el { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #070b16; }
.video-toggle { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(7, 11, 22, .6); color: #fff; font-size: .8rem; cursor: pointer; backdrop-filter: blur(6px); }
.video-toggle:hover { background: rgba(7, 11, 22, .85); }
.video-caption { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: livepulse 1.8s infinite; vertical-align: middle; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(15, 23, 42, .6); margin: 0 -1rem 2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tickerscroll 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { padding: .7rem 1.4rem; white-space: nowrap; font-size: .88rem; color: var(--muted); border-right: 1px solid var(--line); }
.tk strong { color: var(--text); margin-right: .35rem; }
.tk em { font-style: normal; font-weight: 700; margin-left: .3rem; }
@keyframes tickerscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .live-dot { animation: none; } }

.section-head { max-width: 760px; margin-bottom: 1.4rem; }
.section-head h2, .section-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: -.02em; }
.markets { padding: 1rem 0 2rem; scroll-margin-top: 80px; }
.market-grid { display: grid; gap: 1rem; }
@media (min-width: 980px) { .market-grid { grid-template-columns: 360px 1fr; } }
.market-grid .card { margin: 0; }
.market-list { padding: .5rem; display: grid; gap: .25rem; align-content: start; }
.ml-item { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: .7rem .75rem; cursor: pointer; transition: background .15s, border-color .15s; }
.ml-item:hover { background: var(--surface-2); }
.ml-item.active { background: var(--surface-2); border-color: var(--accent); }
.ml-name { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.ml-name small { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .75rem; }
.ml-price { display: grid; text-align: right; font-size: .85rem; }
.ml-price span { font-weight: 700; font-size: .78rem; }
.mc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.mc-head h3 { margin: .1rem 0 0; font-size: 1.3rem; }
.mc-price { display: flex; align-items: center; gap: .6rem; }
.mc-price strong { font-size: 1.6rem; letter-spacing: -.02em; }
.mc-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .mc-stats { grid-template-columns: repeat(4, 1fr); } }
.mc-stats dd { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.crypto-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 .8rem; }
.crypto-head h3 { margin: 0; }
.crypto-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.crypto-grid .card { margin: 0; }
.coin-card { display: grid; gap: .35rem; padding: 1rem; transition: box-shadow .4s; }
.coin-top { display: flex; align-items: center; gap: .45rem; }
.coin-top .chip { margin-left: auto; font-size: .72rem; }
.coin-sym { font-weight: 800; letter-spacing: .04em; }
.coin-price { font-size: 1.35rem; letter-spacing: -.02em; }
.coin-card .spark.wide { height: 40px; }
.flash-up { animation: flashup 1.2s; }
.flash-down { animation: flashdown 1.2s; }
@keyframes flashup { 0% { box-shadow: 0 0 0 2px rgba(61, 220, 151, .7); } 100% { box-shadow: var(--shadow); } }
@keyframes flashdown { 0% { box-shadow: 0 0 0 2px rgba(255, 122, 122, .7); } 100% { box-shadow: var(--shadow); } }
.calc { display: grid; gap: 1rem; margin-top: 1.5rem; align-items: center; }
@media (min-width: 980px) { .calc { grid-template-columns: 1.1fr 1.6fr .9fr; } }
.calc h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .3rem; }
.calc p { margin: 0; }
.calc-form { display: grid; gap: 0 .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .calc-form { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.calc-form label { margin-bottom: 0; }
.calc-form .money-input input { font-size: 1.05rem; padding: .6rem .4rem; }
.calc-result { display: grid; gap: .2rem; justify-items: start; }
.calc-result strong { font-size: 1.8rem; letter-spacing: -.02em; }

.testimonials { padding: 2.5rem 0 1rem; scroll-margin-top: 80px; }
.rating-inline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.review-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.review-grid .card { margin: 0; }
.review-card { display: grid; gap: .6rem; align-content: start; }
.review-card h3 { margin: 0; font-size: 1.05rem; }
.review-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.review-author { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.review-author > span:last-child { display: grid; }
.review-author small { font-size: .78rem; }
.verified { color: var(--up); font-weight: 650; }
.review-reply { margin-top: .4rem; padding: .7rem .85rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .88rem; }
.review-reply p { margin: .2rem 0 0; }
.testimonial-cta { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.stars { display: inline-flex; gap: 1px; color: var(--line); font-size: 1rem; line-height: 1; }
.stars i { font-style: normal; }
.stars i.on { color: #fbbf24; }
.stars i.half { background: linear-gradient(90deg, #fbbf24 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.lg { font-size: 1.4rem; }
.rating-summary { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
@media (min-width: 860px) { .rating-summary { grid-template-columns: auto 1fr auto; } }
.rating-big { display: grid; justify-items: center; gap: .3rem; padding: 0 1rem; }
.rating-big strong { font-size: 3rem; line-height: 1; letter-spacing: -.03em; }
.rating-dist { display: grid; gap: .3rem; min-width: 0; }
.rating-dist a { display: grid; grid-template-columns: 38px 1fr 32px; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-size: .85rem; padding: .1rem .3rem; border-radius: 8px; }
.rating-dist a.active, .rating-dist a:hover { background: var(--surface-2); }
.rating-dist .bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.rating-dist .bar i { display: block; height: 100%; background: #fbbf24; border-radius: 999px; }
.rating-cta { text-align: center; }
.star-input { border: 0; padding: 0; margin: 0 0 1rem; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; flex-wrap: wrap; }
.star-input legend { width: 100%; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { margin: 0; font-size: 2.1rem; color: var(--line); cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #fbbf24; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent-2); border-radius: 4px; }
.review-mod .review-actions { margin: .8rem 0; }
.review-mod h3 { margin: .4rem 0; }
.reply-form { margin-top: .4rem; }
.reply-form label { margin-bottom: .4rem; }
.review-del { float: right; margin-top: -.4rem; }

.faq { padding: 2.5rem 0 1rem; scroll-margin-top: 80px; }
.faq-list { display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.faq-list .card { margin: 0; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); font-size: .92rem; }

.site-footer { max-width: none; display: block; margin-top: 3rem; padding: 3rem max(1rem, calc((100vw - 1160px) / 2)) 2rem; background: #050811; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; display: grid; gap: .8rem; align-content: start; max-width: 380px; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 0; font-size: .88rem; }
.footer-mail { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col h4 { margin: 0 0 .3rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-col a { color: var(--text); text-decoration: none; font-size: .9rem; opacity: .85; }
.footer-col a:hover { opacity: 1; color: var(--accent-2); }
.footer-risk { margin-top: 2.2rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(15, 23, 42, .7); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); line-height: 1.6; }
.footer-risk p { margin: 0; max-width: none; }
.footer-risk strong { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: var(--muted); }
.app-legal { display: block; margin-top: .5rem; }
.app-legal a { color: var(--muted); }

.legal { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem 1rem; }
.legal-head { max-width: 760px; margin-bottom: 2rem; }
.legal-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.02em; margin: .4rem 0; }
.legal-body { display: grid; gap: 2rem; }
@media (min-width: 900px) { .legal-body { grid-template-columns: 230px 1fr; } }
.legal-toc { display: grid; gap: .35rem; align-content: start; font-size: .85rem; }
@media (min-width: 900px) { .legal-toc { position: sticky; top: 90px; } }
.legal-toc strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal-text { max-width: 760px; line-height: 1.7; }
.legal-text section { scroll-margin-top: 90px; margin-bottom: 1.8rem; }
.legal-text h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.legal-text p, .legal-text li { color: #c9d2e3; }
.legal-text ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.callout { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .3); }
.callout.warn { background: rgba(246, 192, 86, .08); border-color: rgba(246, 192, 86, .35); }
.legal-contact { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.reviews-page { padding-top: 2rem; }

/* Landing fixes */
.site-header .site-links { display: none; }
@media (min-width: 860px) { .site-header .site-links { display: flex; } }
.faq > h2, .products-section > h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
@media (min-width: 1040px) { .plan-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .site-header .brand span:last-child { display: none; } .site-auth .btn { padding: .45rem .75rem; } }
.empty h2, .empty h3 { justify-content: center; }

/* v17 — landing top bar + mobile side drawer */
.site-topbar { display: none; background: #050811; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1160px; margin: 0 auto; padding: .45rem 1rem; }
.topbar-left { display: flex; align-items: center; gap: 1.1rem; min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar-ticker { display: flex; gap: 1rem; overflow: hidden; }
.topbar-ticker span b { color: var(--text); font-weight: 600; margin: 0 .3rem; }
.topbar-ticker em { font-style: normal; }
.topbar-links { display: flex; align-items: center; gap: 1.1rem; white-space: nowrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; }
.topbar-links a:hover { color: var(--text); }
.topbar-links .ico { width: 14px; height: 14px; }
@media (min-width: 860px) { .site-topbar { display: block; } }
@media (max-width: 1080px) { .topbar-ticker span:nth-child(n+3) { display: none; } }
.site-menu-btn { display: grid; flex: none; }
.site-header .brand { margin-right: auto; }
@media (min-width: 860px) {
  .site-menu-btn, .site-drawer, .site-overlay { display: none !important; }
  .site-header .brand { margin-right: 0; }
}
.site-drawer { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 1.2rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); box-shadow: 12px 0 40px rgba(0, 0, 0, .45); transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
body.site-nav-open .site-drawer { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
body.site-nav-open { overflow: hidden; }
.site-overlay { position: fixed; inset: 0; z-index: 65; background: rgba(2, 4, 10, .65); backdrop-filter: blur(2px); }
.site-overlay[hidden] { display: none; }
.site-drawer .side-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { display: flex; align-items: center; justify-content: space-between; padding: .8rem .4rem; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; }
.drawer-links a.active { color: var(--up); }
.drawer-links .ico { width: 16px; height: 16px; color: var(--muted); }
.drawer-auth { display: grid; gap: .6rem; }
.drawer-foot { margin-top: auto; line-height: 1.6; }
.drawer-foot .ico { width: 14px; height: 14px; vertical-align: -2px; }
@media (prefers-reduced-motion: reduce) { .site-drawer { transition: none; } }
@media (max-width: 520px) { .site-auth .btn-ghost { display: none; } }

/* v17 — withdrawal lock */
.lock-banner { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; margin: .4rem 0 1rem; border-radius: 14px; border: 1px solid rgba(255, 122, 122, .4); background: rgba(255, 122, 122, .08); }
.lock-banner > .ico { flex: none; width: 22px; height: 22px; color: var(--down); margin-top: .1rem; }
.lock-banner strong { color: var(--down); }
.lock-banner p { margin: .3rem 0; }
.lock-banner small { display: block; margin-bottom: .3rem; }
.lock-banner .btn { margin-top: .5rem; }
.lock-banner.compact { margin-top: .8rem; }
form.is-locked { opacity: .45; pointer-events: none; }
.pause-card.is-paused { border-color: rgba(255, 122, 122, .45); background: rgba(255, 122, 122, .06); }
.pause-form { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.pause-form > div { flex: 1 1 260px; display: grid; gap: .2rem; }
.pause-form input { flex: 1 1 220px; }

/* v17 — message box */
.msg-layout { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .msg-layout { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.conv-list { list-style: none; margin: 0; padding: 0; display: grid; }
.conv-list a { display: grid; gap: .2rem; padding: .8rem .6rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; border-radius: 10px; min-width: 0; }
.conv-list a:hover, .conv-list a.active { background: var(--surface-2); }
.conv-list a.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: var(--up); vertical-align: middle; }
.conv-top { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; min-width: 0; }
.conv-top strong, .conv-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; gap: .8rem; padding: .4rem 0 1rem; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: min(85%, 620px); padding: .7rem .9rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.bubble.mine { align-self: flex-end; background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .3); border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-meta { display: flex; gap: .7rem; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.reply-form textarea { width: 100%; }
.reply-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin-top: .6rem; }
.thread-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.thread-head h2 { margin: 0; }
.msg-safety { font-size: .82rem; }
.site-header .site-links { gap: 1.6rem; }

/* v17.1 — instant unlock */
.inline-form { display: inline; }
.inline-form .ico { width: 14px; height: 14px; vertical-align: -2px; }
.lock-banner.admin-lock { align-items: center; flex-wrap: wrap; }
.lock-banner.admin-lock > div { flex: 1 1 240px; }
.flags .link-btn { margin-left: .4rem; }

/* v18 — Live support widget */
.lc-root { position: fixed; z-index: 80; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
body.app .lc-root { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body.app .lc-root { bottom: 20px; right: 20px; } }
body.nav-open .lc-root, body.site-nav-open .lc-root { display: none; }
.lc-launcher { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; border: 0; border-radius: 999px; background: var(--accent); color: #04110b; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.lc-launcher .ico { width: 20px; height: 20px; }
.lc-launcher .badge { position: absolute; top: -6px; right: -4px; }
.lc-open .lc-launch-label { display: none; }
@media (max-width: 520px) { .lc-launch-label { display: none; } .lc-launcher { padding: .8rem; } }
.lc-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.lc-panel[hidden] { display: none; }
body.app .lc-panel { height: min(560px, calc(100vh - 190px)); }
.lc-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.lc-head > div { flex: 1; display: grid; min-width: 0; }
.lc-head small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(61, 220, 151, .14); color: var(--up); flex: none; }
.lc-avatar .ico { width: 20px; height: 20px; }
.lc-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
.lc-online .lc-dot { background: var(--up); }
.lc-start { display: grid; gap: .7rem; padding: 1rem; overflow-y: auto; }
.lc-start p { margin: 0; }
.lc-safety { display: flex; gap: .4rem; align-items: flex-start; font-size: .75rem; }
.lc-safety .ico { flex: none; width: 14px; height: 14px; margin-top: .1rem; }
.lc-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lc-root[data-state="none"] .lc-chat, .lc-root:not([data-state="none"]) .lc-start { display: none; }
.lc-banner { margin: .7rem .8rem 0; padding: .55rem .8rem; border-radius: 10px; font-size: .82rem; background: rgba(246, 192, 86, .1); border: 1px solid rgba(246, 192, 86, .3); color: var(--warn); }
.lc-banner[hidden] { display: none; }
.lc-list { flex: 1; list-style: none; margin: 0; padding: .8rem; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; min-height: 0; }
.lc-msg { max-width: 82%; padding: .55rem .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.lc-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lc-msg small { display: block; margin-top: .2rem; font-size: .7rem; color: var(--muted); }
.lc-msg.mine { align-self: flex-end; background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .3); border-bottom-right-radius: 4px; }
.lc-msg.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.lc-system { align-self: center; max-width: 92%; text-align: center; font-size: .76rem; color: var(--muted); }
.lc-system span { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.lc-system.lc-join span { color: var(--up); border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .08); font-weight: 600; }
.lc-system.lc-leave span, .lc-system.lc-end span { color: var(--warn); border-color: rgba(246, 192, 86, .3); }
.lc-system.lc-join, .lc-msg { animation: lc-in .25s ease; }
@keyframes lc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lc-typing { display: flex; align-items: center; gap: .45rem; margin: 0; padding: 0 1rem .4rem; font-size: .78rem; color: var(--muted); }
.lc-typing[hidden] { display: none; }
.lc-dots { display: inline-flex; gap: 3px; padding: .35rem .55rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: lc-blink 1.2s infinite ease-in-out; }
.lc-dots i:nth-child(2) { animation-delay: .15s; }
.lc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .lc-dots i, .lc-msg, .lc-system.lc-join { animation: none; } }
.lc-error { margin: 0 .8rem .4rem; font-size: .8rem; color: var(--down); }
.lc-error[hidden] { display: none; }
.lc-send { display: flex; gap: .5rem; align-items: flex-end; padding: .6rem .8rem; border-top: 1px solid var(--line); }
.lc-send[hidden] { display: none; }
.lc-send textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; }
.lc-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 .8rem .6rem; }
.lc-foot [data-lc-restart] { display: none; }
.lc-root[data-state="closed"] .lc-send, .lc-root[data-state="closed"] [data-lc-end] { display: none; }
.lc-root[data-state="closed"] .lc-foot { justify-content: center; padding-top: .7rem; border-top: 1px solid var(--line); }
.lc-root[data-state="closed"] [data-lc-restart] { display: inline-flex; }

/* v18 — admin live support console */
.cc { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .cc { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.cc-h { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.cc-none { padding: .3rem .2rem; }
.cc-item { position: relative; display: grid; gap: .15rem; width: 100%; padding: .65rem .7rem; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0; }
.cc-item:hover, .cc-item.active { background: var(--surface-2); border-color: var(--accent); }
.cc-item.unread { border-color: rgba(61, 220, 151, .5); }
.cc-item .badge { position: absolute; right: .6rem; bottom: .6rem; }
.cc-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; min-width: 0; }
.cc-top strong { display: flex; align-items: center; gap: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-last { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 1.8rem; }
.cc-last.is-typing { color: var(--up); font-style: italic; }
.cc-presence { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.cc-presence.on { background: var(--up); }
.cc-closed { margin-top: 1rem; }
.cc-closed summary { cursor: pointer; color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.cc-pane .lc-list { min-height: 320px; max-height: 58vh; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.cc-pane .lc-banner { margin: 0 0 .7rem; }
.cc-pane .lc-typing { padding: .5rem 0 0; }
.cc-pane .lc-error { margin: .4rem 0 0; }
.cc-pane .lc-send { padding: .7rem 0 0; border: 0; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.cc-actions [hidden] { display: none; }
.cc-alert .cc-queue { animation: cc-flash 1.6s ease; }
@keyframes cc-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(61, 220, 151, .5); } }

/* v18 — launcher sits below the open panel */
.lc-root { flex-direction: column-reverse; }
.cc-name-form { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }

/* Scrollable sidebar (desktop + mobile drawer): long admin menus scroll instead of being cut off */
.sidebar { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .25) transparent; }
.sidebar > * { flex-shrink: 0; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .25); border-radius: 6px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .45); }
.sidebar::-webkit-scrollbar-track { background: transparent; }

/* Admin → Branding: uploaded logo */
.brand-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; }
.brand-preview { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.brand-preview .brand { pointer-events: none; }
.logo-thumb { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--line); background: repeating-conic-gradient(rgba(255,255,255,.04) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.logo-thumb img { max-width: 80px; max-height: 80px; }
.branding-grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .branding-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.kv.kv-1 { grid-template-columns: 1fr; }

/* Broker signals */
.broker-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.broker-history { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }
.broker-note { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 12px; font-size: .85rem; background: rgba(125, 211, 252, .08); border: 1px solid rgba(125, 211, 252, .3); }
.broker-note .ico { flex: none; width: 16px; height: 16px; color: #a5dcf7; margin-top: .15rem; }
.broker-row .btn { white-space: nowrap; }
