/* ============================================================
   چندیار — تم تیره سراسری (Dark Navy + Green)
   این فایل از base.html لود می‌شود؛ همه صفحات از آن ارث می‌برند.
   ============================================================ */

/* ---------- فونت سراسری: صمیم (Samim) ---------- */
@font-face {
  font-family: 'Samim';
  src: url("../fonts/Samim.1fbc03d10ac6.woff2") format('woff2'),
       url("../fonts/Samim.fa7346efac7e.woff") format('woff'),
       url("../fonts/Samim.cc531f954ce1.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Samim';
  src: url("../fonts/Samim-Bold.9c8a097add90.woff2") format('woff2'),
       url("../fonts/Samim-Bold.6265b95a4292.woff") format('woff'),
       url("../fonts/Samim-Bold.a6bec9aa21ea.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- ریست و توکن‌های طراحی ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1120;            /* پس‌زمینه اصلی */
  --bg-2: #0e1628;          /* پنل‌ها */
  --card: #111a2e;          /* کارت */
  --card-2: #16213a;        /* کارت روشن‌تر / هاور */
  --line: rgba(148, 163, 184, 0.14);   /* خطوط و مرزها */
  --text: #f1f5f9;          /* متن اصلی */
  --muted: #eef2f9;         /* عملاً سفید — همه متن‌های فرعی روشن */
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.4);
  --green: #21f1a8;
  --green-2: #21f1a8;
  --green-glow: rgba(33, 241, 168, 0.32);
  --blue: #38bdf8;
  --violet: #a78bfa;
  --gold: #facc15;
  --radius: 16px;
  --radius-lg: 24px;
  /* حالت کریستالی/مایع (Glassmorphism) */
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(15, 23, 42, 0.40) 100%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html {
  scroll-behavior: smooth;
  /* iOS: پس‌زمینه تیره روی خود html تا هنگام کشسانی/جمع‌شدن نوار آدرس، سفیدی دیده نشود */
  background: var(--bg);
  /* iOS: جلوگیری از تغییر خودکار اندازهٔ متن که باعث لرزش متن هنگام اسکرول می‌شود */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Samim', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  min-height: 100dvh; /* ارتفاع پویا: با نمایش/جمع‌شدن نوار آدرس iOS پرش نکند */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 17px;
  line-height: 1.7;
  /* پس‌زمینه شفاف تا کانواس ذرات (z-index:-1) پشت بدنه دیده شود؛
     رنگ تیرهٔ پایه روی html تنظیم شده است. */
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
  /* iOS: کاهش کشسانی عمودی (بدون backface-visibility که کانواس ذرات را مخفی می‌کرد) */
  overscroll-behavior-y: none;
}

/* در فلکس ستونی با align-items:center، عرض main به اندازه محتوا جمع/باز می‌شود
   و محتوای پهن (مثل جدول) کل صفحه را از ویوپورت بیرون می‌زند — عرض کامل اجباری است */
main {
  width: 100%;
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes introLineIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- بک‌گراند ذرات ---------- */
canvas {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 300vh !important;
  pointer-events: none !important;
  z-index: -1 !important;
  /* بدون پس‌زمینه: فقط ذرات روی پس‌زمینهٔ تیرهٔ صفحه دیده شوند (همه مرورگرها/سیستم‌ها) */
  background: transparent !important;
}

#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: transparent;
}

.container, header, main, footer, section, div {
  position: relative;
  z-index: 10;
}

/* ============================================================
   هدر
   نکته مهندسی: هیچ transform یا overflow:hidden روی هدر نیست
   تا درایور موبایل (position:fixed) نسبت به viewport باز شود.
   ============================================================ */
.site-header {
  width: min(1200px, 94%);
  margin: 14px auto 0;
  padding: 3px 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 16px;
  /* هالهٔ نوری بنفش ملایم و جمع‌وجور دور منو (کم‌پخش) */
  box-shadow: var(--glass-highlight),
              0 0 10px rgba(167, 139, 250, 0.22),
              0 12px 36px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  overflow: visible;
  animation: fadeIn 0.7s ease-out both;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 50px;
}

.site-logo {
  /* دسکتاپ: هم‌اندازهٔ ارتفاع داخلی هدر (۵۰px + پدینگ) تا از کادر بیرون نزند */
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  order: -1;
  transition: transform 0.35s ease;
}
.site-logo:hover { transform: scale(1.1) rotate(-4deg); }

/* دکمه پنل کاربری (دسکتاپ) */
.user-panel-btn {
  background: rgba(33, 241, 168, 0.08);
  color: var(--green-2);
  border: 1px solid rgba(33, 241, 168, 0.4);
  padding: 0 24px;
  height: 46px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  order: 1;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.user-panel-btn:hover {
  background: rgba(33, 241, 168, 0.16);
  box-shadow: 0 0 22px var(--green-glow);
  transform: translateY(-1px);
}

/* منوی دسکتاپ */
.main-menu {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* نوار ناوبری پایین — فقط در موبایل نمایش داده می‌شود */
.mobile-nav { display: none; }
/* وقتی چت‌بات باز است، منوی شناور پایین مخفی شود تا روی قسمت چت نیاید */
body.chandyar-chat-open .mobile-nav { display: none !important; }

.main-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
  max-width: fit-content;
}

.main-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s ease;
}
.main-menu a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0; right: 0;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--green-glow);
  transition: width 0.35s ease;
}
.main-menu a:hover { color: var(--text); }
.main-menu a:hover::after { width: 100%; }
/* صفحه فعال */
.main-menu a.active-link { color: var(--green-2); }
.main-menu a.active-link::after { width: 100%; }

/* ورود عناصر با اسکرول (کلاس reveal توسط JS اضافه می‌شود) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- دکمه‌های سراسری ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 34px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #21f1a8 0%, #15c98a 100%);
  color: #04150c;
  box-shadow: 0 10px 30px var(--green-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(33, 241, 168, 0.45);
}
.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: rgba(33, 241, 168, 0.5);
  color: var(--green-2);
  transform: translateY(-2px);
}

/* ============================================================
   دکمهٔ ویژهٔ «شروع رایگان» — سبزِ سایت، خطِ صورتیِ دور دکمه و حالتِ براق
   (بدون نورِ پخش/هاله؛ مینیمال و تمیز در دسکتاپ و موبایل)
   ============================================================ */
.btn-free-glow {
  position: relative;
  color: #04150c;                     /* متن تیره روی سبز — خوانا در هر دو تم */
  border-radius: 14px;                /* هم‌فرمِ دکمهٔ «ویدئو معرفی» */
  /* سبزِ سایت + رگهٔ براقِ ملایم در بالا (افکت براق، بدون نورِ زیاد) */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #2bf2ac 0%, #21f1a8 45%, #14c489 100%);
  border: 2px solid #e79bbf;          /* خطِ صورتیِ نازک دور دکمه */
  box-shadow:
    0 6px 16px rgba(20, 196, 137, 0.26),     /* سایهٔ سبزِ ملایم برای عمق */
    inset 0 1px 0 rgba(255, 255, 255, 0.75); /* براقیِ لبهٔ بالا */
}
.btn-free-glow:hover {
  transform: translateY(-2px);
  border-color: #d47fa6;
  box-shadow:
    0 10px 22px rgba(20, 196, 137, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.btn-free-glow:active { transform: translateY(0) scale(0.98); }
.btn-free-glow i { color: #064b32; }

/* تم روز: خطِ صورتی کمی پررنگ‌تر تا روی پس‌زمینهٔ روشن واضح دیده شود */
:root[data-theme="light"] .btn-free-glow {
  border-color: #d47fa6;
  box-shadow:
    0 6px 16px rgba(20, 196, 137, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- تیتر بخش‌ها (با خط صورتی زیر تیتر) ---------- */
.section-head {
  text-align: center;
  margin-bottom: 34px;
}
.section-head h2 {
  display: inline-block;
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--text);
  padding-bottom: 12px;
  position: relative;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
}
.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

/* ============================================================
   هیرو
   ============================================================ */
.hero-section {
  width: min(1200px, 94%);
  margin: 26px auto 0;
}
/* هیرو در فضای آزاد — بدون کادر */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 40px 6px 0;
}

.hero-text { flex: 1.1; }

.hero-title {
  /* تک‌خطی در همه اندازه‌ها */
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  margin-bottom: 18px;
  animation: fadeUp 0.6s ease-out 0.15s both;
}
.hero-title .accent {
  color: var(--green-2);
  text-shadow: 0 0 28px var(--green-glow);
}

.hero-desc {
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 2.05;
  max-width: 52ch;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
  animation: fadeUp 0.6s ease-out 0.45s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  animation: fadeUp 0.6s ease-out 0.6s both;
}
.hero-badges i { color: var(--green); margin-left: 6px; }

/* سمت تصویر: موشن آزاد، بدون کادر و دایره
   دسکتاپ: بدون order → ترتیب DOM در RTL: متن (اول) سمت راست، موشن (دوم) سمت چپ.
   موبایل: در مدیاکوئری ≤۹۹۲px مقدار order:-1 می‌گیرد تا موشن بالای متن بیاید (بدون تغییر). */
.hero-visual {
  flex: 0.9;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.9s ease-out 0.3s both;
}
.hero-motion {
  width: 92%;
  height: auto;
  /* غیرقابل تعامل: نه بزرگ شود، نه وارد حالت ویدئو/تمام‌صفحه شود، نه دانلود */
  pointer-events: none;
  -webkit-touch-callout: none;   /* iOS: حذف منوی لمسِ طولانی (ذخیره/دانلود ویدئو) */
  -webkit-user-select: none;
  user-select: none;
}

/* ============================================================
   افکت BorderGlow (روی .glow-target — لایه‌ها را JS می‌سازد)
   ============================================================ */
.glow-target {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 25;
  --color-sensitivity: 45;
  --glow-padding: 28px;
  --glow-hsl: 145deg 65% 55%;
  --glow-radius: 28px;
  --mesh:
    radial-gradient(at 80% 55%, #21f1a8 0px, transparent 50%),
    radial-gradient(at 69% 34%, #a78bfa 0px, transparent 50%),
    radial-gradient(at 8% 6%,  #38bdf8 0px, transparent 50%),
    radial-gradient(at 41% 38%, #21f1a8 0px, transparent 50%),
    radial-gradient(at 86% 85%, #ec4899 0px, transparent 50%),
    radial-gradient(at 82% 18%, #f472b6 0px, transparent 50%),
    radial-gradient(at 51% 4%,  #21f1a8 0px, transparent 50%),
    linear-gradient(#21f1a8 0 100%);
}

.glow-border,
.glow-fill,
.edge-light {
  position: absolute;
  border-radius: var(--glow-radius);
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.glow-target:not(:hover):not(.sweep-active) .glow-border,
.glow-target:not(:hover):not(.sweep-active) .glow-fill,
.glow-target:not(:hover):not(.sweep-active) .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.glow-border {
  inset: 0;
  z-index: 0;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
    black 24%, transparent 39%, transparent 61%, black 76%);
  mask-image: conic-gradient(from var(--cursor-angle) at center,
    black 24%, transparent 39%, transparent 61%, black 76%);
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid transparent;
  background: var(--mesh) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.glow-fill {
  inset: 0;
  z-index: 0;
  opacity: calc(0.2 * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
    transparent 5%, black 15%, black 85%, transparent 95%);
  mask-image: conic-gradient(from var(--cursor-angle) at center,
    transparent 5%, black 15%, black 85%, transparent 95%);
}
.glow-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--mesh);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 42%, black 78%);
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 42%, black 78%);
}

.edge-light {
  inset: calc(var(--glow-padding) * -1);
  border-radius: calc(var(--glow-radius) + var(--glow-padding));
  z-index: 1;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  mask-image: conic-gradient(from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%);
}
.edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: var(--glow-radius);
  box-shadow:
    inset 0 0 0 1px hsl(var(--glow-hsl) / 100%),
    inset 0 0 3px 0 hsl(var(--glow-hsl) / 50%),
    inset 0 0 6px 0 hsl(var(--glow-hsl) / 40%),
    inset 0 0 15px 0 hsl(var(--glow-hsl) / 30%),
    inset 0 0 25px 2px hsl(var(--glow-hsl) / 20%),
    inset 0 0 50px 2px hsl(var(--glow-hsl) / 10%),
    0 0 3px 0 hsl(var(--glow-hsl) / 50%),
    0 0 6px 0 hsl(var(--glow-hsl) / 40%),
    0 0 15px 0 hsl(var(--glow-hsl) / 30%),
    0 0 25px 2px hsl(var(--glow-hsl) / 20%),
    0 0 50px 2px hsl(var(--glow-hsl) / 10%);
}

/* ============================================================
   همه چیز در چندیار (امکانات)
   ============================================================ */
.features-section {
  width: min(1200px, 94%);
  margin: 64px auto 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 241, 168, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 16px 0 8px;
}
.feature-card p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.9;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 22px;
}
.chip-pink    { background: rgba(236, 72, 153, 0.14); color: #f472b6; box-shadow: 0 0 24px rgba(236, 72, 153, 0.25); }
.chip-blue    { background: rgba(56, 189, 248, 0.14); color: var(--blue); box-shadow: 0 0 24px rgba(56, 189, 248, 0.25); }
.chip-green   { background: rgba(33, 241, 168, 0.14);  color: var(--green-2); box-shadow: 0 0 24px var(--green-glow); }
.chip-magenta { background: rgba(217, 70, 239, 0.14); color: #e879f9; box-shadow: 0 0 24px rgba(217, 70, 239, 0.25); }
.chip-indigo  { background: rgba(129, 140, 248, 0.14); color: #a5b4fc; box-shadow: 0 0 24px rgba(129, 140, 248, 0.25); }

/* ============================================================
   پلن‌های قیمت‌گذاری
   ============================================================ */
.pricing-section {
  width: min(1200px, 94%);
  margin: 64px auto 0;
}
.pricing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* سوئیچ ماهیانه/سالانه */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
}
/* سوئیچ لیکوییدی: شیشه‌ای با گوی ژله‌ای که موقع کلیک کش می‌آید */
.switch { position: relative; display: inline-block; width: 64px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-highlight);
  transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
  /* اندروید: تثبیت لایهٔ بک‌دراپ‌فیلتر تا سوئیچ هنگام نمایش فلش/پرش نکند */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.slider:before {
  content: "";
  position: absolute;
  height: 26px; width: 26px;
  right: 3px; top: 3px;
  background: linear-gradient(145deg, #ffffff 0%, #cbd5e1 100%);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.25s ease, background 0.45s ease, box-shadow 0.45s ease;
}
/* حالت مایع: موقع نگه داشتن، گوی کش می‌آید */
.switch input:active + .slider:before { width: 34px; }
input:checked + .slider {
  background: linear-gradient(135deg, rgba(33, 241, 168, 0.35), rgba(33, 241, 168, 0.22)), var(--glass);
  border-color: rgba(33, 241, 168, 0.6);
  box-shadow: var(--glass-highlight), 0 0 22px var(--green-glow);
}
input:checked + .slider:before {
  transform: translateX(-30px);
  background: linear-gradient(145deg, #21f1a8 0%, #15c98a 100%);
  box-shadow: 0 0 16px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.toggle-label .save-text { color: var(--green-2); font-weight: 800; }

/* کارت‌ها */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

/* نقطه‌ها و فلش‌های اسلایدر فقط در موبایل دیده می‌شوند */
.slider-dots,
.slider-arrow { display: none; }

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
/* پلن پیشرفته (محبوب) — تم طلایی */
.pricing-card.popular {
  border-color: rgba(250, 204, 21, 0.6);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28), 0 18px 50px rgba(250, 204, 21, 0.14);
}
.pricing-card.popular:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45), 0 24px 60px rgba(250, 204, 21, 0.2);
}

/* پلن پایه — تم صورتی */
.pricing-card.plan-sky {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.4), 0 24px 60px rgba(236, 72, 153, 0.16);
}
.pricing-card.plan-sky:hover {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.4), 0 24px 60px rgba(236, 72, 153, 0.16);
}

/* پلن حرفه‌ای — تم آبی روشن */
.pricing-card.plan-blue {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 24px 60px rgba(56, 189, 248, 0.16);
}
.pricing-card.plan-blue:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 24px 60px rgba(56, 189, 248, 0.16);
}

/* پلن سفارشی — تم سبز */
.pricing-card.plan-green {
  border-color: rgba(33, 241, 168, 0.5);
  box-shadow: 0 0 0 1px rgba(33, 241, 168, 0.18), 0 18px 50px rgba(33, 241, 168, 0.1);
}
.pricing-card.plan-green:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(33, 241, 168, 0.4), 0 24px 60px rgba(33, 241, 168, 0.16);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, #fde047, #eab308);
  color: #3a2c00;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.4);
  white-space: nowrap;
}

.card-header { text-align: center; margin-bottom: 18px; }

.plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 12px;
}
.plan-icon-green { background: rgba(33, 241, 168, 0.14); color: var(--green-2); box-shadow: 0 0 18px var(--green-glow); }
.plan-icon-gold  { background: rgba(250, 204, 21, 0.16); color: var(--gold); box-shadow: 0 0 18px rgba(250, 204, 21, 0.4); }
.plan-icon-sky   { background: rgba(236, 72, 153, 0.14); color: var(--pink); box-shadow: 0 0 24px rgba(236, 72, 153, 0.25); }
.plan-icon-blue  { background: rgba(56, 189, 248, 0.14); color: var(--blue); box-shadow: 0 0 24px rgba(56, 189, 248, 0.25); }

.plan-name { font-size: 23px; font-weight: 800; }
.plan-tag  { font-size: 15px; color: var(--muted); margin: 4px 0 14px; }

.price-wrapper { margin-bottom: 2px; }
/* ضد لرزش: عدد با ارقام هم‌عرض و عرض رزروشده انیمیت می‌شود
   تا هنگام شمارش قیمت، چیدمان کارت جابه‌جا نشود */
.price {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.price .number {
  display: inline-block;
  min-width: 5.6em;
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(30px, 2.8vw, 38px);
  font-weight: 900;
  color: var(--text);
}
/* دوره صورت‌حساب: ارتفاع ثابت تا تعویض ماهیانه/سالانه پرش ایجاد نکند */
.billing-period { min-height: 1.6em; }
.pricing-card.popular .price .number { color: var(--gold); text-shadow: 0 0 22px rgba(250, 204, 21, 0.45); }
.price .currency { font-size: 13px; color: var(--muted); }
.custom-price { font-size: 24px; font-weight: 900; }
.billing-period { font-size: 14px; color: var(--muted); }

.features {
  list-style: none;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.features li { font-size: 17px; color: var(--muted); }
.features .check { color: var(--green); margin-left: 8px; font-size: 12px; }

.pricing-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.pricing-btn.outline {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(148, 163, 184, 0.05);
}
.pricing-btn.outline:hover { border-color: rgba(33, 241, 168, 0.5); color: var(--green-2); transform: translateY(-2px); }
/* هاور دکمه هم‌رنگ با تم هر پلن */
.pricing-card.plan-sky  .pricing-btn.outline:hover { border-color: var(--pink); color: var(--pink); }
.pricing-card.plan-blue .pricing-btn.outline:hover { border-color: var(--blue); color: var(--blue); }
.pricing-card.plan-green .pricing-btn.outline:hover { border-color: rgba(33, 241, 168, 0.5); color: var(--green-2); }
.pricing-btn.filled {
  background: linear-gradient(135deg, #fde047, #eab308);
  color: #3a2c00;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
}
.pricing-btn.filled:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(250, 204, 21, 0.5); }

.card-desc {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
}


/* ============================================================
   جزئیات پلن‌ها (صفحه تعرفه) — جدول مقایسه + کارت‌های اطمینان
   ============================================================ */
.plan-details-section {
  width: min(1100px, 94%);
  margin: 64px auto 0;
}
.details-table-wrap {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.details-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: center;
}
.details-table th,
.details-table td {
  padding: 16px 14px;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.details-table thead th {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  background: rgba(148, 163, 184, 0.05);
}
/* رنگ سرستون‌ها هماهنگ با تم هر پلن */
.details-table thead th.col-starter    { color: var(--pink);    text-shadow: 0 0 18px var(--pink-glow); }
.details-table thead th.col-pro        { color: var(--gold);    text-shadow: 0 0 18px rgba(250, 204, 21, 0.4); }
.details-table thead th.col-enterprise { color: var(--blue);    text-shadow: 0 0 18px rgba(56, 189, 248, 0.4); }
.details-table thead th.col-custom     { color: var(--green-2); text-shadow: 0 0 18px var(--green-glow); }
.details-table tbody tr:last-child td { border-bottom: none; }
.details-table tbody th {
  font-weight: 700;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.details-table td { color: var(--muted); }
.details-table td .yes { color: var(--green-2); font-size: 17px; }
.details-table td .no { color: rgba(148, 163, 184, 0.4); }

.details-notes {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.detail-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.8;
}
.detail-note i {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(33, 241, 168, 0.12);
  color: var(--green-2);
  font-size: 17px;
}

/* ============================================================
   سوالات متداول
   ============================================================ */
.faq-section {
  width: min(900px, 94%);
  margin: 64px auto 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}
.faq-item.visible { opacity: 1; transform: translateY(0); }
.faq-item:hover { border-color: rgba(33, 241, 168, 0.3); }
.faq-item.open { border-color: rgba(33, 241, 168, 0.45); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.faq-arrow-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--green-2);
  transition: transform 0.35s ease;
}
.faq-arrow-icon svg { width: 100%; height: 100%; }
.faq-item.open .faq-arrow-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.faq-answer p {
  padding: 0 20px 18px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 2;
}
.faq-item.open .faq-answer { max-height: 280px; }

/* سازگاری با تیترهای قدیمی صفحه تعرفه (pricing-header / faq-header) */
.pricing-header, .faq-header { text-align: center; margin-bottom: 28px; }
.pricing-header h2, .faq-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.pricing-desc, .faq-header p { color: var(--muted); font-size: 15.5px; line-height: 1.9; }

/* سازگاری با باکس تماس قدیمی (صفحه تعرفه) */
.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 32px 22px;
  margin-top: 26px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.contact-box.visible { opacity: 1; transform: translateY(0); }
.contact-icon { font-size: 26px; color: var(--green-2); margin-bottom: 10px; }
.contact-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.contact-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.contact-btn {
  background: linear-gradient(135deg, #21f1a8, #15c98a);
  color: #04150c;
  border: none;
  padding: 12px 30px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--green-glow);
  transition: transform 0.3s ease;
}
.contact-btn:hover { transform: translateY(-2px); }

/* ============================================================
   به خانواده چندیار بپیوندید (دریافت نام و شماره)
   ============================================================ */
.join-section {
  width: min(760px, 94%);
  margin: 64px auto 0;
}
.join-card {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(33, 241, 168, 0.10) 0%, transparent 55%),
    var(--card);
  border: 1px solid rgba(33, 241, 168, 0.3);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.join-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(33, 241, 168, 0.12);
  color: var(--green-2);
  font-size: 25px;
  box-shadow: 0 0 30px var(--green-glow);
  margin-bottom: 16px;
}
.join-card h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; margin-bottom: 10px; }
.join-desc { color: var(--muted); font-size: 16.5px; line-height: 2; max-width: 46ch; margin: 0 auto 26px; }

.join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
}
.join-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.join-form input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.join-form input::placeholder { color: rgba(148, 163, 184, 0.6); }
.join-form input:focus {
  outline: none;
  border-color: rgba(33, 241, 168, 0.6);
  box-shadow: 0 0 0 3px rgba(33, 241, 168, 0.12);
}
.join-form input.invalid {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}
.join-submit { width: 100%; }

.join-success {
  color: var(--green-2);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 2;
}
.join-success i { margin-left: 8px; }
.join-error {
  color: #fda4af;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 2;
  margin-top: 12px;
}
.join-error i { margin-left: 8px; }

/* ============================================================
   فوتر ساده
   ============================================================ */
.site-footer {
  width: min(1200px, 94%);   /* عرض برابر با هدر */
  margin: 64px auto 26px;
}
.footer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 22px 10px;   /* کوتاه‌تر از نظر طولی */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.footer-slogan {
  color: var(--muted);
  font-size: 16.5px;
  font-weight: 600;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin: 4px 0 8px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
/* آیکون‌های فوتر با رنگ رسمی هر پلتفرم */
.footer-socials .fa-instagram { color: #e4405f; }
.footer-socials .fa-whatsapp { color: #25d366; }
.footer-socials .fa-telegram-plane { color: #229ed9; }
.footer-socials .fa-globe { color: #38bdf8; }
.footer-copy {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   حالت کریستالی/مایع همه کارت‌ها (دسکتاپ و موبایل)
   ============================================================ */
.feature-card,
.pricing-card,
.faq-item,
.join-card,
.footer-card,
.contact-box {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 18px 48px rgba(0, 0, 0, 0.35);
  /* iOS: کارت‌های شیشه‌ای روی لایهٔ مستقل تا هنگام اسکرول نلرزند/شیمر نشوند */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* رگه نور مایع روی کارت‌ها */
.feature-card::after,
.pricing-card::after,
.join-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
/* کارت «بپیوندید» ته‌رنگ سبز خود را حفظ کند */
.join-card {
  border-color: rgba(33, 241, 168, 0.35);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(33, 241, 168, 0.10) 0%, transparent 55%),
    var(--glass);
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 992px) {
  /* ستونی: اول موشن، بعد متن و دکمه‌ها و بقیه */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 6px 8px 0;
    gap: 14px;
  }
  .hero-text { width: 100%; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; max-width: 340px; width: 70%; }
  .main-menu ul { gap: 20px; }
  /* تبلت: کارت‌های پلن ۲ تا ۲ تا (۴تایی تنگ می‌شود) */
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  /* موبایل و تبلت: زیرنویس بخش قیمت‌گذاری حذف شود تا پلن‌ها بلافاصله بعد از عنوان بیایند */
  .pricing-section .section-sub { display: none; }
}

@media (max-width: 768px) {

  /* موبایل: هدر بالا فقط لوگو (گوشه راست) — ناوبری با نوار پایین */
  .site-header {
    display: flex;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 18px 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  .header-container { height: auto; justify-content: flex-start; }
  .site-header .main-menu,
  .site-header .user-panel-btn { display: none; }
  .site-logo { width: 78px; height: 78px; }

  /* جا برای نوار شناور پایین تا محتوا زیرش پنهان نشود */
  body { padding-bottom: 96px; }

  /* نوار ناوبری پایین — کپسول کریستالی شناور (مثل هدر دسکتاپ) */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: min(94%, 430px);
    z-index: 1500;
    /* iOS: ارتقا به لایهٔ مستقل تا متنِ پشتِ این نوار شیشه‌ای هنگام اسکرول نلرزد */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* شیشه‌ای‌تر: لایه تیره ثابت زیر گلس + بلور قوی‌تر تا محتوای پشت رنگ منو را تغییر ندهد */
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(11, 17, 32, 0.55) 100%),
      rgba(13, 20, 38, 0.72);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid rgba(167, 139, 250, 0.45);
    /* یک کم کمتر گرد (به‌جای کپسول کامل) */
    border-radius: 26px;
    /* هالهٔ نوری بنفش ملایم و جمع‌وجور دور منو (کم‌پخش) */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
                0 0 10px rgba(167, 139, 250, 0.26),
                0 18px 44px rgba(0, 0, 0, 0.6);
    justify-content: space-around;
    align-items: stretch;
    padding: 8px 10px;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    /* حالت تاریک: متن منوی پایین سفید است؛ فقط مورد انتخاب‌شده سبز می‌شود */
    color: #ffffff;
    opacity: 1;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 2px;
    border-radius: 999px;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }
  .mobile-nav a i { font-size: 19px; color: #ffffff; }
  .mobile-nav a:active { transform: scale(0.92); }
  /* مورد فعال: سبز و با هالهٔ نوری */
  .mobile-nav a.active-link,
  .mobile-nav a.active-link i { color: var(--green-2); }
  .mobile-nav a.active-link i { filter: drop-shadow(0 0 10px var(--green-glow)); }

  /* هیرو موبایل — موشن جمع‌وجورتر و بالاتر، تا «عنوان + دکمه‌ها + گزینه‌های زیر دکمه‌ها»
     در یک نمای واحد و بدون اسکرول دیده شوند (روی iOS و اندروید).
     ارتفاع موشن با dvh محدود می‌شود تا روی نمایشگرهای کوتاه هم جا بماند. */
  .hero-section { margin-top: 0; }
  .hero-inner { padding: 0 16px 12px; gap: 2px; }
  /* موشن بزرگ‌تر و بالاتر: با margin منفی به بالای صفحه نزدیک می‌شود و ارتفاعش تا 40dvh می‌رسد */
  .hero-visual { width: 100%; max-width: none; margin-top: -36px; margin-bottom: -8px; }
  .hero-motion { width: auto; max-width: 94%; height: auto; max-height: 40dvh; }
  .hero-title { margin-bottom: 6px; }
  .hero-desc { color: var(--text); font-size: 14.5px; line-height: 1.7; margin-bottom: 10px; }
  .hero-actions { margin-bottom: 10px; gap: 10px; }
  .hero-actions .btn { padding: 11px 24px; font-size: 15px; }
  /* گزینه‌ها به‌صورت ردیفِ شکسته و فشرده (به‌جای ستونی سه‌خطی) تا بدون اسکرول دیده شوند */
  .hero-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; }

  /* بخش‌ها */
  .features-section, .pricing-section, .faq-section, .join-section { margin-top: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-card { padding: 20px 12px; }
  .feature-chip { width: 50px; height: 50px; font-size: 19px; }

  /* ===== اسلایدر افقی پلن‌ها (موبایل) ===== */
  /* ظرف اسلایدر لبه‌تا‌لبه صفحه می‌شود (نه track) تا فلش‌ها در دو طرف بنشینند بدون سرریز */
  .pricing-slider-wrap {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
  .pricing-cards {
    /* عرض ثابت کارت؛ padding کناری دقیقاً نصف فضای خالی تا اولین/آخرین کارت هم وسط بنشیند */
    --card-w: min(76vw, 300px);
    --side-pad: calc((100vw - var(--card-w)) / 2);
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 0;
    /* padding بالا تا بج «بهترین انتخاب» بریده نشود.
       فاصلهٔ کناری با اسپیسرهای ::before/::after ساخته می‌شود نه padding،
       چون iOS Safari در ظرف اسکرول RTL، padding انتهایی را نادیده می‌گیرد و
       آخرین کارت نمی‌تواند وسط بنشیند. */
    padding: 22px 0 10px;
    margin: 0;
    scrollbar-width: none;
    /* عمق سه‌بعدی برای افکت Cover Flow */
    perspective: 1100px;
    perspective-origin: center center;
    /* محو نرم لبه‌های چپ و راست تا حس اسلایدی‌بودن منتقل شود */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .pricing-cards::-webkit-scrollbar { display: none; }

  /* اسپیسرهای ابتدا/انتها: فضای کافی برای وسط‌چین‌شدن اولین و آخرین کارت
     روی iOS (جایگزین مطمئن padding انتهاییِ نادیده‌گرفته‌شده) */
  .pricing-cards::before,
  .pricing-cards::after {
    content: '';
    flex: 0 0 var(--side-pad);
  }

  .pricing-card {
    flex: 0 0 var(--card-w);
    max-width: none;
    scroll-snap-align: center;
    /* هر سوایپ/لمس فقط یک کارت جلو برود (نه چند کارت با اینرسی) — اندروید/iOS/تبلت */
    scroll-snap-stop: always;
    /* کوتاه‌تر و جمع‌وجورتر در موبایل */
    padding: 20px 18px;
    border-radius: 20px;
    transform-origin: center center;
    /* حالت کناری: کوچک‌تر، تار و محو (پایهٔ افکت سه‌بعدی) */
    opacity: 0.4;
    filter: blur(3px);
    transform: scale(0.82);
    transition: opacity 0.45s ease, filter 0.45s ease,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* چرخش سه‌بعدی کارت‌های کناری به سمت مرکز (Cover Flow) */
  .pricing-card.is-prev { transform: scale(0.82) rotateY(22deg); }
  .pricing-card.is-next { transform: scale(0.82) rotateY(-22deg); }
  /* کارت مرکزیِ فعال: کامل، رو به جلو، واضح و بزرگ‌تر از کناری‌ها */
  .pricing-card.snap-active,
  .pricing-card.reveal.snap-active {
    opacity: 1;
    filter: none;
    transform: scale(1) rotateY(0deg);
  }
  /* خنثی‌سازی translateY انیمیشن reveal تا با افکت سه‌بعدی تداخل نکند */
  .pricing-card.reveal { opacity: 0.4; }

  /* فشرده‌تر کردن محتوای کارت در موبایل */
  .pricing-card .card-header { margin-bottom: 12px; }
  .pricing-card .plan-icon { width: 40px; height: 40px; margin-bottom: 8px; }
  .pricing-card .plan-name { font-size: 19px; }
  .pricing-card .plan-tag { margin: 3px 0 10px; }
  .pricing-card .features { margin: 12px 0 16px; gap: 7px; }
  .pricing-card .features li { font-size: 14.5px; }
  .pricing-card .pricing-btn { padding: 11px; }
  .pricing-card .card-desc { margin-top: 9px; }

  /* فلش‌های کریستالی دو طرف اسلایدر — دقیقاً وسط عمودی ناحیه کارت‌ها */
  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(11, 17, 32, 0.5) 100%),
      rgba(13, 20, 38, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .slider-arrow.prev { right: 6px; }   /* RTL: قبلی سمت راست */
  .slider-arrow.next { left: 6px; }
  .slider-arrow:active { transform: translateY(-50%) scale(0.9); }

  /* نوار نقطه‌های اسلایدر (با JS ساخته می‌شود) */
  .slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
  }
  .slider-dot {
    width: 8px; height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
  }
  .slider-dot.active {
    width: 24px;
    background: var(--green-2);
    box-shadow: 0 0 12px var(--green-glow);
  }

  /* جدول جزئیات: اسکرول افقی + فونت جمع‌وجورتر */
  .plan-details-section { margin-top: 48px; }
  .details-table th, .details-table td { padding: 13px 10px; font-size: 14px; }
  .details-table thead th { font-size: 14.5px; }
  .details-notes { grid-template-columns: 1fr; }

  .join-card { padding: 32px 18px; }
  .join-row { grid-template-columns: 1fr; }

  .footer-card { padding: 20px 14px 14px; }
}

@media (max-width: 480px) {
  /* تیتر تک‌خطی در گوشی‌های کوچک هم جا شود */
  .hero-title { font-size: clamp(19px, 6vw, 24px); }
  .features-grid { gap: 10px; }
  .feature-card h3 { font-size: 15px; }
  .feature-card p { font-size: 13px; }
  .faq-question { font-size: 15px; padding: 15px 16px; }
}

/* ============================================================
   حالت روز/شب (Light / Dark)
   تم پیش‌فرض «شب» است (همان :root بالا). با data-theme="light" روی <html>
   فقط توکن‌های طراحی بازنویسی می‌شوند و به‌خاطر متغیرمحور بودن کل سایت،
   تغییر تم به‌صورت سراسری و یکدست روی همهٔ بخش‌ها اعمال می‌شود.
   ============================================================ */
:root[data-theme="light"] {
  --bg: #eef2f9;            /* پس‌زمینه اصلی روشن */
  --bg-2: #ffffff;          /* پنل‌ها / ورودی‌ها */
  --card: #ffffff;          /* کارت */
  --card-2: #f1f5fb;        /* کارت روشن‌تر / هاور */
  --line: rgba(15, 23, 42, 0.22);      /* خطوط و مرزها — تیره‌تر در حالت روز */
  --text: #0f172a;          /* متن اصلی: مشکی */
  --muted: #334155;         /* متن فرعی: خاکستری بسیار تیره (خوانا روی پس‌زمینهٔ روشن) */
  --pink: #db2777;
  --pink-glow: rgba(219, 39, 119, 0.28);
  --green: #10b981;         /* سبز کمی تیره‌تر برای کنتراست روی پس‌زمینهٔ روشن */
  --green-2: #059669;
  --green-glow: rgba(16, 185, 129, 0.26);
  --blue: #0284c7;
  --violet: #7c3aed;
  --gold: #d97706;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 40%, rgba(232, 238, 248, 0.86) 100%);
  --glass-border: rgba(15, 23, 42, 0.22);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ── منوی اصلی سایت در حالت روز: پس‌زمینهٔ سفید، متن مشکی، مرز بنفشِ پررنگ (دسکتاپ) ── */
:root[data-theme="light"] .site-header {
  background: #ffffff;
  border: 1.5px solid #7c3aed;            /* بنفش پررنگ دور منو */
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.18), 0 10px 28px rgba(124, 58, 237, 0.16);
}
:root[data-theme="light"] .main-menu a { color: #0f172a; }
:root[data-theme="light"] .main-menu a:hover { color: var(--green-2); }
:root[data-theme="light"] .main-menu a.active-link { color: var(--green-2); }
/* دکمهٔ پنل کاربری دسکتاپ در حالت روز: تو‌پر و بدون شیشه تا مشخص‌تر باشد */
:root[data-theme="light"] .user-panel-btn {
  background: linear-gradient(135deg, #21f1a8, #15c98a);
  color: #04150c;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
:root[data-theme="light"] .user-panel-btn:hover {
  background: linear-gradient(135deg, #15c98a, #10b981);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.45);
}
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .pricing-card,
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .join-card,
:root[data-theme="light"] .footer-card,
:root[data-theme="light"] .contact-box,
:root[data-theme="light"] .details-table-wrap,
:root[data-theme="light"] .detail-note {
  box-shadow: var(--glass-highlight), 0 12px 30px rgba(15, 23, 42, 0.10);
}
:root[data-theme="light"] .pricing-card:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

/* نوار ناوبری پایین موبایل در حالت روز: پس‌زمینهٔ سفید، متن مشکی، مرز بنفشِ پررنگ */
:root[data-theme="light"] .mobile-nav {
  background: #ffffff;
  border: 1.5px solid #7c3aed;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.16), 0 14px 38px rgba(124, 58, 237, 0.16);
}
:root[data-theme="light"] .mobile-nav a,
:root[data-theme="light"] .mobile-nav a i { color: #0f172a; opacity: 1; }
/* آیتمِ فعالِ منو در حالت روز با سبزِ روشنِ برند (#21F1A8) */
:root[data-theme="light"] .mobile-nav a.active-link,
:root[data-theme="light"] .mobile-nav a.active-link i { color: #21F1A8; }

/* پیام خطای فرم در حالت روشن خواناتر شود */
:root[data-theme="light"] .join-error { color: #e11d48; }

/* ============================================================
   حالت روز — درخواست‌های دقیق: خطوط بخش‌ها، کادرها، فوتر و سوئیچ
   «طوسی» = ‎#4b5563‎ (متن سفید) ، «طوسی تیره» = ‎#3c3c3c‎ ، مرز تیره = rgba(0,0,0,0.4)
   ============================================================ */
/* خط زیر تیتر بخش‌ها (قیمت‌گذاری، سوالات متداول، …) → طوسی تیره */
:root[data-theme="light"] .section-head h2::after {
  background: #3c3c3c;
  box-shadow: none;
}
/* مرز دور کادرهای سوالات متداول و «به خانوادهٔ چندیار بپیوندید» → طوسی تیره */
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .join-card {
  border-color: rgba(0, 0, 0, 0.42);
}
/* صفحهٔ تعرفه: کادرهای زیر جدول (یادداشت‌ها) → سفید، متن مشکی، آیکون سبزِ حالت شب */
:root[data-theme="light"] .detail-note {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}
:root[data-theme="light"] .detail-note i {
  background: rgba(33, 241, 168, 0.14);
  color: #21f1a8;
}
/* فوتر → سفید با متن مشکی */
:root[data-theme="light"] .footer-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
}
:root[data-theme="light"] .footer-slogan,
:root[data-theme="light"] .footer-copy { color: #0f172a; }
:root[data-theme="light"] .social-btn { color: #0f172a; background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.12); }
:root[data-theme="light"] .footer-copy { border-top-color: rgba(15, 23, 42, 0.12); }
/* سوئیچ صورت‌حساب: غیرفعال طوسی تیره‌تر، فعال همان سبز */
:root[data-theme="light"] .slider {
  background: #4b5563;
  border-color: rgba(0, 0, 0, 0.30);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
:root[data-theme="light"] input:checked + .slider {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.85));
  border-color: rgba(5, 150, 105, 0.7);
}

/* ============================================================
   دکمهٔ سوئیچ روز/شب — پیلِ شیشه‌ای شناور سمت چپ
   ============================================================ */
/* مینیمال: یک پیلِ ساده با گویِ لغزان. شب = ریلِ تیره، روز = ریلِ روشن. */
.theme-toggle {
  /* ‎absolute‎ تا فقط بالای صفحه قرار بگیرد و با اسکرولِ کاربر همراه نشود؛
     هنگام پایین رفتن، از دید خارج می‌شود (شناور/چسبان نیست). */
  position: absolute !important;
  left: 26px;
  top: 22px;                    /* دسکتاپ: بالای صفحه، کنار لوگو */
  bottom: auto;
  z-index: 1400;
  direction: ltr;               /* چپ/راست قطعی، مستقل از RTL صفحه */
  width: 60px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1b2540;          /* پیش‌فرض شب: تیره */
  -webkit-tap-highlight-color: transparent;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.25s ease;
}
.theme-toggle.is-light {
  background: #e8edf5;          /* روز: روشن */
  border-color: rgba(15, 23, 42, 0.18);
}
/* دکمه همیشه دقیقاً سرجایش ثابت می‌ماند و با hover/کلیک جابه‌جا نمی‌شود.
   بازخورد فقط با روشنایی است (transform حذف شد تا روی لمسی هم نپرد). */
.theme-toggle:hover { filter: brightness(1.08); transform: none; }
.theme-toggle:active { filter: brightness(0.92); transform: none; }

/* آیکون‌های کناری حذف شدند تا ظاهر مینیمال بماند */
.theme-toggle .tt-bg { display: none; }

/* گویِ لغزان با آیکونِ حالت فعلی */
.theme-toggle .tt-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
}
.theme-toggle:not(.is-light) .tt-thumb { transform: translateX(30px); }   /* شب: گوی سمت راست (ماه) */
.theme-toggle.is-light .tt-thumb { transform: translateX(0); background: #ffffff; }  /* روز: گوی سمت چپ (آفتاب) */
.theme-toggle .tt-ic {
  position: absolute;
  font-size: 12px;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.theme-toggle .tt-ic-sun  { color: #f59e0b; }
.theme-toggle .tt-ic-moon { color: #334155; }
.theme-toggle:not(.is-light) .tt-ic-sun  { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle:not(.is-light) .tt-ic-moon { opacity: 1; }
.theme-toggle.is-light .tt-ic-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
.theme-toggle.is-light .tt-ic-sun  { opacity: 1; }

/* موبایل: دکمهٔ شب/روز در گوشهٔ بالا-چپ، هم‌راستا با لوگوی سمت راست.
   لوگو ۷۸px است و مرکزش حدود ۴۳px از بالا قرار می‌گیرد؛ ارتفاع دکمه ۳۰px است،
   پس top≈۲۸px مرکز دکمه را با مرکز لوگو هم‌تراز می‌کند (دکمه کمی پایین‌تر می‌آید). */
@media (max-width: 768px) {
  .theme-toggle {
    bottom: auto;
    top: calc(28px + env(safe-area-inset-top));
    left: 12px;
  }
}

/* ============================================================
   اصلاحات حالت روز (Light) — درخواست‌های موبایل/تعرفه
   ============================================================ */
/* موبایل: هدر بدون کادر/سایه باشد و یکسره با صفحه (سایهٔ نسخهٔ روشن حذف شود) */
@media (max-width: 768px) {
  :root[data-theme="light"] .site-header {
    background: none;
    border: none;
    box-shadow: none;
  }
}
/* گویِ سفیدِ سوئیچ در حالت روز (پس‌زمینهٔ ریل بالاتر به طوسی تیره تنظیم شده) */
:root[data-theme="light"] .slider:before {
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
