/* ================================================================
   MILANO F16 AFFILIATE - PROFESSIONAL SAAS LANDING DESIGN v4.0
   ================================================================ */

/* ===== CSS VARIABLES ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fffbeb;
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --bg: var(--gray-50);
  --card-bg: #ffffff;
  --text: var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Cairo', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cairo', sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ===== BASE ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection {
  background: var(--primary);
  color: white;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: var(--transition-slow);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar.scrolled {
  padding: 0.6rem 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  transition: var(--transition);
}

.navbar-brand:hover { transform: scale(1.02); }
.navbar-brand img { transition: var(--transition-slow); }
.navbar-brand:hover img { transform: rotate(-5deg) scale(1.1); }
.navbar-brand span {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.navbar-links a {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
  position: relative;
}

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

.navbar-links a:hover::after { width: 100%; }
.navbar-links a:hover { color: var(--primary); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.mobile-toggle:active { transform: scale(0.9); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(6, 182, 212, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  animation: meshShift 15s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -5%;
  left: -5%;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--secondary), transparent);
  top: 30%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #ec4899, transparent);
  top: 60%;
  right: 15%;
  animation-delay: -7s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--success), transparent);
  bottom: 20%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.05); }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  padding: 0.6rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  animation: pulse 3s ease-in-out infinite;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--secondary), #fbbf24, var(--secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Glass Card Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: var(--transition-slow);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-stat {
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.hero-stat .num {
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: var(--transition);
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.scroll-indicator span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-slow);
  text-align: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn:active { transform: scale(0.97); }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.btn-cta {
  background: linear-gradient(135deg, #fff, #f8fafc);
  color: var(--primary);
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Magnetic Button */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  max-width: 100%;
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.section-alt .section-header,
.section-alt .steps-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================================
   FEATURES V2 - Card Style
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card-v2 {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid var(--border);
  cursor: default;
}

.feature-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon-v2 {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition-slow);
}

.feature-card-v2:hover .feature-icon-v2 {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.green-v2 {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.blue-v2 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.orange-v2 {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #ea580c;
}

.purple-v2 {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
}

.teal-v2 {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: #0d9488;
}

.red-v2 {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.feature-card-v2 h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

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

/* ================================================================
   FEATURES PRO - PROFESSIONAL SaaS CARDS
   ================================================================ */
.feature-card-pro {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-pro:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
  border-color: transparent;
}

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

.feature-icon-pro {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.feature-icon-pro svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.feature-card-pro:hover .feature-icon-pro {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.green-pro {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2);
}

.blue-pro {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.orange-pro {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #ea580c;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.2);
}

.purple-pro {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.teal-pro {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: #0d9488;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}

.red-pro {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.feature-card-pro h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

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

.feature-badge-pro {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.feature-card-pro:hover .feature-badge-pro {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   STEPS
   ================================================================ */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step:hover { transform: translateY(-8px); }

.step-connector {
  position: absolute;
  top: 45px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
  opacity: 0.3;
}

.step:last-child .step-connector { display: none; }

.step-num {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px var(--primary-glow);
  transition: var(--transition-slow);
  position: relative;
  z-index: 1;
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  opacity: 0;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

.step:hover .step-num {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.step:hover h3 { color: var(--primary); }

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid var(--border);
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-img-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-50), white);
  position: relative;
  overflow: hidden;
}

.product-img-wrap img {
  transition: var(--transition-slow);
  max-height: 150px;
  object-fit: contain;
}

.product-card:hover .product-img-wrap img { transform: scale(1.1); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-slow);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-info {
  padding: 1.3rem;
}

.product-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.product-card:hover .product-info h3 { color: var(--primary); }

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.product-commission {
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
}

.products-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-swiper {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.testimonial-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: var(--transition-slow);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}

.testimonial-stars i { color: #fbbf24; }

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.testimonial-avatar.green { background: linear-gradient(135deg, var(--success), #059669); }
.testimonial-avatar.orange { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1) rotate(-5deg);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonial-role i { font-size: 0.7rem; }

.swiper-pagination { margin-top: 1rem; }

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gray-300);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-arrow {
  transition: var(--transition-slow);
  color: var(--primary);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-slow);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 400px;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg .mesh-gradient {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(239, 68, 68, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, var(--secondary) 0%, #ea580c 50%, var(--secondary-dark) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 900;
}

.cta-content p {
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

.trust-item i { font-size: 1.1rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--gray-900);
  color: #94a3b8;
  padding: 0 2rem 2rem;
  position: relative;
}

.footer-wave {
  position: relative;
  margin-top: -2px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
  color: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand span { color: var(--secondary); }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  font-weight: 700;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-slow);
  color: inherit;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 20px var(--primary-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

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

.footer-bottom a:hover { color: white; }

/* ================================================================
   TOAST
   ================================================================ */
.toast-container {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: fadeInUp 0.3s ease;
  font-size: 0.85rem;
  pointer-events: auto;
  border: 1px solid var(--border);
}

.toast-success { border-right: 3px solid var(--success); }
.toast-error { border-right: 3px solid var(--danger); }
.toast-info { border-right: 3px solid var(--primary); }

/* ================================================================
   AUTH
   ================================================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-bg .mesh-gradient {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.auth-bg .floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 480px;
  padding: 3rem;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease;
}

.auth-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.auth-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.auth-logo-glow {
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 22px;
  opacity: 0.3;
  filter: blur(15px);
  animation: pulse 3s ease-in-out infinite;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  color: var(--text);
  font-family: inherit;
  width: 100%;
}

.btn-google:hover {
  border-color: #4285f4;
  background: #f8f9fa;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-google:active { transform: scale(0.98); }
.btn-google svg { flex-shrink: 0; }

.admin-login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.admin-login-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.spinner-dark { border-color: rgba(0, 0, 0, 0.1); border-top-color: var(--primary); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ================================================================
   RESPONSIVE - TABLET
   ================================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-pro { padding: 2.5rem 1.5rem 2rem; }
  .feature-icon-pro { width: 75px; height: 75px; }
  .feature-icon-pro svg { width: 32px; height: 32px; }
  .steps-container { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 3rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat { padding: 1.2rem 1.5rem; min-width: 140px; }
  .cta-content h2 { font-size: 2.5rem; }
}

/* ================================================================
   RESPONSIVE - MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .navbar { padding: 0.8rem 1.5rem; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    animation: fadeInDown 0.3s ease;
  }
  .navbar-links.show {
    display: flex;
  }
  .mobile-toggle { display: block; }
  
  .hero {
    padding: 6rem 1.5rem 4rem;
    min-height: auto;
  }
  
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { flex-direction: column; align-items: center; }
  .hero-stat { min-width: 200px; width: 100%; }
  
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-pro { padding: 2.5rem 1.5rem 2rem; }
  .feature-icon-pro { width: 70px; height: 70px; }
  .feature-icon-pro svg { width: 30px; height: 30px; }
  .steps-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .section { padding: 4rem 1.5rem; }
  .section-header h2 { font-size: 1.8rem; }
  
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  
  .cta-content h2 { font-size: 2rem; }
  .cta-trust { flex-direction: column; gap: 1rem; }
  
  .footer-social { justify-content: center; }
  .footer-bottom { text-align: center; }
  
  .scroll-indicator { display: none; }
  
  .shape { opacity: 0.05; }
}
