@font-face { font-family: IRANSansXV; src: url("fonts/IRANSansXV.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f5f7fa; --panel: #ffffff; --ink: #13202f; --ink2: #3b4757; --muted: #6b7685; --line: #e2e7ee; --line2: #edf1f5;
  --hover: #f0f4f9; --accent: #0b6fd6; --accent2: #0a68c8; --accent-soft: #e6f0fc; --on-accent: #fff; --hero: #0b7ae6;
  --up: #12813d; --up-soft: #e5f4ea; --down: #c62a2a; --down-soft: #fbe9e9; --flat: #6b7685; --flat-soft: #eef1f5;
  --warm: #b35c00; --warm-soft: #fdf0e1; --shadow: 0 1px 2px rgba(15,30,50,.05), 0 8px 28px rgba(15,30,50,.07);
  --chart2: #9aa6b4; --grid: #edf1f5; --skel: #edf1f5; --skel2: #f6f8fb;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1219; --panel: #141b24; --ink: #e8eef5; --ink2: #c1cad6; --muted: #8591a2; --line: #222c39; --line2: #1a222d;
    --hover: #1a2330; --accent: #3d9bff; --accent2: #4aa3ff; --accent-soft: #12294a; --on-accent: #04121f; --hero: #0b6ed0;
    --up: #3ccf78; --up-soft: #12301f; --down: #ff6b6b; --down-soft: #3a1717; --flat: #8591a2; --flat-soft: #1d2531;
    --warm: #f5a24a; --warm-soft: #33230f; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --chart2: #5a6676; --grid: #1d2633; --skel: #1a222d; --skel2: #212a36;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0d1219; --panel: #141b24; --ink: #e8eef5; --ink2: #c1cad6; --muted: #8591a2; --line: #222c39; --line2: #1a222d;
    --hover: #1a2330; --accent: #3d9bff; --accent2: #4aa3ff; --accent-soft: #12294a; --on-accent: #04121f; --hero: #0b6ed0;
    --up: #3ccf78; --up-soft: #12301f; --down: #ff6b6b; --down-soft: #3a1717; --flat: #8591a2; --flat-soft: #1d2531;
    --warm: #f5a24a; --warm-soft: #33230f; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --chart2: #5a6676; --grid: #1d2633; --skel: #1a222d; --skel2: #212a36;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 IRANSansXV, Tahoma, sans-serif; font-variation-settings: "wght" 400; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 8px; }
.num { font-feature-settings: "ss01"; font-variant-numeric: tabular-nums; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.line { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; max-width: 1080px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 15px; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.brand span em { font-style: normal; color: var(--accent2); }
.top .mini { flex: 1; max-width: 560px; }
.top .asof { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tt { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.tt:hover { color: var(--ink); background: var(--hover); }
.tt svg { width: 18px; height: 18px; }
.tt .sun { display: none; }
:root[data-theme="dark"] .tt .sun { display: block; } :root[data-theme="dark"] .tt .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt .sun { display: block; } :root:not([data-theme="light"]) .tt .moon { display: none; } }
body.home .top .mini { visibility: hidden; }

/* search box */
.search { position: relative; }
.search form { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 6px; transition: box-shadow .2s, border-color .2s; }
.search form:focus-within { border-color: transparent; box-shadow: 0 0 0 2px var(--accent2), var(--shadow); }
.search.open form { border-radius: 24px 24px 0 0; box-shadow: var(--shadow); border-color: transparent; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 10px; height: 44px; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search .ico { width: 20px; height: 20px; flex: none; color: var(--muted); margin-inline-start: 8px; }
.search .clear { border: 0; background: none; cursor: pointer; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: none; place-items: center; }
.search .clear:hover { background: var(--hover); }
.search.has .clear { display: grid; }
.search .go { border: 0; background: var(--accent); color: var(--on-accent); border-radius: 999px; height: 34px; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 14px; }
.search .go:hover { filter: brightness(1.1); }
.big form { padding: 0 10px 0 8px; }
.big input { height: 60px; font-size: 18px; }
.big .go { height: 44px; padding: 0 22px; font-size: 15px; }
.sugg { position: absolute; inset-inline: 0; top: 100%; background: var(--panel); border-radius: 0 0 24px 24px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 4px 0 10px; z-index: 30; display: none; border-top: 1px solid var(--line2); max-height: 70vh; overflow-y: auto; }
.search.open .sugg { display: block; }
.sugg li { display: flex; align-items: center; gap: 12px; padding: 9px 20px; cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--hover); }
.sugg .k { width: 30px; height: 30px; border-radius: 50%; background: var(--line2); display: grid; place-items: center; flex: none; color: var(--muted); }
.sugg .k svg { width: 16px; height: 16px; }
.sugg .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg .t b { font-weight: 700; }
.sugg .h { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sugg .lead .k { background: var(--accent-soft); color: var(--accent2); }

/* landing */
.hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 6vh 0 10vh; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.3; margin: 0 0 6px; font-weight: 800; letter-spacing: -.5px; text-align: center; }
.hero h1 em { font-style: normal; color: var(--accent2); }
.hero p.lede { text-align: center; color: var(--muted); margin: 0 0 28px; }
.today { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-decoration: none; font-size: 13.5px; transition: background .15s, border-color .15s, transform .15s; max-width: 100%; }
.chip:hover { background: var(--hover); border-color: color-mix(in srgb, var(--accent2) 35%, var(--line)); }
.chip:active { transform: scale(.98); }
.chip .lab { color: var(--muted); white-space: nowrap; }
.chip b { font-weight: 700; white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--flat); }
.today .chip { padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 0; border-radius: 16px; min-width: 200px; }
.today .chip .lab { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.today .chip b { font-size: 15px; white-space: normal; }
.today .chip { max-width: 100%; }
.hero > * { min-width: 0; max-width: 100%; }
.today .chip small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.try { text-align: center; margin-top: 26px; color: var(--muted); font-size: 13px; }
.try .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.try .chip { background: transparent; color: var(--ink2); }
.scrollhint { text-align: center; margin-top: 7vh; }
.scrollhint a { color: var(--muted); font-size: 13px; text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.scrollhint a:hover { color: var(--ink); }

section.blk { margin: 0 0 56px; }
.blk h2 { font-size: 18px; margin: 0 0 4px; font-weight: 750; }
.blk .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.daystats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.daystats div { background: var(--panel); padding: 14px 16px; }
.daystats small { display: block; color: var(--muted); font-size: 12px; }
.daystats b { font-size: 20px; font-weight: 750; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line2); }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 92px 118px 74px; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; cursor: pointer; transition: background .12s; }
.row:hover { background: var(--hover); }
.row .rk { color: var(--muted); font-size: 13px; text-align: center; }
.row .nm { min-width: 0; }
.row .nm b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm a { text-decoration: none; } /* the row's real link; the whole row is clickable too */
.row .nm small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .pr { text-align: left; }
.row .pr b { display: block; font-weight: 700; }
.row .pr small { color: var(--muted); font-size: 11.5px; display: block; }
.row .ch { text-align: left; }
.row .sp { width: 92px; height: 30px; }
.row.stale { opacity: .62; }
.row.types { grid-template-columns: minmax(0, 1fr) 118px 88px 96px; }
.help { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.help summary { cursor: pointer; color: var(--accent2); width: fit-content; }
.help ul { margin: 8px 0 0; padding-inline-start: 18px; line-height: 1.9; }
.help b { color: var(--ink2); font-weight: 600; }
.row.head { cursor: default; padding-block: 8px; color: var(--muted); font-size: 12px; background: var(--line2); }
.row.head:hover { background: var(--line2); }
.row.head span { text-align: left; } .row.head span:first-child { text-align: start; }
.row.alt { grid-template-columns: minmax(0, 1fr) 118px 96px auto; }
.row .buy { justify-self: end; }
.tag { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 6px; background: var(--flat-soft); color: var(--muted); vertical-align: 1px; margin-inline-start: 4px; font-weight: 500; }
.tag.best { background: var(--up-soft); color: var(--up); }
.more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line2); background: none; padding: 12px; cursor: pointer; color: var(--accent2); font-weight: 600; }
.more:hover { background: var(--hover); }

.pc { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; font-size: 13.5px; white-space: nowrap; direction: rtl; }
.pc.up { color: var(--up); } .pc.down { color: var(--down); } .pc.flat { color: var(--flat); }
.pc.pill { padding: 2px 9px; border-radius: 8px; }
.pc.pill.up { background: var(--up-soft); } .pc.pill.down { background: var(--down-soft); } .pc.pill.flat { background: var(--flat-soft); }
.pc svg { width: 9px; height: 9px; }

/* result page */
.res { padding: 18px 0 72px; }
.interp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent2); border-radius: 999px; padding: 2px 4px 2px 10px; font-weight: 600; font-size: 13px; }
.pill button { border: 0; background: none; color: inherit; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; padding: 0; opacity: .7; }
.pill button:hover { opacity: 1; background: color-mix(in srgb, var(--accent2) 18%, transparent); }
.pill.unk { background: var(--warm-soft); color: var(--warm); }
.answer { background: var(--hero); color: #fff; border-radius: 22px; padding: 22px 24px 20px; box-shadow: var(--shadow); margin-bottom: 18px; position: relative; overflow: hidden;
  --ink: #fff; --ink2: rgba(255,255,255,.92); --muted: rgba(255,255,255,.74); --accent2: #fff; --line: rgba(255,255,255,.28); }
.answer h1 .hl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.55); }
.answer .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.answer .btn:hover { background: rgba(255,255,255,.12); }
.answer .btn.pri { background: #fff; color: #0a5fb8; border-color: transparent; }
.answer .btn.pri:hover { filter: none; background: #eaf3fe; }
.answer :focus-visible { outline-color: #fff; }
.answer .q { color: var(--muted); font-size: 13px; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.answer h1 { font-size: clamp(19px, 3.6vw, 25px); line-height: 1.6; margin: 0 0 10px; font-weight: 750; }
.answer h1 .hl { color: var(--accent2); }
.answer .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink2); font-size: 13.5px; margin-bottom: 16px; }
.answer .facts span { display: inline-flex; gap: 6px; align-items: center; }
.answer .facts small { color: var(--muted); font-size: 13px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { background: var(--hover); }
.btn.pri { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.pri:hover { filter: brightness(1.12); background: var(--accent); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 12px; margin-bottom: 18px; }
.card h2 { font-size: 15px; margin: 0; font-weight: 700; }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.card .legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-inline-end: 5px; background: var(--accent2); }
.card .legend i.b { background: var(--chart2); }
.ranges { display: inline-flex; gap: 2px; background: var(--line2); border-radius: 10px; padding: 3px; }
.ranges button { border: 0; background: none; border-radius: 8px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--muted); font-weight: 600; }
.ranges button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ranges button:disabled { opacity: .35; cursor: default; }
.chart { position: relative; height: 260px; touch-action: pan-y; }
.chart svg { direction: ltr; display: block; width: 100%; height: 100%; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .l1 { fill: none; stroke: var(--accent2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .l2 { fill: none; stroke: var(--chart2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .ar { fill: url(#gArea); }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .ref { stroke: var(--warm); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 7px 11px; border-radius: 10px; font-size: 12px; line-height: 1.6; white-space: nowrap; opacity: 0; transition: opacity .12s; transform: translateX(-50%); z-index: 3; }
.tip.on { opacity: 1; }
.tip b { font-weight: 700; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; background: var(--accent2); vertical-align: 0; }
.tip i.b { background: var(--chart2); }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

.sect-t { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 10px; gap: 10px; }
.sect-t h2 { font-size: 16px; margin: 0; font-weight: 750; }
.sect-t small { color: var(--muted); font-size: 12.5px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li button { display: grid; grid-template-columns: 130px minmax(0, 1fr) 96px; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 4px 6px; border-radius: 8px; cursor: pointer; text-align: start; font-size: 13.5px; }
.bars li button:hover { background: var(--hover); }
.bars .bar { height: 10px; border-radius: 5px; background: var(--accent-soft); position: relative; overflow: hidden; }
.bars .bar span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--accent2); border-radius: 5px; opacity: .8; }
.bars .v { text-align: left; font-weight: 600; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related .chip svg { width: 14px; height: 14px; color: var(--muted); }

/* symbol page */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; margin: 6px 0 12px; border-radius: 8px; padding: 2px 4px; }
.back:hover { color: var(--ink); }
.symhd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.symhd h1 { font-size: clamp(22px, 4vw, 30px); margin: 0; font-weight: 800; line-height: 1.4; }
.symhd .meta { color: var(--muted); font-size: 13.5px; }
.symhd .meta code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--line2); padding: 1px 6px; border-radius: 6px; direction: ltr; display: inline-block; }
.price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 4px 0 6px; }
.price-big b { font-size: clamp(30px, 6vw, 42px); font-weight: 800; letter-spacing: -.5px; }
.price-big small { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line2); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.stats div { background: var(--panel); padding: 12px 14px; }
.stats small { display: block; color: var(--muted); font-size: 12px; }
.stats b { font-weight: 700; font-size: 15.5px; }
.warn { background: var(--warm-soft); color: var(--warm); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--skel) 25%, var(--skel2) 50%, var(--skel) 75%); background-size: 200% 100%; animation: sh 1.2s infinite linear; border-radius: 10px; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fade { animation: fd .26s ease-out both; }
@keyframes fd { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade, .sk { animation: none; } * { transition: none !important; } }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; padding: 22px 0 34px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 10px; height: 58px; }
  .brand span, .top .asof { display: none; }
  .row.head { display: none; }
  body.home .brand span { display: inline; }
  .search input { height: 40px; }
  .big input { height: 54px; font-size: 16px; }
  .big .go { display: none; }
  .search .go { padding: 0 12px; }
  .top .search .go { display: none; }
  .today .chip { min-width: 0; flex: 1 1 100%; }
  .row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .row .sp { display: none; }
  .row .ch { grid-column: 3; grid-row: 2; }
  .row .pr { grid-column: 3; grid-row: 1; }
  .row .buy { display: none; }
  .row .ch small, .row .pr small { display: none !important; }
  .row .pr b::after { content: " تومان"; font-weight: 400; font-size: 11.5px; color: var(--muted); }
  .row .nm { grid-row: 1 / span 2; grid-column: 2; }
  .row .rk { grid-row: 1 / span 2; }
  .row.types { grid-template-columns: minmax(0, 1fr) auto; }
  .row.types .ch { grid-column: 2; grid-row: 2; }
  .row.types .pr { grid-column: 2; grid-row: 1; }
  .row.types .nm { grid-column: 1; }
  .row.types .x30 { display: none; }
  .row.alt { grid-template-columns: minmax(0, 1fr) auto; }
  .row.alt .nm { grid-column: 1; grid-row: 1 / span 2; }
  .row.alt .pr { grid-column: 2; grid-row: 1; }
  .row.alt .ch { grid-column: 2; grid-row: 2; }
  .daystats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .answer { padding: 18px 18px 16px; border-radius: 18px; }
  .bars li button { grid-template-columns: 96px minmax(0, 1fr) 84px; }
  .chart { height: 220px; }
  .card { padding: 14px 12px 8px; }
  .acts .btn { flex: 1; }
}

/* server-rendered pages (seo.go): symbol index, symbol page before app.js takes over */
.crumbs { margin: 2px 0 16px; font-size: 13px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 8px; border-inline-start: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); opacity: .55; flex: none; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; color: var(--ink2); text-decoration: none; white-space: nowrap; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, color .15s; }
.crumbs a:hover { color: var(--accent2); border-color: color-mix(in srgb, var(--accent2) 40%, var(--line)); }
.crumbs li:first-child a { padding: 0 8px; color: var(--accent2); }
.crumbs [aria-current] span { color: var(--ink); font-weight: 600; padding-inline: 4px; }
.crumbs .code { direction: ltr; font: 600 12.5px/1 ui-monospace, Menlo, monospace; letter-spacing: 0; }
.pkgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: 13px; color: var(--muted); }
.pkgs .pk { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); text-decoration: none; font-weight: 600; }
.pkgs .pk small { color: var(--muted); font-weight: 500; }
.pkgs a.pk:hover { border-color: var(--accent2); color: var(--accent2); }
.pkgs .pk.on { background: var(--accent-soft); border-color: transparent; color: var(--accent2); }
.pkgs .why { flex-basis: 100%; font-size: 12px; }
.seo .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tbl tr.stale td { color: var(--muted); }
.tbl td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tbl td a:hover { color: var(--accent2); }
.seo .unit { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.stats small + b + small { display: block; color: var(--muted); font-size: 11.5px; }
.seo > h1 { font-size: clamp(20px, 3.6vw, 26px); margin: 0 0 6px; }
.seo > p { color: var(--ink2); margin: 0 0 18px; }
.links { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 28px; }
.links li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.links a { color: var(--ink); font-weight: 600; text-decoration: none; flex: 1; min-width: 0; }
.links a:hover { color: var(--accent2); }
.links small { color: var(--muted); font-size: 12px; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: start; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.answer .note { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }

/* line icons (/icons.svg): inherit the text colour, one size and stroke everywhere */
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
h2 > .i, .sect-t h2 > .i { width: 18px; height: 18px; margin-inline-end: 8px; color: var(--accent2); vertical-align: -3px; }
.answer .facts > span > .i { opacity: .85; margin-inline-end: 2px; }
.stats small .i, .daystats small .i { width: 14px; height: 14px; margin-inline-end: 5px; vertical-align: -2px; color: var(--accent2); }
.chip .lab .i { width: 14px; height: 14px; margin-inline-end: 5px; vertical-align: -2px; color: var(--accent2); }
.chip .lab .dot { margin-inline-start: 6px; }
.pki { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent2); margin-inline-end: 8px; vertical-align: middle; }
.pki .i { width: 15px; height: 15px; vertical-align: 0; }
.row small > .i:first-child, .symhd .meta .i { width: 14px; height: 14px; margin-inline-end: 4px; vertical-align: -2px; color: var(--muted); }
.symhd .meta .i { color: var(--accent2); }
.pkgs .pk .i { width: 15px; height: 15px; }
.crumbs .i { width: 15px; height: 15px; margin-inline-end: 5px; color: var(--accent2); }
.crumbs li:first-child .i { margin: 0; }
.crumbs [aria-current] .i { color: var(--muted); }
.tbl td .i { width: 15px; height: 15px; margin-inline-end: 6px; color: var(--accent2); }
/* market heat on the blue answer card: a cold → hot scale in white, the current step filled */
.heatscale { display: flex; gap: 4px; margin: -4px 0 16px; max-width: 360px; }
.heatscale span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; padding: 4px 0; border-radius: 8px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.heatscale span.on { background: #fff; color: #0a5fb8; font-weight: 800; }

footer .foot { display: flex; gap: 14px; flex-wrap: wrap; }
footer .foot a { color: inherit; text-decoration: none; }
footer .foot a:hover { color: var(--accent2); }

/* home table: row hover and its floating card (rowCards in app.js) */
.row.types:not(.head) { position: relative; }
.row.types:not(.head)::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--accent2); transform: scaleY(0); transition: transform .18s ease-out; }
.row.types:not(.head):hover::before, .row.types:not(.head):focus-visible::before { transform: scaleY(1); }
.row.types .pki { transition: transform .18s ease-out, background .18s; }
.row.types:not(.head):hover .pki { transform: scale(1.12); }
.row.types .pr b { transition: color .18s; }
.row.types:not(.head):hover .pr b { color: var(--accent2); }
.rcard { position: fixed; left: 0; top: 0; z-index: 50; width: 348px; max-width: calc(100vw - 16px); box-sizing: border-box; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 24px 60px rgba(0,0,0,.28); padding: 16px; font-size: 13px; opacity: 0; visibility: hidden; transition: opacity .16s, transform .14s ease-out, visibility 0s .16s; }
.rcard.on { opacity: 1; visibility: visible; transition: opacity .16s, transform .14s ease-out; }
.rcard .in { animation: rc .2s ease-out both; }
@keyframes rc { from { opacity: 0; transform: translateY(5px) scale(.985); } to { opacity: 1; transform: none; } }
.rc-h { display: flex; align-items: center; margin-bottom: 10px; }
.rc-h b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; }
.rc-h small, .rc-s small, .rc-f { color: var(--muted); font-size: 11.5px; }
.rc-p b { font-size: 26px; font-weight: 800; }
.rc-p > span { color: var(--ink2); }
.rc-p small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rc-s { margin: 12px 0 2px; }
.rc-s .sp { display: block; width: 100%; height: 48px; }
.rc-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 10px 0 6px; }
.rc-g div { background: var(--panel); padding: 8px 10px; }
.rc-g small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.rc-g b { font-weight: 700; }
.rc-l { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line2); }
.rc-l > span:first-child { color: var(--muted); font-size: 12px; }
.rc-l .i { width: 14px; height: 14px; margin-inline-end: 5px; vertical-align: -2px; color: var(--accent2); }
.rc-l small { color: var(--muted); }
.rc-l .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.rc-f { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line2); }
@media (prefers-reduced-motion: reduce) { .rcard .in { animation: none; } }

/* ---------- /game: «انباردار» ---------- */
.game { max-width: 760px; }
.g-hd { text-align: center; margin-bottom: 14px; }
.g-hd h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 900; margin: 0 0 4px; display: inline-flex; align-items: center; gap: 8px; }
.g-hd h1 .i { width: 26px; height: 26px; color: var(--accent2); }
.g-hd p { color: var(--muted); margin: 0; font-size: 13.5px; }
.g-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink2); margin-bottom: 10px; white-space: nowrap; }
.g-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.g-bar span { display: block; height: 100%; border-radius: 99px; background: var(--accent2); transition: width .35s ease; }
.g-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 8px; }
.g-price small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.g-price b { font-size: clamp(30px, 7vw, 44px); font-weight: 900; line-height: 1.3; }
.g-price .pc { margin-inline-start: auto; font-size: 13.5px; }
.g-chart svg { display: block; width: 100%; height: auto; }
.g-chart .ln { fill: none; stroke: var(--accent2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.g-chart .past { fill: var(--line2); opacity: .7; }
.g-chart .st { stroke: var(--line); stroke-dasharray: 4 4; }
.g-chart .ax { fill: var(--muted); font-size: 11px; }
.g-chart circle.b { fill: var(--up); stroke: var(--panel); stroke-width: 2; }
.g-chart circle.s { fill: var(--down); stroke: var(--panel); stroke-width: 2; }
.g-chart circle.now { fill: var(--panel); stroke: var(--accent2); stroke-width: 2.5; animation: gpulse 1.4s ease-in-out infinite; }
@keyframes gpulse { 50% { r: 6.5px; } }
.g-leg { display: flex; gap: 16px; font-size: 12px; color: var(--muted); padding-top: 6px; }
.g-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 5px; }
.g-leg i.b { background: var(--up); } .g-leg i.s { background: var(--down); }
.g-stats.fb div:first-child b { animation: gdn .5s; } .g-stats.fb div:nth-child(2) b { animation: gup .5s; }
.g-stats.fs div:first-child b { animation: gup .5s; } .g-stats.fs div:nth-child(2) b { animation: gdn .5s; }
@keyframes gup { 0% { color: var(--up); transform: translateY(4px); } }
@keyframes gdn { 0% { color: var(--down); transform: translateY(-4px); } }
.g-stats b { display: inline-block; }
.g-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-acts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-acts .btn { height: auto; min-height: 64px; padding: 10px 8px; flex-direction: column; gap: 2px; cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s, background .15s, border-color .15s; }
.g-acts .btn b { font-size: 17px; font-weight: 800; }
.g-acts .btn small { font-size: 11.5px; color: var(--muted); text-align: center; }
.g-acts .btn:active:not(:disabled) { transform: scale(.96); }
.g-acts .btn:disabled { opacity: .45; cursor: not-allowed; }
.g-acts .g-buy { border-color: color-mix(in srgb, var(--up) 45%, var(--line)); background: var(--up-soft); } .g-acts .g-buy b { color: var(--up); }
.g-acts .g-sell { border-color: color-mix(in srgb, var(--down) 45%, var(--line)); background: var(--down-soft); } .g-acts .g-sell b { color: var(--down); }
.g-acts .btn.pri, .g-acts .btn.pri small { color: var(--on-accent); }
.g-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.g-res { text-align: center; animation: rc .35s ease-out both; }
.g-res > small { color: var(--muted); font-size: 12.5px; }
.g-res h2 { font-size: clamp(30px, 7vw, 46px); font-weight: 900; margin: 0 0 4px; color: var(--accent2); }
.g-res > p { color: var(--ink2); margin: 0 0 14px; }
.g-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.g-vs div { background: var(--panel); padding: 10px; }
.g-vs small { display: block; color: var(--muted); font-size: 12px; }
.g-vs b { font-size: 18px; }
.g-res .g-leg { justify-content: center; }
.g-res .g-rev { font-size: 13.5px; margin: 12px 0 6px; }
.g-res .g-rev a { color: var(--accent2); font-weight: 700; }
.g-acts .btn { white-space: normal; }
.stats.g-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .g-acts .btn small { font-size: 10.5px; } .g-stats div { padding: 10px 8px; } .g-stats b { font-size: 13px; } .g-stats small { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .g-chart circle.now, .g-res, .g-stats b { animation: none !important; } }
