/* طلاسنج — lapis, gold and turquoise: the palette of Persian tilework, with the price shown the way a dealer's board shows it. */
@font-face { font-family: Estedad; src: url(fonts/Estedad.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --board: #14224a; --board-2: #1d2f63; --on-board: #f4f6fc; --on-board-dim: #a9b4d6; --gold: #e6b63f;
  --paper: #eef1f6; --surface: #ffffff; --sunk: #f1f4f9; --line: #e1e6ef;
  --ink: #131c36; --ink-2: #3b4566; --muted: #68718f; --gold-ink: #8a640e; --turq: #0b7f7c;
  --up: #107a45; --up-bg: #e2f4e9; --down: #c2332a; --down-bg: #fbe6e3; --warn: #a85a08; --warn-bg: #fbedd9; --cold: #2a67a8;
  --band: rgba(138, 100, 14, .14);
  --tabbar: 62px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --board: #15234f; --board-2: #1f3168;
    --paper: #070c1c; --surface: #0e1630; --sunk: #0a1126; --line: #1c274b;
    --ink: #eaeef8; --ink-2: #c3cbe2; --muted: #8e98b8; --gold-ink: #e6b63f; --turq: #46cdc4;
    --up: #4fd08f; --up-bg: #0f2a22; --down: #f47f73; --down-bg: #321618; --warn: #f1a550; --warn-bg: #2e2012; --cold: #6ea8e0;
    --band: rgba(230, 182, 63, .16);
  }
}
:root[data-theme="dark"] {
  --board: #15234f; --board-2: #1f3168;
  --paper: #070c1c; --surface: #0e1630; --sunk: #0a1126; --line: #1c274b;
  --ink: #eaeef8; --ink-2: #c3cbe2; --muted: #8e98b8; --gold-ink: #e6b63f; --turq: #46cdc4;
  --up: #4fd08f; --up-bg: #0f2a22; --down: #f47f73; --down-bg: #321618; --warn: #f1a550; --warn-bg: #2e2012; --cold: #6ea8e0;
  --band: rgba(230, 182, 63, .16);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.75 Estedad, Tahoma, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; border-radius: 6px; }
bdi { unicode-bidi: isolate; direction: ltr; }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--board); color: var(--on-board); padding: calc(10px + var(--safe-t)) 16px 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: -.2px; }
.brand svg { width: 26px; height: 26px; color: var(--gold); }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--on-board-dim); margin-inline-end: 4px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-board-dim); }
.status.open i { background: #5fe0a2; box-shadow: 0 0 0 4px rgba(95, 224, 162, .18); }
.status.off i { background: #ff8f84; }
.status b { font-weight: 500; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--on-board); }
.icon-btn:active { background: rgba(255, 255, 255, .12); }
.icon-btn svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tabs: bottom bar on phones ---------- */
.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--surface); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  color: var(--muted); font-size: 11.5px; font-weight: 500; position: relative; }
.tabs a[aria-current="page"] { color: var(--turq); font-weight: 700; }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--turq); }


/* ---------- the board ---------- */
.board { background: var(--board); color: var(--on-board); padding: 6px 20px 40px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board h1 { font-size: 14px; font-weight: 500; color: var(--on-board-dim); }
.delta { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.delta.up { color: #6fe3a8; } .delta.down { color: #ff9c92; }
.price { display: flex; align-items: baseline; margin-top: 2px; line-height: 1; color: var(--gold); font-weight: 900; }
.price .num { white-space: nowrap; }
.price .int { font-size: clamp(64px, 21vw, 84px); letter-spacing: -2px; }
.price .dec { font-size: clamp(30px, 9.5vw, 38px); font-weight: 800; }
.price .unit { font-size: 14px; font-weight: 500; color: var(--on-board-dim); margin-inline-start: 10px; }
.price.tick-up .int, .price.tick-up .dec { animation: tickUp 1s ease-out; }
.price.tick-down .int, .price.tick-down .dec { animation: tickDown 1s ease-out; }
@keyframes tickUp { 0%, 35% { color: #7df0b5; } }
@keyframes tickDown { 0%, 35% { color: #ffa197; } }
.exact { font-size: 13px; color: var(--on-board-dim); margin-top: 6px; }
.spark { height: 46px; margin: 12px -4px 4px; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.rates div { padding: 12px 0 0; min-width: 0; }
.rates div + div { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, .12); margin-inline-start: 0; }
.rates div:not(:last-child) { padding-inline-end: 10px; }
.rates dt { font-size: 12px; color: var(--on-board-dim); white-space: nowrap; }
.rates dd { font-size: 16px; font-weight: 700; white-space: nowrap; }
body.loading .price, body.loading .verdict h2 { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* ---------- sheets and blocks ---------- */
.sheet, .block, .acc { background: var(--surface); padding: 20px; }
.sheet { border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; }
.block, .acc { margin-top: 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h2 { font-size: 17px; font-weight: 800; line-height: 1.5; }
h3 { font-size: 14px; font-weight: 700; margin: 20px 0 6px; }
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.legal { color: var(--muted); font-size: 12.5px; text-align: center; padding: 20px 24px 4px; }

/* ---------- verdict ---------- */
.signal { display: flex; align-items: center; gap: 10px; }
.lamps { display: inline-flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: var(--sunk); }
.lamps i { width: 12px; height: 12px; border-radius: 50%; opacity: .22; }
.l-avoid { background: var(--down); } .l-hold { background: var(--warn); } .l-buy { background: var(--up); }
[data-call="avoid"] .l-avoid, [data-call="hold"] .l-hold, [data-call="buy"] .l-buy { opacity: 1; }
[data-call="avoid"] .l-avoid { box-shadow: 0 0 0 3px var(--down-bg); }
[data-call="hold"] .l-hold { box-shadow: 0 0 0 3px var(--warn-bg); }
[data-call="buy"] .l-buy { box-shadow: 0 0 0 3px var(--up-bg); }
.call-tag { font-size: 13px; font-weight: 700; }
[data-call="buy"] .call-tag { color: var(--up); } [data-call="hold"] .call-tag { color: var(--warn); } [data-call="avoid"] .call-tag { color: var(--down); }
.verdict h2 { font-size: clamp(22px, 6.4vw, 28px); font-weight: 900; line-height: 1.4; margin-top: 10px; letter-spacing: -.3px; }
.reason { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.intent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 18px; padding: 4px; border-radius: 14px; background: var(--sunk); }
.intent button { min-height: 44px; padding: 6px 4px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.intent button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(19, 28, 54, .14); }
.answer { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border-inline-start: 4px solid var(--turq); background: var(--sunk); font-size: 16px; font-weight: 600; line-height: 1.7; min-height: 52px; }
.confidence { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); text-decoration: none; min-height: 44px; }
.confidence::after { content: ""; width: 8px; height: 8px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex: none; margin-inline-end: 6px; }
.confidence b { font-weight: 700; }
.confidence .lv-high { color: var(--up); } .confidence .lv-medium { color: var(--warn); } .confidence .lv-low { color: var(--down); }

/* ---------- market state ---------- */
.temp { font-size: 15px; font-weight: 800; padding: 2px 12px; border-radius: 999px; background: var(--sunk); }
.t-hot, .t-very-hot { color: var(--down); background: var(--down-bg); }
.t-rising { color: var(--warn); background: var(--warn-bg); }
.t-calm { color: var(--up); background: var(--up-bg); }
.t-falling, .t-dropping, .t-crash { color: var(--cold); background: color-mix(in srgb, var(--cold) 14%, transparent); }
.gauge { margin-top: 18px; }
.gauge-track { position: relative; height: 10px; border-radius: 5px;
  background: linear-gradient(to left, var(--cold), color-mix(in srgb, var(--cold) 25%, var(--sunk)) 30%, var(--sunk) 50%, color-mix(in srgb, var(--down) 30%, var(--sunk)) 70%, var(--down)); }
.marker { position: absolute; top: 50%; right: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 5px solid var(--ink);
  transform: translate(50%, -50%); transition: right .6s cubic-bezier(.2, .8, .2, 1); }
.gauge-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rows { margin-top: 10px; }
.rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--ink-2); }
.rows dd { font-weight: 700; white-space: nowrap; }

/* ---------- coins ---------- */
.coins { margin-top: 8px; }
.coin { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coin:last-child { border-bottom: 0; padding-bottom: 0; }
.coin .name { font-weight: 700; font-size: 16px; }
.coin .px { font-weight: 800; font-size: 17px; }
.coin .px small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.coin .bub { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--turq); border: 1px solid color-mix(in srgb, var(--turq) 40%, transparent); border-radius: 999px; padding: 0 8px; margin-inline-start: 6px; vertical-align: 2px; }

/* ---------- outlook ---------- */
.odds { margin-top: 6px; }
.odds-num { display: flex; align-items: center; gap: 14px; }
.odds-num b { font-size: 60px; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; }
.odds-num span { color: var(--ink-2); font-size: 14.5px; max-width: 14em; }
.odds-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 12px; background: var(--down-bg); }
.odds-bar .up { background: var(--up); border-radius: 0 6px 6px 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.odds-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ranges { margin-top: 16px; display: grid; gap: 16px; }
.range-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.range-row .when { font-weight: 700; font-size: 14px; }
.range-track { position: relative; height: 26px; border-radius: 8px; background: var(--sunk); direction: ltr; }
.range-bar { position: absolute; top: 7px; bottom: 7px; border-radius: 6px; background: color-mix(in srgb, var(--gold-ink) 30%, transparent); }
.range-bar.likely { top: 3px; bottom: 3px; background: var(--gold-ink); }
.range-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 1px; }
.range-vals { grid-column: 2; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.range-vals b { font-weight: 700; color: var(--ink); }
.near { margin-top: 10px; }
.near li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.near li:last-child { border-bottom: 0; padding-bottom: 0; }
.near b { font-weight: 700; }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--sunk); }
.seg button { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(19, 28, 54, .14); }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.seg.wide button { min-height: 48px; line-height: 1.4; padding: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.k-price { background: var(--gold-ink); } .k-ref { background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 8px); }
.chart { position: relative; height: 230px; margin-top: 8px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; touch-action: pan-y; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; padding: 4px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 2; }
.chart .empty { color: var(--muted); font-size: 14px; display: grid; place-items: center; height: 100%; text-align: center; padding: 0 20px; }

/* ---------- calculator ---------- */
.calc-body { margin-top: 18px; }
.calc-body label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 6px; }
.field { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.field:focus-within { border-color: var(--turq); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turq) 18%, transparent); }
.field input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: none; font-size: 22px; font-weight: 800; }
.field input::placeholder { color: var(--muted); font-weight: 400; font-size: 17px; opacity: .7; }
.field span { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.chips button:active { background: var(--sunk); }
.result { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--board); color: var(--on-board); min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.result span { color: var(--on-board-dim); font-size: 14px; }
.result b { font-size: 30px; font-weight: 900; color: var(--gold); line-height: 1.3; }
.result small { color: var(--on-board-dim); font-size: 13.5px; }

/* ---------- record ---------- */
.scorecard { margin-top: 10px; }
.scorecard div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.scorecard div:last-child { border-bottom: 0; }
.scorecard dt { color: var(--ink-2); font-size: 14px; }
.scorecard dd { font-size: 24px; font-weight: 900; }
.history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.history .date { font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill { font-size: 12.5px; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.pill.buy { color: var(--up); background: var(--up-bg); } .pill.avoid { color: var(--down); background: var(--down-bg); } .pill.hold { color: var(--warn); background: var(--warn-bg); }
.history .what { grid-column: 1; font-size: 13px; color: var(--muted); }
.res { grid-row: 1 / span 2; grid-column: 2; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 8px; white-space: nowrap; }
.res.ok { color: var(--up); background: var(--up-bg); } .res.no { color: var(--down); background: var(--down-bg); } .res.wait, .res.none { color: var(--muted); background: var(--sunk); font-weight: 500; }
.learn { font-size: 14px; color: var(--ink-2); }
.learn b { color: var(--ink); }
.learn small { color: var(--muted); display: block; margin-top: 6px; }

.acc { padding: 0; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; margin-inline-end: 4px; }
.acc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc > :not(summary) { margin-inline: 20px; }
.acc > :last-child { margin-bottom: 20px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.steps li::before { content: counter(s, persian); width: 26px; height: 26px; border-radius: 50%; background: var(--sunk); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.steps b, .tips b { color: var(--ink); }
.tips { display: grid; gap: 12px; }
.tips li { font-size: 14.5px; color: var(--ink-2); padding-inline-start: 14px; border-inline-start: 3px solid var(--line); }
.quotes { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.quotes div { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.quotes div:last-child { border-bottom: 0; }
.quotes span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quotes span:last-child { text-align: end; }
.quotes b { color: var(--ink); font-weight: 700; }
.quotes .out { opacity: .55; text-decoration: line-through; }
.scroll { overflow-x: auto; margin-inline: -20px !important; padding-inline: 20px; }
.scen { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 460px; font-size: 13px; }
.scen th { color: var(--muted); font-weight: 500; padding: 4px; }
.scen td { text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--sunk); }
.scen td.base { outline: 2px solid var(--gold-ink); font-weight: 800; }
.kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.downloads a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; text-decoration: none; color: var(--turq); font-weight: 600; }

.toast { position: fixed; inset-inline: 16px; bottom: calc(var(--tabbar) + var(--safe-b) + 14px); z-index: 40; margin: 0 auto; max-width: 420px; padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--surface); font-size: 14px; text-align: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }

/* ---------- wide screens: tabs move into the bar, content sits in two columns ---------- */
@media (min-width: 900px) {
  body { font-size: 15.5px; }
  .bar { padding-inline: max(24px, calc((100vw - 1120px) / 2)); }
  .tabs { position: static; display: flex; gap: 4px; height: auto; padding: 0; background: none; border: 0; margin-inline: auto; }
  .tabs a { flex-direction: row; gap: 8px; padding: 8px 16px; border-radius: 12px; font-size: 14.5px; color: var(--on-board-dim); }
  .tabs a:hover { color: var(--on-board); }
  .tabs a[aria-current="page"] { color: var(--on-board); background: rgba(255, 255, 255, .12); }
  .tabs a[aria-current="page"]::before { display: none; }
  main { max-width: 1120px; margin: 0 auto; padding: 24px 24px 48px; }
  .view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .sheet, .block, .acc { margin-top: 0; border-radius: 22px; border: 1px solid var(--line); }
  .sheet, .block { padding: 26px; }
  .board { border-radius: 22px; padding: 26px 28px 28px; }
  .legal, .acc, #v-calc .block { grid-column: 1 / -1; }
  #v-calc .block { max-width: 560px; margin-inline: auto; width: 100%; }
  .price .int { font-size: 96px; } .price .dec { font-size: 44px; }
  .chart { height: 280px; }
  .toast { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- server-rendered pages: headings, readable content, tables, footer ---------- */
.page-head { background: var(--surface); padding: 20px 20px 4px; }
.page-head .page-title { font-size: clamp(22px, 6vw, 28px); font-weight: 900; line-height: 1.4; letter-spacing: -.3px; }
.page-head .sub { margin-top: 6px; }
.board-title { font-size: 15px; font-weight: 700; color: var(--on-board); }
.board-label { font-size: 13px; color: var(--on-board-dim); margin-top: 2px; }
.board.slim { padding-bottom: 26px; }
.rates dt a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.more { font-size: 13.5px; font-weight: 600; color: var(--turq); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.quotes.big { font-size: 14.5px; margin-top: 8px; }
.quotes.big b { font-size: 16px; }

.seo h2 { margin-bottom: 8px; }
.seo h3 { margin: 18px 0 4px; font-size: 15px; }
.seo p { color: var(--ink-2); font-size: 15px; line-height: 1.95; margin-top: 8px; }
.seo p:first-of-type { margin-top: 0; }
.seo a, .article a { color: var(--turq); font-weight: 600; text-decoration: none; }
.seo a:hover, .article a:hover { text-decoration: underline; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 6px; }
.ptable th, .ptable td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.ptable thead th { font-size: 12.5px; color: var(--muted); font-weight: 500; padding-top: 0; }
.ptable tbody th { font-weight: 500; color: var(--ink-2); padding-inline-end: 12px; }
.ptable td { font-weight: 700; white-space: nowrap; padding-inline-start: 12px; }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.links { display: grid; gap: 0; margin-top: 4px; }
.links li { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.links li:last-child { border-bottom: 0; }
.links li span { font-size: 13px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; background: var(--surface); margin-top: 8px; font-size: 14px; }
.article .block:first-of-type { margin-top: 8px; }

.site-foot { padding: 24px 20px calc(var(--tabbar) + var(--safe-b) + 24px); color: var(--muted); font-size: 13px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.site-foot a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
main { padding-bottom: 0; }

@media (min-width: 900px) {
  .page-head, .seo, .article, .pager { grid-column: 1 / -1; }
  .page-head { background: none; padding: 4px 4px 0; }
  .seo { padding: 26px 30px; }
  .seo p { max-width: 72ch; }
  .article { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; width: 100%; }
  .article .page-head { padding: 0; }
  .pager { border-radius: 22px; border: 1px solid var(--line); margin-top: 0; }
  .site-foot { max-width: 1120px; margin: 0 auto; padding: 8px 24px 40px; }
}

/* Telegram channel invitation */
.tg-cta { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  background: #229ed9; color: #fff; min-height: 56px; }
.tg-cta svg { width: 28px; height: 28px; flex: none; }
.tg-cta span { display: grid; gap: 0; line-height: 1.5; }
.tg-cta b { font-size: 15px; font-weight: 800; }
.tg-cta small { font-size: 12.5px; opacity: .9; }
.tg-cta:active { filter: brightness(.95); }
.tg-cta.foot { margin: 0 0 16px; max-width: 360px; }
.bar-actions a.icon-btn svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }

.range-vals.wide { color: var(--muted); font-size: 12px; margin-top: -2px; }

/* short forecast inside the verdict card */
.mini-fc { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.mini-head { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mini-head small { font-weight: 400; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.mini-grid div { display: grid; gap: 2px; min-width: 0; }
.mini-grid span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.mini-grid b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.mini-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--turq); }
