:root {
  --bg: #0f1c22;
  --panel: #162830;
  --panel-2: #1c343e;
  --line: #264452;
  --text: #f2f7f9;
  --muted: #8aa5b0;
  --accent: #8fd3ee;
  --accent-ink: #0b1a20;
  --green: #2ecc8f;
  --red: #ff6b6b;
  --amber: #f5b942;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.25; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1.2rem; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand-icon { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { color: var(--text); letter-spacing: .06em; font-size: 1.05rem; }
.brand-text small { color: var(--accent); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; gap: .3rem; }
.nav a { color: var(--muted); padding: .45rem .85rem; border-radius: 999px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { background: var(--panel-2); color: var(--accent); }

.demo-banner {
  background: #3a2f12; color: var(--amber); text-align: center;
  padding: .4rem 1rem; font-size: .85rem; border-bottom: 1px solid #5a4818;
}

.bot-banner {
  background: #3a1616; color: #ff9a9a; text-align: center;
  padding: .45rem 1rem; font-size: .88rem; border-bottom: 1px solid #6a2626;
}
.admin-kpis { margin-bottom: 1rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; background: var(--muted); }
.dot.on { background: var(--green); } .dot.off { background: var(--red); }
.bars { display: flex; align-items: flex-end; gap: .35rem; height: 140px; padding-top: .3rem; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bar b { font-size: .7rem; order: -1; margin-bottom: .15rem; }
.bar span { font-size: .62rem; color: var(--muted); margin-top: .25rem; white-space: nowrap; }
.admin-search { max-width: 320px; }

/* ---------- layout ---------- */
.view { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.1rem 1.2rem 2rem; }
.view:has(.dash) { max-width: 1760px; }          /* live markets page uses the wide screen */
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 1.2rem 1.6rem; border-top: 1px solid var(--line); }
.footer p { margin: .15rem 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.small { padding: .3rem .7rem; font-size: .85rem; }

label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
input[type=email], input[type=password], input[type=number], input[type=text], input[type=search], select {
  width: 100%; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: .9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { margin-top: .2rem; }
.error { color: var(--red); font-size: .88rem; min-height: 1.2em; margin: .4rem 0; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 2.5rem auto 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 1.2rem; }
.tabs button { background: none; border: 0; color: var(--muted); padding: .55rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.active { background: var(--panel-2); color: var(--accent); }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.chart-card { padding: .8rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.toolbar select { width: auto; min-width: 130px; font-weight: 600; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: .35rem .7rem; border-radius: 8px; font: inherit; cursor: pointer; }
.seg button.active { background: var(--panel-2); color: var(--accent); }
.price { margin-left: auto; font-size: 1.1rem; font-weight: 700; }
.price small { color: var(--muted); font-weight: 500; margin-right: .4rem; }
#chart, #tvbox { width: 100%; height: clamp(480px, calc(100vh - 360px), 900px); }   /* grows with the window */
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; }
.dot.g { background: var(--green); } .dot.r { background: var(--red); } .dot.a { background: var(--accent); }

.sig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.side-badge { font-weight: 800; letter-spacing: .05em; padding: .15rem .6rem; border-radius: 6px; font-size: .8rem; }
.side-badge.long { background: rgba(46,204,143,.15); color: var(--green); }
.side-badge.short { background: rgba(255,107,107,.15); color: var(--red); }
.levels { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .6rem 0 .8rem; }
.levels dt { color: var(--muted); } .levels dd { margin: 0; text-align: right; font-weight: 600; }
.levels .sl { color: var(--red); } .levels .tp { color: var(--green); }
.status { font-size: .78rem; padding: .12rem .55rem; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.status.open { color: var(--accent); }
.status.win { color: var(--green); background: rgba(46,204,143,.12); }
.status.loss { color: var(--red); background: rgba(255,107,107,.12); }
.actions { display: flex; flex-direction: column; gap: .5rem; }
.note { font-size: .75rem; color: var(--muted); margin: .7rem 0 0; }

.recent-row {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .55rem .4rem;
  border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px;
}
.recent-row:first-child { border-top: 0; }
.recent-row:hover { background: var(--panel-2); }
.recent-row .sub { color: var(--muted); font-size: .8rem; }
.recent-row .right { text-align: right; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }
td.num, th.num { text-align: right; }

/* ---------- performance ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.kpi span { display: block; color: var(--muted); font-size: .8rem; }
.kpi b { font-size: 1.4rem; }
#equity { width: 100%; height: 320px; }

.list-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); align-items: center; }
.list-row:first-of-type { border-top: 0; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(5,12,16,.75); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; max-width: 460px; }
.modal-card .btn { margin-top: .6rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  #chart, #tvbox { height: 360px; }
}
@media (max-width: 640px) {
  .topbar { padding: .6rem .9rem; }
  .view { padding: .8rem .8rem 5rem; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around;
    background: var(--panel); border-top: 1px solid var(--line); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .45rem .7rem; font-size: .82rem; }
  .footer { padding-bottom: 5rem; }
  .hide-sm { display: none; }
  .consent { left: 8px; right: 8px; max-width: none; bottom: calc(3.6rem + env(safe-area-inset-bottom)); padding: .6rem .8rem; font-size: .8rem; }
  .consent p { margin: 0 0 .4rem; }
  .status { font-size: .72rem; padding: .1rem .45rem; }
  .table-wrap table { min-width: 0 !important; }
  th, td { padding: .5rem .25rem; font-size: .76rem; }
  .card { padding: .8rem .55rem; }
}

/* ---------- markets, live status ---------- */
.main-col { min-width: 0; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.price { display: flex; align-items: center; gap: .5rem; }
.price small { margin: 0; font-size: .85rem; font-weight: 600; }
.pill { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; }
.pill.live { color: var(--green); background: rgba(46,204,143,.14); }
.pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: .35rem; animation: pulse 1.6s ease-in-out infinite; }
.pill.closed { color: var(--muted); background: var(--panel-2); }
.pill.simulated { color: var(--amber); background: rgba(245,185,66,.14); }
.pill.delayed { color: var(--amber); background: rgba(245,185,66,.14); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }
.chart-msg { color: var(--amber); font-size: .85rem; margin: 0 0 .5rem; }
table.markets tbody tr { cursor: pointer; }
table.markets tbody tr:hover { background: var(--panel-2); }
table.markets tbody tr.sel { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.toolbar select { max-width: 100%; }

.price small.pos { color: var(--green); }
.price small.neg { color: var(--red); }

/* ---------- chart tools ---------- */
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.chart-tools .ohlc { color: var(--muted); font-size: .8rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-tools .ohlc b { margin-left: .3rem; }
.chart-tools .btn.small { padding: .3rem .65rem; }
body.chart-full { overflow: hidden; }
body.chart-full .chart-card { position: fixed; inset: 0; z-index: 60; border-radius: 0; display: flex; flex-direction: column; background: var(--bg); padding: .8rem .8rem calc(.8rem + env(safe-area-inset-bottom)); }
body.chart-full #chart, body.chart-full #tvbox { flex: 1; height: auto; min-height: 0; }
/* fullscreen = only the chart: hide everything that is not needed to read it */
body.chart-full .quickbar, body.chart-full .legend, body.chart-full .linkbar, body.chart-full #linknote,
body.chart-full .tv-sig, body.chart-full .botinfo, body.chart-full #lockBtn, body.chart-full #classes,
body.chart-full #sym, body.chart-full #favBtn, body.chart-full #tvBtn, body.chart-full .chart-msg:empty { display: none !important; }
body.chart-full .toolbar { margin-bottom: .4rem; }
body.chart-full .tfs button { padding-left: .55rem; padding-right: .55rem; }
body.chart-full .chart-tools { margin-bottom: .3rem; }
body.chart-full .chart-tools .ohlc { display: none; }
body.chart-full #fsBtn { margin-left: auto; }

/* ---------- quick bar (favourites) + search palette ---------- */
.quickbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.chips { display: flex; gap: .4rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; font: inherit; font-size: .85rem; min-height: 36px;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip small { font-size: .75rem; }
.chip.active small.pos, .chip.active small.neg { color: var(--accent-ink); }
.chip.planned { display: inline-grid; grid-template-columns: auto auto; column-gap: .4rem; row-gap: 0; align-items: center; padding-top: .2rem; padding-bottom: .2rem; }
.chip .soon { grid-row: 2; grid-column: 1 / -1; font-style: normal; font-size: .64rem; font-weight: 600; letter-spacing: .02em; color: var(--amber); line-height: 1.1; text-align: left; }
.chip.active .soon { color: var(--accent-ink); opacity: .85; }
.mk-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin: 0 0 .6rem; line-height: 1.2; }
.mk-title b { font-size: 1.25rem; letter-spacing: .01em; }
.mk-title span { color: var(--text); opacity: .85; font-size: 1rem; }
.mk-title em { font-style: normal; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; }
.chip.temp:not(.active) { border-style: dashed; }
.tag.soon { color: var(--amber); border-color: var(--amber); }
.chip-empty { padding: .4rem; font-size: .85rem; }
.bot-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.search-btn { flex: 0 0 auto; white-space: nowrap; }
kbd { font: inherit; font-size: .72rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; color: var(--muted); }
.botpill { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.botpill.on { color: var(--green); border-color: var(--green); display: inline-flex; align-items: center; gap: .35rem; }
.tag { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 .4rem; white-space: nowrap; }
.tag.bot { color: var(--green); border-color: var(--green); }
.star { background: none; border: 0; color: var(--muted); font-size: 1.15rem; cursor: pointer; padding: .2rem .4rem; line-height: 1; }
.star.on { color: var(--amber); }
.star:hover { color: var(--amber); }
.star.big { font-size: 1.4rem; }
#tfs { display: flex; gap: .25rem; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
#tfs::-webkit-scrollbar { display: none; }
#tfs .btn { flex: 0 0 auto; }

.palette-back { position: fixed; inset: 0; z-index: 60; background: rgba(5, 12, 16, .7); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette-card { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
#palInput { width: 100%; font-size: 1rem; padding: .7rem .8rem; }
#palList { list-style: none; margin: .5rem 0 0; padding: 0; max-height: 50vh; overflow-y: auto; }
#palList li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; min-height: 44px; }
#palList li.sel, #palList li:hover { background: var(--panel-2); }
#palList li.pal-empty { cursor: default; }
.pal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pal-main span { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.palette-hint { margin: .6rem 0 0; font-size: .75rem; color: var(--muted); }
@media (max-width: 640px) {
  .quickbar { flex-wrap: nowrap; align-items: flex-start; }
  .chips { flex-wrap: wrap; overflow: visible; }            /* phone: all market buttons visible, no sideways scrolling */
  .chip { padding: .3rem .65rem; font-size: .8rem; }
  .search-btn .lbl { display: none; }                       /* icon only, leaves room for the market buttons */
  .search-btn { min-width: 44px; min-height: 40px; }
  .search-btn kbd { display: none; }
  .chart-tools .botpill { order: 5; }
}
#classes { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#classes::-webkit-scrollbar { display: none; }
#classes button { white-space: nowrap; flex: 0 0 auto; }

#tvbox .tradingview-widget-container { height: 100%; display: flex; flex-direction: column; }
#tvbox .tradingview-widget-container__widget { flex: 1; min-height: 0; }
.tradingview-widget-copyright { font-size: .72rem; color: var(--muted); padding-top: .25rem; }
.tv-sig { font-size: .82rem; margin-top: .5rem; padding: .45rem .7rem; background: var(--panel-2); border-radius: 10px; overflow-wrap: anywhere; }

/* ---------- toasts, prop firms, calculator, bot table ---------- */
#toasts { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: grid; gap: .5rem; max-width: min(360px, calc(100vw - 24px)); }
.toast { background: var(--panel, var(--bg)); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px;
  padding: .6rem .8rem; display: grid; gap: .15rem; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.35); font-size: .88rem; }
.toast span { color: var(--muted); }
.toast.win { border-left-color: var(--green); } .toast.loss { border-left-color: var(--red); } .toast.be { border-left-color: #e0b341; }
.propbox { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.propbox .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.checks { display: grid; gap: .4rem; margin-top: .5rem; }
tr.sum td { border-top: 2px solid var(--line); }
.small { font-size: .78rem; }

/* the logo inside the chart is replaced by the credit line in the footer (what the Lightweight Charts licence asks for) */
#tv-attr-logo { display: none !important; }
.footer-attr { font-size: .75rem; }

.linkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .7rem; }
.linkbar:empty { display: none; }
.linksep { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-left: .4rem; }
@media (max-width: 700px) { .linkbar .btn, .linkbar .linksep { white-space: nowrap; } }   /* phone: links wrap onto several lines, nothing hides behind a sideways scroll */
.linkbar { margin: .7rem 0 0; }

.myfirm { display: inline-flex; align-items: center; }
.myfirm .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.myfirm .x { border: 1px solid var(--line); border-left: 0; background: var(--panel-2); color: var(--muted); border-radius: 0 10px 10px 0; padding: 0 .5rem; height: 100%; min-height: 30px; cursor: pointer; font-size: 1rem; }
.myfirm .x:hover { color: var(--red); }
.btn.ghost { background: transparent; border-style: dashed; color: var(--muted); }
.firmform { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; flex-basis: 100%; }
.firmform input { width: auto; flex: 1 1 160px; min-width: 0; padding: .4rem .6rem; }
.firmform .hint, .firmform .error { flex-basis: 100%; margin: 0; min-height: 0; }
a.botpill { text-decoration: none; }
.bul { margin: .3rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.strat h2 { margin: 0 0 .5rem; font-size: 1.15rem; } .strat h3 { margin: 1.1rem 0 .2rem; }
.stratsvg { width: 100%; max-width: 760px; height: auto; margin: .6rem 0; }
.nav a { white-space: nowrap; }
.linknote { flex-basis: 100%; margin: .1rem 0 0; }

/* ---------- statistics consent + traffic tables ---------- */
.consent { position: fixed; left: 12px; bottom: 12px; z-index: 40; max-width: min(440px, calc(100vw - 24px));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); font-size: .88rem; }
.consent p { margin: 0 0 .6rem; color: var(--muted); }
.consent-btns { display: flex; gap: .5rem; justify-content: flex-end; }
.traffic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.hbars { display: grid; gap: .35rem; }
.hbar { display: grid; grid-template-columns: minmax(110px, 46%) 1fr auto; gap: .5rem; align-items: center; font-size: .85rem; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .trk { background: rgba(255,255,255,.06); border-radius: 4px; height: .55rem; overflow: hidden; }
.hbar .trk i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.hbar .val { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 4.5em; text-align: right; }
.range-btns { display: flex; gap: .35rem; }
.range-btns .btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- landing page ---------- */
.landing { max-width: 920px; margin: 0 auto; display: grid; gap: 1rem; }
.hero { text-align: center; padding: 2rem .5rem 1rem; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 .8rem; }
.hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto 1.4rem; font-size: 1.05rem; }
.hero-btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn, .price-card .btn { display: inline-block; text-decoration: none; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.feat h3 { margin: 0 0 .4rem; font-size: 1rem; }
.feat p { margin: 0; color: var(--muted); font-size: .9rem; }
.landing h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.price-card { text-align: center; }
.price-big { font-size: 2rem; font-weight: 700; color: var(--accent); }
.landing details { border-top: 1px solid var(--line); padding: .6rem 0; }
.landing summary { cursor: pointer; font-weight: 600; }
.landing details p { color: var(--muted); margin: .5rem 0 0; font-size: .9rem; }

/* ---------- guide + landing differences ---------- */
.guide-card h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.diff { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.diff li { display: grid; gap: .1rem; padding-left: .9rem; border-left: 3px solid var(--accent); }
.diff li span { color: var(--muted); font-size: .92rem; }

/* ---------- position size calculator ---------- */
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .7rem; margin: .5rem 0; }
.pos-grid .field { margin: 0; }
.pos-grid .pos-wide { grid-column: 1 / -1; }
.pos-out { display: grid; gap: .4rem; margin: .6rem 0; }
.pos-out .kpi { display: flex; justify-content: space-between; align-items: baseline; padding: .45rem .7rem; background: var(--bg); border: 0; border-radius: 10px; }
.pos-out .kpi b { font-size: 1.05rem; }
.pos-out .kpi span { color: var(--muted); font-size: .85rem; }
