/* ===========================
   منوچین - MenuChain Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* === CSS Variables === */
:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fcd34d;
  --secondary: #7c3aed;
  --secondary-dark: #5b21b6;
  --bg-dark: #0a0f1e;
  --bg-card: #0f1629;
  --bg-card2: #141d35;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(245, 158, 11, 0.3);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-gold: 0 0 40px rgba(245, 158, 11, 0.15);
  --shadow-purple: 0 0 40px rgba(124, 58, 237, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  position: relative;
  width: 100%;
  line-height: 1.7;
  overflow-x: clip;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* === Utility === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0a0f1e;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* === Glow Orbs Background === */
.bg-orbs-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

/* ===========================
   NAVBAR
   =========================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

#navbar.scrolled .nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

#navbar.scrolled .nav-logo-text {
  font-size: 1.25rem;
}

/* Scrolled Nav CTA Buttons: Icon-only on desktop only (hidden on mobile) */
@media (min-width: 769px) {
  #navbar.scrolled .nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #navbar.scrolled .nav-cta .nav-btn-text {
    display: none !important;
  }

  #navbar.scrolled .nav-cta .theme-toggle-btn,
  #navbar.scrolled .nav-cta .nav-btn-login,
  #navbar.scrolled .nav-cta .nav-btn-demo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: var(--transition);
    text-decoration: none;
  }

  /* Distinct Button 1: Theme Toggle (Subtle Neutral Glass with Amber Icon) */
  #navbar.scrolled .nav-cta .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fbbf24 !important;
  }
  #navbar.scrolled .nav-cta .theme-toggle-btn:hover {
    background: rgba(251, 191, 36, 0.18) !important;
    border-color: #fbbf24 !important;
    color: #f59e0b !important;
    transform: translateY(-2px);
  }

  /* Distinct Button 2: Login Button (Purple / Violet Identity) */
  #navbar.scrolled .nav-cta .nav-btn-login {
    background: rgba(124, 58, 237, 0.18) !important;
    border: 1px solid rgba(124, 58, 237, 0.45) !important;
    color: #c084fc !important;
  }
  #navbar.scrolled .nav-cta .nav-btn-login:hover {
    background: rgba(124, 58, 237, 0.3) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
  }

  /* Distinct Button 3: Demo Request Button (Gold / Amber Identity) */
  #navbar.scrolled .nav-cta .nav-btn-demo {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 1px solid #f59e0b !important;
    color: #0a0f1e !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  }
  #navbar.scrolled .nav-cta .nav-btn-demo:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.7rem, 5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.35;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: right;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--shadow-gold);
  display: block;
}

.hero-float-card {
  position: absolute;
  background: rgba(15, 22, 41, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hero-float-card.hero-float-card-1,
.hero-float-card:nth-child(2) {
  animation-delay: -2s;
  bottom: 25px;
  left: -20px;
}

.hero-float-card.hero-float-card-2,
.hero-float-card:nth-child(3) {
  animation-delay: -1s;
  top: 25px;
  left: -20px;
}

.float-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.float-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.float-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ===========================
   FEATURES SECTION
   =========================== */
#features {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.features-header {
  text-align: center;
  margin-bottom: 70px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), var(--shadow-gold);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.features-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
}

.showcase-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.showcase-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.showcase-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.9;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.showcase-list li .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===========================
   PRICING SECTION
   =========================== */
#pricing {
  padding: 100px 0;
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.toggle-label.active {
  color: var(--primary);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.on {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary);
}

.toggle-knob {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch.on .toggle-knob {
  right: auto;
  left: 4px;
  background: var(--primary);
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(124, 58, 237, 0.05));
  border-color: rgba(245, 158, 11, 0.3);
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-gold);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.card-badges-top {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 90%;
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0a0f1e;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  z-index: 3;
}

.plan-offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 12px;
  width: max-content;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.15);
  transition: all 0.3s ease;
}

.plan-offer-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(239, 68, 68, 0.28);
}

.plan-offer-badge .offer-badge-icon {
  color: #f59e0b;
  font-size: 0.92rem;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.6));
}

/* Dark Theme (Default) Distinct Colors */
.plan-offer-badge .offer-badge-percent {
  color: #ff3366; /* نئون قرمز/مرجانی روشن و چشم‌گیر */
  font-weight: 900;
  font-size: 0.96rem;
  letter-spacing: 0.5px;
}

.plan-offer-badge .offer-badge-title {
  color: #fbbf24; /* طلایی کهربایی شیک و متمایز */
  font-weight: 700;
  font-size: 0.83rem;
}

/* Toggle Switch Distinct Discount Colors */
.toggle-disc-pct {
  color: #ff3366;
  font-weight: 900;
}
.toggle-disc-title {
  color: #fbbf24;
  font-weight: 700;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.plan-price-wrap {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.plan-price-original {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
}

.plan-price-original del {
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2.5px;
  color: #94a3b8;
  font-weight: 600;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
}

.price-currency {
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features .check-icon {
  color: var(--primary);
  font-size: 1rem;
}

.plan-features .x-icon {
  color: var(--text-muted);
  font-size: 1rem;
}

.plan-btn {
  width: 100%;
  justify-content: center;
}

/* ===========================
   HOW IT WORKS
   =========================== */
#how-it-works {
  padding: 100px 0;
  background: var(--bg-card);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  opacity: 0.3;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0a0f1e;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.step-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   TESTIMONIALS
   =========================== */
#testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star {
  color: var(--primary);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===========================
   REGISTER SECTION
   =========================== */
#register {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.register-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.register-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.register-info h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.register-info p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
}

.register-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.register-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group label span.required {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--text-primary);
  direction: rtl;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.03);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 16px;
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Success message */
.success-message {
  display: none;
  text-align: center;
  padding: 40px;
}

.success-message.show {
  display: block;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.success-message p {
  color: var(--text-secondary);
}

/* ===========================
   FAQ SECTION
   =========================== */
#faq {
  padding: 100px 0;
  background: var(--bg-card);
}

.faq-list {
  max-width: 760px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(245, 158, 11, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===========================
   FOOTER
   =========================== */
#footer {
  background: #070b17;
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 45px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.85;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
  color: var(--text-secondary);
  text-decoration: none;
}

.social-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-links li,
.footer-links span {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Loading spinner === */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0a0f1e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .features-showcase {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .register-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .orb {
    display: none !important;
  }

  #hero {
    padding: 90px 0 40px;
  }

  #features,
  #how-it-works,
  #pricing,
  #register,
  #faq {
    padding: 50px 0;
  }

  .nav-links,
  .nav-cta,
  #navbar .nav-cta,
  #navbar.scrolled .nav-cta,
  html.light-theme #navbar.scrolled .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-showcase {
    padding: 24px 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title br {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
    padding-top: 24px;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.76rem;
  }

  .hero-float-card {
    padding: 8px 12px;
    max-width: calc(100% - 20px);
    white-space: normal;
  }

  .hero-float-card.hero-float-card-1,
  .hero-float-card:nth-child(2) {
    bottom: 12px;
    left: 10px;
  }

  .hero-float-card.hero-float-card-2,
  .hero-float-card:nth-child(3) {
    top: 12px;
    left: auto;
    right: 10px;
  }

  .float-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .float-text strong {
    font-size: 0.78rem;
  }

  .float-text span {
    font-size: 0.7rem;
  }

  .pricing-banner {
    flex-direction: column;
    padding: 18px 14px !important;
    gap: 10px !important;
  }

  .pricing-banner div {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .register-form-wrapper {
    padding: 24px 16px;
  }

  .pricing-card {
    padding: 28px 18px;
  }

  .price-amount {
    font-size: 2rem;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

/* === Mobile menu === */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 24px 40px;
  gap: 20px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a.mobile-link:not(.btn) {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  padding: 6px 0;
}

.mobile-menu a.mobile-link:not(.btn):hover {
  color: var(--primary);
}

.mobile-menu a.btn.mobile-link {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px 20px;
}

.mobile-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.mobile-close:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
}

/* ============================================================
   LIGHT THEME DESIGN SYSTEM & COLOR OVERRIDES
   ============================================================ */
html.light-theme {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --secondary: #6366f1;
  --secondary-dark: #4f46e5;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card2: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(245, 158, 11, 0.35);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.12);
  --shadow-purple: 0 10px 30px rgba(99, 102, 241, 0.12);
}

html.light-theme body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* Light Theme Navigation & Header */
html.light-theme #navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.light-theme #navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
}

@media (min-width: 769px) {
  html.light-theme #navbar.scrolled .nav-cta .theme-toggle-btn {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #d97706 !important;
  }

  html.light-theme #navbar.scrolled .nav-cta .nav-btn-login {
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #4f46e5 !important;
  }
  html.light-theme #navbar.scrolled .nav-cta .nav-btn-login:hover {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: #4f46e5 !important;
    color: #3730a3 !important;
  }

  html.light-theme #navbar.scrolled .nav-cta .nav-btn-demo {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 1px solid #d97706 !important;
    color: #ffffff !important;
  }
}

html.light-theme .nav-links a {
  color: #334155;
}
html.light-theme .nav-links a:hover {
  color: var(--primary-dark);
}

html.light-theme .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
html.light-theme .mobile-link {
  color: #1e293b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Light Theme Cards & Containers */
html.light-theme .feature-card,
html.light-theme .step-card,
html.light-theme .pricing-card,
html.light-theme .faq-item,
html.light-theme .register-card,
html.light-theme .hero-mockup-wrap,
html.light-theme .card,
html.light-theme .edit-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

html.light-theme .feature-icon,
html.light-theme .step-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--primary-dark);
}

html.light-theme .pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.18);
}

/* Light Theme Offer Badge & Distinct Colors */
html.light-theme .plan-offer-badge {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.08);
}

html.light-theme .plan-offer-badge:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  box-shadow: 0 5px 14px rgba(225, 29, 72, 0.14);
}

html.light-theme .plan-offer-badge .offer-badge-icon {
  color: #e11d48;
  filter: none;
}

html.light-theme .plan-offer-badge .offer-badge-percent {
  color: #dc2626; /* قرمز زرشکی تیره و بسیار خوانا روی کارت سفید */
  font-weight: 900;
  font-size: 0.96rem;
}

html.light-theme .plan-offer-badge .offer-badge-title {
  color: #b45309; /* نارنجی برنزه / کهربایی گرم متضاد با رنگ قرمز درصد */
  font-weight: 700;
  font-size: 0.83rem;
}

/* Light Theme Toggle Switch Discount Colors */
html.light-theme .toggle-disc-pct {
  color: #dc2626;
  font-weight: 900;
}
html.light-theme .toggle-disc-title {
  color: #b45309;
  font-weight: 700;
}

html.light-theme .faq-answer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

html.light-theme .orb {
  opacity: 0.35;
}

/* Light Theme Inputs & Controls */
html.light-theme .form-group input,
html.light-theme .form-group textarea,
html.light-theme .form-group select,
html.light-theme input[type="text"],
html.light-theme input[type="email"],
html.light-theme input[type="password"],
html.light-theme input[type="number"],
html.light-theme textarea,
html.light-theme select {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

html.light-theme .form-group input:focus,
html.light-theme .form-group textarea:focus,
html.light-theme .form-group select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

html.light-theme .form-group select option {
  background-color: #ffffff;
  color: #0f172a;
}

html.light-theme .btn-secondary,
html.light-theme .btn-outline {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1e293b;
}
html.light-theme .btn-secondary:hover,
html.light-theme .btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Light Theme Admin & Customer Panel */
html.light-theme .sidebar {
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.04);
}

html.light-theme .sidebar-menu a {
  color: #475569;
}
html.light-theme .sidebar-menu a:hover,
html.light-theme .sidebar-menu a.active {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

html.light-theme .mobile-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

html.light-theme .mobile-hamburger-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

html.light-theme .table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

html.light-theme .table-wrapper th {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.light-theme .table-wrapper td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #334155;
}

html.light-theme .table-wrapper tr:hover td {
  background: rgba(245, 158, 11, 0.03);
}

html.light-theme .sub-toolbar,
html.light-theme .pagination-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html.light-theme .pagination-btn {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
}

html.light-theme .modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

html.light-theme .modal-header {
  background: #ffffff;
}

html.light-theme .login-container,
html.light-theme .auth-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
}

/* Light Theme Hero Float Cards */
html.light-theme .hero-float-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}
html.light-theme .float-text strong {
  color: #0f172a;
}
html.light-theme .float-text span {
  color: #475569;
}

/* Light Theme Footer */
html.light-theme #footer,
html.light-theme .footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
html.light-theme .footer-brand p,
html.light-theme .footer-links a,
html.light-theme .footer-links li,
html.light-theme .footer-links span,
html.light-theme .footer-bottom p,
html.light-theme .footer-bottom-links a {
  color: #475569;
}
html.light-theme .footer-links a:hover,
html.light-theme .footer-bottom-links a:hover {
  color: var(--primary-dark);
}
html.light-theme .social-btn {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}
html.light-theme .social-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary);
  color: #d97706;
}

/* === Theme Toggle Button Styling === */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

html.light-theme .theme-toggle-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #f59e0b;
}

html.light-theme .theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}