@charset "UTF-8";
/* ==========================================================================
   بونوس فایندر — سیستم طراحی
   --------------------------------------------------------------------------
   ساختار فایل:
     1.  فونت
     2.  توکن‌های طراحی (متغیرهای CSS)
     3.  پایه و ریست
     4.  لی‌اوت و کمکی‌ها
     5.  دکمه‌ها و نشان‌ها
     6.  هدر و ناوبری
     7.  هیرو
     8.  ابزار بونوس‌یاب (فیلترها)
     9.  کارت بونوس (کوپن)
     10. کارت دسته و کارت برند
     11. جدول مقایسه
     12. تقویم روزهای هفته
     13. بخش‌های محتوایی، مراحل، متدولوژی
     14. آکاردئون سوالات متداول
     15. صفحات داخلی (سرصفحه، بردکرامب، مشخصات)
     16. فوتر
     17. حالت‌های خالی/خطا و ریزکامپوننت‌ها
     18. ریسپانسیو
     19. حرکت کم‌شده و چاپ
   ========================================================================== */

/* ---------- 1. فونت ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ---------- 2. توکن‌های طراحی ---------- */
:root {
  /* رنگ پایه — جوهری سرد با ته‌مایه‌ی آبی */
  --ink-900: #090c12;
  --ink-850: #0d1118;
  --ink-800: #11161f;
  --ink-750: #161c26;
  --ink-700: #1c232f;
  --ink-600: #28313f;
  --ink-500: #3a4453;

  /* طلایی — رنگ ارزش و بونوس */
  --gold-050: #fff6e3;
  --gold-200: #ffe0a3;
  --gold-400: #ffc74f;
  --gold-500: #f5b32c;
  --gold-600: #d99617;
  --gold-700: #986200;

  /* لهجه‌ی دعوت به اقدام — نارنجی گرم */
  --accent-400: #ff7a58;   /* فقط برای متن و نشان روی زمینه‌ی تیره */
  --accent-500: #d9370e;   /* پس‌زمینه‌ی دکمه — متن سفید AA */
  --accent-600: #bd2d09;   /* حالت هاور دکمه */

  /* وضعیت */
  --mint-400: #4ee0ab;
  --mint-500: #24c98d;
  --mint-700: #0d6f4c;
  --warn-500: #f0a92c;
  --error-500: #ef5a5a;

  /* سطوح روشن */
  --paper: #f7f4ed;
  --paper-alt: #ffffff;
  --paper-line: #e4ded1;

  /* متن روی تیره */
  --text-hi: #f4f2ec;
  --text-mid: #a8b0bf;
  --text-low: #7d8696;

  /* متن روی روشن */
  --text-dark-hi: #131820;
  --text-dark-mid: #4c5665;
  --text-dark-low: #77808e;

  /* نقش‌های معنایی — در کل فایل از همین‌ها استفاده می‌شود */
  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --surface-raised: var(--ink-750);
  --surface-sunken: var(--ink-850);
  --border: var(--ink-600);
  --border-soft: var(--ink-700);
  --primary: var(--gold-500);
  --secondary: var(--mint-500);
  --accent: var(--accent-500);

  /* شعاع گوشه */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* سایه */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-md: 0 6px 18px -6px rgba(0, 0, 0, .55);
  --sh-lg: 0 20px 48px -18px rgba(0, 0, 0, .7);
  --sh-gold: 0 12px 34px -14px rgba(245, 179, 44, .5);

  /* فاصله */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;

  /* عرض کانتینر */
  --container: 1200px;
  --container-narrow: 780px;

  /* تایپوگرافی */
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-base: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  --lh-tight: 1.25;
  --lh-normal: 1.7;

  --header-h: 66px;
  --ease: cubic-bezier(.4, .14, .3, 1);
}

/* ---------- 3. پایه و ریست ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* [hidden] باید همیشه برنده باشد — چند کامپوننت display صریح دارند
   و بدون این قانون، مخفی کردنشان با ویژگی hidden بی‌اثر می‌شود. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-hi);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* بافت ملایم پس‌زمینه: دو هاله‌ی بسیار کم‌رنگ، نه گرادیان تمام‌صفحه */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 380px at 78% -6%, rgba(245, 179, 44, .10), transparent 68%),
    radial-gradient(620px 340px at 8% 2%, rgba(36, 201, 141, .06), transparent 66%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-3);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color .15s var(--ease);
}
a:hover { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0 0 var(--s-4); padding-inline-start: 1.35em; }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* حالت فوکوس یکدست و همیشه قابل دیدن */
:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--gold-500); color: #16120a; }

/* پرش به محتوا */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100px;
  transform: translateX(50%);
  z-index: 999;
  background: var(--gold-500);
  color: #16120a;
  font-weight: 700;
  padding: var(--s-3) var(--s-6);
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 4. لی‌اوت و کمکی‌ها ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--s-10); }
.section--tight { padding-block: var(--s-9); }

/* بخش روشن — برای محتوای طولانی و خواندنی */
.section--paper {
  background: var(--paper);
  color: var(--text-dark-hi);
}
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--text-dark-hi); }
.section--paper p,
.section--paper li { color: var(--text-dark-mid); }
.section--paper a { color: var(--gold-700); }
.section--paper a:hover { color: var(--accent-600); }

.section--sunken { background: var(--surface-sunken); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
.section-head__text { max-width: 62ch; }
.section-head p { margin: var(--s-2) 0 0; color: var(--text-mid); }
.section--paper .section-head p { color: var(--text-dark-mid); }

/* برچسب کوچک بالای عنوان بخش */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-400);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--paper .eyebrow { color: var(--gold-700); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--s-4); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* اعداد لاتین داخل متن فارسی: جهت‌دهی امن */
.num { unicode-bidi: plaintext; }

/* ---------- 5. دکمه‌ها و نشان‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: transform .12s var(--ease), background-color .15s var(--ease),
              border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-500);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(217, 55, 14, .85);
}
.btn--primary:hover { background: var(--accent-600); color: #fff; }

.btn--gold {
  background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
  color: #1a1408;
  box-shadow: var(--sh-gold);
}
.btn--gold:hover { background: linear-gradient(160deg, var(--gold-200), var(--gold-500)); color: #1a1408; }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-hi);
}
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-400); background: rgba(245, 179, 44, .07); }

.section--paper .btn--ghost { border-color: var(--paper-line); color: var(--text-dark-hi); }
.section--paper .btn--ghost:hover { border-color: var(--gold-600); color: var(--gold-700); background: rgba(245, 179, 44, .1); }

.btn--sm { padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* نشان‌ها */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px var(--s-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.7;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--gold  { background: rgba(245, 179, 44, .14); color: var(--gold-400); border-color: rgba(245, 179, 44, .34); }
.badge--mint  { background: rgba(36, 201, 141, .13); color: var(--mint-400); border-color: rgba(36, 201, 141, .32); }
.badge--flame { background: rgba(247, 85, 44, .13); color: var(--accent-400); border-color: rgba(247, 85, 44, .34); }
.badge--muted { background: rgba(255, 255, 255, .05); color: var(--text-mid); border-color: var(--border); }
.badge--dark  { background: rgba(0, 0, 0, .28); color: var(--gold-200); border-color: rgba(255, 255, 255, .14); }

.section--paper .badge--gold  { background: rgba(217, 150, 23, .14); color: var(--gold-700); border-color: rgba(217, 150, 23, .3); }
.section--paper .badge--mint  { background: rgba(13, 111, 76, .1);  color: var(--mint-700); border-color: rgba(13, 111, 76, .25); }
.section--paper .badge--muted { background: rgba(0, 0, 0, .04); color: var(--text-dark-mid); border-color: var(--paper-line); }

/* نقطه‌ی وضعیت — اطلاعات فقط با رنگ منتقل نمی‌شود، متن هم کنارش هست */
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot--live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- 6. هدر و ناوبری ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 12, 18, .92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: var(--fs-md); color: var(--text-hi); }
.brand__sub { font-size: 10px; color: var(--text-low); letter-spacing: .06em; }

.nav { margin-inline-start: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text-mid);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text-hi); background: rgba(255, 255, 255, .05); text-decoration: none; }
.nav__link[aria-current='page'] { color: var(--gold-400); background: rgba(245, 179, 44, .1); }

.header__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { color: var(--gold-400); border-color: var(--gold-600); }

.nav-toggle { display: none; }

/* کشوی موبایل */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer[data-open='true'] { display: block; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, .72);
  border: 0;
  width: 100%;
  cursor: pointer;
}
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(340px, 88vw);
  background: var(--ink-850);
  border-inline-start: 1px solid var(--border);
  padding: var(--s-5);
  overflow-y: auto;
  animation: drawerIn .22s var(--ease);
}
@keyframes drawerIn {
  from { transform: translateX(-24px); opacity: .4; }
  to { transform: none; opacity: 1; }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-5);
}
.drawer__list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.drawer__list li { margin: 0; border-bottom: 1px solid var(--border-soft); }
.drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) 0;
  color: var(--text-hi);
  font-weight: 600;
}
.drawer__list a:hover { color: var(--gold-400); text-decoration: none; }
.drawer__group-title {
  font-size: var(--fs-xs);
  color: var(--text-low);
  font-weight: 700;
  letter-spacing: .05em;
  margin: var(--s-5) 0 var(--s-2);
}

/* ---------- 7. هیرو ---------- */
.hero {
  padding-block: var(--s-9) var(--s-8);
  border-bottom: 1px solid var(--border-soft);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--s-8);
  align-items: start;
}
.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--s-4);
  letter-spacing: -.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-400);
}
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}

/* نوار آمار زیر متن هیرو */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  padding-top: var(--s-6);
  margin-top: var(--s-6);
  border-top: 1px solid var(--border-soft);
}
.stat__value {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.1;
}
.stat__label { font-size: var(--fs-sm); color: var(--text-low); }

/* --- کارت «بهترین بونوس امروز»: قالب کوپن --- */
.spotlight {
  position: relative;
  background: linear-gradient(168deg, var(--ink-750), var(--ink-850));
  border: 1px solid rgba(245, 179, 44, .3);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
/* نوار طلایی بالای کوپن */
.spotlight::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
}
.spotlight__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.spotlight__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: .03em;
}
.spotlight__body { padding: 0 var(--s-5) var(--s-5); }

.spotlight__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.spotlight__brand-name { font-weight: 800; font-size: var(--fs-lg); }
.spotlight__brand-note { font-size: var(--fs-xs); color: var(--text-low); }

/* دو خانه‌ی درصد: ریالی و کریپتو */
.pct-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.pct {
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-3);
  text-align: center;
}
.pct--lead {
  border-color: rgba(245, 179, 44, .45);
  background: linear-gradient(170deg, rgba(245, 179, 44, .16), rgba(0, 0, 0, .3));
}
.pct__value {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  color: var(--text-hi);
  unicode-bidi: plaintext;
}
.pct--lead .pct__value { color: var(--gold-400); }
.pct__value small { font-size: .45em; font-weight: 700; margin-inline-start: 2px; }
.pct__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-mid);
}

/* خط پرفراژ کوپن */
.perf {
  position: relative;
  height: 1px;
  margin: var(--s-5) 0;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.perf::before,
.perf::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  transform: translateY(-50%);
}
.perf::before { inset-inline-start: calc(var(--s-5) * -1 - 10px); }
.perf::after  { inset-inline-end:   calc(var(--s-5) * -1 - 10px); }

/* فهرست مشخصات کوتاه */
.spec-list { display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin: 0;
  font-size: var(--fs-sm);
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed var(--border-soft);
}
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt, .spec-list .spec__k { color: var(--text-low); }
.spec-list dd, .spec-list .spec__v { margin: 0; color: var(--text-hi); font-weight: 600; text-align: end; }

.spotlight__note {
  font-size: var(--fs-xs);
  color: var(--text-low);
  line-height: 1.6;
  margin-top: var(--s-3);
}

/* ---------- 8. ابزار بونوس‌یاب ---------- */
.finder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.finder__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.finder__title { font-size: var(--fs-lg); margin: 0; }
.finder__hint { font-size: var(--fs-sm); color: var(--text-low); margin: 0; }

.field { display: block; }
.field__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.input,
.select {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-hi);
  font-size: var(--fs-base);
  transition: border-color .15s var(--ease);
}
.input::placeholder { color: var(--text-low); }
.input:hover, .select:hover { border-color: var(--ink-500); }
.input:focus, .select:focus { border-color: var(--gold-500); outline-offset: 1px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8b0bf' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left var(--s-4) center;
  padding-inline-start: var(--s-8);
}

.search-field { position: relative; }
.search-field .input { padding-inline-start: var(--s-8); }
.search-field__icon {
  position: absolute;
  inset-inline-start: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-low);
  pointer-events: none;
}

.finder__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

/* چیپ‌های میان‌بر */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--s-4);
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-mid);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--ink-500); color: var(--text-hi); }
.chip[aria-pressed='true'] {
  background: rgba(245, 179, 44, .14);
  border-color: var(--gold-500);
  color: var(--gold-400);
}

/* چیپ فیلتر فعال با دکمه‌ی حذف */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 1px solid var(--border-soft);
}
.active-filters:empty { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px var(--s-3);
  background: rgba(245, 179, 44, .1);
  border: 1px solid rgba(245, 179, 44, .32);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--gold-400);
}
.filter-chip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: rgba(245, 179, 44, .2);
  color: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.filter-chip__x:hover { background: var(--gold-500); color: #16120a; }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.results-bar__count { font-size: var(--fs-sm); color: var(--text-mid); margin: 0; }
.results-bar__count strong { color: var(--gold-400); }
.results-bar__sort { display: flex; align-items: center; gap: var(--s-2); }
.results-bar__sort .select { width: auto; min-width: 190px; }

/* ---------- 9. کارت بونوس (کوپن) ---------- */
/* minmax(0,1fr) لازم است؛ با 1fr ساده، حداقلِ auto باعث می‌شود
   جدول‌های پهن ستون را از عرض صفحه بیرون ببرند. */
.bonus-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }

.bcard {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 200px;
  gap: var(--s-5);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.bcard:hover {
  border-color: var(--ink-500);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
/* کارت بدون شماره‌ی رتبه — ستون رتبه حذف می‌شود تا محتوا سر جای خودش بماند */
.bcard--norank { grid-template-columns: minmax(0, 1fr) 200px; }

.bcard--gold { border-color: rgba(245, 179, 44, .38); }
.bcard--gold:hover { border-color: var(--gold-500); box-shadow: var(--sh-gold); }
.bcard--expired { opacity: .68; }

/* ستون رتبه */
.bcard__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 62px; height: 62px;
  border-radius: var(--r-md);
  background: var(--ink-850);
  border: 1px solid var(--border);
  flex: none;
}
.bcard__rank-num {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--text-mid);
  unicode-bidi: plaintext;
}
.bcard__rank-label { font-size: 9px; color: var(--text-low); }
.bcard--gold .bcard__rank {
  background: linear-gradient(160deg, rgba(245, 179, 44, .22), rgba(0, 0, 0, .25));
  border-color: rgba(245, 179, 44, .4);
}
.bcard--gold .bcard__rank-num { color: var(--gold-400); }

/* ستون میانی */
.bcard__main { min-width: 0; }
.bcard__top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.bcard__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0;
}
.bcard__title a { color: var(--text-hi); }
.bcard__title a:hover { color: var(--gold-400); }
.bcard__badges { display: flex; flex-wrap: wrap; gap: 6px; }

.bcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bcard__meta li { display: flex; align-items: center; gap: 6px; margin: 0; }
.bcard__meta b { color: var(--text-hi); font-weight: 700; unicode-bidi: plaintext; }
.bcard__meta svg { color: var(--text-low); flex: none; }

/* دلیل تطابق با فیلتر */
.bcard__why {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: rgba(36, 201, 141, .08);
  border: 1px solid rgba(36, 201, 141, .24);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--mint-400);
  line-height: 1.55;
}
.bcard__why svg { flex: none; margin-top: 3px; }

/* ستون چپ: درصد + اقدام */
.bcard__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: stretch;
  text-align: center;
}
.bcard__pct {
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3);
}
.bcard--gold .bcard__pct {
  background: linear-gradient(170deg, rgba(245, 179, 44, .16), rgba(0, 0, 0, .28));
  border-color: rgba(245, 179, 44, .4);
}
.bcard__pct-value {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold-400);
  unicode-bidi: plaintext;
}
.bcard__pct-value small { font-size: .5em; }
.bcard__pct-label { display: block; font-size: var(--fs-xs); color: var(--text-mid); }
.bcard__links { display: flex; flex-direction: column; gap: 6px; }
.bcard__detail-link { font-size: var(--fs-xs); color: var(--text-mid); }
.bcard__detail-link:hover { color: var(--gold-400); }

/* امتیاز */
.score {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-mid);
}
.score__value {
  font-weight: 800;
  color: var(--mint-400);
  unicode-bidi: plaintext;
}
.score__bar {
  position: relative;
  width: 54px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--ink-700);
  overflow: hidden;
}
.score__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--mint-500), var(--gold-400));
  border-radius: inherit;
}

/* جدول تفکیک امتیاز (صفحه‌ی جزئیات) */
.score-parts { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.score-parts li { margin: 0; }
.score-parts__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  margin-bottom: 5px;
}
.score-parts__row span:last-child { color: var(--text-mid); unicode-bidi: plaintext; }
.score-parts__track { height: 6px; border-radius: var(--r-pill); background: var(--ink-700); overflow: hidden; }
.score-parts__fill { height: 100%; background: linear-gradient(90deg, var(--mint-500), var(--gold-400)); border-radius: inherit; }

/* ---------- 10. کارت دسته و کارت برند ---------- */
.cat-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  color: inherit;
  transition: border-color .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease);
}
.cat-card:hover {
  text-decoration: none;
  border-color: var(--gold-600);
  transform: translateY(-3px);
  background: var(--surface-raised);
}
.cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(245, 179, 44, .12);
  color: var(--gold-400);
  flex: none;
}
.cat-card__title { font-size: var(--fs-md); font-weight: 700; margin: 0; color: var(--text-hi); }
.cat-card__desc { font-size: var(--fs-sm); color: var(--text-mid); margin: 0; flex: 1; }
.cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  font-size: var(--fs-xs);
  color: var(--text-low);
}
.cat-card__foot b { color: var(--gold-400); unicode-bidi: plaintext; }

/* کادر لوگو — پس‌زمینه بر اساس روشن/تیره بودن لوگو */
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  flex: none;
  overflow: hidden;
}
.logo-tile--dark  { background: #0e1219; border: 1px solid var(--border); }
.logo-tile--light { background: #f2f0ea; border: 1px solid #ddd8cc; }
.logo-tile img { display: block; object-fit: contain; width: auto; }

.logo-tile--sm { width: 84px; height: 46px; }
.logo-tile--sm img { max-height: 30px; max-width: 68px; }
.logo-tile--md { width: 116px; height: 62px; }
.logo-tile--md img { max-height: 44px; max-width: 96px; }
.logo-tile--lg { width: 168px; height: 92px; }
.logo-tile--lg img { max-height: 68px; max-width: 140px; }

.brand-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.brand-card:hover { border-color: var(--ink-500); transform: translateY(-2px); }
.brand-card__head { display: flex; align-items: center; gap: var(--s-4); }
.brand-card__name { font-size: var(--fs-md); font-weight: 800; margin: 0; }
.brand-card__name a { color: var(--text-hi); }
.brand-card__name a:hover { color: var(--gold-400); }
.brand-card__en { font-size: var(--fs-xs); color: var(--text-low); }
.brand-card__rows { display: grid; gap: var(--s-2); margin: 0; }
.brand-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed var(--border-soft);
}
.brand-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
.brand-card__row dt { color: var(--text-low); }
.brand-card__row dd { margin: 0; font-weight: 700; unicode-bidi: plaintext; }
.brand-card__row dd.is-gold { color: var(--gold-400); }
.brand-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* سوییچ نمای کارت/جدول */
.view-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  gap: 2px;
}
.view-switch button {
  padding: 6px var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-mid);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.view-switch button[aria-pressed='true'] { background: var(--gold-500); color: #16120a; }

/* ---------- 11. جدول مقایسه ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ctable {
  min-width: 940px;
  font-size: var(--fs-sm);
}
.ctable caption {
  padding: var(--s-4) var(--s-5);
  text-align: start;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-soft);
}
.ctable th, .ctable td {
  padding: var(--s-3) var(--s-4);
  text-align: start;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.ctable thead th {
  background: var(--ink-850);
  color: var(--text-mid);
  font-size: var(--fs-xs);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ctable tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.ctable tbody tr:last-child td { border-bottom: 0; }

/* ستون اول چسبان روی صفحه‌های کوچک */
.ctable th[scope='row'],
.ctable .col-brand {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  min-width: 178px;
  white-space: normal;
}
.ctable thead .col-brand { z-index: 3; background: var(--ink-850); }
.ctable tbody tr:hover th[scope='row'] { background: var(--ink-750); }

.ctable__brand { display: flex; align-items: center; gap: var(--s-3); }
.ctable__brand-name { font-weight: 700; color: var(--text-hi); }
.ctable .is-best { color: var(--gold-400); font-weight: 800; }
.ctable .num-cell { unicode-bidi: plaintext; font-weight: 700; }
.ctable .muted { color: var(--text-low); font-weight: 400; }

/* دکمه‌ی مرتب‌سازی داخل سرستون */
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.th-sort:hover { color: var(--gold-400); }
.th-sort__arrow { opacity: .35; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.th-sort[aria-sort='ascending'] .th-sort__arrow { opacity: 1; transform: rotate(180deg); }
.th-sort[aria-sort='descending'] .th-sort__arrow { opacity: 1; }

/* ---------- 12. تقویم روزهای هفته ---------- */
.daybar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.daybtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--s-4) var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-mid);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.daybtn:hover { border-color: var(--ink-500); color: var(--text-hi); }
.daybtn[aria-pressed='true'] {
  background: rgba(245, 179, 44, .13);
  border-color: var(--gold-500);
  color: var(--gold-400);
}
.daybtn--golden { border-style: solid; border-color: rgba(245, 179, 44, .34); }
.daybtn__tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: .02em;
}
.daybtn__today {
  font-size: 9px;
  color: var(--mint-400);
  font-weight: 700;
}

.day-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.day-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.day-panel__title { margin: 0; font-size: var(--fs-lg); }
.day-panel__note { font-size: var(--fs-sm); color: var(--text-mid); margin: 0 0 var(--s-5); }

/* ---------- 13. بخش‌های محتوایی، مراحل، متدولوژی ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--s-6);
  border-top: 2px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -17px;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #16120a;
  font-weight: 800;
  font-size: var(--fs-sm);
}
.step h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--text-mid); margin: 0; }
.section--paper .step { border-top-color: var(--paper-line); }
.section--paper .step p { color: var(--text-dark-mid); }

/* کارت محتوایی/آموزشی */
.info-card {
  background: var(--paper-alt);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.info-card h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.info-card p { font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.info-card__link { font-size: var(--fs-sm); font-weight: 700; }

/* فهرست معیارهای رتبه‌بندی */
.criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.criteria li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin: 0;
  font-size: var(--fs-sm);
}
.criteria svg { flex: none; margin-top: 5px; color: var(--mint-500); }

/* بلوک سلب مسئولیت */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  background: rgba(240, 169, 44, .07);
  border: 1px solid rgba(240, 169, 44, .26);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.7;
}
.disclaimer svg { flex: none; margin-top: 3px; color: var(--warn-500); }
.section--paper .disclaimer { color: var(--text-dark-mid); background: rgba(240, 169, 44, .1); }

/* بلوک دعوت به اقدام انتهای صفحه */
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  background: linear-gradient(140deg, var(--ink-750), var(--ink-850));
  border: 1px solid rgba(245, 179, 44, .28);
  border-radius: var(--r-xl);
  padding: var(--s-7);
}
.cta-block h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); color: var(--text-hi); }
.cta-block p { color: var(--text-mid); margin: 0; max-width: 52ch; font-size: var(--fs-sm); }

/* محتوای متنی طولانی */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-md); margin-top: var(--s-6); }
.prose ul { padding-inline-start: 1.2em; }
.prose li::marker { color: var(--gold-600); }

/* ---------- 14. آکاردئون سوالات متداول ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 900px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.section--paper .faq__item { background: var(--paper-alt); border-color: var(--paper-line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-4) var(--s-5);
  background: none;
  border: 0;
  color: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  line-height: 1.6;
}
.faq__q:hover { color: var(--gold-400); }
.section--paper .faq__q:hover { color: var(--gold-700); }
.faq__icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform .2s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity .2s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded='true'] .faq__icon::after { opacity: 0; }
.faq__q[aria-expanded='true'] { color: var(--gold-400); }
.section--paper .faq__q[aria-expanded='true'] { color: var(--gold-700); }

.faq__a {
  padding: 0 var(--s-5) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.8;
}
.faq__a[hidden] { display: none; }
.section--paper .faq__a { color: var(--text-dark-mid); }

/* ---------- 15. صفحات داخلی ---------- */
.breadcrumb {
  padding-block: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--text-low);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.breadcrumb li + li::before {
  content: '‹';
  color: var(--ink-500);
}
.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb [aria-current='page'] { color: var(--text-hi); }

.page-head {
  padding-block: var(--s-7) var(--s-8);
  border-bottom: 1px solid var(--border-soft);
}
.page-head__lead {
  font-size: var(--fs-lg);
  color: var(--text-mid);
  max-width: 68ch;
  margin-bottom: 0;
}
.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--text-low);
  align-items: center;
}

/* جدول مشخصات دو ستونی */
.spec-table { width: 100%; font-size: var(--fs-sm); }
.spec-table th, .spec-table td {
  padding: var(--s-3) var(--s-4);
  text-align: start;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.spec-table th {
  color: var(--text-mid);
  font-weight: 600;
  width: 38%;
  white-space: nowrap;
}
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.panel__title { font-size: var(--fs-md); margin-bottom: var(--s-4); }
.panel--paper { background: var(--paper-alt); border-color: var(--paper-line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-7);
  align-items: start;
}
.sticky-side { position: sticky; top: calc(var(--header-h) + var(--s-5)); }

/* کد تخفیف */
.promo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--ink-850);
  border: 1px dashed var(--gold-600);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
}
.promo__code {
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold-400);
  font-size: var(--fs-md);
  unicode-bidi: plaintext;
}
.promo__copy { margin-inline-start: auto; }

/* فهرست مزایا و محدودیت‌ها */
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.pc-list li { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0; font-size: var(--fs-sm); }
.pc-list svg { flex: none; margin-top: 4px; }
.pc-list--pro svg { color: var(--mint-500); }
.pc-list--con svg { color: var(--warn-500); }

/* ---------- 16. فوتر ---------- */
.footer {
  background: var(--ink-850);
  border-top: 1px solid var(--border-soft);
  padding-block: var(--s-9) var(--s-6);
  margin-top: var(--s-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer__about { font-size: var(--fs-sm); color: var(--text-mid); max-width: 40ch; margin-top: var(--s-4); }
.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: var(--s-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer__list li { margin: 0; }
.footer__list a { color: var(--text-mid); font-size: var(--fs-sm); }
.footer__list a:hover { color: var(--gold-400); }

.footer__bottom {
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--text-low);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 2px solid var(--error-500);
  border-radius: 50%;
  color: var(--error-500);
  font-weight: 800;
  font-size: var(--fs-xs);
  flex: none;
  unicode-bidi: plaintext;
}

/* ---------- 17. حالت‌های خالی و ریزکامپوننت‌ها ---------- */
.empty-state {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
}
.empty-state__icon { color: var(--text-low); margin-bottom: var(--s-4); }
.empty-state h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.empty-state p { color: var(--text-mid); font-size: var(--fs-sm); max-width: 46ch; margin-inline: auto; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.7;
  border: 1px solid;
}
.notice--info  { background: rgba(36, 201, 141, .07); border-color: rgba(36, 201, 141, .26); color: var(--text-mid); }
.notice--warn  { background: rgba(240, 169, 44, .07); border-color: rgba(240, 169, 44, .26); color: var(--text-mid); }
.notice svg { flex: none; margin-top: 3px; }
.notice--info svg { color: var(--mint-500); }
.notice--warn svg { color: var(--warn-500); }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-low);
}
.updated svg { flex: none; }

/* اسکلت بارگذاری */
.skeleton {
  background: linear-gradient(90deg, var(--ink-750) 25%, var(--ink-700) 50%, var(--ink-750) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* صفحه‌ی ۴۰۴ */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 62vh;
  padding-block: var(--s-9);
}
.notfound__code {
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-500);
  unicode-bidi: plaintext;
  margin-bottom: var(--s-4);
}

/* نقشه‌ی سایت HTML */
.sitemap-group { margin-bottom: var(--s-7); }
.sitemap-group__title {
  font-size: var(--fs-md);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--s-4);
}
.sitemap-list {
  columns: 2;
  column-gap: var(--s-7);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-list li { break-inside: avoid; margin-bottom: var(--s-2); }

/* ---------- 18. ریسپانسیو ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight { max-width: 520px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__actions { margin-inline-start: auto; }
  .finder__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* کارت بونوس: رتبه و درصد به یک ردیف بالا می‌روند */
  .bcard {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: var(--s-4);
    align-items: start;
  }
  .bcard--norank { grid-template-columns: minmax(0, 1fr); }
  .bcard__rank { width: 52px; height: 52px; }
  .bcard__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
  }
  .bcard__pct { flex: none; min-width: 116px; }
  .bcard__links { flex: 1; }
}

@media (max-width: 720px) {
  :root {
    --fs-4xl: 2.1rem;
    --fs-3xl: 1.7rem;
    --fs-2xl: 1.375rem;
    --s-10: 56px;
    --s-9: 44px;
  }
  .container { padding-inline: var(--s-4); }
  .section { padding-block: var(--s-9); }
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero__stats { gap: var(--s-5); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .criteria { grid-template-columns: minmax(0, 1fr); }
  .pros-cons { grid-template-columns: minmax(0, 1fr); }
  .finder { padding: var(--s-5) var(--s-4); }
  .finder__filters { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .cta-block { padding: var(--s-6) var(--s-5); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .sitemap-list { columns: 1; }
  .daybar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day-panel { padding: var(--s-5) var(--s-4); }
  .results-bar { align-items: stretch; flex-direction: column; }
  .results-bar__sort .select { width: 100%; }
  .spotlight { max-width: none; }
  .perf::before, .perf::after { display: none; }
}

/* گوشی‌های باریک: نوار هدر جا نمی‌شود، پس عناصر کم‌اهمیت‌تر حذف می‌شوند.
   دکمه‌ی جست‌وجو حذف می‌شود چون ابزار بونوس‌یاب یک اسکرول پایین‌تر است
   و همان جست‌وجو را دارد. دکمه‌ی اصلی و منو باقی می‌مانند. */
@media (max-width: 420px) {
  .header__bar { gap: var(--s-2); }
  .header__actions [data-search-jump] { display: none; }
  .brand__sub { display: none; }
  .brand { gap: var(--s-2); }
  .header__actions .btn--sm { padding: var(--s-2) var(--s-3); font-size: var(--fs-xs); }
}

@media (max-width: 400px) {
  .pct-pair { grid-template-columns: minmax(0, 1fr); }
  .bcard__aside { flex-direction: column; align-items: stretch; }
  .bcard__pct { min-width: 0; }
  .logo-tile--lg { width: 132px; height: 74px; }
  .logo-tile--lg img { max-height: 54px; max-width: 110px; }
}

/* ---------- 19. حرکت کم‌شده و چاپ ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before, .header, .footer, .drawer, .btn, .finder { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 12px; }
}
