/* Live prices page: the candle chart and the board of products. */
:root{color-scheme:dark;--bg:#141413;--panel:#1E1E1Bd9;--card:#1E1E1Bd9;--raised:#292923;--line:#36362F;--text:#F5F1E8;--muted:#B5B1A7;--gold:#C8AD76;--up:#39B88A;--down:#E16D73;--ink:#141413}
.updated{margin-bottom:14px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#ffffff08;text-align:center;font-size:14px}.updated b{font-weight:400;direction:ltr;unicode-bidi:isolate}
.chart{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 1px 2px #0003}.chart-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.chart-top>div{display:flex;flex-wrap:wrap;align-items:baseline}.chart-top small{display:block;width:100%;color:var(--muted);font-size:13px}.chart-price{font-size:30px;font-weight:400}.chart-change{margin-right:10px;font-size:13.5px;white-space:nowrap}.chart-gram{margin-right:10px;color:var(--gold);font-size:13.5px;white-space:nowrap}.chart-change.up,.card.up .chg{color:var(--up)}.chart-change.down,.card.down .chg{color:var(--down)}
.tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px}.tabs button{padding:5px 12px;border:0;border-radius:7px;background:none;color:var(--muted);font-size:13px;cursor:pointer}.tabs .on{background:var(--gold);color:var(--ink)}
.chart-plot{position:relative;height:420px;margin-top:14px;direction:ltr;transition:opacity .3s}.loading .chart-plot{opacity:.4}.failed .chart-plot::after{content:'اتصال به قیمت‌ها برقرار نشد';position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}.chart-plot svg{display:block;width:100%;height:100%}.chart-plot text{fill:var(--muted);font:12px IRANYekan,sans-serif}.chart-plot text.lbl{fill:#fff}.chart-plot .g{stroke:#ffffff14}.chart-plot .u{stroke:var(--up);fill:var(--up)}.chart-plot .d{stroke:var(--down);fill:var(--down)}.chart-plot .now{stroke-dasharray:4 4}
section{padding-block:30px}.head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:6px 20px;margin-bottom:18px}.head h2{font-size:28px}.head p{font-size:14px}
#prices>h3{margin:18px 0 10px;color:var(--gold);font-size:16px}.board{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.card{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);text-align:right;cursor:pointer;transition:border-color .2s,transform .2s}.card:hover{transform:translateY(-2px);border-color:var(--gold)}.card.on{border-color:var(--gold);background:var(--raised)}.name{font-size:14.5px}
.price{display:block;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--muted);text-align:center;line-height:1.7}.price strong{font-size:20px;font-weight:400;color:var(--text)}.price small{margin-right:6px;font-size:12px}.price em{display:block;font-style:normal;font-size:12.5px}
.card.up .price strong{color:var(--up)}.card.down .price strong{color:var(--down)}
.chg{font-size:13px}.card svg{width:100%;height:34px;overflow:visible}.card polyline{fill:none;stroke:var(--muted);stroke-width:1.6;vector-effect:non-scaling-stroke}.card.up polyline{stroke:var(--up)}.card.down polyline{stroke:var(--down)}
@media(max-width:1000px){.board{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.chart{padding:12px}.chart-plot{height:300px}.chart-price{font-size:24px}.board{gap:8px}.card{padding:10px}.price strong{font-size:17px}.head h2{font-size:23px}}
