/* ================================================
   1. ROOT & RESET
   ================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* رنگ‌های اصلی تم لوکس */
  --bg-main:        #020617; /* مشکی بسیار تیره */
  --bg-section:     #0f172a; /* سرمه‌ای تیره */
  --bg-card:        rgba(255, 255, 255, 0.03);
  --border-color:   rgba(255, 255, 255, 0.08);
  
  --accent-gold:    #fbbf24; /* طلایی لوکس */
  --accent-gold-hover:#f59e0b;
  
  --text-white:     #ffffff;
  --text-gray:      #94a3b8;
  --text-gray-light:#cbd5e1;
  
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ریتم فاصله یکپارچه */
  --space-section:     100px;
  --space-section-alt: 88px;
  --space-header:      64px;
  --space-stack:       24px;
  --space-card-gap:    28px;
  --content-max:       1200px;
  --card-radius:       var(--radius-lg);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg-main);
  color: var(--text-gray-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 99px; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================
   2. TYPOGRAPHY & BUTTONS
   ================================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-title span { color: var(--accent-gold); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 600px;
}

/* دکمه‌ها — Liquid Glass شبیه iOS (کپسولی، مات، بدون گرادیان سنگین) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  border: 0.5px solid transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(24px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 6px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .btn-gold {
    background: var(--accent-gold);
  }

  .btn-outline {
    background: rgba(30, 41, 59, 0.92);
  }
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.96);
  filter: brightness(0.94);
}

/* پر — شبیه دکمهٔ اصلی iOS با تینت طلایی */
.btn-gold {
  color: #14120b;
  background: rgba(251, 191, 36, 0.82);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-gold:hover {
  background: rgba(252, 200, 72, 0.9);
  border-color: rgba(255, 255, 255, 0.52);
  filter: brightness(1.04);
}

.btn-gold:active {
  background: rgba(245, 180, 30, 0.88);
}

/* ثانویه — شیشهٔ شفاف iOS */
.btn-outline {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  filter: brightness(1.06);
}

.btn-outline:active {
  background: rgba(255, 255, 255, 0.08);
}

/* ================================================
   3. NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #000; font-size: 1.2rem;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 1.2rem; font-weight: 800; color: var(--text-white); line-height: 1.1; }
.logo-text span { font-size: 0.75rem; color: var(--accent-gold); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-gray-light); font-size: 0.95rem;
  font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-gold); background: rgba(251, 191, 36, 0.05); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { color: var(--accent-gold); }

/* موبایل منو — عناصر اختصاصی موبایل (دسکتاپ مخفی) */
.nav-overlay,
.mobile-menu-head { display: none; }

.mobile-cta-icon { display: none; }

.mobile-menu-body {
  display: contents;
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}
.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  transform-origin: center;
}

/* منوی دسکتاپ — بازنشانی کامل (جدا از موبایل) */
@media (min-width: 769px) {
  .nav-overlay,
  .mobile-menu-head,
  .hamburger,
  .mobile-cta-icon {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    position: static;
    inset: auto;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible;
    pointer-events: auto;
  }

  .mobile-menu-body {
    display: block;
    flex: none;
    width: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 0 1 auto;
    min-height: 0;
    width: auto;
    margin: 0;
    overflow: visible;
    list-style: none;
  }

  .nav-links li {
    flex: none;
    display: block;
    min-height: 0;
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 0;
    width: auto;
    padding: 8px 11px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--text-gray-light);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-align: right;
  }

  .nav-links a i {
    width: auto;
    font-size: 0.75rem;
    opacity: 0.75;
    color: var(--accent-gold);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.15);
    transform: none;
  }

  .nav-links a:active {
    transform: none;
  }

  .nav-cta {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-cta .btn {
    width: auto;
    padding: 10px 18px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .nav-menu {
    gap: 8px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .nav-links a i {
    display: none;
  }

  .nav-cta .btn {
    padding: 9px 14px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1100px) {
  .nav-links a {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .nav-cta .btn {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
}

/* ================================================
   4. HERO VIP
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-main) 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.2; margin-bottom: 24px; }
.hero-desc { font-size: 1.15rem; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* دکمه‌های دانلود استور — طراحی جدا از btn */
.hero-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-top: 14px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  min-height: 58px;
  border-radius: 16px;
  font-family: 'Vazirmatn', sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.store-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.5);
  outline-offset: 2px;
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: right;
  min-width: 0;
}

.store-btn-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.85;
}

.store-btn-platform {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-white);
}

.store-btn-pwa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
  opacity: 0.95;
}

.store-btn-pwa i {
  font-size: 0.7rem;
}

/* اندروید */
.store-btn--android {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.22) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12);
}

.store-btn--android .store-btn-icon {
  background: rgba(52, 211, 153, 0.2);
  color: #4ade80;
}

.store-btn--android .store-btn-label {
  color: #a7f3d0;
}

.store-btn--android:hover {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.32) 0%, rgba(16, 185, 129, 0.14) 100%);
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

/* آیفون + PWA */
.store-btn--ios {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.18) 0%, rgba(71, 85, 105, 0.12) 100%);
  border-color: rgba(203, 213, 225, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.store-btn--ios .store-btn-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.store-btn--ios .store-btn-label {
  color: #cbd5e1;
}

.store-btn--ios .store-btn-pwa {
  color: #7dd3fc;
}

.store-btn--ios:hover {
  background: linear-gradient(145deg, rgba(203, 213, 225, 0.22) 0%, rgba(100, 116, 139, 0.16) 100%);
  border-color: rgba(226, 232, 240, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; gap: 40px; margin-top: 50px; padding-top: 30px;
  border-top: 1px solid var(--border-color); flex-wrap: wrap;
}
.hero-stat-num { font-size: 2rem; font-weight: 900; color: var(--accent-gold); line-height: 1; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-gray); font-weight: 600; margin-top: 8px; }

.custom-dashboard-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}
.custom-dashboard-card::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; background: var(--accent-gold);
  filter: blur(100px); opacity: 0.1; z-index: -1; border-radius: 50%;
}
.custom-dashboard-header {
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px;
}
.custom-dashboard-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #000;
}
.custom-dashboard-title { font-size: 1.1rem; font-weight: 800; color: var(--text-white); }
.custom-dashboard-sub { font-size: 0.85rem; color: var(--text-gray); }

.custom-appointment-item {
  background: rgba(255,255,255,0.02); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 16px; transition: var(--transition);
}
.custom-appointment-item:hover {
  background: rgba(255,255,255,0.05); border-color: var(--border-color); transform: translateX(-5px);
}
.dot-indicator { width: 10px; height: 10px; border-radius: 50%; }
.dot-success { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.dot-warning { background: var(--accent-gold); box-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.item-name { font-weight: 700; color: var(--text-white); font-size: 0.95rem; }
.item-desc { font-size: 0.8rem; color: var(--text-gray); margin-top: 4px; }

/* ================================================
   5. TRUSTED BRANDS
   ================================================ */
.trusted-brands {
  padding: 40px 0;
  background: var(--bg-main);
  text-align: center;
}
.trusted-title {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  font-weight: 600;
}
.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-gray);
  opacity: 0.6;
  transition: var(--transition);
  cursor: default;
}
.brand-item:hover {
  opacity: 1;
  color: var(--text-white);
  transform: translateY(-2px);
}
.brand-item i {
  color: var(--accent-gold);
}

/* ================================================
   5b. SECTION DIVIDERS
   ================================================ */
.section-divider {
  position: relative;
  z-index: 2;
  margin: 0;
  border: none;
  overflow: hidden;
  contain: paint;
}

.section-divider-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  max-width: 100%;
  padding: 28px 0;
  box-sizing: border-box;
}

.section-divider-line {
  display: block;
  width: 100%;
  height: 1px;
  min-width: 0;
  max-width: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251, 191, 36, 0.12) 12%,
    rgba(251, 191, 36, 0.38) 50%,
    rgba(251, 191, 36, 0.12) 88%,
    transparent 100%
  );
}

.section-divider-line:first-child {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251, 191, 36, 0.12) 20%,
    rgba(251, 191, 36, 0.38) 100%
  );
}

.section-divider-line:last-child {
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.38) 0%,
    rgba(251, 191, 36, 0.12) 80%,
    transparent 100%
  );
}

.section-divider-gem {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(251, 191, 36, 0.75);
  transform: rotate(45deg);
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.section-divider-gem::before,
.section-divider-gem::after {
  display: none;
}

/* گرادیان پس‌زمینه بین دو بخش با رنگ متفاوت */
.section-divider--from-main {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-main) 35%, var(--bg-section) 100%);
}

.section-divider--from-section {
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-section) 35%, var(--bg-main) 100%);
}

.section-divider--on-main {
  background: var(--bg-main);
}

.section-divider--on-section {
  background: var(--bg-section);
}

/* ================================================
   6. WHY US
   ================================================ */
.why-us { padding: 100px 0; background: var(--bg-section); }
.why-us-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.why-list li { display: flex; align-items: flex-start; gap: 16px; color: var(--text-gray-light); font-size: 1rem; }
.why-list li .check {
  width: 28px; height: 28px; background: rgba(251, 191, 36, 0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-gold); font-size: 0.8rem;
}
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px 24px; text-align: center; transition: var(--transition);
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(251, 191, 36, 0.3); background: rgba(255,255,255,0.05); }
.why-card-icon { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 16px; }
.why-card-num { font-size: 2.2rem; font-weight: 900; color: var(--text-white); }
.why-card-label { font-size: 0.9rem; color: var(--text-gray); margin-top: 8px; }

/* ================================================
   7. MODULES SECTION
   ================================================ */
.modules-section {
  padding: 100px 0;
  background: var(--bg-main);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.module-box {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.module-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.1);
}
.module-icon {
  width: 50px; height: 50px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.module-box h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 12px;
  font-weight: 800;
}
.module-box p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* ================================================
   8. SERVICES
   ================================================ */
.services { padding: 100px 0; background: var(--bg-section); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.service-card {
  background: var(--bg-main); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 40px 32px; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--accent-gold); transform: scaleX(0); transform-origin: right; transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 64px; height: 64px; border-radius: var(--radius-sm); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  background: rgba(255,255,255,0.05); color: var(--accent-gold); border: 1px solid var(--border-color);
}
.service-title { font-size: 1.2rem; font-weight: 800; color: var(--text-white); margin-bottom: 16px; }
.service-desc { font-size: 0.95rem; color: var(--text-gray); line-height: 1.8; }

/* ================================================
   9. ANIMATIONS (FACTORY & FUN BANNER)
   ================================================ */
.magic-factory-banner { padding: 80px 0; background: var(--bg-main); }
.factory-inner {
  background: var(--bg-section); border-radius: var(--radius-xl); border: 1px solid var(--border-color);
  padding: 64px 48px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); overflow: hidden;
}
.factory-header { margin-bottom: 50px; }
.factory-animation-box {
  position: relative; height: 220px; background: rgba(255,255,255,0.02);
  border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; direction: rtl;
}
.conveyor-belt {
  position: absolute; top: 50%; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--border-color) 50%, transparent 50%); background-size: 30px 2px;
  animation: belt-move 1.5s linear infinite; z-index: 1;
}
.central-machine {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10;
  width: 120px; height: 120px; display: flex; justify-content: center; align-items: center;
  background: var(--bg-main); border: 2px solid var(--accent-gold); border-radius: 50%;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}
.machine-main { font-size: 4rem; color: var(--accent-gold); position: relative; z-index: 2; }
.factory-item { position: absolute; top: 50%; right: -10%; transform: translateY(-50%); width: 60px; height: 60px; z-index: 5; animation: move-on-belt 9s linear infinite; }
.factory-item i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.5rem; }
.bad-side { color: #ef4444; animation: switch-to-bad 9s infinite; }
.good-side { color: #10b981; animation: switch-to-good 9s infinite; }
.item-1 { animation-delay: 0s; } .item-1 .bad-side, .item-1 .good-side { animation-delay: 0s; }
.item-2 { animation-delay: -3s; } .item-2 .bad-side, .item-2 .good-side { animation-delay: -3s; }
.item-3 { animation-delay: -6s; } .item-3 .bad-side, .item-3 .good-side { animation-delay: -6s; }

.fun-banner { padding: 80px 0; background: var(--bg-section); }
.fun-banner-inner {
  background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; position: relative; overflow: hidden;
}
.fun-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; color: var(--text-white); margin-bottom: 16px; }
.fun-title span { color: var(--accent-gold); }
.fun-desc { font-size: 1rem; color: var(--text-gray); }
.fun-animation-box {
  position: relative; height: 200px; background: rgba(255,255,255,0.02); border-radius: var(--radius-lg);
  border: 1px solid var(--border-color); overflow: hidden; direction: ltr;
}
.ground-line { position: absolute; bottom: 30px; left: 0; width: 100%; border-bottom: 2px dashed rgba(255,255,255,0.1); }
.chase-scene { position: absolute; bottom: 30px; left: 100%; display: flex; align-items: baseline; gap: 35px; animation: run-across 6s linear infinite; white-space: nowrap; }
.runner-tooth { font-size: 3.5rem; color: var(--text-white); animation: panic-bounce 0.3s ease infinite alternate; }
.chaser-syringe { font-size: 2.8rem; color: #ef4444; transform: scaleX(-1); animation: stab-bounce 0.4s ease infinite alternate 0.1s; }
.chaser-doctor { font-size: 3.8rem; color: var(--accent-gold); animation: doctor-run 0.4s ease infinite alternate 0.2s; }

@keyframes belt-move { 0% { background-position: 0 0; } 100% { background-position: -30px 0; } }
@keyframes move-on-belt { 0% { right: -10%; } 100% { right: 110%; } }
@keyframes switch-to-bad { 0%, 45% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0); } }
@keyframes switch-to-good { 0%, 48% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 52%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes run-across { 0% { left: 100%; } 100% { left: -70%; } }
@keyframes panic-bounce { 0% { transform: translateY(0) rotate(15deg); } 100% { transform: translateY(-30px) rotate(25deg); } }
@keyframes stab-bounce { 0% { transform: scaleX(-1) rotate(-120deg) translateY(0); } 100% { transform: scaleX(-1) rotate(-120deg) translateY(-15px); } }
@keyframes doctor-run { 0% { transform: translateY(0) rotate(-5deg); } 100% { transform: translateY(-20px) rotate(10deg); } }

/* ================================================
   10. FAQ SECTION
   ================================================ */
.faq-section {
  padding: 100px 0;
  background: var(--bg-main);
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: right;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--accent-gold);
}
.faq-question i {
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0,0,0,0.2);
}
.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ================================================
   11. PRICING (UPGRADED TO 3 PLANS) & FOOTER
   ================================================ */
.pricing-section { padding: 100px 0; background: var(--bg-section); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-main); 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius-lg);
  padding: 50px 30px; 
  text-align: center; 
  position: relative; 
  transition: var(--transition);
}

/* کارت پیشنهادی (ویژه) در وسط */
.pricing-card.featured {
  border: 2px solid var(--accent-gold);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 2;
  background: rgba(15, 23, 42, 0.95);
}

.pricing-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--accent-gold); color: #000; padding: 6px 20px; border-radius: 99px; font-weight: 800; font-size: 0.9rem;
  white-space: nowrap;
}

.pricing-title { font-size: 1.5rem; font-weight: 800; color: var(--text-white); margin-bottom: 12px; }
.pricing-desc { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 30px; min-height: 48px; }
.pricing-price { font-size: 2.2rem; font-weight: 900; color: var(--accent-gold); margin-bottom: 40px; }
.pricing-features { list-style: none; margin-bottom: 40px; text-align: right; }
.pricing-features li { font-size: 0.95rem; color: var(--text-gray-light); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
.pricing-features li i { color: var(--accent-gold); margin-top: 5px; }

/* ================================================
   PLANS — selectable development packages
   ================================================ */
.plans-section { padding: 100px 0; background: var(--bg-section); }

.plans-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}
.plans-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
}
.plans-step.is-active {
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.plans-step-divider {
  width: 32px;
  height: 1px;
  background: var(--border-color);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.plan-card:hover {
  border-color: rgba(251, 191, 36, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.plan-card.selected {
  border-color: var(--accent-gold);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 20px 40px rgba(0, 0, 0, 0.45);
}
.plan-card.is-recommended.selected {
  transform: translateY(-6px);
}

.plan-radio {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}
.plan-card.selected .plan-radio {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  box-shadow: inset 0 0 0 4px var(--bg-main);
}

.plan-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.plan-card.selected .plan-icon {
  background: rgba(251, 191, 36, 0.18);
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
}
.plan-subtitle {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}
.plan-features {
  list-style: none;
  width: 100%;
  text-align: right;
  margin-bottom: 24px;
  flex-grow: 1;
}
.plan-features li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-gray-light);
  line-height: 1.65;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  min-width: 7px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent-gold);
  position: static;
  transform: none;
}

/* دکمه‌های پلن — استایل کلاسیک قبلی (بدون Liquid Glass) */
.plan-card .plan-request-btn {
  width: 100%;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  padding: 11px 20px;
  min-height: auto;
  border-radius: var(--radius-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
  border-width: 2px;
  box-shadow: none;
  transition: var(--transition);
}

.plan-card .plan-request-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.55);
  outline-offset: 2px;
}

.plan-card .plan-request-btn.btn-gold {
  background: var(--accent-gold);
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.plan-card .plan-request-btn.btn-gold:hover {
  background: var(--accent-gold-hover);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
  filter: none;
}

.plan-card .plan-request-btn.btn-gold:active {
  background: var(--accent-gold-hover);
  transform: translateY(0) scale(0.98);
  filter: none;
}

.plan-card .plan-request-btn.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: var(--border-color);
}

.plan-card .plan-request-btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
  transform: translateY(-2px);
  filter: none;
}

.plan-card .plan-request-btn.btn-outline:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.98);
  filter: none;
}

.plan-card.selected .plan-request-btn.btn-outline {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.plan-card.selected .plan-request-btn.btn-outline:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  filter: none;
}

.plans-selected-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--text-gray-light);
  font-size: 0.95rem;
}
.plans-selected-note i { color: var(--accent-gold); }
.plans-selected-note strong { color: var(--text-white); font-weight: 700; }

.plan-contact-note {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.06);
  border: 1px dashed rgba(251, 191, 36, 0.25);
}

.premium-footer { background-color: var(--bg-main); border-top: 1px solid var(--border-color); padding: 80px 0 24px; }
.premium-footer .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.premium-footer .footer-col { display: flex; flex-direction: column; gap: 20px; }
.premium-footer .footer-logo { font-size: 1.5rem; font-weight: 900; color: var(--text-white); display: flex; align-items: center; gap: 12px; }
.premium-footer .footer-title { color: var(--text-white); font-size: 1.1rem; font-weight: 800; position: relative; padding-bottom: 12px; }
.premium-footer .footer-title::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent-gold); border-radius: 2px; }
.premium-footer .footer-links, .premium-footer .footer-contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.premium-footer .footer-links a { color: var(--text-gray); text-decoration: none; transition: var(--transition); }
.premium-footer .footer-links a:hover { color: var(--accent-gold); padding-right: 6px; }
.premium-footer .footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-gray); }
.premium-footer .footer-contact i { color: var(--accent-gold); margin-top: 5px; }
.premium-footer .social-links { display: flex; gap: 12px; margin-top: 10px; }
.premium-footer .social-links a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 50%; color: var(--text-white); text-decoration: none; transition: var(--transition); }
.premium-footer .social-links a:hover { background: var(--accent-gold); color: #000; transform: translateY(-3px); }
.premium-footer .footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-gray); }

/* ================================================
   11b. DESKTOP — ریتم اندازه و فاصله (هم‌تراز با موبایل)
   ================================================ */
@media (min-width: 769px) {
  html { scroll-padding-top: 96px; }

  .container {
    max-width: var(--content-max);
    padding: 0 clamp(28px, 4vw, 48px);
  }

  /* تایپوگرافی */
  .section-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
    margin-bottom: 18px;
  }

  .section-title {
    font-size: clamp(1.85rem, 2.6vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 22px;
  }

  .section-desc {
    font-size: 1rem;
    line-height: 1.85;
    max-width: 640px;
  }

  .services-header {
    margin-bottom: var(--space-header);
  }

  .services-header .section-desc {
    max-width: 680px;
  }

  .btn {
    padding: 12px 26px;
    font-size: 0.95rem;
  }

  /* هیرو — دو ستونه، تراز راست (نه جمع در وسط) */
  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-section);
  }

  .hero-grid {
    gap: clamp(56px, 6vw, 88px);
    align-items: center;
  }

  .hero-content {
    text-align: right;
  }

  .hero-title {
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    margin-bottom: 24px;
    line-height: 1.22;
  }

  .hero-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 44px;
    max-width: none;
  }

  .hero-actions {
    display: none;
  }

  .hero-downloads {
    max-width: 440px;
    margin-top: 0;
  }

  .hero-stats {
    gap: 48px;
    margin-top: 48px;
    padding-top: 36px;
    justify-content: flex-start;
  }

  .hero-stat-num {
    font-size: 1.6rem;
  }

  .hero-stat-num i {
    font-size: 1.35rem;
  }

  .hero-stat-label {
    font-size: 0.8rem;
    margin-top: 6px;
  }

  .hero-visual {
    display: flex;
    justify-content: flex-start;
  }

  .custom-dashboard-card {
    padding: 32px 30px;
    max-width: none;
    width: 100%;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  .custom-dashboard-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    gap: 18px;
  }

  .custom-dashboard-icon {
    width: 56px;
    height: 56px;
    font-size: 1.45rem;
  }

  .custom-dashboard-title {
    font-size: 1.1rem;
  }

  .custom-dashboard-sub {
    font-size: 0.88rem;
  }

  .custom-appointment-item {
    padding: 18px 20px;
    margin-bottom: 12px;
    gap: 16px;
  }

  .item-name {
    font-size: 0.95rem;
  }

  .item-desc {
    font-size: 0.82rem;
  }

  /* نقش‌ها */
  .trusted-brands {
    padding: 48px 0;
    text-align: center;
  }

  .trusted-title {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .brands-grid {
    gap: 20px 28px;
    justify-content: center;
    align-items: center;
  }

  .brand-item {
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
  }

  /* بخش‌ها */
  .why-us,
  .modules-section,
  .services,
  .faq-section,
  .plans-section {
    padding: var(--space-section) 0;
  }

  .magic-factory-banner,
  .fun-banner {
    padding: var(--space-section-alt) 0;
  }

  .why-us-inner {
    gap: clamp(64px, 7vw, 96px);
    align-items: start;
  }

  .why-us-content {
    text-align: right;
  }

  .why-us-content .section-desc {
    max-width: none;
  }

  .why-list {
    gap: 22px;
    margin-top: 36px;
  }

  .why-list li {
    font-size: 0.92rem;
    gap: 14px;
  }

  .why-list li .check {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .why-cards {
    grid-template-columns: 1fr;
    gap: var(--space-card-gap);
    align-self: stretch;
    width: 100%;
  }

  .why-card {
    padding: 36px 30px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .why-card-icon {
    font-size: 2.35rem;
    margin-bottom: 14px;
  }

  .why-card-num {
    font-size: 2rem;
  }

  .why-card-label {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* ماژول‌ها — ۲ ستون برای کارت‌های درشت‌تر */
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-card-gap);
  }

  .module-box {
    padding: 36px 32px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
  }

  .module-icon {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
    margin-bottom: 20px;
  }

  .module-box h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .module-box p {
    font-size: 0.96rem;
    line-height: 1.8;
    flex-grow: 1;
  }

  /* خدمات — ۲ ستون، کارت عریض */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-card-gap);
  }

  .service-card {
    padding: 40px 34px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
  }

  .service-card:hover {
    transform: translateY(-6px);
  }

  .service-icon-wrap {
    width: 62px;
    height: 62px;
    font-size: 1.65rem;
    margin-bottom: 22px;
  }

  .service-title {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .service-desc {
    font-size: 0.96rem;
    line-height: 1.8;
    flex-grow: 1;
  }

  /* پنل / بنر */
  .factory-inner {
    padding: 60px 52px;
  }

  .factory-header {
    margin-bottom: 52px;
  }

  .factory-animation-box {
    height: 190px;
  }

  .fun-banner-inner {
    padding: 52px 48px;
    gap: 56px;
    align-items: center;
  }

  .fun-content {
    text-align: right;
  }

  .fun-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    margin-bottom: 16px;
  }

  .fun-desc {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .fun-content .why-list {
    margin-top: 24px;
    gap: 16px;
  }

  .fun-content .why-list li {
    font-size: 0.9rem;
  }

  .fun-animation-box {
    height: 180px;
  }

  /* پلن‌ها */
  .plans-section .services-header {
    margin-bottom: 52px;
  }

  .plans-steps {
    margin: 36px 0 48px;
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-card-gap);
    align-items: stretch;
    max-width: none;
    margin: 0;
  }

  .plan-card {
    padding: 38px 32px 32px;
    min-height: 420px;
  }

  .plan-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 18px;
  }

  .plan-title {
    font-size: 1.25rem;
  }

  .plan-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .plan-features li {
    font-size: 0.92rem;
    padding: 10px 0;
  }

  .plan-request-btn {
    font-size: 0.92rem;
    padding: 12px 20px;
  }

  .plans-selected-note {
    font-size: 0.9rem;
    margin-top: 40px;
    padding: 16px 24px;
  }

  /* FAQ */
  .faq-container {
    gap: var(--space-stack);
    max-width: 900px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 22px 26px;
  }

  .faq-answer p {
    font-size: 0.9rem;
    padding: 0 20px 18px;
    line-height: 1.7;
  }

  /* فوتر */
  .premium-footer {
    padding: 64px 0 28px;
  }

  .premium-footer .footer-top {
    gap: 40px;
    margin-bottom: 52px;
  }

  .premium-footer .footer-col {
    gap: 22px;
  }

  .premium-footer .footer-logo {
    font-size: 1.2rem;
  }

  .premium-footer .footer-title {
    font-size: 1rem;
  }

  .premium-footer .footer-links a,
  .premium-footer .footer-contact li {
    font-size: 0.88rem;
  }

  .premium-footer .footer-bottom {
    font-size: 0.82rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-desc {
    max-width: 100%;
  }
}

@media (min-width: 1100px) {
  :root {
    --space-section: 112px;
    --space-section-alt: 96px;
    --space-header: 72px;
    --space-card-gap: 32px;
    --content-max: 1240px;
  }

  .modules-grid,
  .services-grid,
  .plans-grid {
    gap: var(--space-card-gap);
  }

  .why-us-inner {
    gap: 96px;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-box {
    min-height: 220px;
    padding: 38px 34px;
  }

  .service-card {
    min-height: 210px;
    padding: 38px 32px;
  }
}

@media (min-width: 1400px) {
  :root {
    --space-section: 120px;
    --content-max: 1280px;
  }
}

/* ================================================
   12. RESPONSIVE & MOBILE MENU
   ================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .plan-card {
    padding: 32px 24px 28px;
    min-height: 380px;
  }
}

@media (max-width: 1024px) {
  .pricing-card.featured {
    transform: none;
  }
  .plan-card.is-recommended.selected {
    transform: none;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc,
  .section-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .why-us-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  #secretary .why-us-content {
    order: 1;
  }

  #secretary .why-cards {
    order: 2;
  }

  .fun-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fun-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .fun-content .why-list {
    max-width: 480px;
  }

  .premium-footer .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— موبایل: فقط زیر ۷۶۸px — دسکتاپ بدون تغییر ——— */
@media (max-width: 768px) {
  :root {
    --space-section: 64px;
    --space-section-alt: 56px;
    --space-header: 44px;
    --space-stack: 18px;
    --space-card-gap: 18px;
    --content-max: 100%;
  }

  html { scroll-padding-top: 88px; }

  .container {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1102;
    position: relative;
  }
  .hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.menu-open { overflow: hidden; }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .navbar-inner { height: 64px; }
  .logo-icon { width: 38px; height: 38px; font-size: 1rem; }
  .logo-text strong { font-size: 1rem; }
  .logo-text span { font-size: 0.7rem; }

  /* پنل کشویی (مثل قبل) — محتوا داخلش تمام ارتفاع پنل */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 1101;
    padding: 0;
    gap: 0;
    background: linear-gradient(165deg, #0f172a 0%, #020617 55%, #0c1222 100%);
    border-left: 1px solid var(--border-color);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
  }
  .nav-menu.active {
    transform: translateX(0);
  }

  .mobile-menu-head,
  .mobile-menu-body {
    display: flex;
  }

  .mobile-cta-icon { display: inline-block; }

  .mobile-menu-head {
    flex-shrink: 0;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
  }
  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-white);
    font-size: 0.95rem;
  }
  .mobile-menu-brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: #000;
    font-size: 0.95rem;
  }
  .mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-gray-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-close:hover {
    color: var(--accent-gold);
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
  }

  .mobile-menu-body {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 12px;
  }

  .nav-links {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links li {
    flex: 1;
    display: flex;
    min-height: 44px;
    opacity: 0;
    transform: translateX(12px);
  }
  .nav-menu.active .nav-links li {
    animation: mobileNavItemIn 0.45s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }
  .nav-menu.active .nav-links li:nth-child(1) { animation-delay: 0.04s; }
  .nav-menu.active .nav-links li:nth-child(2) { animation-delay: 0.07s; }
  .nav-menu.active .nav-links li:nth-child(3) { animation-delay: 0.1s; }
  .nav-menu.active .nav-links li:nth-child(4) { animation-delay: 0.13s; }
  .nav-menu.active .nav-links li:nth-child(5) { animation-delay: 0.16s; }
  .nav-menu.active .nav-links li:nth-child(6) { animation-delay: 0.19s; }
  .nav-menu.active .nav-links li:nth-child(7) { animation-delay: 0.22s; }

  @keyframes mobileNavItemIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-links a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
    color: var(--text-gray-light);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
  }
  .nav-links a i {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--accent-gold);
    opacity: 0.85;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--text-white);
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
  }
  .nav-links a:active {
    transform: scale(0.98);
  }

  .nav-cta {
    flex-shrink: 0;
    width: 100%;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0;
  }
  .nav-cta .btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.92rem;
    gap: 8px;
  }

  .section-divider-inner {
    padding: 22px 0;
    column-gap: 10px;
  }

  .section-divider-gem {
    width: 8px;
    height: 8px;
  }

  /* هیرو — موبایل: متن بالا، داشبورد پایین */
  .hero {
    min-height: auto;
    padding: 96px 0 var(--space-section-alt);
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    width: 100%;
  }

  .section-badge { margin-left: auto; margin-right: auto; }

  .hero-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 36rem;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    max-width: 22rem;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .hero-downloads {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
    margin-top: 12px;
  }

  .store-btn {
    padding: 11px 12px;
    min-height: 54px;
    gap: 10px;
  }

  .store-btn-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 10px;
  }

  .store-btn-label {
    font-size: 0.68rem;
  }

  .store-btn-platform {
    font-size: 0.82rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 8px;
    padding-top: 24px;
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stat {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.75rem; }

  .hero-visual {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding-top: 8px;
  }

  .custom-dashboard-card {
    padding: 20px 18px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  .custom-dashboard-header {
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    text-align: right;
  }
  .custom-dashboard-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }
  .custom-dashboard-title { font-size: 0.95rem; }
  .custom-dashboard-sub { font-size: 0.78rem; }
  .custom-appointment-item {
    padding: 12px;
    gap: 12px;
    text-align: right;
  }
  .custom-appointment-item:hover { transform: none; }
  .item-name { font-size: 0.88rem; }
  .item-desc { font-size: 0.75rem; }

  /* نقش‌ها */
  .trusted-brands { padding: 40px 0; }
  .trusted-title {
    font-size: 0.88rem;
    margin-bottom: 20px;
    padding: 0 8px;
  }
  .brands-grid {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
  .brand-item {
    font-size: 0.88rem;
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
  }

  /* سرتیتر بخش‌ها — تراز وسط */
  .services-header,
  .factory-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-header);
  }
  .services-header .section-desc,
  .factory-header .section-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  /* why-us / معرفی */
  .why-us,
  .modules-section,
  .services,
  .magic-factory-banner,
  .fun-banner,
  .faq-section,
  .plans-section {
    padding: var(--space-section) 0;
  }

  .magic-factory-banner,
  .fun-banner {
    padding: var(--space-section-alt) 0;
  }

  .why-us-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: center;
  }

  .why-us-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    width: 100%;
  }

  .why-us-content .section-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    font-size: 0.92rem;
  }

  /* معرفی کلی — متن بالا، دو کارت پایین (مثل هیرو) */
  #intro .why-us-content {
    order: 1;
  }

  #intro .why-cards {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 28px 0 0;
  }

  #intro .why-card {
    padding: 18px 12px;
  }

  .why-cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-card-gap);
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
  .why-card {
    padding: 20px 14px;
  }
  .why-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
  .why-card-num { font-size: 1.35rem; }
  .why-card-label { font-size: 0.78rem; line-height: 1.5; }

  /* منشی: اول متن، بعد کارت‌ها */
  #secretary .why-us-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #secretary .why-us-content { order: 1; }

  #secretary .why-cards {
    order: 2;
    margin-top: 28px;
    max-width: 100%;
  }

  .why-list {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: right;
  }
  .why-list li {
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 0.9rem;
    gap: 12px;
  }
  .why-list li .check {
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* ماژول‌ها */
  .modules-grid {
    grid-template-columns: 1fr;
    gap: var(--space-card-gap);
  }
  .module-box {
    padding: 22px 20px;
    text-align: center;
  }
  .module-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-left: auto;
    margin-right: auto;
  }
  .module-box h3 { font-size: 1.05rem; }
  .module-box p { font-size: 0.88rem; line-height: 1.65; }

  /* کارت‌های خدمات */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-card-gap);
  }
  .service-card {
    padding: 24px 20px;
    text-align: center;
  }
  .service-card:hover { transform: none; }
  .service-icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }
  .service-title { font-size: 1.05rem; }
  .service-desc { font-size: 0.88rem; line-height: 1.65; }

  /* پنل مدیریت — انیمیشن بزرگ‌تر برای نمایش بهتر در موبایل */
  #admin-panel .factory-inner {
    padding: 28px 18px;
    text-align: center;
  }

  #admin-panel .factory-header .section-title {
    margin-bottom: 12px;
  }

  #admin-panel .factory-animation-box {
    height: 210px;
    margin-top: 10px;
  }

  #admin-panel .central-machine {
    width: 102px;
    height: 102px;
    border-width: 2px;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.22);
  }

  #admin-panel .machine-main {
    font-size: 3.35rem;
  }

  #admin-panel .factory-item {
    width: 56px;
    height: 56px;
  }

  #admin-panel .factory-item i {
    font-size: 2.15rem;
  }

  #admin-panel .conveyor-belt {
    background-size: 24px 2px;
  }

  /* تجربه بیمار — موبایل: متن بالا، انیمیشن پایین */
  #patient .fun-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 18px;
    gap: 0;
    text-align: center;
  }

  #patient .fun-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #patient .fun-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  #patient .fun-desc {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  #patient .fun-content .why-list {
    max-width: 100%;
    text-align: right;
  }

  #patient .fun-animation-box {
    order: 2;
    margin-top: 28px;
    height: 185px;
    width: 100%;
  }

  #patient .chase-scene {
    gap: 28px;
  }

  #patient .runner-tooth { font-size: 2.75rem; }
  #patient .chaser-syringe { font-size: 2.2rem; }
  #patient .chaser-doctor { font-size: 2.9rem; }

  /* پلن‌ها */
  .plans-steps {
    margin: 24px 0 28px;
    gap: 12px;
  }
  .plans-step {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .plans-step-divider { width: 20px; }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    gap: var(--space-card-gap);
  }
  .plan-card {
    padding: 22px 18px 20px;
  }
  .plan-card:hover,
  .plan-card.selected {
    transform: none;
  }
  .plan-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .plan-title { font-size: 1.1rem; }
  .plan-subtitle { font-size: 0.8rem; margin-bottom: 14px; }
  .plan-features { margin-bottom: 16px; }
  .plan-features li {
    font-size: 0.84rem;
    padding: 8px 0;
    gap: 10px;
  }
  .plan-features li::before {
    width: 6px;
    height: 6px;
    min-width: 6px;
    margin-top: 0.5em;
  }
  .plan-request-btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  .plans-selected-note {
    flex-direction: column;
    text-align: center;
    font-size: 0.88rem;
    padding: 12px 14px;
    margin-top: 20px;
    line-height: 1.6;
  }

  /* FAQ */
  .faq-container {
    gap: var(--space-stack);
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 14px;
    text-align: right;
    gap: 12px;
  }
  .faq-answer p {
    font-size: 0.88rem;
    padding: 0 14px 16px;
    line-height: 1.7;
  }

  /* فوتر */
  .premium-footer { padding: 56px 0 24px; }
  .premium-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    margin-bottom: 44px;
  }
  .premium-footer .footer-col {
    align-items: center;
  }
  .premium-footer .footer-logo {
    justify-content: center;
    font-size: 1.2rem;
  }
  .premium-footer .footer-title::after {
    right: 50%;
    transform: translateX(50%);
  }
  .premium-footer .footer-links,
  .premium-footer .footer-contact {
    align-items: center;
  }
  .premium-footer .footer-contact li {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .premium-footer .footer-links a:hover { padding-right: 0; }
  .premium-footer .social-links { justify-content: center; }
  .plan-contact-note {
    text-align: center;
    font-size: 0.85rem !important;
  }
  .premium-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 0.8rem;
    gap: 8px;
  }

  .pricing-grid { grid-template-columns: 1fr; }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .hero-title { font-size: 1.45rem; }
  .hero-desc { font-size: 0.9rem; }

  #intro .why-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #secretary .why-cards,
  .why-cards {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .hero-stat {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
  }

  .brand-item {
    font-size: 0.82rem;
    flex-wrap: wrap;
    text-align: center;
  }

  .plans-step span:not(.plans-step-divider) {
    max-width: 120px;
    text-align: center;
    line-height: 1.3;
  }
}

/* Fade-in Animation Base */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
