/* طراحی مشترک همهٔ صفحه‌ها: هدر با منو، فوتر کامل و بخش‌های تازهٔ
   بازطراحی مهر ۱۴۰۵. بعد از styles.css یا price.css بار می‌شود و
   جای قاعده‌های قدیمی همان اجزا را می‌گیرد. */

:root {
  --ink: #0e1f19;
  --ink-soft: #c9d6d0;
  --ink-muted: #9fb0a9;
  --line-soft: #edf1ef;
  --up: #0c6b4a;
  --up-soft: #e3f4ed;
  --down: #b42318;
  --down-soft: #fdecea;
  --radius-lg: 22px;
}

/* رقم‌ها فاصلهٔ طبیعی خود فونت را دارند. tabular-nums روی کل بدنه هر رقم
   Vazirmatn را هم‌عرض پهن‌ترین رقم می‌کرد (۰٫۶۸em)؛ کنار «۱» باریک و
   جداکننده‌ها فاصلهٔ بی‌دلیل می‌افتاد، مثل «۱ , ۰ ۰ ۰ , ۰ ۰ ۰». */
body { background: var(--page); }

/* پهنای محتوای دسکتاپ؛ هم‌اندازهٔ سایت‌های مرجع (anthropic.com حدود ۱۲۹۰
   پیکسل با حاشیهٔ ۷۰ پیکسلی در نمایشگر ۱۴۴۰). */
:root { --site-width: 1300px; }
.site-shell { width: min(100% - 64px, var(--site-width)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── هدر ─────────────────────────────────────────────────────── */
.site-header { padding: 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-height: 68px; padding-block: 10px; }
.site-header .brand { flex: 0 0 auto; font-size: 20px; font-weight: 700; }
.site-nav { display: flex; flex: 1 1 auto; align-items: center; gap: 2px; min-width: 0; }
.site-nav a { padding: 8px 13px; border-radius: 10px; color: #3f514a; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.site-nav a:hover { color: var(--text); background: var(--surface-muted); }
.site-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.site-nav a:focus-visible { outline: 3px solid rgba(22, 129, 95, .25); outline-offset: 1px; }
.site-header .site-date { flex: 0 0 auto; margin-inline-start: auto; }

.header-actions { display: none; }
.header-icon { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); cursor: pointer; }
.header-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-icon:hover { border-color: var(--green); color: var(--green-dark); }
.header-icon:focus-visible { outline: 3px solid rgba(22, 129, 95, .25); outline-offset: 2px; }
.menu-toggle[aria-expanded="true"] { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }

/* ── فوتر ────────────────────────────────────────────────────── */
.site-footer { width: auto; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px 40px; padding: 48px 0 30px; }
.footer-brand { flex: 2 1 280px; }
.footer-brand .brand { color: var(--text); }
.footer-brand p { max-width: 340px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.site-footer .footer-links { display: flex; flex: 1 1 160px; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 9px; }
.footer-links strong { margin-bottom: 4px; color: var(--text); font-size: 15px; }
.site-footer .footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--green-dark); }
.site-footer a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 18px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ── اجزای مشترک ─────────────────────────────────────────────── */
/* رنگ جهت تغییر. price.css نسخهٔ !important خودش را دارد؛ اینجا برای
   صفحه‌هایی است که فقط styles.css را بار می‌کنند. */
.positive { color: var(--up); }
.negative { color: var(--down); }
.neutral { color: var(--muted); }
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: clamp(21px, 3vw, 26px); line-height: 1.4; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.section-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.section-link:hover { color: var(--green); }
.round-icon { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-muted); color: var(--green-dark); font-weight: 700; }
.round-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: #fff; background: var(--ink); }
.chip:focus-visible { outline: 3px solid rgba(22, 129, 95, .25); outline-offset: 2px; }
.change-badge { display: inline-block; padding: 3px 10px; border-radius: 8px; direction: ltr; font-size: 13.5px; font-weight: 700; unicode-bidi: isolate; white-space: nowrap; }
.change-badge.positive { color: var(--up) !important; background: var(--up-soft); }
.change-badge.negative { color: var(--down) !important; background: var(--down-soft); }
.change-badge.neutral { color: var(--muted) !important; background: #eef1f0; }
.spark { display: block; width: 112px; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark.positive polyline { stroke: var(--green); }
.spark.negative polyline { stroke: var(--down); }
.spark.neutral polyline { stroke: #a9b6b0; }
.spark-empty { color: var(--subtle); font-size: 13px; }

/* ── صفحهٔ اصلی ──────────────────────────────────────────────── */
.home-main { padding: 44px 0 24px; }
/* دو ستون ثابت: تیتر و قیمت‌ها راست، مبدل چپ. با grid ستون‌ها در هیچ
   عرض دسکتاپی زیر هم نمی‌افتند؛ فقط زیر ۹۰۰ پیکسل یک‌ستونه می‌شود. */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 500px); align-items: stretch; gap: 36px 48px; margin-bottom: 48px; }
/* ستون تیتر هم‌قد کارت مبدل است و کارت‌های قیمت فضای باقی‌مانده را پر می‌کنند. */
.home-hero-col { display: flex; flex-direction: column; min-width: 0; padding-top: 18px; }
.home-converter-col { align-self: start; }
.home-converter-col { min-width: 0; }
.home-main .home-hero { padding: 0; text-align: start; }
/* تیتر یک متن کامل سئو است ولی دیده نمی‌شود (sr-only)؛ عنوان متغیر
   «قیمت دلار/تتر/…» فقط نمایشی است و تیتر نیست. */
.home-main .home-hero-title { justify-content: flex-start; margin: 0; font-size: clamp(38px, 6vw, 60px); font-weight: 700; }
.home-lead { max-width: 560px; margin: 18px 0 0; color: #4a5c55; font-size: 17px; line-height: 1.9; }
.home-kpis { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(110px, 1fr); gap: 14px; margin-top: 32px; }
.home-kpis:empty { display: none; }
.home-kpi { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--surface); text-decoration: none; transition: border-color .15s; }
.home-kpi:hover { border-color: var(--green); }
.home-kpi-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--muted); font-size: 14px; white-space: nowrap; }
.home-kpi-name .round-icon { width: 26px; height: 26px; }
.home-kpi-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.home-kpi-value { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.home-kpi-value strong { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; white-space: nowrap; }
.home-kpi-unit { color: var(--muted); font-size: 13px; white-space: nowrap; }
.home-kpi-change { font-size: 13.5px; font-weight: 700; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* بخش مبدل همان طراحی اولیهٔ سایت است (styles.css). اینجا فقط جای آن
   در ستون کنار تیتر تنظیم می‌شود: عنوان بالای کارت و وسط‌چین، و چون
   ستون باریک است، نرخ و زمان به‌روزرسانی مثل نسخهٔ موبایل زیر هم
   می‌نشینند تا در هم نروند. */
.converter-intro { max-width: none; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); text-align: start; }
.converter-intro .eyebrow { margin: 0 0 2px; font-size: 13px; }
.converter-intro h2 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: 0; }
.converter-intro .intro-copy { max-width: none; margin: 6px 0 0; font-size: 14px; }
.home-converter-col .rate-summary { grid-template-columns: 1fr; align-items: start; }
.home-converter-col .rate-status { grid-column: 1; grid-row: auto; margin-top: 8px; }
.quick-amounts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.quick-amounts > span { color: var(--muted); font-size: 13px; }
.quick-amounts .chip { min-height: 36px; padding: 0 14px; }
.converter-more { display: flex; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

.home-market { margin-bottom: 52px; }
/* جدول و ستون کناری هم‌قد: هر کدام کوتاه‌تر بود کش می‌آید. ردیف‌های جدول
   فضای اضافه را بین خودشان پخش می‌کنند و کارت آخر ستون کناری تا پایین
   جدول می‌رسد. هر تب هفت ردیف دارد، پس قد با عوض شدن تب ثابت است. */
.home-market-layout { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.home-market-layout .important-market { display: flex; flex: 999 1 620px; flex-direction: column; min-width: 0; margin: 0; }
.home-market-layout .home-market-table { display: flex; flex: 1; flex-direction: column; box-shadow: none; }
.home-market-layout .home-market-rows { display: flex; flex: 1; flex-direction: column; }
.home-market-layout .home-market-row { flex: 1 1 auto; }
.home-aside > .card:last-child { flex: 1 1 auto; }
.home-market-head, .home-market-row { grid-template-columns: minmax(0, 1.25fr) minmax(110px, .8fr) minmax(86px, .55fr) 120px; }
.home-market-trend { display: flex; justify-content: flex-end; }
.home-market-row[hidden] { display: none; }
.home-aside { display: flex; flex: 1 1 300px; flex-direction: column; gap: 20px; min-width: 0; }
.home-aside .card { padding: 20px; }
.home-aside h3 { margin: 0; font-size: 16px; }
.mini-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini-chart { display: block; width: 100%; height: 120px; margin-top: 14px; }
.mini-chart .area { fill: var(--green-soft); }
.mini-chart .line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mini-chart-range { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.mini-chart-range strong { color: var(--text); }
.mover-list { margin: 10px 0 0; padding: 0; list-style: none; }
.mover-list li + li { border-top: 1px solid var(--line-soft); }
.mover { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.mover:hover strong { color: var(--green-dark); }
.mover .round-icon { width: 32px; height: 32px; }
.mover-label { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.mover-label strong { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.mover-label small { color: var(--muted); font-size: 12.5px; }

.home-categories { margin-bottom: 52px; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.category-tile { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.category-tile:hover { border-color: var(--green); transform: translateY(-2px); }
.category-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-tile .round-icon { width: 44px; height: 44px; }
.category-tile-top small { padding: 2px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-muted); font-size: 12.5px; white-space: nowrap; }
.category-tile :is(strong, h3) { font-size: 18px; }
.category-tile > span:last-child { padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; line-height: 1.7; }

.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0 0 52px; overflow: hidden; border-radius: 24px; color: #fff; background: var(--green-dark); }
.trust-strip > div { padding: 28px 32px; }
.trust-strip > div + div { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.trust-strip svg { width: 28px; height: 28px; stroke: #9fe0c4; stroke-width: 2; }
.trust-strip h3 { margin: 12px 0 4px; font-size: 18px; }
.trust-strip p { margin: 0; color: #d5ece2; font-size: 14.5px; line-height: 1.9; }
.trust-strip a { color: #fff; font-weight: 700; }

.home-mag { margin-bottom: 52px; }
.home-mag[hidden] { display: none; }
/* مجله: سه ستون در چهار ردیف؛ تصویر مستطیلی کوچک سمت راست، عنوان و زیرش
   زمان انتشار سمت چپ. */
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; margin: 0; padding: 0; list-style: none; }
.mag-card { display: flex; align-items: flex-start; gap: 14px; color: var(--text); text-decoration: none; }
.mag-card-media { flex: 0 0 112px; width: 112px; height: 80px; overflow: hidden; border-radius: 12px; background: var(--green-soft); }
.mag-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mag-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.mag-card-body strong { display: -webkit-box; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color .15s; }
.mag-card:hover strong { color: var(--green-dark); }
.mag-card-body time { color: var(--muted); font-size: 12.5px; }
@media (max-width: 1000px) { .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* موبایل: یک ستون و شش مطلب تا بخش بی‌اندازه بلند نشود. */
@media (max-width: 600px) {
  .mag-grid { grid-template-columns: 1fr; gap: 16px; }
  .mag-grid > li:nth-child(n+7) { display: none; }
  .mag-card-media { flex-basis: 96px; width: 96px; height: 68px; }
  .mag-card-body strong { font-size: 14.5px; }
}

/* تبدیل‌های پرکاربرد زیر صفحهٔ اصلی و هاب مبدل، هم‌عرض بقیه */
.home-main .seo-content { max-width: none; margin: 0 0 24px; }

/* ── مبدل ────────────────────────────────────────────────────── */
.converter-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.converter-insights[hidden] { display: none; }
.converter-insights span { color: var(--muted); font-size: 13px; }
.converter-insights strong { display: block; color: var(--text); font-size: 15px; direction: ltr; text-align: right; unicode-bidi: plaintext; }
.converter-insights strong.positive { color: var(--up); }
.converter-insights strong.negative { color: var(--down); }
.conversion-tables { margin-top: 28px; }
.conversion-tables[hidden] { display: none; }
.conversion-tables > h2 { margin: 0 0 14px; font-size: clamp(20px, 3vw, 24px); }
.conversion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.conversion-table { width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: 14.5px; }
.conversion-table th { padding: 11px 18px; color: var(--muted); background: var(--surface-muted); font-size: 13px; font-weight: 700; text-align: start; }
.conversion-table td { padding: 10px 18px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.conversion-table td:last-child { font-weight: 700; }

/* ── هاب قیمت ────────────────────────────────────────────────── */
.price-main.wide-shell { width: min(100% - 64px, var(--site-width)); }
.hub-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding: 12px 0 30px; }
.hub-intro .price-intro { flex: 1 1 460px; padding: 0; }
.hub-search { position: relative; flex: 1 1 340px; max-width: 460px; }
.hub-search-field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 16px; color: var(--muted); background: var(--surface); box-shadow: 0 8px 24px rgba(14, 31, 25, .06); }
.hub-search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 129, 95, .12); }
.hub-search-field svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.hub-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15.5px; }
.hub-search-results { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 10; max-height: 360px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 18px 48px rgba(14, 31, 25, .14); list-style: none; }
.hub-search-results[hidden] { display: none; }
.hub-search-results a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.hub-search-results a:hover, .hub-search-results a:focus-visible { background: var(--green-soft); outline: 0; }
.hub-search-results .round-icon { width: 30px; height: 30px; }
.hub-search-results span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-search-results small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.hub-search-results .empty { padding: 12px; color: var(--muted); text-align: center; }

.hub-indices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 40px; }
.hub-indices:empty { display: none; }
.index-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: var(--surface); text-decoration: none; transition: border-color .15s; }
.index-card:hover { border-color: var(--green); }
.index-card-top { display: flex; align-items: center; gap: 10px; }
.index-card-top .round-icon { width: 32px; height: 32px; }
.index-card-top strong { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.index-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.index-card-bottom > span { min-width: 0; }
.index-card-bottom b { display: block; overflow: hidden; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.index-card-bottom small { color: var(--muted); font-size: 12.5px; }
.index-card .spark { flex: 0 0 auto; width: 76px; height: 30px; }
.price-main .seo-content { max-width: none; }

.hub-section-title { margin: 0 0 16px; font-size: clamp(21px, 3vw, 26px); }
.category-grid.category-panels { width: 100%; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.category-panel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.category-panels .category-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.category-panels .category-card:hover { transform: none; box-shadow: none; background: var(--surface-muted); }
.category-panels .category-card-icon { width: 48px; height: 48px; }
.category-panels .category-card-details strong { font-size: 18px; }
.category-panels .category-card-details small { font-size: 13px; }
.category-top { flex: 1; margin: 0; padding: 4px 20px 12px; list-style: none; }
.category-top li + li { border-top: 1px dashed #e4ebe7; }
.category-top a { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: center; gap: 10px; padding: 9px 0; color: var(--text); font-size: 14.5px; text-decoration: none; }
.category-top a:hover span:first-child { color: var(--green-dark); }
.category-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-top b { font-weight: 700; white-space: nowrap; }
.category-top em { direction: ltr; font-size: 13px; font-style: normal; font-weight: 700; text-align: left; unicode-bidi: plaintext; }
.category-top .loading { padding: 12px 0; color: var(--muted); font-size: 13.5px; }

.hub-movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 40px; }
.hub-movers[hidden] { display: none; }
.movers-card { padding: 22px; }
.movers-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 18px; }
.movers-card ol { margin: 0; padding: 0; list-style: none; counter-reset: mover; }
.movers-card li { counter-increment: mover; border-top: 1px solid var(--line-soft); }
.movers-card li a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 76px; align-items: center; gap: 10px; padding: 11px 0; color: var(--text); text-decoration: none; }
.movers-card li a::before { content: counter(mover, persian); color: var(--subtle); font-size: 13px; }
.movers-card li a span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.movers-card li a small { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.movers-card li a em { direction: ltr; font-style: normal; font-weight: 700; text-align: left; unicode-bidi: plaintext; }
.movers-card p { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }

/* ── صفحهٔ دسته ──────────────────────────────────────────────── */
.category-hero { gap: 28px; margin-bottom: 24px; padding: 28px 32px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.category-hero > div:first-child { flex: 1 1 auto; min-width: 0; }
.category-hero h1 { font-size: clamp(30px, 4.5vw, 42px); }
.category-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.category-stats:empty { display: none; }
.category-stat { min-width: 150px; padding: 12px 18px; border-radius: 14px; background: var(--surface-muted); }
.category-stat small { display: block; color: var(--muted); font-size: 12.5px; }
.category-stat strong { display: block; font-size: 18px; }
.category-stat strong em { margin-inline-start: 6px; direction: ltr; font-size: 14px; font-style: normal; unicode-bidi: isolate; }
.category-hero-icon { flex-basis: 136px; width: 136px; height: 136px; border: 0; background: var(--green-soft); box-shadow: none; }
.category-hero-icon img { width: 96px; height: 96px; box-shadow: 0 14px 34px rgba(14, 31, 25, .16); }

.market-list-section { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.market-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 901px) { .market-tools { flex-wrap: nowrap; } .market-tools .market-search { flex: 0 0 280px; } }
.sort-group { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; border-radius: 12px; background: #e8eeeb; }
.sort-group button { flex: 0 0 auto; white-space: nowrap; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; color: #3f514a; background: transparent; font-size: 13.5px; cursor: pointer; }
.sort-group button[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgba(14, 31, 25, .1); font-weight: 700; }
.sort-group button:focus-visible { outline: 3px solid rgba(22, 129, 95, .25); }
.market-search { width: min(100%, 280px); min-height: 44px; border-color: var(--border-strong); background: var(--surface); }
.market-table-wrap { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.market-table-scroll { overflow-x: auto; }
.market-table-head, .market-row { grid-template-columns: 34px minmax(200px, 2fr) minmax(150px, 1.3fr) minmax(110px, 1fr) minmax(160px, 1.5fr) minmax(70px, .8fr) 112px 84px; gap: 14px; min-width: 1020px; }
.market-table-wrap.no-history .market-table-head, .market-table-wrap.no-history .market-row { grid-template-columns: 34px minmax(200px, 2fr) minmax(150px, 1.3fr) minmax(110px, 1fr) 84px; min-width: 640px; }
.market-table-wrap.no-history .history-col { display: none; }
.market-table-head { padding: 12px 22px; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-muted); font-size: 13px; }
.market-row { position: relative; padding: 13px 22px; border-top: 0; border-bottom: 1px solid var(--line-soft); }
.market-row:last-child { border-bottom: 0; }
.market-row:hover { border-radius: 0; background: var(--surface-muted); }
.market-row-rank { color: var(--subtle); font-size: 13px; }
.market-row-identity { color: var(--text); text-decoration: none; }
.market-row-identity::after { content: ""; position: absolute; inset: 0; }
.market-row-identity:focus-visible { outline: 0; }
.market-row-identity:focus-visible::after { outline: 3px solid rgba(22, 129, 95, .3); outline-offset: -3px; }
.market-row-icon { flex-basis: 36px; width: 36px; height: 36px; }
.market-row-label strong { font-size: 15px; }
.market-row-label small { font-size: 12.5px; }
.market-row-price { font-size: 16px; }
.market-row-range { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12.5px; }
.market-row-range > span:first-child { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.range-bar { position: relative; height: 6px; border-radius: 3px; background: #e8eeeb; }
.range-bar i { position: absolute; top: -2px; width: 10px; height: 10px; margin-inline-start: -5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.market-row-month { direction: ltr; font-size: 14px; font-weight: 700; text-align: right; unicode-bidi: plaintext; }
.market-row-action { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--green-dark); background: var(--surface); font-size: 13px; font-weight: 700; text-decoration: none; }
.market-row-action:hover { border-color: var(--green); background: var(--green-soft); }
/* سکهٔ پارسیان مبدل ندارد: ستون تبدیل خالی می‌ماند و دکمهٔ مبدل بالای صفحه پنهان است. */
.market-row-action.is-empty { visibility: hidden; }
.asset-primary-link[hidden] { display: none; }
.category-more { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 32px; }
.category-more[hidden] { display: none; }
.other-markets { flex: 1 1 300px; padding: 22px; }
.other-markets h2 { margin: 0 0 6px; font-size: 18px; }
.other-markets ul { margin: 0; padding: 0; list-style: none; }
.other-markets li + li { border-top: 1px solid var(--line-soft); }
.other-markets a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.other-markets a:hover strong { color: var(--green-dark); }
.other-markets .round-icon { width: 32px; height: 32px; }
.other-markets strong { flex: 1; font-size: 15px; }
.other-markets small { color: var(--muted); }

/* ── صفحهٔ دارایی ────────────────────────────────────────────── */
.asset-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.asset-primary-link { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 14px; color: #fff; background: var(--green); font-weight: 700; text-decoration: none; }
.asset-primary-link:hover { background: var(--green-dark); }
.icon-button { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface); cursor: pointer; }
.icon-button:hover { border-color: var(--green); color: var(--green-dark); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:focus-visible, .asset-primary-link:focus-visible { outline: 3px solid rgba(22, 129, 95, .3); outline-offset: 2px; }
.share-feedback { align-self: center; color: var(--green-dark); font-size: 13px; }
.asset-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.asset-stats[hidden] { display: none; }
.asset-stat { padding: 16px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.asset-stat small { display: block; color: var(--muted); font-size: 13px; }
.asset-stat strong { display: block; font-size: 18px; direction: ltr; text-align: right; unicode-bidi: plaintext; white-space: nowrap; }
.asset-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 24px; }
.asset-layout-main { display: flex; flex: 999 1 620px; flex-direction: column; gap: 24px; min-width: 0; }
.asset-layout-main > .asset-chart, .asset-layout-main > .asset-content { margin-top: 0; }
.asset-chart { box-shadow: none; }
.asset-layout-side { display: flex; flex: 1 1 300px; flex-direction: column; gap: 20px; min-width: 0; }
.asset-days { overflow: hidden; }
.asset-days[hidden] { display: none; }
.asset-days h2 { margin: 0; padding: 20px 24px 12px; font-size: 20px; }
.asset-days table { width: 100%; border-collapse: collapse; font-size: 15px; }
.asset-days th { padding: 10px 24px; border-block: 1px solid var(--border); color: var(--muted); background: var(--surface-muted); font-size: 13px; font-weight: 700; text-align: start; }
.asset-days td { padding: 11px 24px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.asset-days tr:last-child td { border-bottom: 0; }
.asset-days td:nth-child(2) { font-weight: 700; }
.asset-days td:nth-child(3) { direction: ltr; font-weight: 700; text-align: right; unicode-bidi: plaintext; }
.quick-convert { padding: 22px; }
.quick-convert[hidden] { display: none; }
.quick-convert h2 { margin: 0; font-size: 18px; }
.quick-convert label { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }
.quick-convert-field { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 14px 4px 6px; border: 1.5px solid var(--border); border-radius: 14px; }
.quick-convert-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 129, 95, .1); }
.quick-convert-field input { flex: 1; min-width: 0; padding: 8px 6px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 22px; font-weight: 700; direction: ltr; text-align: left; }
.quick-convert-field span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.quick-convert output { display: block; margin-top: 12px; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.quick-convert output small { color: var(--muted); font-size: 14px; font-weight: 400; }
.quick-convert table { width: 100%; margin-top: 12px; border-top: 1px solid var(--line-soft); border-collapse: collapse; font-size: 14px; }
.quick-convert td { padding: 8px 0; border-bottom: 1px dashed #e4ebe7; }
.quick-convert td:last-child { font-weight: 700; text-align: left; }
.related-assets { padding: 22px; }
.related-assets[hidden] { display: none; }
.related-assets h2 { margin: 0 0 6px; font-size: 18px; }
.related-assets ul { margin: 0; padding: 0; list-style: none; }
.related-assets li + li { border-top: 1px solid var(--line-soft); }
.related-assets a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.related-assets a:hover strong { color: var(--green-dark); }
.related-assets .round-icon { width: 32px; height: 32px; }
.related-assets strong { flex: 1; min-width: 0; overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.related-assets span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.related-assets span b { font-size: 14px; white-space: nowrap; }
.related-assets span em { direction: ltr; font-size: 12px; font-style: normal; font-weight: 700; unicode-bidi: plaintext; }
.asset-layout-main .seo-content, .asset-layout .seo-content { margin: 0; }

/* ── نمای باریک ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* هدر موبایل: لوگو، و دکمه‌های جستجو و منو. منو زیر هدر باز می‌شود. */
  .site-header { position: relative; z-index: 30; }
  .site-header .header-inner { flex-wrap: nowrap; gap: 10px; min-height: 60px; padding-block: 8px; }
  .site-header .brand { font-size: 19px; }
  .site-header .brand-mark, .site-header .brand-mark svg { width: 36px; height: 36px; }
  .site-header .site-date { display: none; }
  .header-actions { display: flex; gap: 8px; margin-inline-start: auto; }
  .site-nav { position: absolute; inset-inline: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: 0 18px 32px rgba(14, 31, 25, .10); }
  .site-header.menu-open .site-nav { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 15.5px; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .site-shell { width: min(100% - 24px, var(--site-width)); }
  .site-header .header-inner { min-height: 0; }
  .site-footer { margin-top: 32px; }
  .footer-inner { gap: 26px 20px; padding-top: 32px; }
  .footer-brand { flex-basis: 100%; }
  .site-footer .footer-links { flex-basis: calc(50% - 10px); }
  .home-main { padding-top: 24px; }
  .home-top { margin-bottom: 36px; }
  .home-hero-col { padding-top: 0; }
  .home-lead { font-size: 15px; }
  /* در موبایل مبدل باید بلافاصله بعد از تیتر بیاید؛ همین سه قیمت در جدول پایین هست. */
  /* شش کارت قیمت در موبایل هم هست: دو ستون و سه ردیف، عدد و واحد در
     یک خط و درصد زیر آن تا در کارت باریک چیزی بریده نشود. */
  .home-kpis { flex: none; grid-auto-rows: auto; gap: 10px; margin-top: 20px; }
  .home-kpi { gap: 10px; padding: 12px 12px 14px; border-radius: 14px; }
  .home-kpi-name { gap: 6px; font-size: 12.5px; }
  .home-kpi-name .round-icon { width: 22px; height: 22px; }
  .home-kpi-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .home-kpi-value { gap: 4px; }
  .home-kpi-value strong { font-size: 16.5px; }
  .home-kpi-unit { font-size: 11.5px; }
  .home-kpi-change { font-size: 12.5px; }
  .home-market-head, .home-market-row { grid-template-columns: minmax(0, 1fr) auto; }
  .home-market-trend { display: none; }
  .home-market, .home-categories, .home-mag, .trust-strip { margin-bottom: 36px; }
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-tile { gap: 8px; padding: 14px; border-radius: 16px; }
  .category-tile .round-icon { width: 36px; height: 36px; }
  .category-tile :is(strong, h3) { font-size: 15px; }
  .category-tile > span:last-child { display: none; }
  .trust-strip > div { padding: 22px 20px; }
  .trust-strip > div + div { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .conversion-grid { grid-template-columns: minmax(0, 1fr); }
  .conversion-table { table-layout: fixed; font-size: 13.5px; }
  .conversion-table th, .conversion-table td { padding-inline: 12px; white-space: normal; overflow-wrap: anywhere; }
  .converter-insights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .converter-insights span { font-size: 11.5px; line-height: 1.5; }
  .converter-insights strong { font-size: 13.5px; }
  .price-main.wide-shell { width: min(100% - 24px, var(--site-width)); }
  .hub-search { max-width: none; }
  .category-grid.category-panels { grid-template-columns: minmax(0, 1fr); }
  .category-hero { padding: 20px 18px; border-radius: 22px; }
  .category-hero-icon { flex-basis: 78px; width: 78px; height: 78px; }
  .category-hero-icon img { width: 56px; height: 56px; }
  .category-stat { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 10px 12px; }
  .list-heading { display: block; }
  .market-tools { margin-top: 12px; }
  .market-search { width: 100%; }
  .market-table-wrap { border-radius: 18px; }
  .market-table-head { display: none; }
  .market-table-head, .market-row, .market-table-wrap.no-history .market-row { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .market-row-rank, .market-row .history-col, .market-row-action { display: none; }
  .market-row-identity { grid-row: 1 / 3; }
  .market-row-price { grid-column: 2; grid-row: 1; text-align: left; }
  .market-row-change { grid-column: 2; grid-row: 2; justify-self: end; }
  .market-row-change.change-badge { padding: 0; background: transparent; }
  .asset-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .asset-days h2 { padding: 18px 16px 10px; font-size: 18px; }
  .asset-days th, .asset-days td { padding-inline: 16px; }
}

/* ── هم‌خوانی با طرح: مبدل ───────────────────────────────────── */
.converter-card .currency-badge.is-picking { background: var(--green-soft); box-shadow: 0 0 0 2px var(--green); }

.convert-main { padding-top: 40px; }
.convert-main .intro { margin-bottom: 30px; }
.convert-main .intro h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: 0; }
.convert-layout { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 24px; }
.convert-layout > .converter-card { flex: 3 1 520px; min-width: 0; }
.convert-main .conversion-tables { margin-top: 40px; }
.convert-main .pair-content, .convert-main .seo-content { margin-top: 32px; }

/* انتخابگر ثابت کنار مبدل (فقط صفحهٔ مبدل، نمایشگر پهن) */
.asset-dialog.is-inline { position: static; inset: auto; z-index: auto; display: block; flex: 2 1 340px; min-width: 0; padding: 0; }
.asset-dialog.is-inline .asset-dialog-backdrop, .asset-dialog.is-inline .dialog-close { display: none; }
.asset-dialog.is-inline .asset-dialog-panel { width: 100%; max-height: 640px; padding: 20px; border-radius: 24px; box-shadow: 0 22px 60px rgba(26, 58, 47, .10); }
.asset-dialog.is-inline .asset-dialog-title { font-size: 18px; }
.asset-dialog-panel .asset-search { margin-top: 14px; border-color: var(--green); background: var(--surface); }
.asset-filter { min-height: 34px; padding: 0 12px; border-width: 1px; background: var(--surface); }
.asset-filter.is-active { border-color: var(--ink); color: #fff; background: var(--ink); }
.asset-recent { margin: 2px 0 12px; }
.asset-recent[hidden] { display: none; }
.asset-recent > p { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.asset-recent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-recent-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 6px; border: 0; border-radius: 999px; color: var(--text); background: var(--surface-muted); font-size: 13px; cursor: pointer; }
.asset-recent-chip:hover { background: var(--green-soft); }
.asset-recent-chip .currency-icon { width: 22px; height: 22px; font-size: 10px; }
.asset-option { border-bottom: 1px solid var(--line-soft); border-radius: 10px; }
.asset-option-icon { width: 34px; height: 34px; }

.pair-content { padding: 28px 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: none; }
.pair-content h2 { margin-bottom: 10px; font-size: 22px; }
.pair-content p { color: #4a5c55; font-size: 15.5px; line-height: 1.95; text-align: start; }

/* تبدیل‌های پرکاربرد: کارت با آیکون گرد دارایی */
.popular-conversions { padding: 28px 32px; border-radius: 24px; }
/* تبدیل‌های پرکاربرد در هوم و مبدل یکسان: دو ردیف چهارتایی هم‌پهنای بقیهٔ
   اجزای صفحه؛ تبلت دو ستون و موبایل یک ستون. */
.popular-conversions .popular-conversions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.convert-main > .popular-conversions { max-width: none; margin-inline: 0; }
@media (max-width: 1100px) { .popular-conversions .popular-conversions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .popular-conversions .popular-conversions-grid { grid-template-columns: minmax(0, 1fr); } }
.popular-conversions .popular-conversion { border-radius: 16px; background: var(--surface); }
.popular-conversion-symbol { flex: 0 0 34px; height: 34px; overflow: hidden; border-radius: 50%; }
.popular-conversion-symbol img { width: 100%; height: 100%; object-fit: cover; }

/* ── هم‌خوانی با طرح: صفحهٔ دارایی ───────────────────────────── */
.asset-price-hero { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; grid-template-areas: "identity quote actions" "identity secondary actions" "identity fresh actions"; align-items: center; gap: 6px 40px; padding: 28px 32px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: none; }
.asset-price-hero .asset-identity { grid-area: identity; grid-column: auto; }
.asset-price-hero .asset-main-icon { flex-basis: 72px; width: 72px; height: 72px; box-shadow: 0 10px 24px rgba(14, 31, 25, .14); }
.asset-price-hero .asset-identity h1 { font-size: clamp(26px, 3vw, 34px); }
.asset-price-hero .asset-english { font-size: 15px; }
.asset-price-hero .asset-quote { grid-area: quote; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0; border: 0; direction: rtl; }
.asset-price-hero .price-primary { order: 1; text-align: start; }
.asset-price-hero .price-primary > strong { font-size: clamp(34px, 4vw, 46px); line-height: 1.15; }
.asset-price-hero .price-unit { order: 2; justify-self: auto; font-size: 16px; }
.asset-price-hero .price-secondary[hidden] { display: none; }
.asset-price-hero .asset-quote > .price-change { order: 3; display: inline-flex; align-items: baseline; gap: 6px; direction: ltr; align-self: center; padding: 4px 12px; border-radius: 10px; background: #eef1f0; }
.asset-price-hero .asset-quote > .price-change.positive { background: var(--up-soft); }
.asset-price-hero .asset-quote > .price-change.negative { background: var(--down-soft); }
.asset-price-hero .price-change strong { display: inline; font-size: 15px; }
.price-change-abs { font-size: 14px; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.asset-price-hero .price-change-abs:empty { display: none; }
.asset-price-hero .price-secondary { grid-area: secondary; margin: 0; }
.asset-price-hero .price-secondary .price-secondary-value { order: 1; }
.asset-price-hero .price-secondary .price-unit { order: 2; font-size: 14px; }
.asset-price-hero .price-secondary > .price-change { order: 3; padding: 2px 8px; background: transparent; }
.asset-price-hero .price-freshness { grid-area: fresh; grid-column: auto; padding-top: 4px; border: 0; color: var(--green-dark); font-size: 13.5px; }
.asset-price-hero .asset-actions { grid-area: actions; justify-self: end; }

.asset-stat strong { font-size: 19px; font-weight: 800; }

.asset-chart { padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.asset-chart-heading h2 { font-size: 20px; }
.chart-ranges { padding: 4px; border: 0; border-radius: 12px; background: #eef3f0; }
.chart-ranges button { min-height: 38px; padding: 0 16px; border-radius: 9px; color: #3f514a; font-size: 14px; font-weight: 600; }
.chart-ranges button.is-active { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgba(14, 31, 25, .12); font-weight: 700; }
.btc-chart-stage { border: 0; border-radius: 0; background: transparent; }
.btc-chart-area { fill: var(--green-soft); }
.btc-chart-summary { gap: 12px; margin: 18px 0 0; text-align: start; }
.btc-chart-summary-item { padding: 12px 16px; border-radius: 14px; background: var(--surface-muted); }
.btc-chart-summary-label { color: var(--muted); font-size: 12.5px; }
.btc-chart-summary-value { margin-top: 2px; font-size: 17px; }
.btc-chart-summary-high, .btc-chart-summary-low { color: var(--text); }

.asset-days-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.asset-days-head h2 { padding: 0; }
.text-button { padding: 6px 4px; border: 0; color: var(--green-dark); background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--green); }
.text-button:focus-visible { outline: 3px solid rgba(22, 129, 95, .25); border-radius: 6px; }

.asset-layout-main > .asset-content { padding: 28px 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.asset-content h2 { margin-bottom: 10px; font-size: 22px; }
.asset-content h3 { margin-top: 22px; font-size: 17px; }
.asset-content p { color: #4a5c55; font-size: 15.5px; line-height: 1.95; text-align: start; }
.asset-content .converter-link { min-height: 46px; margin-inline-start: 0; padding: 0 18px; border: 1px solid var(--green); border-radius: 12px; color: var(--green-dark); background: transparent; }
.asset-content .converter-link:hover { color: #fff; background: var(--green); }
.quick-convert-field { border-color: var(--green); }
.quick-convert output { font-size: 24px; font-weight: 800; }
.source-note { padding: 18px; border: 1px dashed var(--border-strong); border-radius: 20px; color: #4a5c55; background: var(--surface-muted); font-size: 13.5px; }
.source-note[hidden] { display: none; }
.source-note strong { display: block; margin-bottom: 4px; color: var(--text); }
.source-note p { margin: 0; line-height: 1.85; }
.source-note a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--green-dark); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .asset-price-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "quote" "secondary" "fresh" "actions"; gap: 12px; }
  .asset-price-hero .asset-quote { padding-top: 14px; border-top: 1px solid var(--border); }
  .asset-price-hero .asset-actions { justify-self: stretch; }
  .asset-price-hero .asset-primary-link { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .asset-price-hero { padding: 20px 18px; border-radius: 22px; }
  .asset-price-hero .asset-main-icon { flex-basis: 56px; width: 56px; height: 56px; }
  .asset-chart { padding: 18px 10px; border-radius: 20px; }
  .btc-chart-summary { gap: 6px; }
  .btc-chart-summary-item { padding: 10px; }
  .btc-chart-summary-value { font-size: 13px; }
  .asset-layout-main > .asset-content, .pair-content, .popular-conversions { padding: 22px 18px; border-radius: 20px; }
  .asset-days-head { padding: 18px 16px 10px; }
}

/* ── اصلاحات بازبینی طراحی ─────────────────────────────────────── */
/* مبلغ سریع در موبایل در یک ردیف */
@media (max-width: 600px) {
  .quick-amounts { flex-wrap: nowrap; gap: 6px; }
  .quick-amounts > span { font-size: 12px; white-space: nowrap; }
  .quick-amounts .chip { flex: 0 1 auto; min-width: 0; min-height: 34px; padding: 0 10px; font-size: 13px; }
}

/* پنل انتخاب کنار مبدل: تگ‌ها در یک ردیف و پنل هم‌قد کارت مبدل */
.convert-layout { align-items: stretch; }
.convert-layout > .converter-card { align-self: start; }
.asset-dialog.is-inline { position: relative; align-self: stretch; min-height: 460px; }
.asset-dialog.is-inline .asset-dialog-panel { position: absolute; inset: 0; max-height: none; }
.asset-dialog.is-inline .asset-filters { flex-wrap: nowrap; gap: 4px; }
.asset-dialog.is-inline .asset-filter { flex: 0 1 auto; min-width: 0; padding: 0 9px; font-size: 12.5px; white-space: nowrap; }

/* کارت‌های راهنما (روش محاسبه، صفحه‌های منابع) هم‌سبک کارت متن */
.seo-content { padding: 28px 32px; border-radius: 24px; line-height: 1.95; }
.seo-content > h1 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 32px); line-height: 1.4; }
.seo-content h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.5; }
.seo-content h2:not(:first-child) { margin-top: 24px; }
.seo-content h3 { margin: 22px 0 6px; font-size: 17px; }
.seo-content p { margin: 0 0 10px; color: #4a5c55; font-size: 15.5px; }
.seo-content ul { margin: 6px 0 12px; }
.seo-content.popular-conversions p { color: var(--muted); }
.asset-layout-main > .seo-content { margin: 0; }
.static-main .breadcrumbs { margin-bottom: 18px; }

/* درصد در کارت‌های شاخص و آمار دسته با جهت درست */
.ltr-num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.category-stat strong em { display: inline-block; }

/* ردیف بدون دادهٔ تاریخی: یک متن به‌جای سه خط تیره */
.market-row-nohistory { grid-column: span 3; color: var(--subtle); font-size: 13px; text-align: center; }

/* مرتب‌سازی: برچسب کوتاه در موبایل */
.sort-short { display: none; }

/* دارایی‌های مرتبط: نام کامل، قیمت و درصد زیر آن */
.related-assets a { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 2px 12px; }
.related-assets .round-icon { grid-row: 1 / 3; }
.related-assets strong { flex: none; overflow: visible; white-space: normal; text-overflow: clip; line-height: 1.45; }
.related-assets span.related-meta { flex-direction: row; align-items: baseline; gap: 8px; }

@media (max-width: 600px) {
  .seo-content { padding: 22px 18px; border-radius: 20px; }
  .seo-content h2 { font-size: 19px; }
  .seo-content p { font-size: 14.5px; }
  .category-hero-icon { display: none; }
  .category-stats { flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .category-stat { flex: 1 1 0; min-width: 0; padding: 10px; }
  .category-stat small { font-size: 11.5px; line-height: 1.5; }
  .category-stat strong { font-size: 14.5px; line-height: 1.5; }
  .category-stat strong em { display: block; margin: 0; font-size: 12.5px; }
  .sort-group { width: 100%; }
  .sort-group button { flex: 1 1 0; min-width: 0; padding: 0 6px; }
  .sort-full { display: none; }
  .sort-short { display: inline; }
  .chart-ranges { display: flex; width: 100%; overflow: visible; }
  .chart-ranges button { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 12.5px; white-space: nowrap; }
}

/* ── تایپوگرافی: Estedad برای تیترها و عددها، Vazirmatn برای بقیه ──────
   هر دو قلم روی سرور خود سایت‌اند. Estedad نسخهٔ متغیر (وزن ۱۰۰ تا ۹۰۰)
   است و فقط زیرمجموعه‌های عربی/فارسی و لاتین بار می‌شوند؛ مرورگر هر فایل
   را تنها وقتی می‌گیرد که نویسه‌ای از بازه‌اش روی صفحه باشد. */
@font-face {
  font-family: "Estedad";
  src: url("fonts/Estedad-Arabic-wght.woff2") format("woff2-variations"), url("fonts/Estedad-Arabic-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Estedad";
  src: url("fonts/Estedad-Latin-wght.woff2") format("woff2-variations"), url("fonts/Estedad-Latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-body: "Vazirmatn", Tahoma, Arial, sans-serif;
  --font-heading: "Estedad", "Vazirmatn", sans-serif;
  --font-numeric: "Estedad", "Vazirmatn", sans-serif;
}
body { font-family: var(--font-body); }

/* تیترها و هر چیزی که نقش تیتر دارد */
:is(h1, h2, h3, h4, h5, h6, .home-hero-title, .asset-dialog-title, .category-card-details > strong) { font-family: var(--font-heading); }
:is(h1, .home-hero-title) { font-weight: 800; }
/* نام سایت کنار لوگو در هدر و فوتر */
:is(.site-header, .site-footer) .brand { font-family: var(--font-heading); font-weight: 800; }
:is(h2, .asset-dialog-title) { font-weight: 700; }
:is(h3, h4, .category-card-details > strong) { font-weight: 600; }
:is(h5, h6) { font-weight: 600; }
/* سطر نرخ مبدل تیتر عددی است: عددها Estedad، نام دارایی و واحد با قلم بدنه. */
.rate-value { font-family: var(--font-body); }

/* عددهای برجسته؛ ‎.num‎ ابزار مشترک عددهایی است که جاوااسکریپت می‌سازد. */
.num,
:is(.home-kpi-value strong, .home-kpi-change, .home-market-change, .change-badge, #home-usd-chart-low, #home-usd-chart-high,
  .field-control input, .index-card-bottom b, .index-card-bottom .ltr-num, .category-top em, .movers-card em, .market-row-rank, .market-row-month, .market-row-range > span > span,
  .price-primary strong, .price-change strong, .price-change-abs, .price-secondary-value, .asset-stat strong, #btc-chart-summary-change,
  #asset-quick-input, .related-meta em) { font-family: var(--font-numeric); }

/* وزن‌ها: Estedad در عدد وزن یکسان پررنگ‌تر از Vazirmatn دیده می‌شود. */
:is(.price-primary strong, .rate-value .num) { font-weight: 800; }
:is(.home-kpi-value strong, .index-card-bottom b, .asset-stat strong, .price-secondary-value, .field-control input, #asset-quick-input, #asset-quick-output .num) { font-weight: 700; }
:is(.home-kpi-change, .home-market-change, .change-badge, .home-market-price .num, .market-row-price .num, .market-row-month, .price-change strong, .category-stat .num,
  .category-top em, .movers-card em, .related-meta em, .related-meta b .num, .category-top b .num, .btc-chart-summary-value, .btc-chart-summary-value .num, #btc-chart-tooltip-price .num, #home-usd-chart-low, #home-usd-chart-high, .converter-insights .num) { font-weight: 600; }
:is(.market-row-rank, .market-row-range > span > span, .price-change-abs, .index-card-bottom .ltr-num, .mover-label small .num, .movers-card small .num, .hub-search-results small .num, td.num, td .num) { font-weight: 500; }

/* عددهای Estedad هم فاصلهٔ طبیعی دارند؛ tnum آن هر رقم را ۰٫۷۴em می‌کند. */
/* span.num درون‌خطی می‌ماند، حتی جایی که قاعدهٔ عمومی «span» آن را flex کند. */
span.num { display: inline; }

/* سطر پیوندهای پایان متن صفحهٔ جفت مبدل: قیمت هر دارایی و تبدیل معکوس */
.pair-links { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.pair-links a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.pair-links a:hover { text-decoration: underline; }

/* شبکه‌های اجتماعی در فوتر: دکمهٔ کپسولی با آیکون رنگی خود شبکه */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: border-color .15s, background .15s; }
.social-link svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
/* لوگوی تو‌پر است؛ خط‌دور عمومی آیکون‌های خطی شکلش را به‌هم می‌ریخت. */
.social-link svg, .social-link svg path { stroke: none; }
.social-telegram svg { color: #229ed9; }
.social-instagram svg { color: #e4405f; }
.social-telegram:hover { border-color: #229ed9; background: #eef8fd; }
.social-instagram:hover { border-color: #e4405f; background: #fdf0f3; }

/* تبدیل‌های پرکاربرد: آیکون بزرگ مبدأ و آیکون کوچک مقصد پایین سمت چپ آن */
.popular-conversion-icons { position: relative; flex: 0 0 40px; width: 40px; height: 40px; }
.popular-conversion-icons .popular-conversion-symbol { display: block; width: 40px; height: 40px; }
.popular-conversion-target { position: absolute; bottom: -3px; left: -5px; width: 20px; height: 20px; overflow: hidden; border: 2px solid var(--surface); border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 40, 32, .18); }
.popular-conversion-target img { display: block; width: 100%; height: 100%; object-fit: cover; }
.popular-conversions .popular-conversion:hover .popular-conversion-target { border-color: var(--green-soft); }

/* بازار رسمی بسته: «آخرین نرخ بازار» سبز با علامت ؟ کم‌رنگ و توضیح هاور */
.market-closed-hint { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-inline-start: 1px; color: var(--subtle, #9aa8a2); cursor: help; vertical-align: middle; transition: color .15s; }
.market-closed-hint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.market-closed-hint:hover, .market-closed-hint:focus-visible { color: var(--green-dark); outline: none; }
.market-closed-hint::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: -6px; z-index: 20; width: max-content; max-width: 280px; padding: 7px 10px; border-radius: 8px; color: #fff; background: #17241f; font-size: 12px; font-weight: 500; line-height: 1.6; white-space: normal; text-align: center; box-shadow: 0 6px 18px rgba(16, 40, 32, .18); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.market-closed-hint:hover::after, .market-closed-hint:focus::after { opacity: 1; transform: none; }
.rate-status, .asset-price-hero .price-freshness { overflow: visible; }

/* ساختار تیتر هوم: نام دارایی‌های جدول «قیمت‌های مهم امروز» و نام هر بازار
   h3 هستند؛ ظاهرشان دقیقاً همان قبلی است (نام دارایی با قلم بدنه). */
.home-market-label h3 { margin: 0; font-family: var(--font-body); font-size: inherit; font-weight: 700; line-height: inherit; }
.category-tile h3 { margin: 0; line-height: inherit; }
@media (max-width: 600px) { .home-market-label h3 { font-size: 14px; } }

.rate-status.closed { color: var(--green-dark); }

/* «تبدیل‌های پرتکرار» در صفحه‌های مبدل: عنوان بخش و متن هر دکمه h2 است
   (کیورد ریسرچ مهر ۱۴۰۵)؛ دکمه‌ها کارت‌های هم‌اندازه در چهار ستون. */
.frequent-conversions { margin-top: 32px; padding: 28px 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.frequent-conversions > h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.5; }
.frequent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.frequent-grid li { min-width: 0; }
.frequent-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface-muted); text-decoration: none; transition: border-color .15s, background .15s; }
.frequent-link:hover, .frequent-link[aria-current="page"] { border-color: var(--green); background: var(--green-soft); }
.frequent-link:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.frequent-link h2 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.7; }
.frequent-link .icon-chevron { flex: none; color: var(--green); }
@media (max-width: 1100px) { .frequent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .frequent-conversions { margin-top: 24px; padding: 22px 16px; border-radius: 20px; }
  .frequent-conversions > h2 { font-size: 19px; }
  .frequent-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.frequent-conversions[hidden] { display: none; }
