/* ================================================
   Exen 3D — Sci-Fi Dark Theme + Scrollytelling
   ================================================ */

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

/* =========== CSS VARIABLES =========== */
:root {
  --color-primary:    #6366f1;
  --color-secondary:  #8b5cf6;
  --color-accent:     #06b6d4;
  --color-neon:       #00fff7;
  --color-neon2:      #bf00ff;
  --color-bg:         #04040f;
  --color-bg2:        #080820;
  --color-surface:    rgba(255,255,255,0.03);
  --color-border:     rgba(255,255,255,0.07);
  --color-text:       #e2e8f0;
  --color-muted:      #94a3b8;
  --color-success:    #10b981;
  --color-warning:    #f59e0b;
  --color-danger:     #ef4444;
  --font-main:        'Vazirmatn', sans-serif;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --radius-full:      9999px;
  --glow-primary:     0 0 30px rgba(99,102,241,0.35);
  --glow-accent:      0 0 30px rgba(6,182,212,0.35);
  --glow-neon:        0 0 20px rgba(0,255,247,0.5), 0 0 60px rgba(0,255,247,0.15);
  --shadow-card:      0 8px 40px rgba(0,0,0,0.5);
  --transition:       all 0.35s cubic-bezier(0.4,0,0.2,1);
  --glass-bg:         rgba(255,255,255,0.04);
  --glass-border:     rgba(255,255,255,0.1);
  --glass-blur:       blur(20px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-anchor: none;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 100%, rgba(139,92,246,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(6,182,212,0.04) 0%, transparent 60%);
  background-attachment: fixed;
}
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}


/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-neon), var(--color-accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(0,255,247,0.6);
}

/* =========== GLASS COMPONENTS =========== */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.glass-dark {
  background: rgba(4,4,15,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.glass-card {
  background: rgba(8,8,28,0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}
.glass-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: var(--shadow-card), var(--glow-primary);
  transform: translateY(-5px);
}

/* Neon border card */
.neon-card {
  background: rgba(4,4,15,0.8);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}
.neon-card:hover {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--glow-primary);
  transform: translateY(-4px);
}

/* =========== SCI-FI GRID =========== */

.sci-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.sci-grid-fine {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* =========== NAVBAR =========== */

.navbar {
  position: fixed;
  top: 14px;
  right: 50%;
  transform: translateX(50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 1200px;
  height: 62px;
  background: rgba(4,4,15,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(6,182,212,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.navbar.scrolled {
  background: rgba(4,4,15,0.92);
  border-color: rgba(99,102,241,0.22);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 20px rgba(99,102,241,0.06);
  top: 8px;
}
.navbar.scrolled::after { opacity: 1; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: var(--transition);
}
.navbar-brand:hover .brand-logo {
  box-shadow: 0 6px 25px rgba(99,102,241,0.65), var(--glow-primary);
  transform: scale(1.05) rotate(-3deg);
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, var(--color-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.navbar-nav {
  display: flex; align-items: center; gap: 0.1rem; list-style: none;
}
.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 10px;
  color: rgba(226,232,240,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 1px;
  background: var(--color-primary);
  transition: all 0.3s;
  opacity: 0;
}
.nav-link:hover { color: var(--color-text); background: rgba(99,102,241,0.08); }
.nav-link:hover::after { left: 14%; right: 14%; opacity: 1; }
.nav-link.active {
  color: #fff;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
}
.nav-link.active::after { display: none; }

.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }

/* =========== BUTTONS =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(99,102,241,0.6), var(--glow-primary);
  transform: translateY(-2px);
  color: #fff;
}

.btn-glass {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
}
.btn-glass:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn-neon {
  background: transparent;
  border: 1px solid var(--color-neon);
  color: var(--color-neon);
  box-shadow: 0 0 10px rgba(0,255,247,0.15);
  text-shadow: 0 0 8px rgba(0,255,247,0.4);
}
.btn-neon:hover {
  background: rgba(0,255,247,0.08);
  box-shadow: var(--glow-neon);
  color: var(--color-neon);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #0891b2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,182,212,0.35);
}
.btn-accent:hover { box-shadow: 0 8px 30px rgba(6,182,212,0.6); transform: translateY(-2px); color: #fff; }

.btn-danger  { background: var(--color-danger);  color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-warning { background: var(--color-warning); color: #000; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-sm   { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg   { padding: 0.85rem 2rem;  font-size: 1rem; border-radius: var(--radius-md); }
.btn-icon { padding: 0.6rem;        border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

/* =========== HERO =========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
#hero-canvas {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  /* GPU layer — بدون repaint در هر frame */
  will-change: transform;
  animation: floatOrb 12s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
  top: -180px; right: -120px;
}
.hero-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  bottom: -120px; left: 40px;
  animation-delay: 5s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
  top: 35%; left: 35%;
  animation-delay: 9s;
}

.hero-content {
  position: relative; z-index: 2; max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,255,247,0.06);
  border: 1px solid rgba(0,255,247,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-neon);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
  text-shadow: 0 0 10px rgba(0,255,247,0.3);
  animation: fadeInDown 0.6s ease;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--color-neon);
  border-radius: 50%;
  box-shadow: var(--glow-neon);
  animation: blink 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-neon) 50%, var(--color-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2.25rem;
  line-height: 1.8;
  max-width: 500px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: fadeInUp 0.7s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.78rem; color: var(--color-muted); }

/* Hero 3D Visual */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
}
.hero-3d-wrap {
  width: 300px; height: 300px;
  position: relative;
  animation: float 8s ease-in-out infinite;
}
.hero-3d-box {
  width: 100%; height: 100%;
  background: rgba(4,4,15,0.85);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 0 60px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-3d-box::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.04));
  pointer-events: none;
}
.hero-3d-icon {
  font-size: 5rem;
  filter: drop-shadow(0 0 30px rgba(99,102,241,0.8)) drop-shadow(0 0 60px rgba(6,182,212,0.3));
  margin-bottom: 1rem;
  animation: iconFloat 4s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.05); }
}
.hero-3d-label { font-size: 1rem; font-weight: 700; color: #fff; }
.hero-3d-sub   { font-size: 0.78rem; color: var(--color-muted); margin-top: 0.3rem; }

.hero-chip {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(4,4,15,0.92);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  min-width: 80px; text-align: center;
}
.hero-chip-icon { font-size: 1.2rem; }
.hero-chip-text { font-size: 0.65rem; font-weight: 700; margin-top: 0.3rem; color: var(--color-text); white-space: nowrap; }

/* =========== CONTAINER / SECTION =========== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section    { padding: 6rem 0; contain: layout; }
.section-sm { padding: 3rem 0; contain: layout; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  padding: 0.3rem 1rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
  color: #a5b4fc; margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.section-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem; color: #a5b4fc; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; margin-bottom: 0.75rem;
  letter-spacing: -0.3px; line-height: 1.25;
}
.section-sub { color: var(--color-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(6,182,212,0.4), transparent);
  box-shadow: 0 0 10px rgba(99,102,241,0.2);
  border: none;
}

/* =========== PRODUCT CARD =========== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: rgba(8,8,30,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0; transition: opacity 0.4s; z-index: 2;
}
.product-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.1), 0 0 40px rgba(99,102,241,0.08);
  transform: translateY(-7px);
}
.product-card:hover::before { opacity: 1; }

.product-card-image {
  position: relative; aspect-ratio: 1/1;
  overflow: hidden;
  background: rgba(99,102,241,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px;
}
.product-card-image::before {
  content: '';
  position: absolute; inset: 8px;
  border-radius: calc(var(--radius-md) - 4px);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.15), inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none; z-index: 3;
  transition: box-shadow 0.35s;
}
.product-card:hover .product-card-image::before {
  box-shadow: 0 0 0 1px rgba(99,102,241,0.5), inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 25px rgba(99,102,241,0.2);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
  transition: transform 0.6s ease;
  display: block; position: relative; z-index: 1;
}
.product-card:hover .product-card-image img { transform: scale(1.08); }

.product-card-overlay {
  position: absolute; inset: 8px;
  border-radius: calc(var(--radius-md) - 4px);
  background: linear-gradient(to top, rgba(4,4,15,0.92), transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end;
  padding: 1rem; gap: 0.5rem; z-index: 4;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; z-index: 5;
}
.badge-sale     { background: rgba(239,68,68,0.9);  color: #fff; box-shadow: 0 2px 10px rgba(239,68,68,0.4); }
.badge-new      { background: rgba(16,185,129,0.9); color: #fff; box-shadow: 0 2px 10px rgba(16,185,129,0.4); }
.badge-featured { background: rgba(245,158,11,0.9); color: #000; }
.badge-download { background: rgba(99,102,241,0.9); color: #fff; }

.product-card-body { padding: 1rem 1.1rem 1.1rem; }
.product-card-category {
  font-size: 0.72rem; color: var(--color-accent);
  font-weight: 600; letter-spacing: 0.5px; margin-bottom: 0.35rem;
}
.product-card-title {
  font-size: 0.92rem; font-weight: 700; margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-title a { color: var(--color-text); text-decoration: none; }
.product-card-title a:hover { color: var(--color-primary); }

.product-card-rating {
  display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; font-size: 0.78rem;
}
.stars { color: var(--color-warning); }
.rating-count { color: var(--color-muted); }

.product-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.product-price {
  font-size: 1rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.07));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 8px; padding: 0.35rem 0.7rem;
  font-family: var(--font-main); font-variant-numeric: tabular-nums;
}
.product-price .old-price {
  font-size: 0.72rem; font-weight: 400; color: var(--color-muted);
  text-decoration: line-through; display: block; line-height: 1.2;
}
.product-price .sale { color: #f87171; font-size: 1rem; font-weight: 800; }
.price-num { font-family: var(--font-main); font-variant-numeric: tabular-nums; }

/* =========== FEATURE CARD =========== */

.feature-card {
  background: rgba(8,8,30,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), var(--glow-primary);
  transform: translateY(-5px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(6,182,212,0.15));
  box-shadow: 0 4px 25px rgba(99,102,241,0.3);
  transform: scale(1.1) rotate(-5deg);
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.83rem; color: var(--color-muted); line-height: 1.7; }

/* =========== PROCESS STEPS =========== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; position: relative;
}
.process-steps::before {
  content: '';
  position: absolute; top: 28px; right: 8%; left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), rgba(6,182,212,0.3), transparent);
  z-index: 0;
}
.process-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 1rem; position: relative; z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4), 0 0 0 4px rgba(99,102,241,0.1);
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid rgba(99,102,241,0.3);
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
}
.step-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-desc  { font-size: 0.8rem; color: var(--color-muted); line-height: 1.6; }

/* =========== STATS BANNER =========== */

.stats-banner {
  background: rgba(8,8,30,0.5);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-xl);
  padding: 3rem; position: relative; overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-box {
  text-align: center; padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
}
.stat-box:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.05);
  transform: translateY(-3px);
}
.stat-box-value {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neon));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 0.5rem;
}
.stat-box-label { font-size: 0.85rem; color: var(--color-muted); }

/* =========== FORMS =========== */

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--color-muted); margin-bottom: 0.5rem;
}
.form-label .required { color: var(--color-danger); margin-right: 0.2rem; }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 0.95rem; transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--color-primary);
  background: rgba(99,102,241,0.07);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-control::placeholder { color: var(--color-muted); opacity: 0.5; }
select.form-control option { background: #0c0c28; color: var(--color-text); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.8rem; color: var(--color-danger); margin-top: 0.35rem; }
.form-hint  { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.35rem; }

/* =========== ALERTS =========== */

.alert {
  padding: 0.9rem 1.2rem; border-radius: var(--radius-sm);
  margin-bottom: 1rem; font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.alert-success { background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-danger  { background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }
.alert-info    { background: rgba(6,182,212,0.1);   border: 1px solid rgba(6,182,212,0.25);  color: #67e8f9; }

/* =========== STATUS BADGES =========== */

.status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.status-pending    { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.status-confirmed  { background: rgba(6,182,212,0.15);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.25); }
.status-processing { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.status-printing   { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.status-shipped    { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.status-delivered  { background: rgba(16,185,129,0.25); color: #34d399; border: 1px solid rgba(16,185,129,0.4); }
.status-cancelled  { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }

/* =========== TABLE =========== */

.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td {
  padding: 0.9rem 1rem; text-align: right;
  border-bottom: 1px solid var(--color-border);
}
.table th {
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--color-muted);
  background: rgba(255,255,255,0.02);
}
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(99,102,241,0.04); }
.table tbody tr:last-child td { border-bottom: none; }

/* =========== PAGINATION =========== */

.pagination {
  display: flex; align-items: center; gap: 0.5rem;
  justify-content: center; margin-top: 2rem; flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-text); text-decoration: none;
  font-size: 0.9rem; transition: var(--transition); cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: var(--color-primary); border-color: var(--color-primary);
  color: #fff; box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}

/* =========== CATEGORY CARD =========== */

.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.category-card {
  padding: 2rem 1rem; text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(8,8,30,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; color: var(--color-text);
  transition: var(--transition); position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0); transition: transform 0.4s;
}
.category-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.07);
  transform: translateY(-5px); color: var(--color-text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), var(--glow-primary);
}
.category-card:hover::before { transform: scaleX(1); }
.category-card-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; }
.category-card-name  { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.category-card-count { font-size: 0.8rem; color: var(--color-muted); }

/* =========== CART ICON =========== */

.cart-btn {
  position: relative; padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-text); text-decoration: none;
  display: flex; align-items: center; font-size: 1.2rem;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 0 15px rgba(99,102,241,0.2); }
.cart-count {
  position: absolute; top: -6px; left: -6px;
  min-width: 18px; height: 18px;
  background: var(--color-danger); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.5);
  animation: pulse-badge 2s ease-in-out infinite;
}

/* =========== FOOTER =========== */

.footer {
  background: rgba(4,4,15,0.98);
  border-top: 1px solid rgba(99,102,241,0.1);
  padding: 4rem 0 1.5rem;
  margin-top: 6rem; position: relative; overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(6,182,212,0.4), transparent);
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand-desc { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.8; }
.footer-heading { font-size: 0.88rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--color-muted); text-decoration: none; font-size: 0.88rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 0.4rem;
}
.footer-links a:hover { color: var(--color-primary); padding-right: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; color: var(--color-muted);
}

/* =========== MOBILE MENU =========== */

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 0.5rem; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed; top: 84px; right: 1.5rem; left: 1.5rem;
  background: rgba(4,4,15,0.96); backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(99,102,241,0.15); border-radius: 16px;
  padding: 1rem; z-index: 999;
  box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 30px rgba(99,102,241,0.06);
  animation: slideDown 0.25s ease;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link {
  display: block; padding: 0.75rem 1rem; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu .nav-link:last-child { border-bottom: none; }

/* =========== ANIMATIONS =========== */

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-25px) scale(1.03); }
}
/* برای hero-orb — فقط translate، بدون scale تا repaint نشه */
@keyframes floatOrb {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown  { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes scanline {
  0%   { top: -5%; }
  100% { top: 105%; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(99,102,241,0.3); box-shadow: 0 0 20px rgba(99,102,241,0.1); }
  50%       { border-color: rgba(6,182,212,0.4);  box-shadow: 0 0 40px rgba(6,182,212,0.12); }
}
@keyframes glitch1 {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(-3px, 1px); }
  66% { transform: translate(3px, -1px); }
}
@keyframes glitch2 {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(3px, 1px); }
  66% { transform: translate(-3px, -1px); }
}

.animate-fade-in { animation: fadeIn 0.6s ease; }
.animate-fade-up { animation: fadeInUp 0.6s ease; }
.animate-border-glow { animation: borderGlow 3s ease-in-out infinite; }

/* Scanline overlay */
.scanline-wrap { position: relative; overflow: hidden; }
.scanline-wrap::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,247,0.12), transparent);
  top: 0; animation: scanline 8s linear infinite; pointer-events: none; z-index: 10;
}

/* =========== UTILITIES =========== */

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger  { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-neon    { color: var(--color-neon); text-shadow: 0 0 10px rgba(0,255,247,0.4); }
.text-sm  { font-size: 0.85rem; }
.text-xs  { font-size: 0.75rem; }
.text-lg  { font-size: 1.1rem; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; }

.w-100 { width: 100%; }
.hidden { display: none; }

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

/* =========== SCROLLBAR =========== */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* =========== RESPONSIVE =========== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar {
    top: 10px; width: calc(100% - 1.5rem);
    height: 56px; padding: 0 1rem; border-radius: 14px;
  }
  .navbar.scrolled { top: 6px; }
  .navbar-nav, .navbar-desktop { display: none; }
  .hamburger { display: flex; }

  /* روی موبایل فقط سبد خرید + همبرگر دیده بشه، بقیه دکمه‌ها برن توی منوی کشویی */
  .navbar-actions .btn { display: none; }
  .navbar-actions { gap: 0.35rem; }
  .cart-btn { width: 38px; height: 38px; }
  .brand-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero-grid-layout { grid-template-columns: 1fr !important; }
  .hero-visual       { display: none !important; }
  .hero-content { max-width: 100% !important; text-align: center; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero-title { font-size: 2rem; }

  .shop-layout, .contact-layout, .checkout-layout,
  .product-layout, .custom-layout, .profile-layout, .cart-layout {
    grid-template-columns: 1fr !important;
  }
  .shop-layout aside { position: static !important; }

  .process-steps::before { display: none; }
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .desktop-only { display: none !important; }
  .sort-bar { overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: 0.5rem; }
  .sort-bar::-webkit-scrollbar { height: 3px; }
  .sort-bar::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }

  main { padding-top: 76px !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .hero-stats { justify-content: center; }
  .navbar { padding: 0 1rem; }
  .brand-name { font-size: 1rem; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .product-card-body { padding: 0.9rem; }
  .product-card-title { font-size: 0.85rem; }
  .product-price { font-size: 0.88rem; }
}

/* Font consistency */
.product-price, .product-price *, .sale, .old-price, .price-num {
  font-family: var(--font-main);
  font-variant-numeric: tabular-nums;
}
