/* =========================================================================
 *  bestbonusfa.com — Design System
 *  جهت: تحریریه‌ی پریمیوم / فضای سفید زیاد / تایپوگرافی بزرگ / سایه‌های نرم
 * ========================================================================= */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ------------------------------------------------------------- توکن‌ها */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f3f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;

  --ink: #0a0c10;
  --ink-2: #2c313a;
  --muted: #6b7280;
  --faint: #9aa1ab;

  --line: #e7e8ec;
  --line-strong: #d6d8de;

  --accent: #0b8a63;
  --accent-hi: #12a97c;
  --accent-soft: #e8f6f0;
  --accent-ink: #06563e;

  --gold: #b7791f;
  --gold-soft: #fdf6e7;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #1d4ed8;
  --info-soft: #eef2ff;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(10, 12, 16, .04);
  --sh-2: 0 1px 2px rgba(10, 12, 16, .04), 0 10px 28px -14px rgba(10, 12, 16, .18);
  --sh-3: 0 2px 6px rgba(10, 12, 16, .05), 0 24px 60px -24px rgba(10, 12, 16, .22);

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --step: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

/* ---------------------------------------------------------------- ریست */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* عنصر مخفی همیشه مخفی بماند — جلوگیری از غلبه‌ی display دکمه‌ها بر [hidden] */
[hidden] { display: none !important; }

img, svg { max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.28; font-weight: 700; letter-spacing: -.015em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; inline-size: 100%; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-block-start: -60px; inset-inline-start: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  transition: inset-block-start .18s var(--ease);
}
.skip-link:focus { inset-block-start: 12px; }

.wrap { inline-size: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { inline-size: min(100% - 40px, var(--wrap-narrow)); margin-inline: auto; }
@media (max-width: 560px) { .wrap, .wrap-narrow { inline-size: min(100% - 28px, var(--wrap)); } }

.muted { color: var(--muted); }
.section { padding-block: var(--step); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-alt { background: var(--bg-alt); }

/* --------------------------------------------------------------- هدر */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-block-end: 1px solid rgba(10, 12, 16, .07);
}
.header-inner { display: flex; align-items: center; gap: 20px; block-size: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.logo-mark { color: var(--accent); display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-fa { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand-en { font-size: 9.5px; letter-spacing: .22em; color: var(--faint); font-weight: 600; }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-link {
  padding: 8px 13px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: rgba(10, 12, 16, .05); color: var(--ink); }
.nav-link.is-current { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: border-color .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-toggle { display: none; }

.mobile-nav {
  border-block-start: 1px solid var(--line); background: var(--surface);
  padding: 14px 20px 22px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-inner a {
  padding: 12px 14px; border-radius: var(--r-sm); font-weight: 500; color: var(--ink-2);
}
.mobile-nav-inner a:hover { background: var(--surface-2); }
.mobile-nav-inner .btn { margin-block-start: 10px; justify-content: center; }

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions .header-cta { display: none; }
  .header-actions { margin-inline-start: auto; }
}

/* ------------------------------------------------------------- دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; text-align: center;
  transition: transform .16s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -10px rgba(11, 138, 99, .8); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #1c2029; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-xs { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------- هیرو */
.hero { position: relative; padding-block: clamp(52px, 8vw, 104px) clamp(36px, 5vw, 56px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset-block-start: -180px; inset-inline-end: -140px;
  inline-size: 620px; block-size: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 169, 124, .13), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset-block-end: -260px; inset-inline-start: -180px;
  inline-size: 560px; block-size: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 121, 31, .09), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-inline-size: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-block-end: 22px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--accent-ink); box-shadow: var(--sh-1);
}
.hero-eyebrow .dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--accent-hi); }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.16; margin-block-end: 20px;
}
.hero-lead { font-size: clamp(16.5px, 1.8vw, 20px); color: var(--ink-2); line-height: 1.85; max-inline-size: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.hero-meta { margin-block-start: 26px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------- انتخاب سریع */
.quickpick {
  position: relative; margin-block-start: 42px; padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3);
}
.quickpick h2 { font-size: 18px; margin-block-end: 4px; }
.quickpick-lead { font-size: 14px; color: var(--muted); margin-block-end: 18px; }
.qp-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.qp-block > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-block-end: 9px; }
.qp-links { display: flex; flex-wrap: wrap; gap: 7px; }
.qp-links a {
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface-2);
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.qp-links a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 780px) { .qp-grid { grid-template-columns: 1fr; gap: 16px; } .quickpick { padding: 20px; } }

/* --------------------------------------------------------- سرتیتر بخش */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-block-end: 28px;
}
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent);
  margin-block-end: 8px; text-transform: uppercase;
}
.section-title { font-size: clamp(23px, 3vw, 34px); letter-spacing: -.025em; margin: 0; }
.section-lead { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-inline-size: 62ch; }
.section-action { flex: 0 0 auto; font-weight: 600; font-size: 14.5px; color: var(--accent); }
.section-action:hover { color: var(--accent-hi); }
@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ------------------------------------------------------------- محتوا */
.prose { max-inline-size: 68ch; }
.prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.92; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent-hi); }

.last-updated {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted);
  margin: 0 0 18px;
}
.last-updated svg { color: var(--faint); flex: 0 0 auto; }

.disclaimer {
  display: flex; gap: 11px; align-items: flex-start; padding: 15px 18px; margin-block: 26px 0;
  background: var(--gold-soft); border: 1px solid #f0e0be; border-radius: var(--r-md);
  color: #6b4d12;
}
.disclaimer svg { flex: 0 0 auto; margin-block-start: 3px; }
.disclaimer p { margin: 0; font-size: 14px; line-height: 1.7; }

/* ------------------------------------------------------------- امتیاز */
.score-pill {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 11px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.score-pill .score-of { font-size: 10.5px; font-weight: 500; opacity: .7; }
.score-high { background: var(--accent-soft); color: var(--accent-ink); }
.score-mid { background: var(--info-soft); color: #2b3f9e; }
.score-low { background: var(--surface-2); color: var(--muted); }
.score-pill.is-empty { background: var(--surface-2); color: var(--faint); font-size: 12.5px; font-weight: 500; }
.score-pill.is-large { font-size: 26px; padding: 10px 18px; }
.score-pill.is-large .score-of { font-size: 12px; }

.score-breakdown { display: flex; flex-direction: column; gap: 11px; }
.score-breakdown li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; }
.sb-label { font-size: 13.5px; color: var(--ink-2); }
.sb-bar { block-size: 7px; background: var(--bg-alt); border-radius: var(--r-pill); overflow: hidden; }
.sb-fill { display: block; block-size: 100%; background: var(--accent); border-radius: var(--r-pill); }
.sb-num { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-max { font-weight: 400; color: var(--faint); font-size: 11.5px; }
@media (max-width: 460px) { .score-breakdown li { grid-template-columns: 80px 1fr auto; gap: 9px; } }

/* -------------------------------------------------------------- برند */
.brand-logo {
  display: inline-grid; place-items: center; padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); flex: 0 0 auto;
}
.brand-logo.tile-dark { background: #12151b; }
.brand-logo.tile-light { background: #fff; }
.brand-logo { max-inline-size: 100%; }
.brand-logo img { display: block; inline-size: auto; max-inline-size: 150px; max-block-size: 30px; object-fit: contain; }

.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1px; color: #d9dce1; }
.stars .star.on { color: #e0a92b; }
.rating-num { font-weight: 700; font-size: 13.5px; }
.rating-count { font-size: 12px; color: var(--muted); }

.brand-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.brand-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.rank-badge {
  position: absolute; inset-block-start: -11px; inset-inline-start: 22px;
  inline-size: 30px; block-size: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px;
}
.bc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.bc-id { flex: 1 1 auto; min-inline-size: 0; }
.bc-name { font-size: 17.5px; margin: 0 0 3px; }
.bc-name a:hover { color: var(--accent); }
.bc-summary { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.8; }
.bc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.bc-facts dt { font-size: 11.5px; color: var(--faint); margin-block-end: 3px; }
.bc-facts dd { margin: 0; font-size: 15px; font-weight: 700; }
.bc-games { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-actions { display: flex; gap: 8px; margin-block-start: auto; }
.bc-actions .btn { flex: 1 1 auto; }

.tag {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px;
  color: var(--ink-2); font-weight: 500;
}
a.tag:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.tag-sm { font-size: 11.5px; padding: 3px 9px; }
.tag-type { font-weight: 600; }

/* --------------------------------------------------------- جدول بونوس */
.table-shell { margin-block-start: 4px; }
.table-scroll {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-1); -webkit-overflow-scrolling: touch;
}
.bonus-table { min-inline-size: 1080px; font-size: 14px; }
.bonus-table thead th {
  position: sticky; inset-block-start: 0; z-index: 2; background: var(--surface-2);
  text-align: start; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 13px 14px; border-block-end: 1px solid var(--line); white-space: nowrap;
}
.bonus-table tbody td { padding: 14px; border-block-end: 1px solid var(--line); vertical-align: middle; }
.bonus-table tbody tr:last-child td { border-block-end: 0; }
.bonus-table tbody tr { transition: background .16s var(--ease); }
.bonus-table tbody tr:hover { background: #fcfcfd; }
.bonus-table tbody tr[hidden] { display: none; }

.brand-cell { display: flex; align-items: center; gap: 10px; }
.brand-cell-name { font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .brand-cell-name { white-space: normal; overflow-wrap: anywhere; } }
.brand-cell:hover .brand-cell-name { color: var(--accent); }
.cell-pct .pct-main { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.cell-pct .pct-alt { display: block; font-size: 11.5px; color: var(--muted); }
.cell-games { max-inline-size: 190px; }
.cell-games .tag { margin: 2px 0 0 2px; }
.wager { font-weight: 600; }
.wager.is-free { color: var(--accent); }
.days-all { font-size: 13px; color: var(--muted); }
.day-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.day-chip { padding: 2px 8px; border-radius: var(--r-xs); background: var(--surface-2); font-size: 11.5px; white-space: nowrap; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.status::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.status.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.status.is-limited { background: var(--gold-soft); color: #8a5c0d; }
.status.is-expired { background: var(--surface-2); color: var(--faint); }

.table-empty { margin: 22px 0 0; padding: 26px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: var(--r-md); }
.table-empty a { color: var(--accent); font-weight: 600; }

/* موبایل: هر ردیف یک کارت */
@media (max-width: 900px) {
  .table-scroll { overflow: visible; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .bonus-table, .bonus-table tbody { display: block; min-inline-size: 0; inline-size: 100%; }
  .bonus-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bonus-table tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-block-end: 14px; padding: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  }
  .bonus-table tbody td { border: 0; padding: 7px 0; display: flex; flex-direction: column; gap: 3px; }
  .bonus-table tbody td::before {
    content: attr(data-label); font-size: 11px; color: var(--faint); font-weight: 600;
  }
  .bonus-table tbody td[data-label='']::before { display: none; }
  .cell-brand, .cell-cta { grid-column: 1 / -1; }
  .cell-brand { border-block-end: 1px solid var(--line); padding-block-end: 12px; margin-block-end: 4px; }
  .cell-brand::before { display: none; }
  .cell-games, .cell-days { grid-column: 1 / -1; }
  .cell-games .tag { margin: 0 0 0 4px; }
  .cell-cta { padding-block-start: 12px; border-block-start: 1px solid var(--line); margin-block-start: 6px; }
  .cell-cta .btn { inline-size: 100%; }
  .cell-pct .pct-main { font-size: 20px; }
}

/* ------------------------------------------------------------ فیلترها */
.tool-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .tool-layout { grid-template-columns: 1fr; } }

.filters {
  position: sticky; inset-block-start: 78px; display: flex; flex-direction: column; gap: 20px;
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters-title { font-size: 15.5px; margin: 0; }
.filter-group { border: 0; padding: 0; margin: 0; }
.filter-group legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0; margin-block-end: 9px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inline-size: 100%; block-size: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2);
  border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.chip:hover span { border-color: var(--line-strong); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.filter-count { margin: 0; font-size: 13px; color: var(--muted); border-block-start: 1px solid var(--line); padding-block-start: 14px; }

@media (max-width: 1000px) {
  .filters { position: static; }
}

/* ------------------------------------------------------------- جستجو */
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox .search-icon { position: absolute; inset-inline-start: 15px; color: var(--faint); pointer-events: none; }
.searchbox input {
  inline-size: 100%; padding: 13px 46px 13px 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.searchbox input::placeholder { color: var(--faint); }
.searchbox input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; inset-inline-end: 12px; inline-size: 26px; block-size: 26px;
  border: 0; background: var(--surface-2); border-radius: 50%; cursor: pointer;
  color: var(--muted); font-size: 17px; line-height: 1;
}
.search-clear:hover { background: var(--line); color: var(--ink); }

/* -------------------------------------------------------------- گرید */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- کارت‌ها */
.card {
  padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card-link { transition: box-shadow .22s var(--ease), transform .22s var(--ease); display: block; }
.card-link:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.card h3 { font-size: 17px; margin-block-end: 7px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.8; }

.link-card { display: flex; flex-direction: column; gap: 8px; }
.link-card .lc-icon { inline-size: 38px; block-size: 38px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); margin-block-end: 6px; }
.link-card .lc-meta { margin-block-start: auto; padding-block-start: 12px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------- آمار سریع */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stat-row li { background: var(--surface); padding: 22px 18px; text-align: center; }
.stat-row strong { display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.stat-row span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- FAQ */
.faq { margin-block-start: var(--step); }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-block-start: 22px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .18s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 auto; color: var(--muted); transition: transform .22s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 19px; }
.faq-answer p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }

/* ---------------------------------------------------------- نقاط قوت */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .proscons { grid-template-columns: 1fr; } }
.pc { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.pc h3 { font-size: 15.5px; margin-block-end: 13px; }
.pc ul { display: flex; flex-direction: column; gap: 10px; }
.pc li { position: relative; padding-inline-start: 25px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.pc li::before {
  content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 8px;
  inline-size: 15px; block-size: 15px; border-radius: 50%; background-repeat: no-repeat;
  background-position: center; background-size: 9px;
}
.pc-pro li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.6 9 10 3.2' fill='none' stroke='%230b8a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pc-con li::before { background-color: var(--danger-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23b42318' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------ چک‌لیست */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 680px) { .checklist { grid-template-columns: 1fr; } }
.checklist li {
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.checklist strong { display: block; font-size: 15px; margin-block-end: 5px; }
.checklist span { font-size: 14px; color: var(--muted); line-height: 1.75; }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding-inline-start: 44px;
  font-size: 15.5px; color: var(--ink-2); line-height: 1.8;
}
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 1px;
  inline-size: 29px; block-size: 29px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13.5px;
}

/* ------------------------------------------------------------- نظرات */
.rating-summary {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
@media (max-width: 620px) { .rating-summary { grid-template-columns: 1fr; gap: 20px; } }
.rs-score { text-align: center; }
.rs-score strong { display: block; font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rs-score > span { font-size: 13px; color: var(--muted); }
.rs-score .rating { display: flex; justify-content: center; margin-block-start: 8px; }
.rs-count { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.rs-dist { display: flex; flex-direction: column; gap: 8px; }
.rs-dist li { display: grid; grid-template-columns: 18px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.rs-bar { block-size: 7px; background: var(--bg-alt); border-radius: var(--r-pill); overflow: hidden; }
.rs-bar span { display: block; block-size: 100%; background: #e0a92b; border-radius: var(--r-pill); }
.rs-pct { color: var(--muted); font-variant-numeric: tabular-nums; text-align: end; }

.review-list { display: grid; gap: 14px; margin-block-start: 20px; }
.review { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.review-head { display: flex; align-items: center; gap: 12px; margin-block-end: 11px; }
.avatar {
  inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; flex: 0 0 auto;
}
.review-name { margin: 0; font-weight: 600; font-size: 14.5px; }
.review-date { font-size: 12px; color: var(--faint); }
.review-head .rating { margin-inline-start: auto; }
.review-text { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); line-height: 1.85; }
.review-foot { display: flex; }
.helpful-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted);
  cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease);
}
.helpful-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.helpful-btn.is-done { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); pointer-events: none; }
.helpful-count { font-weight: 700; }
.seed-note { font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 12px 16px; border-radius: var(--r-sm); margin-block-start: 16px; }

/* ------------------------------------------------------------- مقایسه */
.compare-picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-block-end: 26px; }
@media (max-width: 720px) { .compare-picker { grid-template-columns: 1fr; } .compare-vs { justify-self: center; } }
.picker-box { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.picker-box label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-block-end: 8px; }
.picker-box select {
  inline-size: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 15px; cursor: pointer;
}
.picker-box select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.compare-vs { font-weight: 800; color: var(--faint); font-size: 15px; }

.compare-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare-table th, .compare-table td { padding: 15px 18px; border-block-end: 1px solid var(--line); font-size: 14.5px; text-align: start; }
.compare-table thead th { background: var(--surface-2); font-size: 13px; color: var(--muted); }
.compare-table tbody th { font-weight: 500; color: var(--muted); font-size: 13.5px; inline-size: 34%; }
.compare-table td { font-weight: 600; position: relative; }
.compare-table td.is-winner { background: var(--accent-soft); color: var(--accent-ink); }
.win-dot { display: inline-block; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--accent); margin-inline-start: 7px; vertical-align: middle; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-block-end: 0; }
@media (max-width: 620px) {
  .compare-table th, .compare-table td { padding: 12px 11px; font-size: 13.5px; }
  .compare-table tbody th { inline-size: 32%; font-size: 12.5px; }
}
.compare-head-cell { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }

.pair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 860px) { .pair-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pair-grid { grid-template-columns: 1fr; } }
.pair-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.pair-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.pair-link span:last-child { color: var(--faint); }

/* ------------------------------------------------------------ تقویم */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 1080px) { .calendar { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .calendar { grid-template-columns: 1fr; } }
.cal-day { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.cal-day.is-golden { border-color: #ecd9a8; background: linear-gradient(180deg, var(--gold-soft), var(--surface) 62%); }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block-end: 12px; }
.cal-head h3 { font-size: 15px; margin: 0; }
.cal-flag { font-size: 10.5px; font-weight: 700; color: #8a5c0d; background: #fbeec9; padding: 2px 8px; border-radius: var(--r-pill); }
.cal-count { font-size: 11.5px; color: var(--faint); margin-inline-start: auto; }
.cal-list { display: flex; flex-direction: column; gap: 6px; }
.cal-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 11px;
  border-radius: var(--r-xs); background: var(--surface-2); transition: background .16s var(--ease);
}
.cal-list a:hover { background: var(--accent-soft); }
.cal-brand { font-size: 13.5px; font-weight: 600; }
.cal-type { font-size: 11.5px; color: var(--muted); grid-column: 1; }
.cal-pct { grid-row: 1 / span 2; align-self: center; font-weight: 800; font-size: 15px; color: var(--accent); }

/* ------------------------------------------------------- ماشین‌حساب */
.calc {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2);
}
@media (max-width: 840px) { .calc { grid-template-columns: 1fr; padding: 20px; } }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .calc-form { grid-template-columns: 1fr; } }
.calc-field-full { grid-column: 1 / -1; }
.calc-field label, .calc-field .field-label { display: block; font-size: 13px; font-weight: 600; margin-block-end: 7px; }
.calc-field input[type='number'] {
  inline-size: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.calc-field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.calc-field input[aria-invalid='true'] { border-color: var(--danger); }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
.calc-out {
  display: flex; flex-direction: column; gap: 2px; padding: 22px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line);
}
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-block-end: 1px dashed var(--line-strong); }
.calc-row:last-of-type { border-block-end: 0; }
.calc-row span { font-size: 13.5px; color: var(--muted); }
.calc-row strong { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-row-alt strong { color: var(--accent); }
.calc-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.calc-note:empty { display: none; }

/* -------------------------------------------------------------- مقاله */
.post-card {
  display: flex; flex-direction: column; gap: 7px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.post-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.post-tag { font-size: 11.5px; font-weight: 700; color: var(--accent); margin: 0; letter-spacing: .04em; }
.post-title { font-size: 17.5px; margin: 0; line-height: 1.45; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.8; }
.post-meta { font-size: 12.5px; color: var(--faint); margin: auto 0 0; padding-block-start: 12px; }

.article { max-inline-size: 720px; margin-inline: auto; }
.article h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.03em; margin-block-end: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-block-end: 32px; }
.article-meta .tag { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.article h2 { font-size: clamp(20px, 2.6vw, 27px); margin-block: 42px 14px; letter-spacing: -.02em; }
.article p { font-size: 17px; line-height: 1.95; color: var(--ink-2); }
.article ul, .article ol { display: flex; flex-direction: column; gap: 11px; margin-block: 18px 24px; }
.article ul li { position: relative; padding-inline-start: 22px; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.article ul li::before { content: ''; position: absolute; inset-inline-start: 4px; inset-block-start: 13px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--accent); }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; position: relative; padding-inline-start: 34px; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.article ol li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; inset-block-start: 3px;
  inline-size: 24px; block-size: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700;
}
.article a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.note-box {
  padding: 16px 20px; background: var(--accent-soft); border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-sm); margin-block: 22px; color: var(--accent-ink); font-size: 15.5px; font-weight: 500;
}
.inline-cta { display: inline-flex; align-items: center; gap: 7px; margin-block: 6px 20px; font-weight: 600; color: var(--accent); }
.inline-cta:hover { color: var(--accent-hi); }

/* ------------------------------------------------------------- مرتبط */
.related { margin-block-start: var(--step); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block-start: 20px; }
@media (max-width: 860px) { .related-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related-list { grid-template-columns: 1fr; } }
.related-list a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .16s var(--ease);
}
.related-list a:hover { border-color: var(--accent); }
.rl-title { font-weight: 600; font-size: 15px; }
.rl-desc { font-size: 13px; color: var(--muted); }

/* -------------------------------------------------------------- فرم */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-block-end: 7px; }
.field input, .field textarea, .field select {
  inline-size: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 15.5px;
}
.field textarea { min-block-size: 150px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--danger); background: #fffbfb; }
.field-error { display: none; margin: 6px 0 0; font-size: 12.5px; color: var(--danger); }
.field-error.is-shown { display: block; }
.form-status { margin-block-start: 16px; padding: 14px 18px; border-radius: var(--r-sm); font-size: 14.5px; }
.form-status.is-ok { background: var(--accent-soft); color: var(--accent-ink); }
.form-status.is-err { background: var(--danger-soft); color: var(--danger); }
.form-status[hidden] { display: none; }

/* -------------------------------------------------------------- برند */
.brand-hero { padding-block: 44px 34px; border-block-end: 1px solid var(--line); background: var(--surface); }
.brand-hero-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand-hero .brand-logo { padding: 14px 18px; }
.brand-hero .brand-logo img { max-block-size: 44px; max-inline-size: 210px; }
.brand-hero-id { flex: 1 1 280px; min-inline-size: 0; }
.brand-hero h1 { font-size: clamp(27px, 4vw, 42px); margin-block-end: 8px; letter-spacing: -.03em; }
.brand-tagline { color: var(--muted); font-size: 16px; margin: 0; }
.brand-hero-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 860px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-grid > div { background: var(--surface); padding: 18px; }
.spec-grid dt { font-size: 12px; color: var(--faint); margin-block-end: 5px; }
.spec-grid dd { margin: 0; font-size: 16px; font-weight: 700; }

.offer-list { display: flex; flex-direction: column; gap: 14px; }
.offer {
  padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  scroll-margin-block-start: 84px;
}
.offer.is-expired { opacity: .68; }
.offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-end: 16px; }
.offer-head h3 { font-size: 17.5px; margin: 0; }
.offer-head .status { margin-inline-start: auto; }
.offer-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 780px) { .offer-facts { grid-template-columns: repeat(2, 1fr); } }
.offer-facts div { display: flex; flex-direction: column; gap: 3px; }
.offer-facts dt { font-size: 11.5px; color: var(--faint); }
.offer-facts dd { margin: 0; font-size: 15.5px; font-weight: 700; }
.offer-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.offer-foot .tag { background: transparent; }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
.side-card { position: sticky; inset-block-start: 78px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
@media (max-width: 980px) { .side-card { position: static; } }
.side-card h2 { font-size: 16px; margin-block-end: 12px; }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a { padding: 9px 12px; border-radius: var(--r-xs); font-size: 14.5px; color: var(--ink-2); }
.side-links a:hover { background: var(--surface-2); color: var(--accent-ink); }

/* -------------------------------------------------------------- فوتر */
.site-footer { margin-block-start: var(--step); padding-block: 54px 26px; background: var(--surface); border-block-start: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 44px; padding-block-end: 36px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { margin-block-end: 14px; }
.footer-note { font-size: 14px; color: var(--muted); line-height: 1.85; margin-block-end: 12px; }
.footer-disclaimer { font-size: 12.5px; color: var(--faint); line-height: 1.75; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-block-end: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13.5px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block-start: 22px; border-block-start: 1px solid var(--line); font-size: 12.5px; color: var(--faint);
}
.footer-bottom p { margin: 0; }
.footer-age { display: inline-flex; align-items: center; gap: 8px; }
.age-badge {
  display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 11px; color: var(--ink-2);
}

/* ------------------------------------------------------------ ۴۰۴ */
.notfound { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.notfound .code { font-size: clamp(64px, 12vw, 130px); font-weight: 800; letter-spacing: -.05em; color: var(--line-strong); line-height: 1; margin-block-end: 12px; }
.notfound h1 { font-size: clamp(24px, 3.4vw, 36px); }
.notfound .searchbox { max-inline-size: 460px; margin: 26px auto 30px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* --------------------------------------------------------- جستجو صفحه */
.search-results { display: grid; gap: 12px; margin-block-start: 24px; }
.sr-item { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.sr-item h3 { font-size: 16px; margin-block-end: 4px; }
.sr-item h3 a:hover { color: var(--accent); }
.sr-item p { margin: 0; font-size: 13.5px; color: var(--muted); }
.sr-empty { padding: 40px 24px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------- وضعیت‌ها */
.is-loading { position: relative; min-block-size: 120px; }
.is-loading::after {
  content: ''; position: absolute; inset: 0; background: var(--surface-2); border-radius: var(--r-md);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

/* --------------------------------------------------------------- چاپ */
@media print {
  .site-header, .site-footer, .filters, .btn, .breadcrumbs { display: none !important; }
  body { background: #fff; }
  .table-scroll { overflow: visible; border: 0; }
}

/* ------------------------------------------------------------ مسیر */
.breadcrumbs { padding-block: 16px 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: '‹'; margin-inline-end: 6px; color: var(--faint); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] span { color: var(--ink-2); }


/* ------------------------------------------------------ نظرهای کاربران */
.cmt {
  --cmt-line: #e3e6ea; --cmt-line-2: #eef1f4; --cmt-bg: #fff; --cmt-bg-2: #f7f8fa;
  --cmt-ink: inherit; --cmt-dim: #6b7684; --cmt-accent: #111; --cmt-on-accent: #fff;
  --cmt-r: 14px; --cmt-r-sm: 9px; --cmt-star: #e0a92a;
  display: block; margin-block-start: 8px;
}
.cmt-top h2, .cmt-top h3 { margin: 0 0 4px; }
.cmt-lead { margin: 0; color: var(--cmt-dim); font-size: 14.5px; }
.cmt-count { margin: 6px 0 0; color: var(--cmt-dim); font-size: 12.5px; }
.cmt-list { display: grid; gap: 12px; margin-block: 18px; }
.cmt-empty { margin: 0; padding: 18px; border: 1px dashed var(--cmt-line); border-radius: var(--cmt-r); color: var(--cmt-dim); font-size: 14px; }
.cmt-item { background: var(--cmt-bg); border: 1px solid var(--cmt-line); border-radius: var(--cmt-r); padding: 15px 17px; }
.cmt-item > p { margin: 9px 0 0; font-size: 14.5px; line-height: 1.85; }
.cmt-head { display: flex; align-items: center; gap: 10px; }
.cmt-av { inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--cmt-bg-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.cmt-meta { display: flex; flex-direction: column; line-height: 1.4; }
.cmt-meta b { font-size: 14px; }
.cmt-meta time { font-size: 11.5px; color: var(--cmt-dim); }
.cmt-stars { margin-inline-start: auto; display: inline-flex; gap: 2px; }
.cmt-stars i { inline-size: 11px; block-size: 11px; background: var(--cmt-line); border-radius: 2px; }
.cmt-stars i.on { background: var(--cmt-star); }
.cmt-reply { margin-block-start: 11px; padding: 10px 13px; background: var(--cmt-bg-2); border-radius: var(--cmt-r-sm); }
.cmt-reply b { font-size: 12px; color: var(--cmt-dim); display: block; }
.cmt-reply p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.8; }

.cmt-form { background: var(--cmt-bg); border: 1px solid var(--cmt-line); border-radius: var(--cmt-r); padding: 17px 18px; }
.cmt-form-t { margin: 0 0 4px; font-size: 16px; }
.cmt-note { margin: 0 0 14px; font-size: 13px; color: var(--cmt-dim); line-height: 1.8; }
.cmt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmt-fld { display: flex; flex-direction: column; gap: 5px; min-inline-size: 0; }
.cmt-fld > span { font-size: 12.5px; color: var(--cmt-dim); font-weight: 600; }
.cmt-fld-full { margin-block-start: 12px; }
.cmt input[type="text"], .cmt select, .cmt textarea {
  font: inherit; font-size: 14.5px; color: var(--cmt-ink); background: var(--cmt-bg);
  border: 1px solid var(--cmt-line); border-radius: var(--cmt-r-sm); padding: 10px 12px;
  inline-size: 100%; max-inline-size: 100%;
}
.cmt textarea { resize: vertical; min-block-size: 96px; line-height: 1.8; }
.cmt input[type="text"]:focus-visible, .cmt select:focus-visible, .cmt textarea:focus-visible {
  outline: 2px solid var(--cmt-accent); outline-offset: 1px;
}
.cmt-hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 14px; }
.cmt-btn {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  background: var(--cmt-accent); color: var(--cmt-on-accent); border: 0;
  border-radius: var(--cmt-r-sm); padding: 11px 22px;
}
.cmt-btn[disabled] { opacity: .6; cursor: progress; }
.cmt-hint { font-size: 12.5px; color: var(--cmt-dim); }
.cmt-status { margin: 12px 0 0; font-size: 13.5px; padding: 10px 13px; border-radius: var(--cmt-r-sm); background: var(--cmt-bg-2); }
.cmt-status.is-ok { background: #e7f6ee; color: #14663f; }
.cmt-status.is-err { background: #fdecec; color: #9b2323; }
@media (max-width: 560px) { .cmt-row { grid-template-columns: 1fr; } .cmt-btn { inline-size: 100%; } }


/* =========================================================================
 *  پیش‌گیری از سرریز افقی
 *  آیتم‌های فلکس/گرید به‌طور پیش‌فرض کوچک‌تر از محتوایشان نمی‌شوند و همین
 *  باعث می‌شد جدول‌های اسکرول‌دار کل صفحه را پهن کنند.
 * ========================================================================= */
* { min-inline-size: 0; }
img, svg, video, canvas { max-inline-size: 100%; }
