/* =========================================================
   رازی تست — استایل جامع نهایی (نسخه‌ی ۴)
   تغییرات کلیدی این نسخه:
   - هدر در دو ردیف: (لوگو + دکمه‌ها) و (منو)
   - منو فقط ۴ لینک: خانه، آزمون‌ها، کارنامه من، تماس با ما
   - منو در موبایل به‌صورت چند خطی نمایش داده می‌شود (بدون همبرگری)
   - نوار بالایی در همه سایزها دیده می‌شود
   - گرید جدید cats--five برای ۵ دسته آزمون
   - بخش جدید exams-hero برای صفحه آزمون‌ها
   فهرست:
   01) متغیرها و تنظیمات پایه
   02) ریست و بیس
   03) دکمه‌ها و اجزای مشترک
   04) نوار بالایی — همیشه دیده می‌شود
   05) هدر و منو (دو ردیف، بدون همبرگری)
   06) منوی کاربر
   07) فوتر
   08) دکمه بازگشت به بالا
   09) مسیر راهنما
   10) صفحه خانه — هیرو
   11) صفحه خانه — کارت آزمون نمایشی
   12) صفحه خانه — آمار
   13) بخش‌ها + پس‌زمینه‌های رنگی
   14) دسته‌بندی‌ها (شامل cats--two, cats--three, cats--five)
   15) ویژگی‌ها
   16) آزمون‌های پرطرفدار
   17) مراحل
   18) CTA مشترک
   19) Notice (یادآوری)
   20) Skeleton Loaders
   21) بنر حوزه (Cat Hero)
   22) نوار فیلتر و جستجو
   23) کارت درس
   24) بنر درس (Lesson Hero)
   25) چیدمان دو ستونه درس
   26) کارت PDF
   27) سرفصل‌ها (Syllabus)
   28) سایدبار درس
   29) لیست فصل‌ها (Chapters)
   30) صفحه آزمون
   31) پالت سوالات و مودال
   32) صفحه کارنامه
   33) صفحه داشبورد
   34) صفحه پرداخت
   35) صفحه ورود / ثبت‌نام
   36) صفحه آزمون‌ها (exams-hero) — جدید
   37) واکنش‌گرایی
   38) کاهش انیمیشن و چاپ
   ========================================================= */

/* ============ 01) متغیرها ============ */
:root {
  --c-primary:        #4f46e5;
  --c-primary-dark:   #4338ca;
  --c-primary-soft:   #eef2ff;
  --c-ink:            #0f172a;
  --c-ink-2:          #334155;
  --c-muted:          #64748b;
  --c-muted-2:        #94a3b8;
  --c-line:           #e5e7eb;
  --c-bg:             #ffffff;
  --c-bg-soft:        #f8fafc;
  --c-bg-soft-2:      #f1f5f9;
  --c-footer:         #0b1120;

  --c-success:        #10b981;
  --c-success-soft:   #d1fae5;
  --c-warning:        #f59e0b;
  --c-warning-soft:   #fef3c7;
  --c-danger:         #ef4444;
  --c-danger-soft:    #fee2e2;
  --c-info:           #0ea5e9;
  --c-info-soft:      #e0f2fe;
  --c-purple:         #8b5cf6;
  --c-purple-soft:    #ede9fe;

  --font-sans: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-full: 999px;

  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --sh-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
  --sh-xl: 0 24px 60px rgba(15, 23, 42, 0.14);
  --sh-primary: 0 10px 24px rgba(79, 70, 229, 0.28);

  --t-fast: 0.18s ease;
  --t-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --header-h: 72px;
}

/* ============ 02) ریست و بیس ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-ink);
  background-color: var(--c-bg);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.4; font-weight: 800; color: var(--c-ink); }

::selection { background: var(--c-primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-soft-2); }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--r-full);
  border: 2px solid var(--c-bg-soft-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-muted-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.text-gradient {
  background: linear-gradient(120deg, var(--c-primary), #7c3aed 60%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ 03) دکمه‌ها و اجزای مشترک ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-fast),
    color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--sh-primary); }
.btn--primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35); }
.btn--primary:active { transform: translateY(0); }

.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--c-ink-2); }
.btn--ghost:hover { color: var(--c-primary); background: var(--c-primary-soft); }

.btn--light { background: #fff; color: var(--c-primary-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--r-full);
  line-height: 1.6;
}
.tag--free { background: var(--c-success-soft); color: #15803d; }
.tag--paid { background: var(--c-warning-soft); color: #b45309; }
.tag--soft { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--r-full);
}

.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-24px) scale(1.05); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   04) نوار بالایی — همیشه دیده می‌شود
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, #312e81 0%, #4f46e5 50%, #0ea5e9 100%);
  color: #fff;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 60;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 40px;
  padding-block: 0.5rem;
  flex-wrap: nowrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.topbar__item svg {
  width: 16px;
  height: 16px;
  color: #fde68a;
  flex-shrink: 0;
}

.topbar__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.topbar__links a {
  color: #e0e7ff;
  font-weight: 700;
  transition: color 0.18s ease;
}
.topbar__links a:hover { color: #fff; }

/* ============================================================
   05) هدر و منو — ساختار دو ردیف، بدون همبرگری
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.header.is-scrolled { box-shadow: var(--sh-sm); }
.header--simple { background: #fff; }

/* ردیف اول — لوگو + دکمه‌ها */
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.65rem;
}

/* لوگو */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  border-radius: 13px;
  box-shadow: var(--sh-primary);
  line-height: 1;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.logo__text strong {
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--c-ink);
}
.logo__text small {
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 600;
}

/* دکمه‌های ورود/ثبت‌نام */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  position: relative;
}

/* ردیف دوم — منو */
.nav {
  border-top: 1px solid var(--c-line);
  padding-block: 0.45rem;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav__link {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-ink-2);
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.nav__link.is-active {
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
}

/* دکمه همبرگری — کاملاً حذف شده */
.nav-toggle { display: none !important; }

/* ============ 06) منوی کاربر ============ */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.user-chip:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }

.user-chip__avatar {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
}

.user-chip__text { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.user-chip__text strong { font-size: 0.8125rem; color: var(--c-ink); }
.user-chip__text small { font-size: 0.6875rem; color: var(--c-muted); }
.user-chip svg { width: 16px; height: 16px; color: var(--c-muted); }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 200px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  z-index: 55;
}
.user-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink-2);
  border-radius: var(--r-md);
}
.user-menu a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.user-menu hr { border: none; border-top: 1px solid var(--c-line); margin: 0.4rem 0; }
.user-menu__logout { color: var(--c-danger) !important; }
.user-menu__logout:hover { background: var(--c-danger-soft) !important; }

/* ============ 07) فوتر ============ */
.footer {
  background: var(--c-footer);
  color: #94a3b8;
  padding-top: 4rem;
  font-size: 0.875rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer__col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer__col h4::after {
  content: "";
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 32px; height: 3px;
  background: var(--c-primary);
  border-radius: var(--r-full);
}

.footer__col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col ul a { color: #94a3b8; transition: color var(--t-fast), padding-inline-start var(--t-fast); }
.footer__col ul a:hover { color: #fff; padding-inline-start: 6px; }

.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: #64748b; }

.footer__about { margin-top: 1.25rem; line-height: 2; color: #94a3b8; max-width: 380px; }
.footer__contact li { line-height: 2; }

.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-size: 0.8125rem; font-weight: 800;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.socials a:hover {
  color: #fff;
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.footer--simple { padding-top: 0; }
.footer--simple .footer__bottom-inner { padding-block: 1.5rem; }

/* ============ 08) دکمه بازگشت به بالا ============ */
.to-top {
  position: fixed;
  bottom: 24px; inset-inline-start: 24px;
  z-index: 40;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: #fff;
  background: var(--c-primary);
  border-radius: 14px;
  box-shadow: var(--sh-primary);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all var(--t-base);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-primary-dark); transform: translateY(-4px); }

/* ============ 09) مسیر راهنما ============ */
.breadcrumb-wrap {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
  padding-block: 0.9rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--c-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--c-muted-2); }
.breadcrumb span { color: var(--c-ink); font-weight: 700; }

/* ============ 10) صفحه خانه — هیرو ============ */
.hero {
  position: relative;
  padding-block: 5rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(139, 92, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 12s ease-in-out infinite; }
.blob--1 {
  width: 420px; height: 420px;
  top: -80px; right: -120px;
  background: radial-gradient(circle at 30% 30%, #a5b4fc, #6366f1 70%);
}
.blob--2 {
  width: 360px; height: 360px;
  bottom: -120px; left: -100px;
  background: radial-gradient(circle at 30% 30%, #67e8f9, #0ea5e9 70%);
  animation-delay: -6s;
}

.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}
.hero__content { max-width: 620px; }

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--c-ink-2);
  line-height: 2;
}
.hero__lead strong { color: var(--c-primary-dark); font-weight: 800; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__points {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px dashed var(--c-line);
}
.hero__points li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 700; color: var(--c-ink-2);
}
.hero__points svg { width: 18px; height: 18px; color: var(--c-success); }

.hero__visual {
  position: relative;
  display: flex; justify-content: center;
  min-height: 420px;
}

/* ============ 11) صفحه خانه — کارت آزمون ============ */
.exam-card {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  transform: rotate(-1.5deg);
  transition: transform var(--t-slow);
}
.exam-card:hover { transform: rotate(0deg) translateY(-6px); }

.exam-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}

.exam-card__timer {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 800; color: var(--c-ink-2);
  background: var(--c-bg-soft);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
}
.exam-card__timer svg { width: 15px; height: 15px; color: var(--c-primary); }

.exam-card__title { font-size: 1.25rem; font-weight: 800; }
.exam-card__sub { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--c-muted); }

.exam-card__progress {
  position: relative;
  height: 8px;
  margin-top: 1.25rem;
  background: var(--c-bg-soft-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.exam-card__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-primary), #7c3aed);
  border-radius: inherit;
  transition: width var(--t-base);
}

.exam-card__meta {
  display: flex; justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem; font-weight: 700; color: var(--c-muted);
}

.exam-card__opts { display: grid; gap: 0.5rem; margin-top: 1.25rem; }

.opt {
  padding: 0.6rem 0.9rem;
  font-size: 0.8125rem; font-weight: 700;
  color: var(--c-ink-2);
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.opt--active {
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.float-badge {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: float 7s ease-in-out infinite;
}
.float-badge strong { font-size: 0.875rem; font-weight: 900; color: var(--c-ink); }
.float-badge small { font-size: 0.75rem; color: var(--c-muted); font-weight: 600; }
.float-badge--1 { top: 6%; right: -4%; animation-delay: -2s; }
.float-badge--2 { bottom: 8%; left: -4%; animation-delay: -4s; }

/* ============ 12) صفحه خانه — آمار ============ */
.stats {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e40af 100%);
  color: #fff;
  padding-block: 2rem;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem;
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}
.stat:hover { background: rgba(255, 255, 255, 0.05); }
.stat strong {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(120deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.8125rem; color: #94a3b8; font-weight: 600; }

/* ============ 13) بخش‌ها + پس‌زمینه‌های رنگی ============ */
.section { padding-block: 5rem; }
.section--soft { background: var(--c-bg-soft); }

.section--categories {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

.section--features {
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(6, 182, 212, 0.10), transparent 60%),
    linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.section--steps {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(245, 158, 11, 0.10), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(244, 63, 94, 0.08), transparent 60%),
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.section__head {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section__head--start { margin-inline: 0; text-align: right; max-width: 720px; }

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  border-radius: var(--r-full);
  letter-spacing: 0.03em;
}

.section__title {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.section__desc { margin-top: 0.75rem; font-size: 1rem; color: var(--c-muted); }
.section__more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ============ 14) دسته‌بندی‌ها ============ */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cats--two {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.cats--three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* حالت پنج ستونه — برای ۵ دسته اصلی آزمون */
.cats--five {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.cat {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.cat::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--c);
  opacity: 0.9;
}
.cat::after {
  content: "";
  position: absolute;
  top: -60px; left: -60px;
  width: 180px; height: 180px;
  background: var(--c-soft);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.cat:hover::after { opacity: 1; }

.cat--big { padding: 2rem; }
.cat--big .cat__title { font-size: 1.5rem; }
.cat--big .cat__desc { font-size: 0.9375rem; line-height: 2; }
.cat--big .cat__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-xl);
}
.cat--big .cat__icon svg {
  width: 30px;
  height: 30px;
}

.cat__head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.cat__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  color: var(--c);
  background: var(--c-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t-base);
}
.cat__icon svg { width: 26px; height: 26px; }
.cat:hover .cat__icon { transform: scale(1.08) rotate(-4deg); }

.cat__count {
  font-size: 0.75rem; font-weight: 800;
  color: var(--c);
  background: var(--c-soft);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
}
.cat__title { position: relative; font-size: 1.25rem; font-weight: 900; }
.cat__desc {
  position: relative;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.9;
}
.cat__list {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem;
}
.cat__list li {
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem; font-weight: 700;
  color: var(--c-ink-2);
  background: var(--c-bg-soft);
  border-radius: var(--r-full);
  transition: background var(--t-fast), color var(--t-fast);
}
.cat:hover .cat__list li { background: var(--c-soft); color: var(--c); }

.cat__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.875rem; font-weight: 800;
  color: var(--c);
  border-top: 1px dashed var(--c-line);
  transition: gap var(--t-fast);
}
.cat__link svg { width: 17px; height: 17px; transition: transform var(--t-fast); }
.cat:hover .cat__link { gap: 0.75rem; }
.cat:hover .cat__link svg { transform: translateX(-4px); }

/* ============ 15) ویژگی‌ها ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.feature__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.25rem;
  color: var(--c-primary);
  background: linear-gradient(135deg, var(--c-primary-soft), #e0e7ff);
  border-radius: var(--r-lg);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { font-size: 1.0625rem; font-weight: 800; }
.feature__text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-muted); line-height: 1.95; }

/* ============ 16) آزمون‌های پرطرفدار ============ */
.exams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.exam {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.exam:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: #c7d2fe; }

.exam__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.exam__title { font-size: 1.0625rem; font-weight: 900; }
.exam__meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem; color: var(--c-muted); font-weight: 600;
}
.exam__meta li { position: relative; padding-inline-start: 1rem; }
.exam__meta li::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  transform: translateY(-50%);
  opacity: 0.6;
}
.exam__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--c-line);
}
.exam__price { font-size: 0.75rem; font-weight: 800; color: var(--c-success); }

/* ============ 17) مراحل ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.step__num {
  position: absolute;
  top: -22px; inset-inline-start: 1.5rem;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 1.0625rem; font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  border-radius: 14px;
  box-shadow: var(--sh-primary);
}
.step__title { font-size: 1.0625rem; font-weight: 900; }
.step__text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-muted); line-height: 1.95; }

/* ============ 18) CTA مشترک ============ */
.cta {
  padding-block: 4rem;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(14, 165, 233, 0.3), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
}
.cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta__text h2 { font-size: clamp(1.5rem, 3vw, 1.5rem); font-weight: 900; color: #fff; }
.cta__text p { margin-top: 0.75rem; font-size: 1rem; color: #c7d2fe; max-width: 540px; }
.cta__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============ 19) Notice (یادآوری) ============ */
.notice {
  padding-block: 1.5rem;
  background: var(--c-info-soft);
  border-block: 1px solid #bae6fd;
}
.notice__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.notice__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: #0369a1;
  background: #fff;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.notice__icon svg { width: 24px; height: 24px; }
.notice__text {
  font-size: 0.875rem;
  color: #075985;
  line-height: 1.95;
}
.notice__text strong { color: #0369a1; font-weight: 900; }

/* ============ 20) Skeleton Loaders ============ */
.lesson-skeleton,
.chapter-skeleton,
.exam-skeleton,
.syllabus-skeleton,
.related-skeleton {
  background: linear-gradient(
    90deg,
    var(--c-bg-soft-2) 0%,
    #e2e8f0 50%,
    var(--c-bg-soft-2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--r-xl);
}

.lesson-skeleton { height: 320px; border: 1px solid var(--c-line); }
.chapter-skeleton { height: 180px; border: 1px solid var(--c-line); }
.exam-skeleton { height: 90px; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.syllabus-skeleton { height: 90px; margin-bottom: 0.75rem; }
.related-skeleton { height: 60px; border-radius: var(--r-md); margin-bottom: 0.5rem; }

/* ============ 21) بنر حوزه (Cat Hero) ============ */
.cat-hero {
  position: relative;
  padding-block: 3.5rem 3rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--c-soft, #f0f9ff) 0%, #ffffff 100%);
}
.cat-hero__bg { position: absolute; inset: 0; z-index: -1; }
.cat-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  animation: float 14s ease-in-out infinite;
}
.cat-hero__blob--1 {
  width: 320px; height: 320px;
  top: -100px; right: -80px;
  background: var(--c, #0ea5e9);
  opacity: 0.35;
}
.cat-hero__blob--2 {
  width: 260px; height: 260px;
  bottom: -100px; left: -80px;
  background: var(--c-dark, var(--c, #0ea5e9));
  opacity: 0.22;
  animation-delay: -7s;
}

.cat-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}
.cat-hero__content { max-width: 720px; }

.cat-hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem; font-weight: 800;
  color: var(--c-dark, var(--c, #0ea5e9));
  background: #fff;
  border: 1px solid var(--c, #0ea5e9);
  border-radius: var(--r-full);
}
.cat-hero__badge svg { width: 16px; height: 16px; }

.cat-hero__title {
  margin-top: 1.25rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.cat-hero__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--c-ink-2);
  line-height: 2;
}

.cat-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.cat-hero__stats li {
  display: flex; flex-direction: column;
  text-align: center;
  padding-inline: 0.5rem;
  border-inline-end: 1px solid var(--c-line);
}
.cat-hero__stats li:first-child { border-inline-end: none; }
.cat-hero__stats strong {
  font-size: 1.25rem; font-weight: 900;
  color: var(--c-dark, var(--c, #0ea5e9));
}
.cat-hero__stats span { font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }

.cat-hero__visual {
  position: relative;
  display: grid; place-items: center;
  width: 220px; height: 220px;
}
.cat-hero__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--c, #0ea5e9);
  opacity: 0.35;
  animation: spin 24s linear infinite;
}
.cat-hero__icon {
  display: grid; place-items: center;
  width: 130px; height: 130px;
  color: var(--c-dark, var(--c, #0ea5e9));
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--sh-xl);
}
.cat-hero__icon svg { width: 60px; height: 60px; }

/* ============ 22) نوار فیلتر و جستجو ============ */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding-block: 1rem;
  position: sticky;
  top: var(--header-h);
  z-index: 30;
}
.filter-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-ink-2);
  background: transparent;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.filter-tab:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.filter-tab.is-active { background: var(--c-primary); color: #fff; box-shadow: var(--sh-primary); }

.filter-search {
  position: relative;
  display: flex; align-items: center;
  min-width: 240px;
  max-width: 340px;
  flex: 1;
}
.filter-search svg {
  position: absolute;
  inset-inline-start: 0.9rem;
  width: 18px; height: 18px;
  color: var(--c-muted);
  pointer-events: none;
}
.filter-search input {
  width: 100%;
  padding: 0.6rem 2.7rem 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  outline: none;
}
.filter-search input:focus {
  background: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
}

/* ============ 23) کارت درس ============ */
.lessons-section { padding-block: 3rem 5rem; }

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.lesson {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.lesson--link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.lesson--link:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: #c7d2fe;
}

.lesson:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: #c7d2fe;
}

.lesson__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.lesson__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  color: var(--lc, #4f46e5);
  background: var(--lc-soft, #eef2ff);
  border-radius: var(--r-lg);
  transition: transform var(--t-base);
}
.lesson__icon svg { width: 28px; height: 28px; }
.lesson:hover .lesson__icon,
.lesson--link:hover .lesson__icon { transform: scale(1.08) rotate(-4deg); }

.lesson__badge {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem; font-weight: 800;
  border-radius: var(--r-full);
}
.lesson__badge--free { background: var(--c-success-soft); color: #15803d; }
.lesson__badge--paid { background: var(--c-warning-soft); color: #b45309; }

.lesson__title { font-size: 1.25rem; font-weight: 900; }
.lesson__desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-muted); line-height: 1.9; }

.lesson__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--c-line);
  border-bottom: 1px dashed var(--c-line);
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 700;
}
.lesson__meta li { display: inline-flex; align-items: center; gap: 0.35rem; }
.lesson__meta svg { width: 14px; height: 14px; color: var(--c-primary); }

.lesson__progress { margin-top: 1.25rem; }
.lesson__progress-bar {
  height: 8px;
  background: var(--c-bg-soft-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.lesson__progress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-primary), #7c3aed);
  border-radius: inherit;
  transition: width var(--t-base);
}
.lesson__progress-meta {
  display: flex; justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem; font-weight: 700; color: var(--c-muted);
}

.lesson__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.lesson__hint { font-size: 0.75rem; font-weight: 800; color: var(--c-success); }
.lesson__hint--new { color: var(--c-primary); }

.lesson__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-primary);
  transition: gap var(--t-fast);
}
.lesson__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}
.lesson--link:hover .lesson__cta {
  gap: 0.75rem;
}
.lesson--link:hover .lesson__cta svg {
  transform: translateX(-4px);
}

.lesson[hidden] { display: none; }

.empty-state {
  display: grid; place-items: center;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--c-muted);
}
.empty-state svg { width: 56px; height: 56px; color: var(--c-muted-2); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; font-weight: 800; color: var(--c-ink); }
.empty-state p { margin-top: 0.5rem; }

/* ============ 24) بنر درس (Lesson Hero) ============ */
.lesson-hero {
  position: relative;
  padding-block: 3.5rem 3rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  overflow: hidden;
  isolation: isolate;
}
.lesson-hero__bg { position: absolute; inset: 0; z-index: -1; }
.lesson-hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 15s ease-in-out infinite; }
.lesson-hero__blob--1 { width: 340px; height: 340px; top: -120px; right: -80px; background: #38bdf8; }
.lesson-hero__blob--2 { width: 280px; height: 280px; bottom: -120px; left: -60px; background: #a78bfa; animation-delay: -8s; }

.lesson-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}
.lesson-hero__content { max-width: 720px; }

.lesson-hero__meta-top { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.lesson-hero__title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.lesson-hero__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--c-ink-2);
  line-height: 2;
}

.lesson-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.lesson-hero__stats li {
  display: flex; flex-direction: column;
  text-align: center;
  padding-inline: 0.5rem;
  border-inline-end: 1px solid var(--c-line);
}
.lesson-hero__stats li:first-child { border-inline-end: none; }
.lesson-hero__stats strong { font-size: 1.375rem; font-weight: 900; color: #0369a1; }
.lesson-hero__stats span { font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }

.lesson-hero__visual {
  position: relative;
  width: 200px; height: 200px;
  display: grid; place-items: center;
}
.lesson-hero__circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed #0ea5e9;
  opacity: 0.35;
  animation: spin 26s linear infinite;
}
.lesson-hero__icon {
  display: grid; place-items: center;
  width: 120px; height: 120px;
  color: #0369a1;
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--sh-xl);
}
.lesson-hero__icon svg { width: 56px; height: 56px; }

/* ============ 25) چیدمان دو ستونه درس ============ */
.lesson-body { padding-block: 3rem 4rem; }
.lesson-body__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.lesson-main { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }

/* ============ 26) کارت PDF ============ */
.pdf-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
  border: 1px solid #bae6fd;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.pdf-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.pdf-card__icon {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  color: #0369a1;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
.pdf-card__icon svg { width: 42px; height: 42px; }

.pdf-card__content { min-width: 0; }
.pdf-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pdf-card__head h3 { font-size: 1.125rem; font-weight: 900; }

.pdf-card__content p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--c-ink-2);
  line-height: 1.95;
}
.pdf-card__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem; font-weight: 700; color: var(--c-muted);
}
.pdf-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.pdf-card__meta svg { width: 14px; height: 14px; color: var(--c-primary); }

.pdf-card__actions {
  grid-column: 1 / -1;
  display: flex; gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px dashed #bae6fd;
}

/* ============ 27) سرفصل‌ها ============ */
.syllabus {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.syllabus h2 { font-size: 1.375rem; font-weight: 900; margin-bottom: 1.25rem; }
.syllabus__list { display: flex; flex-direction: column; gap: 1rem; }
.syllabus__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}
.syllabus__list li:hover { background: var(--c-primary-soft); }
.syllabus__num {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-size: 0.875rem; font-weight: 900;
  color: var(--c-primary-dark);
  background: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}
.syllabus__list strong { display: block; font-size: 0.9375rem; font-weight: 800; }
.syllabus__list p { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--c-muted); line-height: 1.85; }

/* ============ 28) سایدبار درس ============ */
.lesson-side {
  display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.side-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.side-card h3 { font-size: 1rem; font-weight: 900; }
.side-card h4 { font-size: 0.9375rem; font-weight: 800; }

.side-card--progress { padding-bottom: 1.25rem; }

.progress-ring {
  position: relative;
  width: 160px; height: 160px;
  margin: 1.25rem auto;
}
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring__bg {
  fill: none;
  stroke: var(--c-bg-soft-2);
  stroke-width: 12;
}
.progress-ring__bar {
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - (327 * var(--p, 0)) / 100);
  transition: stroke-dashoffset var(--t-slow);
}

.progress-ring__value {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.progress-ring__value strong { font-size: 1.75rem; font-weight: 900; color: var(--c-primary-dark); }
.progress-ring__value small { font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }

.side-stats { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.side-stats li {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
}
.side-stats span { color: var(--c-muted); font-weight: 600; }
.side-stats strong { color: var(--c-ink); font-weight: 800; }

.side-card--cta {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border-color: #c7d2fe;
}
.side-card__badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem; font-weight: 800;
  color: #fff;
  background: var(--c-primary);
  border-radius: var(--r-full);
  margin-bottom: 0.75rem;
}
.side-card--cta p {
  margin-top: 0.5rem; margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--c-ink-2);
  line-height: 1.9;
}

.side-card--info { background: #fffbeb; border-color: #fde68a; }
.side-card__icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  color: #b45309;
  background: #fff;
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
}
.side-card__icon svg { width: 22px; height: 22px; }
.side-card--info p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #78350f;
  line-height: 1.9;
}
.side-card--info strong { color: #b45309; }

.related-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.related-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.related-list a:hover { background: var(--c-bg-soft); }
.related-list__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--rc, #4f46e5);
  background: var(--rc-soft, #eef2ff);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.related-list__icon svg { width: 20px; height: 20px; }
.related-list strong { display: block; font-size: 0.875rem; font-weight: 800; color: var(--c-ink); }
.related-list small { font-size: 0.6875rem; color: var(--c-muted); }

/* ============ 29) لیست فصل‌ها (Chapters) ============ */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.chapter:hover {
  border-color: #c7d2fe;
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.chapter[hidden] { display: none; }

.chapter__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--c-line);
}

.chapter__num {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-primary);
  flex-shrink: 0;
}

.chapter__title-wrap { min-width: 0; }
.chapter__title {
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.5;
}
.chapter__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 700;
}

.chapter__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
}

.chapter__pdf {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}
.chapter__pdf:hover { background: var(--c-primary-soft); }

.chapter__pdf-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--c-primary);
  background: #fff;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.chapter__pdf-icon svg { width: 22px; height: 22px; }

.chapter__pdf-info { min-width: 0; }
.chapter__pdf-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chapter__pdf-info small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
  font-weight: 600;
}

.chapter__exam {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--c-primary-soft), #ffffff);
  border: 1px solid #c7d2fe;
  border-radius: var(--r-lg);
}

.chapter__exam-info { min-width: 0; }
.chapter__exam-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-primary-dark);
}
.chapter__exam-info small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
  font-weight: 700;
}

.chapter[data-status*="done"] {
  border-inline-start: 4px solid var(--c-success);
}
.chapter[data-status*="free"]:not([data-status*="done"]) {
  border-inline-start: 4px solid var(--c-primary);
}
.chapter[data-status*="paid"] {
  border-inline-start: 4px solid var(--c-warning);
}

/* ============ 30) صفحه آزمون ============ */
.exam-page { background: var(--c-bg-soft); }

.exam-bar {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
}
.exam-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}
.exam-bar__info { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.exam-bar__lesson { font-weight: 800; color: var(--c-ink); }
.exam-bar__divider { color: var(--c-muted-2); }
.exam-bar__sub { font-size: 0.8125rem; color: var(--c-muted); font-weight: 700; }

.exam-bar__timer {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1.0625rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  border-radius: var(--r-full);
}
.exam-bar__timer svg { width: 18px; height: 18px; }
.exam-bar__timer.is-warning { color: #b45309; background: #fef3c7; animation: pulse 1.2s infinite; }
.exam-bar__timer.is-danger { color: #b91c1c; background: #fee2e2; animation: pulse 0.8s infinite; }

.exam-bar__actions { display: flex; gap: 0.5rem; }

.exam-bar__progress {
  height: 3px;
  background: var(--c-bg-soft-2);
  overflow: hidden;
}
.exam-bar__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-primary), #7c3aed);
  transition: width var(--t-base);
}

.exam-wrap { padding-block: 2rem 3rem; }
.exam-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.exam-main {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}

.exam-question-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--c-line);
  flex-wrap: wrap;
}
.exam-question-head__num {
  font-size: 0.9375rem; font-weight: 900; color: var(--c-primary-dark);
}

.exam-question__text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 2;
  margin-bottom: 1.75rem;
}

.exam-options { display: flex; flex-direction: column; gap: 0.75rem; }

.exam-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
}
.exam-option:hover { background: #fff; border-color: var(--c-primary); }

.exam-option input { display: none; }

.exam-option__box {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-size: 0.9375rem; font-weight: 900;
  color: var(--c-ink-2);
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.exam-option__text { font-size: 0.9375rem; line-height: 1.9; color: var(--c-ink-2); }

.exam-option input:checked ~ .exam-option__box {
  color: #fff;
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.exam-option input:checked ~ .exam-option__text { color: var(--c-ink); font-weight: 700; }
.exam-option:has(input:checked) {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.exam-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--c-line);
}
.exam-nav__center { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* ============ 31) پالت و مودال ============ */
.exam-side {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky;
  top: calc(64px + 20px);
}

.palette-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.palette-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.palette-card__head h3 { font-size: 1rem; font-weight: 900; }
.palette-card__count { font-size: 0.75rem; font-weight: 800; color: var(--c-muted); }

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.palette button {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 0.8125rem; font-weight: 800;
  color: var(--c-ink-2);
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  transition: all var(--t-fast);
}
.palette button:hover { border-color: var(--c-primary); }
.palette button.is-answered { color: #fff; background: var(--c-success); border-color: var(--c-success); }
.palette button.is-current { color: var(--c-primary-dark); background: var(--c-primary-soft); border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.palette button.is-flagged { color: #fff; background: var(--c-warning); border-color: var(--c-warning); }
.palette button.is-flagged.is-answered { background: linear-gradient(135deg, var(--c-warning), var(--c-success)); }

.palette-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
  font-weight: 700;
}
.palette-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--answered { background: var(--c-success); }
.dot--current { background: var(--c-primary); }
.dot--flagged { background: var(--c-warning); }
.dot--empty { background: var(--c-bg-soft-2); border: 1px solid var(--c-line); }

.exam-side__hint {
  padding: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #78350f;
  line-height: 1.8;
}
.exam-side__hint svg { width: 18px; height: 18px; color: #b45309; flex-shrink: 0; margin-top: 3px; }

.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  padding: 1.5rem;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
.modal__box {
  position: relative;
  width: 100%; max-width: 440px;
  padding: 2rem;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
.modal__icon--warn { color: #b45309; background: var(--c-warning-soft); }
.modal__icon--danger { color: #b91c1c; background: var(--c-danger-soft); }
.modal__icon svg { width: 32px; height: 32px; }

.modal__box h3 { font-size: 1.25rem; font-weight: 900; }
.modal__box p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--c-muted); line-height: 1.9; }
.modal__actions {
  display: flex; gap: 0.75rem; justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ============ 32) صفحه کارنامه ============ */
.result-hero {
  position: relative;
  padding-block: 3.5rem 3rem;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  overflow: hidden;
  isolation: isolate;
}
.result-hero__bg { position: absolute; inset: 0; z-index: -1; }
.result-hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 14s ease-in-out infinite; }
.result-hero__blob--1 { width: 320px; height: 320px; top: -100px; right: -60px; background: #10b981; }
.result-hero__blob--2 { width: 280px; height: 280px; bottom: -100px; left: -60px; background: #38bdf8; animation-delay: -6s; }

.result-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.result-hero__content { max-width: 620px; }
.result-hero__title {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
}
.result-hero__lead { margin-top: 0.75rem; font-size: 1rem; color: var(--c-ink-2); line-height: 2; }
.result-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.result-hero__score { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.score-circle {
  position: relative;
  width: 200px; height: 200px;
}
.score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-circle__bg { fill: none; stroke: #d1fae5; stroke-width: 14; }
.score-circle__bar {
  fill: none;
  stroke: var(--c-success);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: calc(440 - (440 * var(--p, 0)) / 100);
  transition: stroke-dashoffset var(--t-slow);
}
.score-circle__value {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-circle__value strong { font-size: 2.75rem; font-weight: 900; color: var(--c-success); }
.score-circle__value small { font-size: 0.8125rem; color: var(--c-muted); font-weight: 700; }

.result-hero__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem; font-weight: 800;
  border-radius: var(--r-full);
}
.result-hero__badge--good { color: #15803d; background: var(--c-success-soft); }
.result-hero__badge--bad { color: #b91c1c; background: var(--c-danger-soft); }
.result-hero__badge svg { width: 16px; height: 16px; }

.result-stats { padding-block: 2rem; background: #fff; border-block: 1px solid var(--c-line); }
.result-stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.rstat {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  transition: transform var(--t-fast);
}
.rstat:hover { transform: translateY(-3px); }

.rstat__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.rstat__icon svg { width: 22px; height: 22px; }
.rstat__icon--green { color: #15803d; background: var(--c-success-soft); }
.rstat__icon--red { color: #b91c1c; background: var(--c-danger-soft); }
.rstat__icon--gray { color: var(--c-muted); background: var(--c-bg-soft-2); }
.rstat__icon--blue { color: #0369a1; background: var(--c-info-soft); }
.rstat__icon--purple { color: #6d28d9; background: var(--c-purple-soft); }

.rstat small { display: block; font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }
.rstat strong { display: block; font-size: 1rem; font-weight: 900; color: var(--c-ink); margin-top: 0.15rem; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.result-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.result-card--full { grid-column: 1 / -1; }

.result-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.result-card__head h3 { font-size: 1.125rem; font-weight: 900; }

.compare-list { display: flex; flex-direction: column; gap: 1rem; }
.compare-item__head {
  display: flex; justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.compare-item__head span { color: var(--c-muted); font-weight: 600; }
.compare-item__head strong { color: var(--c-ink); font-weight: 900; }

.compare-bar {
  height: 10px;
  background: var(--c-bg-soft-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.compare-bar span {
  display: block; height: 100%;
  border-radius: inherit;
  transition: width var(--t-slow);
}
.compare-bar--primary span { background: linear-gradient(90deg, var(--c-primary), #7c3aed); }
.compare-bar--muted span { background: var(--c-muted-2); }
.compare-bar--gold span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.compare-bar--soft span { background: #cbd5e1; }

.compare-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--c-primary-soft);
  border-radius: var(--r-lg);
  font-size: 0.8125rem;
  color: var(--c-primary-dark);
  line-height: 1.85;
  font-weight: 600;
}
.compare-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.compare-note strong { color: var(--c-primary-dark); font-weight: 900; }

.chart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 220px;
}
.chart__y {
  display: flex; flex-direction: column;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--c-muted);
  font-weight: 700;
  text-align: left;
  padding-block: 0.5rem;
}
.chart__body {
  position: relative;
  border-inline-start: 1px solid var(--c-line);
  padding-inline-start: 0.5rem;
}
.chart__bars {
  display: flex; align-items: flex-end; justify-content: space-around;
  height: 100%;
  gap: 0.5rem;
}

.chart-bar {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  position: relative;
  min-width: 0;
}
.chart-bar::before {
  content: "";
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 42px;
  height: var(--h, 0%);
  background: linear-gradient(180deg, var(--c-primary), #7c3aed);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: height var(--t-slow);
}
.chart-bar span {
  position: absolute;
  bottom: calc(22px + var(--h, 0%) + 6px);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--c-primary-dark);
}
.chart-bar em {
  position: absolute;
  bottom: 0;
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--c-muted);
  font-weight: 700;
  white-space: nowrap;
}
.chart-bar--current::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.chart-bar--current span { color: #b45309; }
.chart-bar--disabled::before { background: var(--c-bg-soft-2); }
.chart-bar--disabled span { color: var(--c-muted-2); }

.chart-filter { display: flex; gap: 0.25rem; }
.chart-filter button {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem; font-weight: 700;
  color: var(--c-muted);
  border-radius: var(--r-full);
}
.chart-filter button.is-active { color: #fff; background: var(--c-primary); }

.topic-list { display: flex; flex-direction: column; gap: 0.85rem; }
.topic__head { display: flex; justify-content: space-between; font-size: 0.8125rem; margin-bottom: 0.35rem; }
.topic__head span { color: var(--c-ink-2); font-weight: 700; }
.topic__head strong { color: var(--c-ink); font-weight: 900; }
.topic__bar { height: 8px; background: var(--c-bg-soft-2); border-radius: var(--r-full); overflow: hidden; }
.topic__bar span { display: block; height: 100%; border-radius: inherit; transition: width var(--t-slow); }
.topic__bar--good span { background: linear-gradient(90deg, #10b981, #34d399); }
.topic__bar--warn span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.topic__bar--bad span { background: linear-gradient(90deg, #ef4444, #f87171); }

.topic-hint {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--c-info-soft);
  border-radius: var(--r-lg);
  font-size: 0.8125rem;
  color: #075985;
  line-height: 1.9;
}
.topic-hint strong { color: #0369a1; }

.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  border-inline-start: 4px solid var(--c-line);
}
.review-item--correct { border-inline-start-color: var(--c-success); }
.review-item--wrong { border-inline-start-color: var(--c-danger); }
.review-item--empty { border-inline-start-color: var(--c-muted-2); }

.review-item__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.review-item__num { font-size: 0.875rem; font-weight: 900; color: var(--c-ink); }
.review-item__status {
  padding: 0.25rem 0.7rem;
  font-size: 0.6875rem; font-weight: 800;
  border-radius: var(--r-full);
}
.review-item--correct .review-item__status { color: #15803d; background: var(--c-success-soft); }
.review-item--wrong .review-item__status { color: #b91c1c; background: var(--c-danger-soft); }
.review-item--empty .review-item__status { color: var(--c-muted); background: var(--c-bg-soft-2); }

.review-item__q { font-size: 0.9375rem; font-weight: 700; line-height: 1.95; color: var(--c-ink); margin-bottom: 1rem; }

.review-item__answers { display: flex; flex-direction: column; gap: 0.5rem; }

.review-answer {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.85;
}
.review-answer__label { font-weight: 800; }
.review-answer__text { color: var(--c-ink-2); }

.review-answer--user-correct { background: #f0fdf4; }
.review-answer--user-correct .review-answer__label { color: #15803d; }
.review-answer--user-wrong { background: #fef2f2; }
.review-answer--user-wrong .review-answer__label { color: #b91c1c; }
.review-answer--correct { background: var(--c-primary-soft); }
.review-answer--correct .review-answer__label { color: var(--c-primary-dark); }

.review-item__explain {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  font-size: 0.8125rem;
  color: var(--c-ink-2);
  line-height: 1.95;
}
.review-item__explain strong { color: var(--c-ink); }

/* ============ 33) صفحه داشبورد ============ */
.dash-wrap { background: var(--c-bg-soft); padding-bottom: 4rem; }

.dash-hero {
  position: relative;
  padding-block: 3rem 2.5rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.dash-hero__bg { position: absolute; inset: 0; z-index: -1; }
.dash-hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; animation: float 14s ease-in-out infinite; }
.dash-hero__blob--1 { width: 320px; height: 320px; top: -100px; right: -80px; background: #a5b4fc; }
.dash-hero__blob--2 { width: 260px; height: 260px; bottom: -100px; left: -60px; background: #38bdf8; animation-delay: -6s; }

.dash-hero__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.dash-hero .pill { color: #e0e7ff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.dash-hero .pill__dot { background: #a5b4fc; }

.dash-hero__title { margin-top: 1rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: #fff; }
.dash-hero__lead { margin-top: 0.75rem; font-size: 1rem; color: #c7d2fe; max-width: 540px; line-height: 2; }

.dash-hero__stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.dstat {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  text-align: center;
  min-width: 110px;
}
.dstat strong { display: block; font-size: 1.75rem; font-weight: 900; color: #fff; }
.dstat span { font-size: 0.75rem; color: #c7d2fe; font-weight: 700; }

.dash-tabs {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: var(--header-h);
  z-index: 20;
}
.dash-tabs__inner {
  display: flex; gap: 0.25rem;
  padding-block: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs__inner::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem; font-weight: 700;
  color: var(--c-ink-2);
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: all var(--t-fast);
}
.dash-tab:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.dash-tab.is-active { background: var(--c-primary); color: #fff; }

.dash-body { padding-top: 2rem; }
.dash-panel { display: none; }
.dash-panel.is-active { display: block; animation: fadeIn 0.3s ease; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.dash-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.dash-card--wide { grid-column: 1 / -1; }
.dash-card--primary { background: linear-gradient(135deg, var(--c-primary), #7c3aed); border-color: transparent; color: #fff; }
.dash-card--primary h3 { color: #fff; }

.dash-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dash-card__head h3 { font-size: 1.0625rem; font-weight: 900; }
.dash-card__link { font-size: 0.8125rem; font-weight: 700; color: var(--c-primary); }
.dash-card__link:hover { color: var(--c-primary-dark); }

.lesson-averages { display: flex; flex-direction: column; gap: 0.9rem; }
.lesson-averages li {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
}
.lesson-averages span:first-child { color: var(--c-ink-2); font-weight: 700; }
.lesson-averages strong { font-weight: 900; color: var(--c-ink); min-width: 40px; text-align: left; }

.bar { height: 8px; background: var(--c-bg-soft-2); border-radius: var(--r-full); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; transition: width var(--t-slow); }
.bar--good span { background: linear-gradient(90deg, #10b981, #34d399); }
.bar--warn span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar--bad span { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar--soft span { background: #cbd5e1; }

.rank-box { text-align: center; padding: 1.25rem 0; }
.rank-box__value { display: block; font-size: 3.5rem; font-weight: 900; line-height: 1; color: #fff; }
.rank-box__of { display: block; font-size: 0.875rem; color: #c7d2fe; font-weight: 700; margin-top: 0.25rem; }
.rank-box__badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem; font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border-radius: var(--r-full);
}

.rank-bar {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  overflow: visible;
  margin-top: 1rem;
}
.rank-bar__fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: inherit;
}
.rank-bar__marker {
  position: absolute;
  top: -22px;
  transform: translateX(50%);
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.rank-bar__meta {
  display: flex; justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: #c7d2fe;
  font-weight: 700;
}

.activity { display: flex; flex-direction: column; gap: 0.75rem; }
.activity li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.activity li:hover { background: var(--c-bg-soft); }
.activity__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.activity__icon svg { width: 18px; height: 18px; }
.activity__icon--green { color: #15803d; background: var(--c-success-soft); }
.activity__icon--blue { color: #0369a1; background: var(--c-info-soft); }
.activity__icon--purple { color: #6d28d9; background: var(--c-purple-soft); }

.activity strong { display: block; font-size: 0.875rem; font-weight: 800; }
.activity small { font-size: 0.75rem; color: var(--c-muted); }

.compare-table { display: flex; flex-direction: column; gap: 0.4rem; }
.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.7fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  align-items: center;
}
.compare-row--head {
  background: var(--c-bg-soft);
  font-weight: 800;
  color: var(--c-muted);
  font-size: 0.75rem;
}
.compare-row:not(.compare-row--head) { background: var(--c-bg-soft); }
.compare-row__you { font-weight: 900; color: var(--c-primary-dark); }
.compare-row__diff { font-weight: 900; text-align: center; padding: 0.15rem 0.5rem; border-radius: var(--r-full); }
.compare-row__diff--up { color: #15803d; background: var(--c-success-soft); }
.compare-row__diff--down { color: #b91c1c; background: var(--c-danger-soft); }

.mistakes { display: flex; flex-direction: column; gap: 0.6rem; }
.mistakes li {
  padding: 0.85rem 1rem;
  background: var(--c-danger-soft);
  border-radius: var(--r-md);
}
.mistakes strong { display: block; font-size: 0.875rem; font-weight: 800; color: #7f1d1d; }
.mistakes small { font-size: 0.75rem; color: #b91c1c; font-weight: 700; }

.lesson-summary {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.lesson-summary__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.lesson-summary__head h3 { font-size: 1.0625rem; font-weight: 900; }
.lesson-summary__head small { font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }
.lesson-summary__avg {
  font-size: 1.25rem; font-weight: 900;
  color: var(--c-primary-dark);
  padding: 0.25rem 0.75rem;
  background: var(--c-primary-soft);
  border-radius: var(--r-full);
}
.lesson-summary__progress small { display: block; margin-top: 0.4rem; font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }
.lesson-summary__items { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.lesson-summary__items li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
}
.lesson-summary__items li span { color: var(--c-muted); font-weight: 700; }
.lesson-summary__items li strong { font-weight: 900; color: var(--c-ink); }
.lesson-summary__items li.is-locked { background: #fffbeb; }
.lesson-summary .btn--block { margin-top: 1rem; }

.history-table {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.history-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 1fr 0.7fr 0.8fr;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.8125rem;
  align-items: center;
  border-bottom: 1px solid var(--c-line);
}
.history-row:last-child { border-bottom: none; }
.history-row--head {
  background: var(--c-bg-soft);
  font-weight: 800;
  color: var(--c-muted);
  font-size: 0.75rem;
}
.history-row:not(.history-row--head):hover { background: var(--c-bg-soft); }
.history-row__score { font-weight: 900; }
.history-row__score--good { color: #15803d; }
.history-row__score--warn { color: #b45309; }
.history-row__score--bad { color: #b91c1c; }

/* ============ 34) صفحه پرداخت ============ */
.checkout-wrap { padding-block: 2rem 4rem; background: var(--c-bg-soft); min-height: 60vh; }

.checkout-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.checkout-step {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-muted);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
}
.checkout-step__num {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  font-size: 0.8125rem;
  font-weight: 900;
  background: var(--c-bg-soft-2);
  border-radius: 50%;
}
.checkout-step__num svg { width: 14px; height: 14px; }
.checkout-step.is-done { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.checkout-step.is-done .checkout-step__num { color: #fff; background: var(--c-success); }
.checkout-step.is-active { color: #fff; background: var(--c-primary); border-color: var(--c-primary); }
.checkout-step.is-active .checkout-step__num { background: rgba(255, 255, 255, 0.2); color: #fff; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.checkout-form { display: flex; flex-direction: column; gap: 1.25rem; }

.selected-exam {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--r-xl);
}
.selected-exam__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  color: var(--c-primary);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.selected-exam__icon svg { width: 28px; height: 28px; }
.selected-exam__info small { display: block; font-size: 0.75rem; color: var(--c-muted); font-weight: 700; }
.selected-exam__info strong { display: block; font-size: 1rem; font-weight: 900; margin-top: 0.2rem; }
.selected-exam__info span { display: block; font-size: 0.75rem; color: var(--c-muted); margin-top: 0.2rem; }
.selected-exam__change {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem; font-weight: 800;
  color: var(--c-primary);
  background: #fff;
  border-radius: var(--r-full);
  border: 1px solid #c7d2fe;
}
.selected-exam__change:hover { background: var(--c-primary); color: #fff; }

.form-section {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.form-section__title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.125rem; font-weight: 900;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.form-section__title span {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font-size: 0.875rem;
  color: #fff;
  background: var(--c-primary);
  border-radius: 50%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; font-weight: 800; color: var(--c-ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
}
.field-pass { position: relative; }
.field-pass input { padding-inline-end: 3rem; }
.field-pass__toggle {
  position: absolute;
  inset-inline-end: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  padding: 0.25rem;
}
.field-pass__toggle svg { width: 20px; height: 20px; }
.field-pass__toggle:hover { color: var(--c-primary); }

.form-note { margin-top: 1rem; font-size: 0.75rem; color: var(--c-muted); }
.form-note a { color: var(--c-primary); font-weight: 700; }

.pay-methods { display: grid; gap: 0.75rem; }
.pay-method {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
}
.pay-method:hover { border-color: var(--c-primary); }
.pay-method input { display: none; }
.pay-method__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--c-ink-2);
  background: #fff;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.pay-method__icon svg { width: 22px; height: 22px; }
.pay-method__text strong { display: block; font-size: 0.9375rem; font-weight: 800; }
.pay-method__text small { font-size: 0.75rem; color: var(--c-muted); }
.pay-method.is-active,
.pay-method:has(input:checked) {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}
.pay-method.is-active .pay-method__icon,
.pay-method:has(input:checked) .pay-method__icon {
  color: var(--c-primary);
  background: #fff;
}

.checkout-summary {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.summary-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.summary-card h3 { font-size: 1.0625rem; font-weight: 900; margin-bottom: 1.25rem; }

.summary-list {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--c-line);
}
.summary-list li {
  display: flex; justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.summary-list span { color: var(--c-muted); font-weight: 600; }
.summary-list strong { font-weight: 900; color: var(--c-ink); }
.summary-list strong.is-free { color: var(--c-success); }

.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1rem;
  font-size: 0.9375rem;
}
.summary-total strong { font-size: 1.25rem; font-weight: 900; color: var(--c-primary-dark); }

.summary-trust {
  display: flex; gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 700;
}
.summary-trust div { display: inline-flex; align-items: center; gap: 0.35rem; }
.summary-trust svg { width: 14px; height: 14px; color: var(--c-success); }

.coupon-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
.coupon-card h4 { font-size: 0.875rem; font-weight: 800; margin-bottom: 0.75rem; }
.coupon-input { display: flex; gap: 0.5rem; }
.coupon-input input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  font-size: 0.8125rem;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  outline: none;
}
.coupon-input input:focus { border-color: var(--c-primary); background: #fff; }

.info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: var(--c-info-soft);
  border: 1px solid #bae6fd;
  border-radius: var(--r-lg);
  font-size: 0.75rem;
  color: #075985;
  line-height: 1.85;
}
.info-card svg { width: 20px; height: 20px; color: #0369a1; flex-shrink: 0; margin-top: 2px; }
.info-card strong { color: #0369a1; }

/* ============ 35) صفحه ورود / ثبت‌نام ============ */
.auth-page { background: var(--c-bg); min-height: 100vh; }

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
}

.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.auth-side__bg { position: absolute; inset: 0; z-index: -1; }
.auth-side__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; animation: float 16s ease-in-out infinite; }
.auth-side__blob--1 { width: 380px; height: 380px; top: -100px; right: -100px; background: #a5b4fc; }
.auth-side__blob--2 { width: 320px; height: 320px; bottom: -100px; left: -80px; background: #38bdf8; animation-delay: -8s; }
.auth-side__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
}

.auth-side__content {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}
.auth-side .logo--light .logo__text small { color: #a5b4fc; }

.auth-side__hero { max-width: 460px; }
.auth-side__hero h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
}
.auth-side__hero p { margin-top: 1rem; font-size: 1rem; color: #c7d2fe; line-height: 2; }

.auth-side__features { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-side__features li {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.9375rem;
  color: #e0e7ff;
  font-weight: 600;
}
.auth-side__check {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  flex-shrink: 0;
}
.auth-side__check svg { width: 14px; height: 14px; }

.auth-side__footer { font-size: 0.75rem; color: #818cf8; }

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.auth-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  align-self: flex-start;
}
.auth-back:hover { color: var(--c-primary); }
.auth-back svg { width: 16px; height: 16px; }

.auth-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-muted);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.auth-tab.is-active { color: #fff; background: var(--c-primary); box-shadow: var(--sh-primary); }

.auth-panel { display: none; }
.auth-panel.is-active { display: block; animation: fadeIn 0.3s ease; }

.auth-head { margin-bottom: 1.5rem; text-align: center; }
.auth-head h1 { font-size: 1.5rem; font-weight: 900; }
.auth-head p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-muted); }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}
.auth-link { color: var(--c-primary); font-weight: 700; }
.auth-link:hover { color: var(--c-primary-dark); }

.check {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--c-ink-2);
  font-weight: 600;
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--c-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.check input:checked {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.check input:checked::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin-block: 1.25rem;
  font-size: 0.75rem;
  color: var(--c-muted);
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%; inset-inline: 0;
  height: 1px;
  background: var(--c-line);
  z-index: -1;
}
.auth-divider span {
  display: inline-block;
  padding-inline: 0.75rem;
  background: #fff;
}

.auth-help { margin-top: 1.5rem; text-align: center; font-size: 0.8125rem; color: var(--c-muted); }
.auth-help a { color: var(--c-primary); font-weight: 700; }

/* ============================================================
   36) صفحه آزمون‌ها (exams-hero) — جدید
   ============================================================ */
.exams-hero {
  position: relative;
  padding-block: 3.5rem 3rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(800px 500px at 100% -10%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-line);
}

.exams-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.exams-hero__bg .blob--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.exams-hero__bg .blob--2 {
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: -80px;
}

.exams-hero__content {
  max-width: 720px;
}

.exams-hero__title {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.exams-hero__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--c-ink-2);
  line-height: 2;
}

.exams-hero__lead strong {
  color: var(--c-primary-dark);
  font-weight: 800;
}

.exams-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}

.exams-hero__stats li {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-inline: 0.5rem;
  border-inline-end: 1px solid var(--c-line);
}

.exams-hero__stats li:first-child {
  border-inline-end: none;
}

.exams-hero__stats strong {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--c-primary-dark);
}

.exams-hero__stats span {
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 700;
}

/* ============================================================
   37) واکنش‌گرایی
   ============================================================ */
@media (max-width: 1100px) {
  .lesson-body__inner { grid-template-columns: 1fr 300px; gap: 1.5rem; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
  .cats--five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { min-height: 380px; }
  .cat-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .cat-hero__visual { margin-inline: auto; }
  .lesson-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .lesson-hero__visual { margin-inline: auto; }
  .result-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .result-hero__score { justify-self: center; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__col--brand { grid-column: 1 / -1; }

  .cats--two { grid-template-columns: 1fr; gap: 1.5rem; }
  .cats--three { grid-template-columns: 1fr; gap: 1.25rem; }

  .nav__link {
    padding: 0.45rem 0.8rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 900px) {
  .lesson-body__inner { grid-template-columns: 1fr; }
  .lesson-side { position: static; }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-side { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 1.5rem; }

  .chapter__actions { grid-template-columns: 1fr; }
}

/* موبایل — منو در چند خط، همه لینک‌ها دیده می‌شوند */
@media (max-width: 860px) {
  /* ردیف اول هدر فشرده‌تر */
  .header__top {
    padding-block: 0.5rem;
    gap: 0.5rem;
  }

  .logo { gap: 0.5rem; }
  .logo__mark {
    width: 36px;
    height: 36px;
    font-size: 1.0625rem;
    border-radius: 11px;
  }
  .logo__text strong { font-size: 0.9375rem; }
  .logo__text small { display: none; }

  /* فقط دکمه ثبت‌نام می‌ماند */
  .header__actions .btn--ghost { display: none; }
  .header__actions .btn--primary {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* ردیف دوم: منو در چند خط */
  .nav {
    padding-block: 0.35rem;
  }
  .nav__list {
    justify-content: center;
    gap: 0.2rem 0.25rem;
  }
  .nav__link {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* سایر بخش‌ها */
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__text p { margin-inline: auto; }
  .cta__actions { justify-content: center; }

  .filter-bar { position: static; }
  .filter-bar__inner { flex-direction: column; align-items: stretch; }
  .filter-search { max-width: 100%; }

  .history-row { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .history-row > *:nth-child(n+3) { font-size: 0.75rem; }

  .form-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .chart { min-height: 180px; }

  .cats--five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  /* exams-hero */
  .exams-hero {
    padding-block: 2.5rem 2rem;
  }
  .exams-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .exams-hero__stats li:nth-child(2) {
    border-inline-end: none;
  }
  .exams-hero__stats strong {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .container { padding-inline: 0.9rem; }

  /* نوار بالایی */
  .topbar { font-size: 0.6875rem; }
  .topbar__inner {
    min-height: 34px;
    padding-block: 0.35rem;
    gap: 0.5rem;
  }
  .topbar__item svg {
    width: 13px;
    height: 13px;
  }
  .topbar__links { gap: 0.5rem; }
  .topbar__links a:last-child { display: none; }

  /* هدر */
  .header__top { padding-block: 0.45rem; }
  .nav__link {
    padding: 0.35rem 0.6rem;
    font-size: 0.6875rem;
  }
  .header__actions .btn--primary {
    padding: 0.35rem 0.7rem;
    font-size: 0.6875rem;
  }

  .hero { padding-block: 3rem 2.5rem; }
  .hero__title { font-size: 1.9rem; }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__points { gap: 0.75rem 1.25rem; }
  .hero__points li { font-size: 0.8125rem; }

  .exam-card { transform: none; }
  .float-badge--1 { top: 2%; right: 0; }
  .float-badge--2 { bottom: 2%; left: 0; }

  .stats__inner { grid-template-columns: 1fr; gap: 0.25rem; }
  .stat strong { font-size: 1.5rem; }

  .section { padding-block: 3rem; }
  .section__head { margin-bottom: 2rem; }

  .cats, .features, .exams, .steps, .lessons-grid { grid-template-columns: 1fr; }
  .cats--five { grid-template-columns: 1fr; }

  .cat-hero__stats,
  .lesson-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .cat-hero__stats li:nth-child(2),
  .lesson-hero__stats li:nth-child(2) { border-inline-end: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .to-top { bottom: 16px; inset-inline-start: 16px; width: 42px; height: 42px; }

  .exam-main { padding: 1.25rem; }
  .exam-bar__info { display: none; }
  .exam-bar__inner { justify-content: space-between; }

  .checkout-steps { gap: 0.35rem; }
  .checkout-step { padding: 0.4rem 0.75rem; font-size: 0.75rem; }

  .auth-card { padding: 1.5rem; }
  .auth-head h1 { font-size: 1.25rem; }

  .result-stats__inner { grid-template-columns: repeat(2, 1fr); }

  .compare-row, .history-row { font-size: 0.75rem; padding: 0.7rem; }

  .chapter { padding: 1.25rem; }
  .chapter__head {
    grid-template-columns: auto 1fr;
    row-gap: 0.5rem;
  }
  .chapter__head > .tag { grid-column: 2; justify-self: start; }
  .chapter__num { width: 44px; height: 44px; font-size: 1.0625rem; }
  .chapter__title { font-size: 1rem; }

  .chapter__pdf,
  .chapter__exam {
    grid-template-columns: auto 1fr;
    row-gap: 0.6rem;
  }
  .chapter__pdf .btn,
  .chapter__exam .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  /* exams-hero */
  .exams-hero {
    padding-block: 2rem 1.5rem;
  }
  .exams-hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .header__top { padding-block: 0.4rem; }

  .logo__mark {
    width: 32px;
    height: 32px;
    font-size: 0.9375rem;
    border-radius: 10px;
  }
  .logo__text strong { font-size: 0.875rem; }

  .nav__list {
    gap: 0.15rem 0.2rem;
  }
  .nav__link {
    padding: 0.3rem 0.55rem;
    font-size: 0.6875rem;
  }

  .header__actions .btn--primary {
    padding: 0.3rem 0.6rem;
    font-size: 0.625rem;
  }
}

@media (max-width: 400px) {
  .hero__title { font-size: 1.65rem; }
  .btn--lg { width: 100%; }
  .exam-card { padding: 1rem; }
  .step { padding: 1.5rem 1rem 1rem; }
  .cat-hero__stats, .lesson-hero__stats { grid-template-columns: 1fr; }
  .cat-hero__stats li, .lesson-hero__stats li {
    border-inline-end: none;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 0.5rem;
  }
  .cat-hero__stats li:last-child,
  .lesson-hero__stats li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* exams-hero */
  .exams-hero__stats { grid-template-columns: 1fr; }
  .exams-hero__stats li {
    border-inline-end: none;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 0.5rem;
  }
  .exams-hero__stats li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ============ 38) کاهش انیمیشن و چاپ ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar, .header, .to-top, .cta, .hero__bg,
  .side-card--cta, .exam-bar__actions, .checkout-summary .btn,
  .auth-back, .socials, .filter-bar, .notice { display: none !important; }

  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; }
  .result-hero, .cta, .dash-hero, .exams-hero { background: #fff !important; color: #000 !important; }
  .result-hero__title, .result-hero__lead { color: #000 !important; }
  .dash-hero__title, .dash-hero__lead { color: #000 !important; }

  .chapter, .lesson, .feature, .cat, .exam { box-shadow: none !important; border: 1px solid #ccc; }
}