/* ============================================
   NativeBridge Design System
   Premium, Modern, Developer-Focused
   ============================================ */

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

:root {
  /* Primary Colors */
  --primary: #7C3AED;
  --primary-light: #8B5CF6;
  --primary-dark: #6D28D9;
  --primary-glow: rgba(124, 58, 237, 0.4);

  /* Accent Colors */
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --accent-dark: #0891B2;
  --accent-glow: rgba(6, 182, 212, 0.4);

  /* Platform Colors */
  --swift-orange: #F05138;
  --kotlin-purple: #7F52FF;

  /* Background Colors */
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #273548;
  --bg-elevated: #334155;

  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Border & Dividers */
  --border: #334155;
  --border-light: #475569;

  /* Status Colors */
  --success: #10B981;
  --success-light: #34D399;
  --warning: #F59E0B;
  --error: #EF4444;
  --error-light: #F87171;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, #A855F7 50%, var(--accent) 100%);
  --gradient-card: linear-gradient(180deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --shadow-glow-accent: 0 0 40px var(--accent-glow);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* Layout */
  --nav-height: 72px;

  /* ============================================
     Light Mode Colors (for premium redesign)
     ============================================ */

  /* Light Mode Backgrounds */
  --bg-light: #F8FAFC;
  --bg-light-alt: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-light-hero: linear-gradient(135deg, #E0E7FF 0%, #EEF2FF 25%, #F0F9FF 50%, #FDF4FF 75%, #FEF3F2 100%);

  /* Light Mode Text */
  --text-dark: #0F172A;
  --text-dark-secondary: #334155;
  --text-dark-muted: #475569;

  /* Light Mode Borders */
  --border-light-mode: #E2E8F0;
  --border-light-hover: #CBD5E1;

  /* Light Mode Shadows */
  --shadow-light-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-light-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-light-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-light-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --shadow-light-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-light-card-hover: 0 10px 40px -10px rgba(0, 0, 0, 0.12);

  /* Light Mode Primary Button */
  --btn-primary-bg: #4F46E5;
  --btn-primary-hover: #4338CA;
  --btn-primary-text: #FFFFFF;

  /* Light Mode Gradients */
  --gradient-light-hero: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #F472B6 100%);
  --gradient-light-header: linear-gradient(90deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
}

/* ============================================
   Light Mode Body Styles
   ============================================ */

body.light-mode {
  background: #FFFFFF;
  color: #1E293B;

  /* Light mode CSS variables - Set once, use everywhere */
  --bg-light: #FFFFFF;
  --bg-light-alt: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-light-hero: linear-gradient(to bottom, #FFFFFF 0%, #F8FAFC 100%);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-dark: #0F172A;
  --text-dark-secondary: #475569;
  --text-dark-muted: #64748B;

  --border: #E2E8F0;
  --border-light-mode: #E2E8F0;

  /* Shadows for depth */
  --shadow-light-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-light-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-light-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Change ALL dark backgrounds to white in light mode */
body.light-mode .auth-card,
body.light-mode .stat-card-pro,
body.light-mode .docs-code-block,
body.light-mode .docs-content pre,
body.light-mode pre,
body.light-mode code {
  background: #FFFFFF !important;
  color: #1E293B !important;
  border: 1px solid #E2E8F0;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ============================================
   Layout Components
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1440px;
}

/* Section Spacing */
.section {
  padding: var(--space-20) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   Navigation / Header
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  transition: var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 var(--space-6);
  max-width: 1440px;
  margin: 0 auto;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-sm);
}

.nav-logo-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Logo Styles */
.logo-symbol {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: var(--space-1);
}

.logo-text {
  font-weight: 800;
  font-size: var(--text-xl);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo:hover .logo-symbol,
.nav-logo:hover .logo-text {
  filter: brightness(1.1);
}

.footer-logo .logo-symbol {
  font-size: var(--text-base);
}

.footer-logo .logo-text {
  font-size: var(--text-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: var(--space-8);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: var(--transition-slow);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--text-lg);
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn-secondary {
    display: none;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-outline-white {
  background: #FFFFFF;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(124, 58, 237, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-white:hover:not(:disabled) {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px -5px rgba(124, 58, 237, 0.3),
    0 8px 10px -6px rgba(124, 58, 237, 0.2),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
  font-weight: 600;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-base);
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.heading-xl {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  letter-spacing: -0.01em;
}

.heading-sm {
  font-size: var(--text-xl);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-muted {
  color: var(--text-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  padding: calc(72px + var(--space-16)) 0 var(--space-20);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, var(--primary-glow) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, var(--accent-glow) 0%, transparent 40%);
  animation: heroGlow 20s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary-light);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

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

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

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

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.proof-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ============================================
   Code Demo Section
   ============================================ */

.code-demo {
  position: relative;
  margin-top: var(--space-16);
}

.code-demo-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .code-demo-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .code-demo-arrow {
    transform: rotate(90deg);
  }
}

.code-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.code-panel-dots {
  display: flex;
  gap: var(--space-2);
}

.code-panel-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--border);
}

.code-panel-dot.red { background: #EF4444; }
.code-panel-dot.yellow { background: #F59E0B; }
.code-panel-dot.green { background: #10B981; }

.code-panel-title {
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.code-panel-title.swift { color: var(--swift-orange); }
.code-panel-title.kotlin { color: var(--kotlin-purple); }

.code-panel-body {
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  overflow-x: auto;
}

.code-panel-body pre {
  margin: 0;
}

.code-demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
  box-shadow: var(--shadow-glow);
  animation: arrowPulse 2s ease-in-out infinite;
}

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

/* Syntax Highlighting */
.code-keyword { color: #C678DD; }
.code-type { color: #E5C07B; }
.code-string { color: #98C379; }
.code-number { color: #D19A66; }
.code-function { color: #61AFEF; }
.code-property { color: #E06C75; }
.code-comment { color: var(--text-muted); }
.code-annotation { color: #98C379; }

/* ============================================
   Features Section
   ============================================ */

.features {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.5) 50%, var(--bg-dark) 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-header .lead {
  margin-top: var(--space-4);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Premium Feature Cards */
.features-premium {
  position: relative;
}

.features-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

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

@media (max-width: 640px) {
  .features-grid-premium {
    grid-template-columns: 1fr;
  }
}

.feature-card-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Top gradient accent stripe */
.feature-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Icon wrapper with floating animation */
.feature-icon-wrapper {
  position: relative;
  width: fit-content;
  margin-bottom: var(--space-4);
}

.feature-card-premium .feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  color: white;
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.feature-card-premium:hover .feature-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.feature-card-premium .feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.3;
}

.feature-card-premium .feature-description {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.feature-card-premium .feature-description strong {
  color: #fff;
  font-weight: 600;
}

/* Premium Icon System */
.feature-icon-wrapper-3d {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.feature-icon-3d {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.feature-icon-3d svg {
  width: 36px;
  height: 36px;
  stroke: white;
}

.feature-card-premium:hover .feature-icon-3d {
  transform: translateY(-2px);
}

/* Individual icon color gradients - match new card themes */
.feature-icon-3d.icon-parsing {
  /* Lightning Fast - Electric yellow/purple */
  background: linear-gradient(135deg, #F59E0B 0%, #EAB308 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.feature-icon-3d.icon-api {
  /* 90%+ Accuracy - Target cyan/blue */
  background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.feature-icon-3d.icon-batch {
  /* Dependency Intelligence - Purple package */
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.feature-icon-3d.icon-docs {
  /* build.gradle - Indigo document */
  background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.feature-icon-3d.icon-template {
  /* Batch Processing - Folder purple/pink */
  background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.feature-icon-3d.icon-secure {
  /* Quality Analysis - Green checkmark */
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* ============================================
   Live Preview Section
   ============================================ */

.live-preview-section {
  padding: var(--space-16) 0;
  background: var(--bg-secondary);
}

body.light-mode .live-preview-section {
  background: linear-gradient(135deg, #F0F4FF 0%, #F8FAFC 50%, #FDF4FF 100%);
}

.live-preview-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Direction Toggle */
.direction-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
}

.toggle-btn:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: #fff;
}

.toggle-btn .arrow-icon {
  opacity: 0.7;
}

.toggle-btn.active .arrow-icon {
  opacity: 1;
}

body.light-mode .toggle-btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #4B5563;
}

body.light-mode .toggle-btn:hover:not(.active) {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: #111827;
}

body.light-mode .toggle-btn.active {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  border-color: #6366F1;
}

/* Validation Error */
.validation-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #FCA5A5;
  font-size: 14px;
  line-height: 1.5;
}

.validation-error .error-icon {
  flex-shrink: 0;
  color: #EF4444;
}

body.light-mode .validation-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #DC2626;
}

.live-preview-editors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

@media (max-width: 900px) {
  .live-preview-editors {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.preview-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  transition: var(--transition-base);
}

body.light-mode .preview-editor {
  background: #FFFFFF;
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

.preview-editor:hover {
  border-color: var(--primary);
}

body.light-mode .preview-editor:hover {
  border-color: var(--btn-primary-bg);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

body.light-mode .editor-header {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-bottom: none;
}

.editor-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

body.light-mode .editor-title {
  color: #FFFFFF;
}

.editor-title svg {
  width: 16px;
  height: 16px;
}

.language-badge {
  padding: var(--space-1) var(--space-2);
  background: var(--primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

body.light-mode .language-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.example-dropdown {
  padding: var(--space-1) var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition-base);
}

body.light-mode .example-dropdown {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.example-dropdown:hover {
  border-color: var(--primary);
}

body.light-mode .example-dropdown:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.editor-body {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.code-textarea {
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: var(--space-4);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--text-sm);
  line-height: 1.6;
  resize: none;
  outline: none;
}

body.light-mode .code-textarea {
  color: var(--text-dark);
}

.code-textarea::placeholder {
  color: var(--text-muted);
}

body.light-mode .code-textarea::placeholder {
  color: var(--text-dark-secondary);
}

.output-code {
  flex: 1;
  padding: var(--space-4);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

body.light-mode .output-code {
  color: var(--text-dark);
}

.output-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

body.light-mode .output-placeholder {
  color: var(--text-dark-secondary);
}

.drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.1);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.drop-overlay.active {
  display: flex;
}

.drop-overlay-content {
  text-align: center;
  color: var(--primary);
}

.drop-overlay-content svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
}

.drop-overlay-content p {
  font-weight: 600;
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
}

body.light-mode .editor-footer {
  background: #F8FAFC;
  border-top: 1px solid var(--border-light-mode);
}

.char-counter {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

body.light-mode .char-counter {
  color: var(--text-dark-secondary);
}

.char-counter.warning {
  color: #F59E0B;
}

.char-counter.limit {
  color: #EF4444;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition-base);
}

body.light-mode .copy-btn {
  border-color: var(--border-light-mode);
  color: var(--text-dark-secondary);
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body.light-mode .copy-btn:hover {
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-bg);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn.copied {
  border-color: #10B981;
  color: #10B981;
}

.preview-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

@media (max-width: 900px) {
  .preview-arrow {
    transform: rotate(90deg);
  }
}

.arrow-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px var(--primary-glow);
}

body.light-mode .arrow-btn {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.arrow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.arrow-btn svg {
  width: 24px;
  height: 24px;
}

.arrow-btn .loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.rate-limit-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  color: #F59E0B;
  font-size: var(--text-sm);
}

.rate-limit-message[hidden] {
  display: none;
}

.rate-limit-message a {
  color: #F59E0B;
  text-decoration: underline;
}

.rate-limit-message a:hover {
  color: #D97706;
}

.rate-limit-message .rate-limit-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: #F59E0B;
  color: #1A1A2E;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-base);
  margin: 0 var(--space-1);
}

.rate-limit-message .rate-limit-cta-btn:hover {
  background: #D97706;
  color: #1A1A2E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Arrow Circle (convert status) */
.arrow-circle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  color: white;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px var(--primary-glow);
}

body.light-mode .arrow-circle {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.arrow-circle.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Editor label */
.editor-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

body.light-mode .editor-header .editor-label {
  color: #FFFFFF;
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Editor actions container */
.editor-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Example select dropdown */
.example-select {
  padding: var(--space-1) var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition-base);
}

body.light-mode .example-select {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.example-select:hover {
  border-color: var(--primary);
}

body.light-mode .example-select:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Output loading overlay */
.output-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

body.light-mode .output-loading {
  background: #FFFFFF;
  color: var(--text-dark-secondary);
}

.output-loading[hidden] {
  display: none;
}

.output-body {
  position: relative;
}

/* Conversion status in footer */
.conversion-status {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

body.light-mode .conversion-status {
  color: var(--text-dark-secondary);
}

/* Char warning */
.char-warning {
  font-size: var(--text-xs);
  color: #F59E0B;
}

.char-warning[hidden] {
  display: none;
}

/* Drop content inside overlay */
.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  font-weight: 600;
}

body.light-mode .drop-content {
  color: var(--btn-primary-bg);
}

/* UI Warning Message */
.ui-warning-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  color: #F59E0B;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.ui-warning-message[hidden] {
  display: none;
}

.ui-warning-message svg {
  flex-shrink: 0;
}

.ui-warning-text {
  line-height: 1.5;
}

/* Error text styling */
.error-text {
  color: #EF4444 !important;
}

body.light-mode .error-text {
  color: #DC2626 !important;
}

/* Preview CTA adjustments */
.preview-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  text-align: center;
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

body.light-mode .preview-cta {
  background: #FFFFFF;
  border-color: var(--border-light-mode);
  box-shadow: var(--shadow-light);
}

.preview-cta span {
  color: var(--text-secondary);
}

body.light-mode .preview-cta span {
  color: var(--text-dark-secondary);
}

.preview-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

body.light-mode .preview-cta p {
  color: var(--text-dark-secondary);
}

body.light-mode .rate-limit-message .rate-limit-cta-btn {
  background: #F59E0B;
  color: #1A1A2E;
}

body.light-mode .rate-limit-message .rate-limit-cta-btn:hover {
  background: #D97706;
  color: #1A1A2E;
}

.preview-cta .btn {
  display: inline-flex;
}

@media (max-width: 600px) {
  .preview-cta {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Conversion Report Panel */
.conversion-report-panel {
  margin-top: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: var(--transition-base);
}

body.light-mode .conversion-report-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

.report-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

body.light-mode .report-title {
  color: var(--text-dark);
}

.report-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Report Placeholder */
.report-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  color: rgba(255,255,255,0.4);
}

.report-placeholder svg {
  margin-bottom: var(--space-4);
}

.report-placeholder p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 300px;
  margin: 0;
}

body.light-mode .report-placeholder {
  color: #94A3B8;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

body.light-mode .metric-item {
  background: #F8FAFC;
}

.metric-item:hover {
  background: var(--bg-tertiary);
}

body.light-mode .metric-item:hover {
  background: #F1F5F9;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

body.light-mode .metric-label {
  color: var(--text-dark-secondary);
}

.metric-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

body.light-mode .metric-value {
  color: var(--btn-primary-bg);
}

.report-cta {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

@media (max-width: 900px) {
  .conversion-report-panel {
    margin-top: var(--space-4);
  }
}

/* ============================================
   How It Works Section
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

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

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

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

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-light);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-description {
  color: var(--text-secondary);
}

/* Steps Grid (for How It Works section) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.step-card {
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  text-align: left;
}

.step-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.step-card .step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: #4F46E5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.step-card .step-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  color: #4F46E5;
}

.step-card .step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.step-card .step-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .step-card .step-number {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-bottom: 16px;
  }
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.pricing-toggle-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.pricing-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pricing-switch.active {
  background: var(--primary);
}

.pricing-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.pricing-switch.active::after {
  transform: translateX(28px);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: start;
}

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

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  padding: var(--space-8);
  text-align: center;
}

.pricing-card.featured {
  background: var(--gradient-card);
  border-color: var(--primary);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.pricing-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.pricing-files {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.pricing-price {
  margin-bottom: var(--space-6);
}

.pricing-amount {
  font-size: var(--text-4xl);
  font-weight: 700;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-feature svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--success);
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* Premium Pricing Styles */
.pricing-premium {
  position: relative;
  overflow: hidden;
}

.pricing-premium::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.pricing-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing-grid-premium {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.pricing-card-premium {
  position: relative;
  padding: var(--space-10);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

/* Gradient border for all premium cards */
.pricing-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-base);
}

.pricing-card-premium:hover {
  transform: translateY(-8px);
}

.pricing-card-premium:hover::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(6, 182, 212, 0.5));
}

/* Featured/Popular Card */
.pricing-card-featured {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.15) 0%, var(--bg-card) 100%);
  transform: scale(1.02);
}

.pricing-card-featured::before {
  background: var(--gradient-primary);
}

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

.pricing-card-featured .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-5);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Pricing header */
.pricing-card-premium .pricing-header {
  margin-bottom: var(--space-6);
}

.pricing-card-premium .pricing-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-card-premium .pricing-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Large price display */
.pricing-card-premium .pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
}

.price-currency {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-secondary);
}

.price-amount-large {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card-premium .price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Features list */
.pricing-card-premium .pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-card-premium .pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.pricing-card-premium .pricing-features li svg {
  flex-shrink: 0;
  color: var(--success);
}

.pricing-card-featured .pricing-features li svg {
  color: var(--accent);
}

/* Button with glow */
.btn-glow {
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-glow:hover {
  box-shadow: 0 6px 30px var(--primary-glow);
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-slow);
}

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

.faq-answer-content {
  padding-bottom: var(--space-5);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-6);
  background: var(--bg-dark);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.footer-brand {
  flex: 0 0 auto;
  max-width: 320px;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  text-decoration: none;
}

.footer-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-12);
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-column {
  flex: 0 0 auto;
}

.footer-column h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-column li {
  margin: 0;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-column a:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: var(--space-6);
  }
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

/* ============================================
   Upload / Converter Styles
   ============================================ */

.converter-page {
  padding-top: 72px;
  min-height: 100vh;
}

.converter-section {
  padding-top: 100px;
  padding-bottom: var(--space-12);
  min-height: 100vh;
}

.converter-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.direction-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.detection-icon {
  display: flex;
  align-items: center;
  color: #10b981;
}

.detection-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.badge-from, .badge-to {
  font-weight: 600;
  font-size: var(--text-sm);
}

.badge-from.swift { color: var(--swift-orange); }
.badge-from.kotlin { color: var(--kotlin-purple); }
.badge-to.swift { color: var(--swift-orange); }
.badge-to.kotlin { color: var(--kotlin-purple); }

.change-direction-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  margin-left: var(--space-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.change-direction-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.badge-arrow {
  color: var(--text-muted);
}

.converter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* Upload Mode Toggle */
.upload-mode-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-1);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
}

.mode-btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: var(--text-sm);
  font-weight: 500;
}

.mode-btn:hover {
  color: var(--text-primary);
}

.mode-btn.active {
  background: var(--primary);
  color: white;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.upload-icon {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.upload-icon svg {
  width: 48px;
  height: 48px;
}

.upload-text {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.upload-subtext {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.file-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--text-sm);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-xl);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-1);
  transition: var(--transition-fast);
}

.remove-btn:hover {
  color: var(--error);
}

/* Batch Progress */
.batch-progress {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  width: 0%;
}

.progress-text {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.current-file {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Library Detection Panel */
.library-detection-panel {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary);
}

.detection-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.detection-header h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.detection-spinner {
  color: var(--primary-light);
  animation: spin 2s linear infinite;
}

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

.detected-libraries {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.library-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.library-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.library-name {
  color: var(--text-primary);
  font-weight: 500;
}

.library-arrow {
  color: var(--text-muted);
  margin: 0 var(--space-1);
}

.library-target {
  color: var(--accent);
  font-weight: 500;
}

.build-gradle-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
}

.build-gradle-badge svg {
  color: var(--success);
  flex-shrink: 0;
}

.build-gradle-badge span {
  color: var(--success-light);
  font-size: var(--text-sm);
  font-weight: 500;
}

.convert-btn {
  width: 100%;
  margin-top: var(--space-4);
}

.status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  text-align: center;
}

.status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success-light);
}

.status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error-light);
}

.status.loading {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--text-primary);
}

/* ============================================
   Auth Styles
   ============================================ */

.auth-required {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.auth-required-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--text-muted);
}

.auth-required h2 {
  margin-bottom: var(--space-3);
}

.auth-required p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Auth Required Section (for converter page) */
.auth-required-section {
  padding-top: 120px;
  padding-bottom: var(--space-16);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  color: #F8FAFC;
}

.auth-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.auth-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.auth-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.auth-card .btn {
  margin-bottom: var(--space-6);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--text-muted);
}

.auth-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

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

.auth-links .divider {
  font-size: var(--text-xs);
}

/* Clerk User Button Container */
#clerk-user-button {
  display: none;
}

#sign-in-btn {
  display: none;
}

/* ============================================
   Professional Documentation Styles
   ============================================ */

/* Docs Page Layout */
.docs-page {
  background: var(--bg-dark);
}

.docs-container {
  min-height: 100vh;
  padding-top: 72px;
}

@media (max-width: 1024px) {
  .docs-container {
    /* no changes needed */
  }
}

/* Mobile Toggle Button */
.docs-mobile-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  gap: var(--space-2);
  align-items: center;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
  .docs-mobile-toggle {
    display: flex;
  }
}

/* Sidebar */
.docs-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  width: 260px;
  height: calc(100vh - 72px);
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
  z-index: 50;
}

@media (max-width: 1024px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    width: 280px;
  }

  .docs-sidebar.active {
    transform: translateX(0);
  }
}

/* Sidebar Navigation */
.docs-nav-pro {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.docs-nav-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}

.docs-nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}

.docs-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav-link.active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}

.docs-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

/* Main Content Area */
.docs-main {
  margin-left: 260px;
  padding: var(--space-12) var(--space-10);
  width: calc(100% - 260px);
  min-width: 0;
}

@media (max-width: 1024px) {
  .docs-main {
    margin-left: 0;
    width: 100%;
    padding: var(--space-8) var(--space-6);
  }
}

.docs-article-pro {
  max-width: 800px;
  margin: 0 auto;
}

/* Section Styling */
.docs-section-pro {
  scroll-margin-top: 100px;
}

.docs-section-pro h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.docs-section-pro h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.docs-section-pro h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.docs-section-pro p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.docs-section-pro a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.docs-section-pro a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.docs-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* Section Divider */
.docs-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-12) 0;
}

/* Inline Code */
.docs-section-pro code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Code Blocks */
.docs-code-example {
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.docs-code-header {
  background: var(--bg-elevated);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.docs-code-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-code-block {
  background: var(--bg-card);
  padding: var(--space-5);
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.docs-code-block code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text-primary);
}

/* Code Syntax Highlighting */
.code-keyword { color: #C678DD; }
.code-type { color: #E5C07B; }
.code-function { color: #61AFEF; }
.code-string { color: #98C379; }
.code-comment { color: #5C6370; font-style: italic; }
.code-number { color: #D19A66; }

/* Callout Boxes */
.docs-callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.docs-callout-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.docs-callout-content {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

.docs-callout-content strong {
  color: var(--text-primary);
}

.docs-callout-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.docs-callout-info .docs-callout-icon {
  color: var(--accent);
}

.docs-callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.docs-callout-warning .docs-callout-icon {
  color: var(--warning);
}

/* Feature List */
.docs-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.docs-feature-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.docs-feature-item:last-child {
  border-bottom: none;
}

.docs-feature-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
  min-width: 160px;
}

.docs-feature-desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Process List (replaces bullet points) */
.docs-process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.docs-process-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: var(--space-4);
  position: relative;
}

.docs-process-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Steps */
.docs-steps-pro {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.docs-step-pro {
  display: flex;
  gap: var(--space-5);
}

.docs-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
}

.docs-step-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.docs-step-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Tables */
.docs-table-pro {
  margin: var(--space-6) 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.docs-table-pro table {
  width: 100%;
  border-collapse: collapse;
}

.docs-table-pro th {
  text-align: left;
  padding: var(--space-4);
  background: var(--bg-elevated);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.docs-table-pro td {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.docs-table-pro tr:last-child td {
  border-bottom: none;
}

.docs-table-pro td code {
  font-size: 0.8em;
}

.docs-table-compact td,
.docs-table-compact th {
  padding: var(--space-3);
}

/* API List */
.docs-api-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.docs-api-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.docs-api-item code {
  font-size: var(--text-xs);
  min-width: 140px;
}

.docs-api-item span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* FAQ in Docs */
.docs-faq-pro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.docs-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.docs-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.docs-faq-question:hover {
  background: var(--bg-card-hover);
}

.docs-faq-question svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.docs-faq-item.open .docs-faq-question svg {
  transform: rotate(180deg);
}

.docs-faq-answer {
  padding: 0 var(--space-5);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.docs-faq-item.open .docs-faq-answer {
  max-height: 200px;
  padding: var(--space-4) var(--space-5);
}

.docs-faq-answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Docs Footer */
.docs-footer {
  margin-left: 260px;
}

@media (max-width: 1024px) {
  .docs-footer {
    margin-left: 0;
  }
}

/* Legacy Docs Support */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-12);
  padding-top: 72px;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
}

.docs-nav {
  list-style: none;
}

.docs-nav-section {
  margin-bottom: var(--space-6);
}

.docs-nav-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.docs-content {
  padding: var(--space-8) 0;
  max-width: 800px;
}

.docs-content h1 {
  margin-bottom: var(--space-4);
}

.docs-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.docs-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.docs-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.docs-content ul, .docs-content ol {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.docs-content li {
  margin-bottom: var(--space-2);
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.docs-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* ============================================
   Contact Form Styles
   ============================================ */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

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

/* ============================================
   Success Page Styles
   ============================================ */

.success-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

/* Conversion Speed Banner */
.speed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  color: var(--text-primary);
  animation: slideDown 0.5s ease-out;
}

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

.speed-icon {
  font-size: var(--text-2xl);
  animation: pulse 1.5s ease-in-out infinite;
}

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

.speed-text {
  color: var(--text-secondary);
}

.speed-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.speed-text strong:first-of-type {
  /* Line count - make it extra prominent */
  color: var(--primary);
  font-size: var(--text-xl);
}

.speed-savings {
  color: var(--success);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-6);
  color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.05));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(16, 185, 129, 0.3);
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

.success-icon svg {
  width: 56px;
  height: 56px;
}

.success-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--success), var(--success-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}

.package-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  text-align: left;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

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

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

.stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

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

.package-contents {
  display: grid;
  gap: var(--space-2);
}

.content-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.download-section {
  margin-bottom: var(--space-8);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.download-section .btn-primary {
  background: linear-gradient(135deg, var(--success), var(--success-light));
  border: none;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.download-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.download-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.download-success {
  text-align: center;
  margin-bottom: var(--space-5);
}

.download-success svg {
  color: var(--success);
  margin-bottom: var(--space-3);
}

.download-success h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.conversion-stats {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
}

.stat-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 700;
}

/* Library Report */
.library-report {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
}

.library-report-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3) 0;
}

.library-report-title svg {
  color: var(--primary-light);
}

.library-report-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.library-conversion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.library-conversion-from {
  color: var(--swift-orange);
  font-weight: 500;
  font-family: var(--font-mono);
}

.library-conversion-arrow {
  color: var(--text-muted);
  margin: 0 var(--space-2);
}

.library-conversion-to {
  color: var(--kotlin-purple);
  font-weight: 500;
  font-family: var(--font-mono);
}

.build-gradle-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
}

.build-gradle-info svg {
  color: var(--success);
  flex-shrink: 0;
}

.build-gradle-info span {
  color: var(--success-light);
  font-size: var(--text-sm);
}

.next-steps {
  text-align: left;
  margin-bottom: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.next-steps h3 {
  text-align: center;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.steps-list li:last-child {
  margin-bottom: 0;
}

.steps-list li:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
  font-weight: 600;
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.step-content code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: rgba(99, 102, 241, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
}

.btn-convert-another {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-convert-another:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.btn-convert-another svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn-convert-another:hover svg {
  opacity: 1;
}

/* ============================================
   Detection Results Styles
   ============================================ */

.detection-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-4));
  padding-bottom: 120px; /* Space for sticky actions */
  background: var(--bg-dark);
  overflow-x: hidden;
}

.detection-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.detection-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-warning svg {
  width: 18px;
  height: 18px;
}

.detection-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.detection-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.file-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.08);
}

.file-info-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.file-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: var(--radius-xl);
  color: var(--primary);
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.file-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.file-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.direction-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  white-space: nowrap;
}

.direction-pill.ios {
  background: rgba(240, 81, 56, 0.1);
  color: var(--swift-orange);
}

.direction-pill.android {
  background: rgba(127, 82, 255, 0.1);
  color: var(--kotlin-purple);
}

.detected-api-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.api-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.api-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  color: var(--primary);
}

.api-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.api-category {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.api-lines {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.lines-numbers {
  font-family: var(--font-mono);
  color: var(--accent);
}

.api-alternatives h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.alternatives-list {
  display: grid;
  gap: var(--space-3);
}

.alternative {
  padding: var(--space-3);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
}

.alternative.recommended {
  border: 1px solid var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.alt-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.alt-name {
  font-weight: 500;
}

.recommended-badge {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--primary);
  border-radius: var(--radius-full);
  color: white;
}

.alt-details {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Library Detection Section */
.library-detection-section {
  margin-bottom: var(--space-10);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-xl);
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-8);
  gap: var(--space-2);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.section-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.library-conversions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.library-conversion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.library-conversion-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.library-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.library-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.library-badge-critical {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.no-libraries-message {
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-4);
  text-align: center;
}

.library-from,
.library-to {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.library-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.library-value {
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-mono);
}

.library-from .library-value {
  color: var(--swift-orange);
}

.library-to .library-value {
  color: var(--kotlin-purple);
}

.library-conversion-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 0 var(--space-4);
}

.build-gradle-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

.build-gradle-notice svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: var(--space-1);
}

.build-gradle-notice strong {
  color: var(--success-light);
  font-size: var(--text-base);
  display: block;
  margin-bottom: var(--space-1);
}

.build-gradle-notice p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success-light);
}

.badge-success svg {
  color: var(--success);
}

.detected-apis-section {
  margin-bottom: var(--space-10);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border);
}

.section-heading svg {
  color: var(--primary-light);
}

.detected-apis {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.detection-actions-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  z-index: 100;
  box-shadow:
    0 -4px 12px rgba(0, 0, 0, 0.1),
    0 -2px 4px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 35, 0.95);
}

.detection-actions {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.primary-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.detection-actions .btn {
  min-width: 140px;
}

.detection-actions .btn-gradient {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Complexity Cards */
.complexity-card {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.complexity-icon {
  color: var(--warning) !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

.severity-badge {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
  text-transform: uppercase;
  font-weight: 600;
}

.severity-high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.severity-medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.severity-low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.complexity-info {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
}

.complexity-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.no-apis-message {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-8);
}

/* ============================================
   Wizard Styles
   ============================================ */

.wizard-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-8));
  padding-bottom: var(--space-12);
  background: var(--bg-dark);
}

.wizard-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.wizard-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.wizard-header h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.wizard-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Detection Summary */
.detection-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.summary-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.summary-item div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.summary-count {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.summary-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: var(--space-1);
}

.summary-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.wizard-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
}

/* Wizard Steps */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.wizard-step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.wizard-step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-step.active .step-label {
  color: var(--primary-light);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 var(--space-2);
  margin-bottom: 24px;
}

.wizard-step.completed + .step-connector {
  background: var(--success);
}

.wizard-progress .progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.wizard-progress .progress-fill,
#progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

.wizard-progress .progress-text,
#progress-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

.wizard-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.wizard-nav .btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wizard-step-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.step-warning-icon {
  color: var(--warning);
}

.wizard-step-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.wizard-options {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.wizard-option {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-fast);
}

.wizard-option:hover {
  border-color: var(--border-light);
}

.wizard-option.selected {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.wizard-option.recommended {
  position: relative;
}

.option-radio {
  flex-shrink: 0;
}

.option-radio input {
  display: none;
}

.radio-custom {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-fast);
}

.wizard-option.selected .radio-custom {
  border-color: var(--primary);
}

.wizard-option.selected .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.option-content {
  flex: 1;
}

.option-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.option-name {
  font-weight: 600;
}

.recommended-star {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
}

.option-features {
  list-style: none;
  margin-bottom: var(--space-3);
}

.option-features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  padding-left: var(--space-4);
  position: relative;
}

.option-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: var(--radius-full);
}

.option-meta {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Light mode overrides for wizard cards */
body.light-mode .wizard-option {
  background: #FFFFFF;
  border-color: var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .wizard-option:hover {
  border-color: var(--btn-primary-bg);
  box-shadow: var(--shadow-light-card-hover);
}

body.light-mode .wizard-option.selected {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--btn-primary-bg);
}

body.light-mode .option-name {
  color: var(--text-dark);
}

body.light-mode .option-features li {
  color: var(--text-dark-secondary);
}

body.light-mode .option-meta {
  color: var(--text-dark-muted);
}

.star {
  color: var(--text-muted);
}

.star.filled {
  color: var(--warning);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.wizard-nav .btn {
  min-width: 140px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-slide-in-right {
  animation: slideInRight var(--transition-slow) ease-out;
}

/* Staggered animations */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 200ms; }
.stagger > *:nth-child(4) { animation-delay: 300ms; }
.stagger > *:nth-child(5) { animation-delay: 400ms; }
.stagger > *:nth-child(6) { animation-delay: 500ms; }

/* ============================================
   Utility Classes
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }
.invisible { visibility: hidden; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.w-full { width: 100%; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .nav,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ccc;
    background: white;
  }
}

/* ============================================
   Selection Section (index.html)
   ============================================ */

.selection-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) 0;
}

.selection-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.selection-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.selection-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.direction-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.direction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.direction-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.direction-card.ios-card:hover {
  border-color: var(--swift-orange);
  box-shadow: 0 0 40px rgba(240, 81, 56, 0.3);
}

.direction-card.android-card:hover {
  border-color: var(--kotlin-purple);
  box-shadow: 0 0 40px rgba(127, 82, 255, 0.3);
}

.direction-card .card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.ios-card .card-icon {
  background: linear-gradient(135deg, rgba(240, 81, 56, 0.2) 0%, rgba(240, 81, 56, 0.1) 100%);
  color: var(--swift-orange);
}

.android-card .card-icon {
  background: linear-gradient(135deg, rgba(127, 82, 255, 0.2) 0%, rgba(127, 82, 255, 0.1) 100%);
  color: var(--kotlin-purple);
}

.direction-card h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
}

.direction-card .card-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
}

.card-formats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.format-tag {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.format-tag.swift {
  background: rgba(240, 81, 56, 0.15);
  color: var(--swift-orange);
}

.format-tag.kotlin {
  background: rgba(127, 82, 255, 0.15);
  color: var(--kotlin-purple);
}

.format-arrow {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.direction-card .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  transition: all var(--transition-fast);
}

.direction-card:hover .card-btn {
  transform: scale(1.05);
}

.selection-footer {
  text-align: center;
  margin-top: var(--space-10);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .direction-cards {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .selection-title {
    font-size: var(--text-3xl);
  }

  .direction-card {
    padding: var(--space-8);
  }
}

/* ============================================
   What Gets Converted Section
   ============================================ */

.what-converts {
  background: var(--bg-card);
}

.converts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.converts-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.converts-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.converts-yes::before {
  background: linear-gradient(90deg, #10B981, #3B82F6);
}

.converts-no::before {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.converts-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.converts-yes h3::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.converts-no h3::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.converts-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.converts-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.6;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.converts-card li:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(4px);
}

.converts-yes li {
  border-left-color: #10B981;
}

.converts-no li {
  border-left-color: #F59E0B;
}

.converts-card li strong {
  color: #fff;
  font-weight: 600;
}

.converts-yes li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10B981;
  border-radius: 6px;
  color: #10B981;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

.converts-no li::before {
  content: '⚠';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #F59E0B;
  border-radius: 6px;
  color: #F59E0B;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .converts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   REDESIGNED PAGES - Professional Styles
   ============================================ */

/* Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

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

.btn-gradient > * {
  position: relative;
  z-index: 1;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight Text */
.highlight-text {
  color: var(--accent);
}

/* ============================================
   PRICING PAGE - Professional Styles
   ============================================ */

.pricing-page {
  background: var(--bg-dark);
}

/* Pricing Hero */
.pricing-hero-pro {
  padding: var(--space-20) 0 var(--space-12);
  text-align: center;
}

.pricing-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.pricing-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.pricing-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

body.light-mode .pricing-hero-subtitle {
  color: var(--text-dark-secondary);
}

/* Try Before You Buy Section */
.try-before-buy-section {
  padding: var(--space-8) 0;
}

.try-before-buy-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  max-width: 900px;
  margin: 0 auto;
}

body.light-mode .try-before-buy-card {
  background: #FFFFFF;
  border-color: var(--btn-primary-bg);
  border-style: dashed;
  box-shadow: var(--shadow-light);
}

.try-before-buy-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  color: white;
}

body.light-mode .try-before-buy-icon {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.try-before-buy-content {
  flex: 1;
}

.try-before-buy-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

body.light-mode .try-before-buy-content h3 {
  color: var(--text-dark);
}

.try-before-buy-content > p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

body.light-mode .try-before-buy-content > p {
  color: var(--text-dark-secondary);
}

.try-before-buy-features {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.try-before-buy-features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

body.light-mode .try-before-buy-features li {
  color: var(--text-dark-secondary);
}

.try-before-buy-features li::before {
  content: "•";
  color: var(--primary);
}

body.light-mode .try-before-buy-features li::before {
  color: var(--btn-primary-bg);
}

.try-before-buy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .try-before-buy-card {
    flex-direction: column;
    text-align: center;
  }

  .try-before-buy-features {
    flex-direction: column;
    gap: var(--space-2);
  }

  .try-before-buy-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Pricing Warning */
.pricing-warning {
  font-size: var(--text-xs);
  color: #F59E0B;
  margin-top: auto;
  margin-bottom: var(--space-4);
  padding: var(--space-2);
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Agency Badge */
.pricing-badge-agency {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Agency Card Styling */
.pricing-card-pro.agency-card {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, #10B981, #059669) border-box;
}

body.light-mode .pricing-card-pro.agency-card {
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
              linear-gradient(135deg, #10B981, #059669) border-box;
}

/* Agency Billing Toggle */
.billing-toggle {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-secondary);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

body.light-mode .billing-toggle {
  background: #F1F5F9;
}

.billing-option {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.billing-option:hover {
  color: var(--text);
}

.billing-option.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.light-mode .billing-option.active {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.billing-save-badge {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Agency Price Wrapper - keep price and period inline */
.agency-card .pricing-price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.agency-card .pricing-price-period {
  margin-left: 0;
}

/* Agency Billing Note */
.agency-billing-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  text-align: center;
}

.agency-billing-note.savings {
  color: #10B981;
  font-weight: 600;
}

/* Annual Only Feature Tag */
.annual-only-tag {
  font-size: var(--text-xs);
  color: #10B981;
  font-weight: 500;
}

.annual-only-feature {
  animation: fadeIn 0.3s ease;
}

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

/* Checkout Acknowledgment Modal */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.checkout-modal-overlay[hidden] {
  display: none;
}

.checkout-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

body.light-mode .checkout-modal {
  background: #FFFFFF;
  border-color: var(--border-light-mode);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

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

.checkout-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid var(--border);
}

body.light-mode .checkout-modal-header {
  background: rgba(245, 158, 11, 0.1);
  border-bottom-color: var(--border-light-mode);
}

.checkout-modal-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

body.light-mode .checkout-modal-header h3 {
  color: var(--text-dark);
}

.checkout-modal-body {
  padding: var(--space-6);
}

.checkout-modal-body p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

body.light-mode .checkout-modal-body p {
  color: var(--text-dark-secondary);
}

.checkout-modal-body p strong {
  color: var(--text-primary);
}

body.light-mode .checkout-modal-body p strong {
  color: var(--text-dark);
}

.checkout-test-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  margin-bottom: var(--space-6);
}

.checkout-acknowledge-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
}

body.light-mode .checkout-acknowledge-label {
  background: #F8FAFC;
  border-color: var(--border-light-mode);
}

.checkout-acknowledge-label:hover {
  border-color: var(--primary);
}

body.light-mode .checkout-acknowledge-label:hover {
  border-color: var(--btn-primary-bg);
}

.checkout-acknowledge-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkout-acknowledge-label span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

body.light-mode .checkout-acknowledge-label span {
  color: var(--text-dark-secondary);
}

.checkout-modal-footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
}

body.light-mode .checkout-modal-footer {
  background: #F8FAFC;
  border-top-color: var(--border-light-mode);
}

.checkout-modal-footer .btn {
  flex: 1;
}

.checkout-modal-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pricing Cards Section */
.pricing-cards-section {
  padding: var(--space-8) 0 var(--space-16);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Pricing Card */
.pricing-card-pro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

/* Featured Card */
.pricing-card-pro.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  transform: scale(1.02);
}

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

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-header {
  margin-bottom: var(--space-6);
}

.pricing-plan-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.pricing-plan-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* LOC Limit Display */
.pricing-loc-limit {
  text-align: center;
  padding: 20px 16px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.loc-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.loc-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1;
}

/* App Limit Display */
.pricing-app-limit {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.app-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.app-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1;
}

.pricing-price-wrapper {
  margin-bottom: var(--space-6);
}

.pricing-price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

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

.pricing-price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: var(--space-2);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-feature.unavailable {
  color: var(--text-muted);
  opacity: 0.6;
}

.pricing-feature.highlight {
  color: var(--text-primary);
}

.feature-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}

.feature-check.gradient svg {
  stroke: url(#gradient);
  color: var(--primary);
}

.feature-x {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-cta {
  margin-top: auto;
}

/* Agency Callout */
.agency-callout {
  margin-top: var(--space-12);
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.agency-callout-content {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 1024px) {
  .agency-callout-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-6);
  }
}

.agency-callout-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.agency-callout-info h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.agency-callout-info p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.agency-callout-price {
  text-align: center;
}

.agency-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agency-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.agency-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .agency-features {
    justify-content: center;
  }
}

.agency-features li::before {
  content: '✓';
  color: var(--success);
  margin-right: var(--space-2);
}

/* Comparison Table */
.comparison-section-pro {
  padding: var(--space-16) 0;
}

.comparison-table-wrapper-pro {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.comparison-table-pro {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table-pro th,
.comparison-table-pro td {
  padding: var(--space-4) var(--space-6);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table-pro th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table-pro th:first-child,
.comparison-table-pro td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table-pro td {
  color: var(--text-secondary);
}

.comparison-table-pro tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table-pro .highlight-col {
  background: rgba(124, 58, 237, 0.1);
}

.table-check::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.table-x::before {
  content: '—';
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section-pro {
  padding: var(--space-16) 0;
}

.faq-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .faq-grid-pro {
    grid-template-columns: 1fr;
  }
}

.faq-item-pro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question-pro {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question-pro:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon-pro {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item-pro.open .faq-icon-pro {
  transform: rotate(180deg);
}

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

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

.faq-answer-pro p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* CTA Section */
.cta-section-pro {
  padding: var(--space-16) 0;
}

.cta-card-pro {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title-pro {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.cta-subtitle-pro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.cta-buttons-pro {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   ABOUT PAGE - Professional Styles
   ============================================ */

.about-page {
  background: var(--bg-dark);
}

/* About Hero */
.about-hero-pro {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
}

.about-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mission Section */
.about-mission-pro {
  padding: var(--space-12) 0 var(--space-16);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.mission-content {
  max-width: 550px;
}

.mission-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.mission-lead {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.mission-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.stat-card-pro {
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  color: #F8FAFC;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: block;
}

.stat-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  opacity: 0.8;
}

/* Values Section */
.about-values-pro {
  padding: var(--space-16) 0;
  background: var(--bg-elevated);
}

.values-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 640px) {
  .values-grid-pro {
    grid-template-columns: 1fr;
  }
}

.value-card-pro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card-pro:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.value-icon-pro {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--primary);
}

.value-card-pro h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.value-card-pro p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technology Section */
.about-tech-pro {
  padding: var(--space-16) 0;
}

.tech-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 640px) {
  .tech-grid-pro {
    grid-template-columns: 1fr;
  }
}

.tech-card-pro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.tech-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.tech-card-pro h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.tech-card-pro p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Team Message Section */
.about-team-pro {
  padding: var(--space-16) 0;
}

.team-message-card {
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  max-width: 800px;
  margin: 0 auto;
}

.team-message-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.team-message-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.team-message-content .btn {
  margin-top: var(--space-4);
}

/* ============================================
   CONTACT PAGE - Professional Styles
   ============================================ */

.contact-page {
  background: var(--bg-dark);
}

/* Contact Hero */
.contact-hero-pro {
  padding: var(--space-20) 0 var(--space-12);
  text-align: center;
}

.contact-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.contact-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact-section-pro {
  padding: var(--space-8) 0 var(--space-16);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-10);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.contact-form-card h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-intro {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.contact-form-pro {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .form-row-pro {
    grid-template-columns: 1fr;
  }
}

.form-group-pro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group-pro label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.form-group-pro input,
.form-group-pro select,
.form-group-pro textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group-pro input:focus,
.form-group-pro select:focus,
.form-group-pro textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

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

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

.form-group-pro select {
  cursor: pointer;
}

.form-submit-btn {
  margin-top: var(--space-4);
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
}

/* Form Success */
.form-success-pro {
  text-align: center;
  padding: var(--space-8);
}

.success-icon-pro {
  color: var(--success);
  margin-bottom: var(--space-6);
}

.form-success-pro h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-success-pro p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-card-pro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.contact-info-card-pro h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.contact-info-card-pro > p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.contact-method-pro {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.contact-method-pro:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.method-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.method-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.method-value.gradient-text {
  text-decoration: none;
}

.method-value.gradient-text:hover {
  text-decoration: underline;
}

.method-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Response Times */
.response-times {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.response-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
}

.response-type {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.response-time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
}

/* Contact FAQ */
.contact-faq {
  background: var(--bg-elevated);
}

/* Spinner for loading states */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   LEGAL PAGES - Terms & Privacy
   ============================================ */

.legal-page {
  background: var(--bg-dark);
  min-height: 100vh;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-12)) var(--space-6) var(--space-16);
}

.legal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 1px solid var(--border-primary);
}

/* Legal Header */
.legal-header {
  text-align: center;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-primary);
}

.legal-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.legal-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.legal-meta p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.legal-meta strong {
  color: var(--text-primary);
}

/* Legal Introduction */
.legal-intro {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.legal-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-intro p:last-child {
  margin-bottom: 0;
}

/* Table of Contents */
.legal-toc {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.legal-toc h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.legal-toc ol {
  columns: 2;
  column-gap: var(--space-8);
  padding-left: var(--space-6);
  margin: 0;
}

.legal-toc li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--primary);
}

/* Legal Sections */
.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-primary);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: var(--space-8);
}

.legal-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.legal-section h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-section ul,
.legal-section ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.legal-section li strong {
  color: var(--text-primary);
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Legal Highlight Boxes */
.legal-highlight {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  border-left: 4px solid var(--primary);
}

.legal-highlight p {
  margin: 0;
  color: var(--text-primary);
}

.legal-highlight h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.legal-highlight-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.legal-highlight-warning h3 {
  color: #f59e0b;
}

/* Legal Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}

.legal-table th,
.legal-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

.legal-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-table td {
  color: var(--text-secondary);
}

.legal-table tbody tr:hover {
  background: var(--bg-elevated);
}

/* Legal Contact Box */
.legal-contact {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.legal-contact p {
  margin-bottom: var(--space-3);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* Legal Acknowledgment */
.legal-acknowledgment {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-primary);
}

/* Back Button */
.legal-back {
  margin-top: var(--space-8);
  text-align: center;
}

.legal-back .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
  .legal-container {
    padding: calc(var(--nav-height) + var(--space-6)) var(--space-4) var(--space-10);
  }

  .legal-content {
    padding: var(--space-6);
  }

  .legal-header h1 {
    font-size: var(--text-2xl);
  }

  .legal-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-section h2 {
    font-size: var(--text-xl);
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}

/* ============================================
   Complexity Warning Styles
   ============================================ */

.complexity-warning .wizard-step-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.complexity-warning .step-warning-icon.warning-orange {
  color: #f59e0b;
  margin-bottom: var(--space-4);
}

.complexity-warning .step-warning-icon.warning-orange svg {
  width: 48px;
  height: 48px;
}

.complexity-alert {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.complexity-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  text-align: center;
}

.complexity-details {
  margin-bottom: var(--space-6);
}

.complexity-details h3 {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.complexity-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.complexity-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border-primary);
}

.complexity-feature.severity-high {
  border-left-color: #ef4444;
}

.complexity-feature.severity-medium {
  border-left-color: #f59e0b;
}

.feature-severity {
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.severity-high .feature-severity {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.severity-medium .feature-severity {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.feature-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-count {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.complexity-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.complexity-stats .stat {
  text-align: center;
}

.complexity-stats .stat-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #f59e0b;
}

.complexity-stats .stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.complexity-recommendations h3 {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.complexity-recommendations ul {
  list-style: disc;
  padding-left: var(--space-5);
  color: var(--text-secondary);
}

.complexity-recommendations li {
  margin-bottom: var(--space-2);
}

@media (max-width: 640px) {
  .complexity-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* ============================================
   TRAFFIC HANDLING - Rate Limits, Queues, Errors
   ============================================ */

/* Traffic Error Display */
.traffic-status {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--warning) !important;
  border-radius: var(--radius-lg);
  padding: var(--space-6) !important;
}

.traffic-error {
  text-align: center;
}

.traffic-error-header {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--warning);
  margin-bottom: var(--space-2);
}

.traffic-error-message {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.traffic-error-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.countdown-number {
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--warning);
  min-width: 3ch;
  font-family: var(--font-mono);
}

#retry-btn {
  min-width: 120px;
}

#retry-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Queue Status Display */
.queue-status-container {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card)) !important;
  border: 1px solid var(--accent) !important;
}

.queue-status {
  text-align: center;
  padding: var(--space-4);
}

.queue-icon {
  font-size: 48px;
  margin-bottom: var(--space-2);
  animation: pulse 2s infinite;
}

.queue-header {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.queue-message {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.queue-details {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.queue-position,
.queue-wait {
  color: var(--text-secondary);
}

.queue-position strong,
.queue-wait strong {
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.queue-progress {
  background: var(--bg-dark);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}

.queue-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Pulse animation for queue icon */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Status badges for rate limit info */
.rate-limit-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.rate-limit-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.rate-limit-badge.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Mobile responsive for traffic handling */
@media (max-width: 640px) {
  .traffic-error {
    padding: var(--space-4);
  }

  .traffic-error-header {
    font-size: var(--text-lg);
  }

  .queue-details {
    flex-direction: column;
    gap: var(--space-2);
  }

  .queue-progress {
    max-width: 100%;
  }
}

/* ============================================
   No Credits Overlay
   ============================================ */

.no-credits-overlay {
  position: relative;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-6);
  text-align: center;
}

.no-credits-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.no-credits-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.no-credits-icon svg {
  width: 40px;
  height: 40px;
}

.no-credits-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.no-credits-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-upgrade svg {
  color: rgba(255, 255, 255, 0.9);
}

/* Disabled states for converter when no credits */
.converter-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.upload-area.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.upload-area.disabled:hover {
  border-color: var(--border);
  background: var(--bg-card);
}

.convert-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .no-credits-overlay {
    padding: var(--space-6);
  }

  .no-credits-icon {
    width: 56px;
    height: 56px;
  }

  .no-credits-icon svg {
    width: 32px;
    height: 32px;
  }

  .no-credits-title {
    font-size: var(--text-lg);
  }

  .no-credits-text {
    font-size: var(--text-sm);
  }
}

/* ============================================
   LIGHT MODE PREMIUM REDESIGN
   Homepage-specific styles for clean, premium look
   ============================================ */

/* ----------------------------------------
   Light Mode Navigation
   ---------------------------------------- */

body.light-mode .nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-sm);
}

body.light-mode .nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light-md);
}

body.light-mode .nav-logo .logo-text {
  color: var(--text-dark);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

body.light-mode .nav-logo .logo-symbol {
  color: var(--btn-primary-bg);
}

body.light-mode .nav-link {
  color: var(--text-dark-secondary);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--text-dark);
}

body.light-mode .nav-link.active::after {
  background: var(--btn-primary-bg);
}

body.light-mode .nav-actions .btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: none;
}

body.light-mode .nav-actions .btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-light-md);
}

body.light-mode .nav-actions .btn-ghost,
body.light-mode .nav-actions .btn-secondary {
  color: var(--text-dark-secondary);
  border-color: var(--border-light-mode);
}

body.light-mode .nav-actions .btn-ghost:hover,
body.light-mode .nav-actions .btn-secondary:hover {
  color: var(--text-dark);
  background: var(--bg-light-alt);
}

/* Mobile nav toggle */
body.light-mode .nav-toggle span {
  background: var(--text-dark);
}

/* ----------------------------------------
   Light Mode Hero Section
   ---------------------------------------- */

body.light-mode .hero {
  background: var(--bg-light-hero);
  position: relative;
  overflow: hidden;
}

/* Abstract wave decoration */
body.light-mode .hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cdefs%3E%3ClinearGradient id='wave1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%236366F1;stop-opacity:0.3'/%3E%3Cstop offset='50%25' style='stop-color:%238B5CF6;stop-opacity:0.2'/%3E%3Cstop offset='100%25' style='stop-color:%23EC4899;stop-opacity:0.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M400,0 Q500,100 450,200 T500,400 T400,600 L800,600 L800,0 Z' fill='url(%23wave1)'/%3E%3Cpath d='M500,0 Q600,150 550,300 T600,500 T500,600 L800,600 L800,0 Z' fill='url(%23wave1)' opacity='0.7'/%3E%3Cpath d='M600,0 Q700,200 650,350 T700,550 T650,600 L800,600 L800,0 Z' fill='url(%23wave1)' opacity='0.5'/%3E%3C/svg%3E") no-repeat right center;
  background-size: cover;
  opacity: 0.8;
  pointer-events: none;
}

/* Hide dark mode hero backgrounds */
body.light-mode .hero-bg,
body.light-mode .hero-grid {
  display: none;
}

/* Hide hero demo in light mode (we have separate code demo section) */
body.light-mode .hero-demo {
  display: none;
}

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

body.light-mode .hero-badge {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--btn-primary-bg);
}

body.light-mode .hero-badge .badge-dot {
  background: var(--btn-primary-bg);
}

body.light-mode .hero-title {
  color: var(--text-dark);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

body.light-mode .hero-subtitle {
  color: var(--text-dark-secondary);
}

/* Hero value props as bullet list */
body.light-mode .hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

body.light-mode .hero-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-dark-secondary);
  font-size: var(--text-lg);
}

body.light-mode .hero-features li::before {
  content: '•';
  color: var(--btn-primary-bg);
  font-weight: bold;
}

/* Hero buttons */
body.light-mode .hero-cta .btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-light-md);
  border: none;
}

body.light-mode .hero-cta .btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .hero-cta .btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light-mode);
  box-shadow: none;
}

body.light-mode .hero-cta .btn-secondary:hover {
  background: var(--bg-white);
  border-color: var(--border-light-hover);
  box-shadow: var(--shadow-light-sm);
}

/* ----------------------------------------
   Light Mode Code Demo
   ---------------------------------------- */

body.light-mode .code-demo-section {
  background: var(--bg-white);
  padding: var(--space-20) 0;
}

body.light-mode .code-demo-section .section-title {
  color: var(--text-dark);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

body.light-mode .code-demo-container {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-light-xl);
  overflow: hidden;
}

/* Gradient header bar */
body.light-mode .code-demo-container::before {
  content: 'Interactive Demo';
  display: block;
  background: var(--gradient-light-header);
  color: white;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
}

body.light-mode .code-demo {
  background: transparent;
  border: none;
  padding: var(--space-6);
}

/* Side-by-side code panels */
body.light-mode .code-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  body.light-mode .code-panels {
    grid-template-columns: 1fr;
  }
}

body.light-mode .code-panel {
  background: #1E293B;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

body.light-mode .code-panel-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) var(--space-4);
}

body.light-mode .code-panel-header .panel-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
}

body.light-mode .code-panel-body {
  padding: var(--space-4);
}

body.light-mode .code-panel-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #E2E8F0;
}

body.light-mode .code-panel-body .code-keyword {
  color: #F472B6;
}

body.light-mode .code-panel-body .code-type {
  color: #38BDF8;
}

body.light-mode .code-panel-body .code-function {
  color: #A78BFA;
}

body.light-mode .convert-arrow-btn,
body.light-mode .code-demo .btn {
  background: var(--bg-white);
  color: var(--btn-primary-bg);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-sm);
}

body.light-mode .convert-arrow-btn:hover,
body.light-mode .code-demo .btn:hover {
  background: var(--bg-light-alt);
  border-color: var(--btn-primary-bg);
  box-shadow: var(--shadow-light-md);
}

/* ----------------------------------------
   Light Mode Sections (General)
   ---------------------------------------- */

body.light-mode .section {
  background: var(--bg-white);
}

body.light-mode .section:nth-child(even) {
  background: var(--bg-light-alt);
}

body.light-mode .section-badge {
  background: rgba(79, 70, 229, 0.1);
  color: var(--btn-primary-bg);
}

body.light-mode .section-title {
  color: var(--text-dark);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

body.light-mode .section-subtitle {
  color: var(--text-dark-secondary);
}

/* ----------------------------------------
   Light Mode Feature Cards
   ---------------------------------------- */

body.light-mode .feature-card,
body.light-mode .feature-card-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,250,251,0.9) 100%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

body.light-mode .feature-card:hover,
body.light-mode .feature-card-premium:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(-8px);
}

body.light-mode .feature-card h3,
body.light-mode .feature-card-premium h3,
body.light-mode .feature-card-premium .feature-title {
  color: #111827;
}

body.light-mode .feature-card p,
body.light-mode .feature-card-premium p,
body.light-mode .feature-card-premium .feature-description {
  color: #4B5563;
}

body.light-mode .feature-card-premium .feature-description strong {
  color: #111827;
}

body.light-mode .feature-icon-wrapper {
  background: rgba(79, 70, 229, 0.1);
  border: none;
}

body.light-mode .feature-icon-wrapper svg {
  color: var(--btn-primary-bg);
}

/* ----------------------------------------
   Light Mode "What Gets Converted" Cards
   ---------------------------------------- */

body.light-mode .what-converts {
  background: var(--bg-light-alt);
}

body.light-mode .converts-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,250,251,0.9) 100%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

body.light-mode .converts-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

body.light-mode .converts-card h3 {
  color: #111827;
}

body.light-mode .converts-card li {
  color: #4B5563;
  background: rgba(0,0,0,0.02);
}

body.light-mode .converts-card li:hover {
  background: rgba(0,0,0,0.04);
}

body.light-mode .converts-card li strong {
  color: #111827;
}

body.light-mode .converts-yes li::before {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
}

body.light-mode .converts-no li::before {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  border-color: #F59E0B;
}

body.light-mode .converts-yes h3::before {
  background: linear-gradient(135deg, #10B981, #059669);
}

body.light-mode .converts-no h3::before {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

/* ----------------------------------------
   Light Mode How It Works / Steps
   ---------------------------------------- */

body.light-mode .how-it-works {
  background: var(--bg-light-alt);
}

body.light-mode .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  body.light-mode .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

body.light-mode .step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  text-align: left;
}

body.light-mode .step-card:hover {
  box-shadow: var(--shadow-light-card-hover);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

body.light-mode .step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--btn-primary-bg);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  margin: 0;
}

body.light-mode .step-icon {
  margin-bottom: var(--space-4);
  color: var(--text-dark);
}

body.light-mode .step-icon svg {
  width: 32px;
  height: 32px;
}

body.light-mode .step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

body.light-mode .step-description {
  color: var(--text-dark-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

body.light-mode .step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-8);
  color: var(--text-dark-muted);
}

body.light-mode .step-connector svg {
  width: 20px;
  height: 20px;
}

body.light-mode .how-it-works-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .how-it-works-card:hover {
  box-shadow: var(--shadow-light-card-hover);
}

body.light-mode .step-card h3,
body.light-mode .how-it-works-card h3 {
  color: var(--text-dark);
}

body.light-mode .step-card p,
body.light-mode .how-it-works-card p {
  color: var(--text-dark-secondary);
}

/* ----------------------------------------
   Light Mode Pricing Cards
   ---------------------------------------- */

body.light-mode .pricing-section,
body.light-mode .pricing-cards-section {
  background: var(--bg-light-alt);
}

body.light-mode .pricing-hero-pro {
  background: var(--bg-light-hero);
}

body.light-mode .pricing-hero-title {
  color: var(--text-dark);
}

body.light-mode .pricing-hero-subtitle {
  color: var(--text-dark-secondary);
}

body.light-mode .highlight-text {
  color: var(--btn-primary-bg);
}

/* Pricing cards - actual classes used in HTML */
body.light-mode .pricing-card-pro {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .pricing-card-pro:hover {
  box-shadow: var(--shadow-light-card-hover);
  transform: translateY(-4px);
}

body.light-mode .pricing-card-pro.featured {
  border: 2px solid var(--btn-primary-bg);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .pricing-badge-popular {
  background: var(--btn-primary-bg);
  color: white;
}

body.light-mode .pricing-plan-name {
  color: var(--text-dark);
}

body.light-mode .pricing-plan-desc {
  color: var(--text-dark-muted);
}

body.light-mode .pricing-price-amount {
  color: var(--text-dark);
}

body.light-mode .pricing-price-amount.gradient {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .pricing-price-period {
  color: var(--text-dark-muted);
}

body.light-mode .pricing-features-list {
  color: var(--text-dark-secondary);
}

body.light-mode .pricing-feature {
  color: var(--text-dark-secondary);
}

body.light-mode .pricing-feature.highlight {
  color: var(--text-dark);
}

body.light-mode .feature-check {
  color: #10B981;
}

body.light-mode .feature-check.gradient {
  color: var(--btn-primary-bg);
}

body.light-mode .feature-check.gradient svg {
  stroke: #10B981;
}

body.light-mode .pricing-feature.unavailable {
  color: var(--text-dark-muted);
  opacity: 0.6;
}

body.light-mode .feature-x {
  color: var(--text-dark-muted);
}

body.light-mode .pricing-cta.btn-secondary {
  background: var(--bg-light-alt);
  color: var(--text-dark);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .pricing-cta.btn-secondary:hover {
  background: var(--bg-white);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-bg);
}

body.light-mode .pricing-card-pro.featured .pricing-cta {
  background: var(--btn-primary-bg);
  color: white;
  border: none;
}

body.light-mode .pricing-card-pro.featured .pricing-cta:hover {
  background: var(--btn-primary-hover);
}

/* Agency plan banner */
body.light-mode .agency-plan-banner {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

body.light-mode .agency-plan-banner h3 {
  color: white;
}

body.light-mode .agency-plan-banner p {
  color: rgba(255, 255, 255, 0.8);
}

/* Legacy pricing card classes */
body.light-mode .pricing-card,
body.light-mode .pricing-card-premium {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .pricing-card:hover,
body.light-mode .pricing-card-premium:hover {
  box-shadow: var(--shadow-light-card-hover);
}

body.light-mode .pricing-card-featured,
body.light-mode .pricing-card-premium.featured {
  border: 2px solid var(--btn-primary-bg);
  box-shadow: var(--shadow-light-lg);
}

/* Remove gradient borders */
body.light-mode .pricing-card-premium::before {
  display: none;
}

body.light-mode .popular-badge {
  background: var(--btn-primary-bg);
  color: white;
}

body.light-mode .pricing-card h3,
body.light-mode .pricing-card-premium h3 {
  color: var(--text-dark);
}

body.light-mode .pricing-amount {
  color: var(--text-dark);
}

body.light-mode .pricing-period {
  color: var(--text-dark-muted);
}

body.light-mode .pricing-description {
  color: var(--text-dark-secondary);
}

body.light-mode .pricing-features li {
  color: var(--text-dark-secondary);
}

body.light-mode .pricing-features .check-icon {
  color: var(--success);
}

body.light-mode .pricing-card .btn-primary,
body.light-mode .pricing-card-premium .btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: none;
}

body.light-mode .pricing-card .btn-primary:hover,
body.light-mode .pricing-card-premium .btn-primary:hover {
  background: var(--btn-primary-hover);
}

body.light-mode .pricing-card .btn-secondary,
body.light-mode .pricing-card-premium .btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .pricing-card .btn-secondary:hover,
body.light-mode .pricing-card-premium .btn-secondary:hover {
  background: var(--bg-light-alt);
  border-color: var(--border-light-hover);
}

/* ----------------------------------------
   Light Mode FAQ
   ---------------------------------------- */

body.light-mode .faq-section {
  background: var(--bg-white);
}

body.light-mode .faq-item {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .faq-item:hover {
  border-color: var(--border-light-hover);
}

body.light-mode .faq-question {
  color: var(--text-dark);
}

body.light-mode .faq-answer {
  color: var(--text-dark-secondary);
}

body.light-mode .faq-icon {
  color: var(--text-dark-muted);
}

/* ----------------------------------------
   Light Mode CTA Section
   ---------------------------------------- */

body.light-mode .cta-section {
  background: var(--bg-light-alt);
}

body.light-mode .cta-section .section-title {
  color: var(--text-dark);
}

body.light-mode .cta-section .section-subtitle {
  color: var(--text-dark-secondary);
}

/* ----------------------------------------
   Light Mode Footer
   ---------------------------------------- */

body.light-mode .footer {
  background: linear-gradient(to bottom, var(--bg-white) 0%, #F9FAFB 100%);
  border-top: 1px solid var(--border-light-mode);
  color: var(--text-dark);
}

body.light-mode .footer-logo .logo-text {
  color: var(--text-dark);
}

body.light-mode .footer-logo .logo-symbol {
  background: linear-gradient(135deg, var(--btn-primary-bg) 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .footer-description {
  color: var(--text-dark-secondary);
}

body.light-mode .footer-column h4 {
  color: var(--text-dark);
}

body.light-mode .footer-column a {
  color: var(--text-dark-secondary);
}

body.light-mode .footer-column a:hover {
  color: var(--btn-primary-bg);
}

body.light-mode .footer-bottom {
  border-top: 1px solid var(--border-light-mode);
  color: var(--text-dark-muted);
}

body.light-mode .footer-social a {
  color: var(--text-dark-muted);
}

body.light-mode .footer-social a:hover {
  color: var(--btn-primary-bg);
}

/* ----------------------------------------
   Light Mode Contact Page
   ---------------------------------------- */

body.light-mode .contact-hero-pro {
  background: var(--bg-light-hero);
}

body.light-mode .contact-hero-title {
  color: var(--text-dark);
}

body.light-mode .contact-hero-subtitle {
  color: var(--text-dark-secondary);
}

body.light-mode .contact-section-pro {
  background: var(--bg-light);
}

body.light-mode .contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .contact-form-card h2 {
  color: var(--text-dark);
}

body.light-mode .contact-form-card .form-intro {
  color: var(--text-dark-secondary);
}

body.light-mode .form-group-pro label {
  color: var(--text-dark-secondary);
}

body.light-mode .form-group-pro input,
body.light-mode .form-group-pro select,
body.light-mode .form-group-pro textarea {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark);
}

body.light-mode .form-group-pro input::placeholder,
body.light-mode .form-group-pro textarea::placeholder {
  color: var(--text-dark-muted);
}

body.light-mode .form-group-pro input:focus,
body.light-mode .form-group-pro select:focus,
body.light-mode .form-group-pro textarea:focus {
  border-color: var(--btn-primary-bg);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

body.light-mode .contact-info-card-pro {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .contact-info-card-pro h3 {
  color: var(--text-dark);
}

body.light-mode .contact-info-card-pro p {
  color: var(--text-dark-secondary);
}

body.light-mode .method-note {
  color: var(--text-dark-muted);
}

body.light-mode .method-icon {
  color: var(--btn-primary-bg);
}

body.light-mode .response-item {
  background: var(--bg-light-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

body.light-mode .response-type {
  color: var(--text-dark-secondary);
}

body.light-mode .response-time {
  color: var(--btn-primary-bg);
  font-weight: 600;
}

/* Contact FAQ section */
body.light-mode .contact-faq {
  background: var(--bg-light-alt);
}

body.light-mode .contact-faq .section-title {
  color: var(--text-dark);
}

body.light-mode .contact-faq .section-subtitle {
  color: var(--text-dark-secondary);
}

body.light-mode .faq-item-pro {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .faq-question-pro {
  color: var(--text-dark);
  background: transparent;
}

body.light-mode .faq-question-pro:hover {
  background: var(--bg-light-alt);
}

body.light-mode .faq-answer-pro {
  color: var(--text-dark-secondary);
}

body.light-mode .faq-answer-pro p {
  color: var(--text-dark-secondary);
}

body.light-mode .faq-icon-pro {
  color: var(--text-dark-muted);
}

/* ----------------------------------------
   Light Mode Cards (Generic)
   ---------------------------------------- */

body.light-mode .card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .card:hover {
  box-shadow: var(--shadow-light-card-hover);
}

body.light-mode .card-glow::before {
  display: none;
}

/* ----------------------------------------
   Light Mode Buttons (Global)
   ---------------------------------------- */

body.light-mode .btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: none;
}

body.light-mode .btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: var(--shadow-light-md);
}

body.light-mode .btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .btn-secondary:hover {
  background: var(--bg-light-alt);
  border-color: var(--border-light-hover);
}

body.light-mode .btn-ghost {
  color: var(--text-dark-secondary);
}

body.light-mode .btn-ghost:hover {
  color: var(--text-dark);
  background: var(--bg-light-alt);
}

/* Fix ghost buttons on colored backgrounds (like CTA cards) */
body.light-mode .cta-card-pro .btn-ghost,
body.light-mode .cta-section-pro .btn-ghost {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-mode .cta-card-pro .btn-ghost:hover,
body.light-mode .cta-section-pro .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* ----------------------------------------
   Light Mode Direction Page
   ---------------------------------------- */

body.light-mode .direction-section {
  background: var(--bg-light);
  min-height: 100vh;
}

body.light-mode .direction-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .direction-card:hover {
  border-color: var(--btn-primary-bg);
  box-shadow: var(--shadow-light-lg);
  transform: translateY(-4px);
}

body.light-mode .direction-card.selected {
  border-color: var(--btn-primary-bg);
  background: rgba(79, 70, 229, 0.05);
}

body.light-mode .direction-title {
  color: var(--text-dark);
}

body.light-mode .direction-description {
  color: var(--text-dark-secondary);
}

body.light-mode .direction-icon {
  color: var(--btn-primary-bg);
}

/* Selection/Direction page - actual classes used */
body.light-mode .selection-section {
  background: var(--bg-light);
}

body.light-mode .selection-title {
  color: var(--text-dark);
}

body.light-mode .selection-subtitle {
  color: var(--text-dark-secondary);
}

body.light-mode .direction-card h2 {
  color: var(--text-dark);
}

body.light-mode .direction-card .card-description {
  color: var(--text-dark-secondary);
}

body.light-mode .direction-card .card-icon {
  color: var(--btn-primary-bg);
}

body.light-mode .direction-card.ios-card .card-icon {
  color: #F05138;
}

body.light-mode .direction-card.android-card .card-icon {
  color: #7C3AED;
}

body.light-mode .card-formats {
  color: var(--text-dark-secondary);
}

body.light-mode .format-tag {
  background: var(--bg-light-alt);
  color: var(--text-dark);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .format-tag.swift {
  background: rgba(240, 81, 56, 0.1);
  color: #F05138;
  border-color: rgba(240, 81, 56, 0.2);
}

body.light-mode .format-tag.kotlin {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  border-color: rgba(124, 58, 237, 0.2);
}

body.light-mode .format-arrow {
  color: var(--text-dark-muted);
}

body.light-mode .card-btn {
  background: var(--btn-primary-bg);
  color: white;
}

body.light-mode .card-btn:hover {
  background: var(--btn-primary-hover);
}

body.light-mode .selection-footer {
  color: var(--text-dark-secondary);
}

body.light-mode .back-link {
  color: var(--text-dark-secondary);
}

body.light-mode .back-link:hover {
  color: var(--btn-primary-bg);
}

/* ============================================
   DIRECTION SELECTOR PAGE
   ============================================ */

.direction-selector-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-6) var(--space-12);
  background: var(--bg-dark);
}

.direction-selector-section .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.direction-selector-wrapper {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.direction-selector-header {
  margin-bottom: var(--space-10);
  text-align: center;
}

.direction-selector-header h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.direction-selector-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.direction-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  width: 100%;
  max-width: 800px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  background: var(--bg-card);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.direction-card:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.direction-card:hover .direction-card-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: var(--primary);
}

.direction-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  margin-bottom: var(--space-2);
}

.direction-card-icon.ios {
  background: linear-gradient(135deg, #0071E3 0%, #007AFF 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.direction-card-icon.android {
  background: linear-gradient(135deg, #34A853 0%, #3DDC84 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(61, 220, 132, 0.3);
}

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

.direction-card-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.direction-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.direction-card-languages {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-badge.swift {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(88, 86, 214, 0.15) 100%);
  color: #0071E3;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.lang-badge.kotlin {
  background: linear-gradient(135deg, rgba(127, 82, 255, 0.15) 0%, rgba(200, 100, 255, 0.15) 100%);
  color: #7F52FF;
  border: 1px solid rgba(127, 82, 255, 0.2);
}

.direction-card-languages svg {
  color: var(--text-muted);
  opacity: 0.6;
}

.direction-card-arrow {
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.5;
  margin-top: var(--space-2);
}

/* Direction Badge in Converter */
.direction-badge .badge-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-right: var(--space-2);
}

/* Light Mode Direction Selector */
body.light-mode .direction-selector-section {
  background: var(--bg-light-gradient);
}

body.light-mode .direction-selector-header h1 {
  color: var(--text-dark);
}

body.light-mode .direction-selector-header p {
  color: var(--text-dark-secondary);
}

body.light-mode .direction-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light-mode);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-mode .direction-card:hover {
  border-color: var(--btn-primary-bg);
  background: var(--bg-white);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
  transform: translateY(-4px);
}

body.light-mode .direction-card-icon.ios {
  background: linear-gradient(135deg, #0071E3 0%, #007AFF 100%);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
}

body.light-mode .direction-card-icon.android {
  background: linear-gradient(135deg, #34A853 0%, #3DDC84 100%);
  box-shadow: 0 8px 24px rgba(52, 168, 83, 0.25);
}

body.light-mode .direction-card-content h3 {
  color: var(--text-dark);
}

body.light-mode .direction-card-desc {
  color: var(--text-dark-secondary);
}

body.light-mode .direction-card-arrow {
  color: var(--text-dark-muted);
  opacity: 0.4;
}

body.light-mode .direction-card:hover .direction-card-arrow {
  color: var(--btn-primary-bg);
  opacity: 1;
}

body.light-mode .lang-badge.swift {
  background: rgba(0, 113, 227, 0.1);
  color: #0071E3;
  border-color: rgba(0, 113, 227, 0.15);
}

body.light-mode .lang-badge.kotlin {
  background: rgba(127, 82, 255, 0.1);
  color: #7F52FF;
  border-color: rgba(127, 82, 255, 0.15);
}

body.light-mode .direction-badge .badge-label {
  color: var(--text-dark-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .direction-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .direction-card {
    padding: var(--space-6);
  }

  .direction-card-icon {
    width: 64px;
    height: 64px;
  }

  .direction-selector-header h1 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .direction-card-icon {
    width: 56px;
    height: 56px;
  }

  .direction-card-icon svg {
    width: 28px;
    height: 28px;
  }
}


/* ----------------------------------------
   Light Mode Converter Page
   ---------------------------------------- */

body.light-mode .converter-section {
  background: var(--bg-light);
  min-height: 100vh;
}

body.light-mode .direction-badge {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .detection-text {
  color: var(--text-dark-secondary);
}

/* ============================================
   Detection Results Page - Light Mode
   ============================================ */

body.light-mode .detection-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-8));
  padding-bottom: var(--space-12);
  background: var(--bg-light-gradient);
}

body.light-mode .detection-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

body.light-mode .detection-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

body.light-mode .detection-header .warning-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
  border-radius: var(--radius-2xl);
  color: #F59E0B;
}

body.light-mode .detection-header h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

body.light-mode .detection-subtitle {
  font-size: var(--text-base);
  color: var(--text-dark);
  opacity: 0.85;
}

body.light-mode .file-info-banner {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

body.light-mode .file-info-banner .file-icon {
  color: var(--text-dark-muted);
}

body.light-mode .file-info-banner #filename {
  flex: 1;
  font-weight: 500;
  color: var(--text-dark);
}

body.light-mode .direction-pill {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--btn-primary-bg);
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.light-mode .detected-apis {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

body.light-mode .detected-api-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

body.light-mode .detected-api-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

body.light-mode .api-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

body.light-mode .api-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.12) 100%);
  border-radius: var(--radius-xl);
  color: #D97706;
  flex-shrink: 0;
}

body.light-mode .api-info {
  flex: 1;
}

body.light-mode .api-info h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-1);
}

body.light-mode .api-category {
  font-size: var(--text-sm);
  color: var(--text-dark);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

body.light-mode .severity-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.light-mode .severity-badge.severity-high {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(248, 113, 113, 0.12) 100%);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.light-mode .severity-badge.severity-medium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.12) 100%);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

body.light-mode .severity-badge.severity-low {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.12) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

body.light-mode .api-lines {
  font-size: var(--text-sm);
  color: var(--text-dark);
  opacity: 0.75;
  margin-bottom: var(--space-4);
}

body.light-mode .lines-numbers {
  font-family: var(--font-mono);
  color: var(--btn-primary-bg);
  font-weight: 500;
}

body.light-mode .complexity-info {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.03) 0%, rgba(51, 65, 85, 0.03) 100%);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

body.light-mode .complexity-note {
  font-size: var(--text-sm);
  color: var(--text-dark);
  opacity: 0.75;
  line-height: 1.6;
}

body.light-mode .complexity-note strong {
  color: var(--text-dark);
}

body.light-mode .detection-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

body.light-mode .detection-actions .btn-secondary {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark);
}

body.light-mode .detection-actions .btn-secondary:hover {
  background: var(--bg-light-alt);
  border-color: var(--text-dark-muted);
}

body.light-mode .detection-actions .btn-outline {
  background: transparent;
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark-secondary);
}

body.light-mode .detection-actions .btn-outline:hover {
  background: var(--bg-light-alt);
  color: var(--text-dark);
}

body.light-mode .change-direction-btn {
  background: var(--bg-light-alt);
  border-color: var(--border-light-mode);
  color: var(--text-dark-muted);
}

body.light-mode .change-direction-btn:hover {
  background: var(--bg-white);
  color: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
}

body.light-mode .converter-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .upload-area,
body.light-mode .drop-zone {
  background: var(--bg-light-alt);
  border: 2px dashed var(--border-light-mode);
  color: var(--text-dark-secondary);
}

body.light-mode .upload-area:hover,
body.light-mode .drop-zone:hover {
  border-color: var(--btn-primary-bg);
  background: rgba(79, 70, 229, 0.05);
}

body.light-mode .upload-area.dragover,
body.light-mode .drop-zone.dragover {
  border-color: var(--btn-primary-bg);
  background: rgba(79, 70, 229, 0.1);
}

body.light-mode .upload-icon {
  color: var(--text-dark-muted);
}

body.light-mode .upload-text {
  color: var(--text-dark);
}

body.light-mode .upload-hint {
  color: var(--text-dark-muted);
}

body.light-mode .file-info {
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid var(--btn-primary-bg);
  color: var(--text-dark);
}

body.light-mode .file-info .file-details {
  color: var(--text-dark);
}

body.light-mode .file-info .file-details svg {
  stroke: var(--btn-primary-bg);
}

body.light-mode .file-name {
  color: var(--text-dark);
}

/* FILE INFO CARD - Make it stand out in light mode */
body.light-mode .file-info-card {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
  border: 2px solid #6366F1 !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15) !important;
}

body.light-mode .file-info-card .file-label {
  color: #4338CA !important;
  font-weight: 700 !important;
}

body.light-mode .file-info-card .file-name {
  color: #1E1B4B !important;
  font-weight: 700 !important;
}

/* DETECTION ACTIONS STICKY FOOTER - Make it visible in light mode */
body.light-mode .detection-actions-sticky {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important;
  border-top: 2px solid #6366F1 !important;
  box-shadow: 0 -4px 12px rgba(99, 102, 241, 0.15) !important;
  backdrop-filter: blur(10px) !important;
}

/* Detection page - Fix washed out text in light mode */
body.light-mode .detection-title {
  color: var(--text-dark);
}

body.light-mode .section-heading {
  color: var(--text-dark);
  border-bottom-color: var(--border-light-mode);
}

body.light-mode .library-detection-section {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-color: rgba(79, 70, 229, 0.15);
}

body.light-mode .section-description {
  color: var(--text-dark-secondary);
}

body.light-mode .library-conversion-card {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .library-conversion-card:hover {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

body.light-mode .library-description {
  color: var(--text-dark-secondary);
}

body.light-mode .library-badge-critical {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

body.light-mode .no-libraries-message {
  color: var(--text-dark-secondary);
}

body.light-mode .library-label {
  color: var(--text-dark-muted);
}

body.light-mode .build-gradle-notice {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--success);
}

body.light-mode .build-gradle-notice p {
  color: var(--text-dark-secondary);
}

body.light-mode .badge-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

body.light-mode .file-label {
  color: var(--text-dark);
  opacity: 0.7;
}

body.light-mode .alternative {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .alternative.recommended {
  border: 1px solid var(--btn-primary-bg);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

body.light-mode .alt-name {
  color: var(--text-dark);
}

body.light-mode .alt-details {
  color: var(--text-dark);
  opacity: 0.7;
}

body.light-mode .file-details {
  color: var(--text-dark);
}

body.light-mode .remove-btn {
  color: var(--text-dark-muted);
}

body.light-mode .remove-btn:hover {
  color: #EF4444;
}

body.light-mode .upload-subtext {
  color: var(--text-dark-muted);
}

body.light-mode .mode-toggle,
body.light-mode .upload-tabs,
body.light-mode .upload-mode-toggle {
  background: #1E293B;
  border: none;
}

body.light-mode .mode-toggle button,
body.light-mode .upload-tab,
body.light-mode .mode-btn {
  color: rgba(255, 255, 255, 0.7);
}

body.light-mode .mode-toggle button.active,
body.light-mode .upload-tab.active,
body.light-mode .mode-btn.active {
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: none;
}

body.light-mode .mode-btn:hover:not(.active) {
  color: white;
}

body.light-mode .credits-display {
  color: var(--text-dark-secondary);
}

body.light-mode .credits-value {
  color: var(--btn-primary-bg);
  font-weight: 600;
}

body.light-mode .credits-upgrade {
  color: var(--btn-primary-bg);
}

body.light-mode .back-link {
  color: var(--text-dark-secondary);
}

body.light-mode .back-link:hover {
  color: var(--btn-primary-bg);
}

body.light-mode .status {
  color: var(--text-dark);
}

body.light-mode .status.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #DC2626;
}

body.light-mode .status.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

body.light-mode .direction-indicator {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark);
}

/* ----------------------------------------
   Light Mode Success Page
   ---------------------------------------- */

body.light-mode .success-wrapper {
  background: var(--bg-light);
}

body.light-mode .speed-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--text-dark);
}

body.light-mode .speed-text {
  color: var(--text-dark-secondary);
}

body.light-mode .speed-text strong {
  color: var(--btn-primary-bg);
}

body.light-mode .speed-savings {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

body.light-mode .success-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

body.light-mode .success-title {
  color: var(--text-dark);
}

body.light-mode .success-subtitle {
  color: var(--text-dark-secondary);
}

body.light-mode .package-summary {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .summary-header {
  color: var(--text-dark);
}

body.light-mode .summary-stats {
  background: var(--bg-light-alt);
}

body.light-mode .stat-value {
  color: var(--text-dark);
}

body.light-mode .stat-label {
  color: var(--text-dark-muted);
}

body.light-mode .stat-desc {
  color: var(--text-dark-muted);
}

body.light-mode .conversion-stats {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-row:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .library-detection-panel {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: var(--btn-primary-bg);
}

body.light-mode .library-item {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .library-name {
  color: var(--text-dark);
}

body.light-mode .library-target {
  color: var(--btn-primary-bg);
}

body.light-mode .build-gradle-badge {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

body.light-mode .library-report {
  background: rgba(79, 70, 229, 0.03);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

body.light-mode .library-report-title {
  color: var(--text-dark);
}

body.light-mode .library-conversion-item {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .build-gradle-info {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

body.light-mode .package-contents {
  color: var(--text-dark-secondary);
}

body.light-mode .next-steps {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .next-steps h3 {
  color: var(--text-dark);
}

body.light-mode .steps-list li {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark-secondary);
}

body.light-mode .steps-list li:hover {
  border-color: var(--btn-primary-bg);
  background: var(--bg-white);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

body.light-mode .step-number {
  background: var(--btn-primary-bg);
  color: white;
}

body.light-mode .step-content strong {
  color: var(--text-dark);
}

body.light-mode .step-content code {
  background: rgba(79, 70, 229, 0.1);
  color: var(--btn-primary-bg);
  border-color: rgba(79, 70, 229, 0.2);
}

/* ----------------------------------------
   Light Mode Wizard Page
   ---------------------------------------- */

body.light-mode .wizard-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-8));
  padding-bottom: var(--space-12);
  background: var(--bg-light-gradient);
}

body.light-mode .wizard-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

body.light-mode .wizard-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

body.light-mode .wizard-header h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

body.light-mode .wizard-subtitle {
  font-size: var(--text-lg);
  color: var(--text-dark-secondary);
}

body.light-mode .detection-summary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: rgba(79, 70, 229, 0.15);
}

body.light-mode .summary-count {
  color: var(--text-dark);
}

body.light-mode .summary-label {
  color: var(--text-dark-muted);
}

body.light-mode .summary-divider {
  background: var(--border-light-mode);
}

body.light-mode .wizard-progress {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .step-number {
  background: var(--bg-light-alt);
  border-color: var(--border-light-mode);
  color: var(--text-dark-muted);
}

body.light-mode .wizard-step.active .step-number {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: white;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

body.light-mode .wizard-step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

body.light-mode .step-label {
  color: var(--text-dark-muted);
}

body.light-mode .wizard-step.active .step-label {
  color: var(--btn-primary-bg);
}

body.light-mode .step-connector {
  background: var(--border-light-mode);
}

body.light-mode .wizard-step.completed + .step-connector {
  background: var(--success);
}

body.light-mode .wizard-progress .progress-bar {
  background: var(--bg-light-alt);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

body.light-mode .wizard-progress .progress-fill {
  background: linear-gradient(90deg, var(--btn-primary-bg) 0%, #8B5CF6 100%);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

body.light-mode .wizard-progress .progress-text {
  font-size: var(--text-sm);
  color: var(--text-dark-secondary);
  text-align: center;
}

body.light-mode .wizard-content {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-mode .wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

body.light-mode .wizard-nav .btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

body.light-mode .wizard-nav .btn-secondary {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark);
}

body.light-mode .wizard-nav .btn-secondary:hover {
  background: var(--bg-light-alt);
}

body.light-mode .wizard-nav .btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.light-mode .api-option,
body.light-mode .option-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light-mode);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: all 0.2s ease;
}

body.light-mode .api-option:hover,
body.light-mode .option-card:hover {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

body.light-mode .api-option.selected,
body.light-mode .option-card.selected {
  border-color: var(--btn-primary-bg);
  background: rgba(79, 70, 229, 0.05);
}

body.light-mode .option-card h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

body.light-mode .option-card p {
  color: var(--text-dark-secondary);
  font-size: var(--text-sm);
}

body.light-mode .api-option.selected,
body.light-mode .option-card.selected {
  border-color: var(--btn-primary-bg);
  background: rgba(79, 70, 229, 0.05);
}

body.light-mode .api-name,
body.light-mode .option-title {
  color: var(--text-dark);
}

body.light-mode .api-description,
body.light-mode .option-description {
  color: var(--text-dark-secondary);
}

/* Complexity Warning - Light Mode */
body.light-mode .complexity-warning .wizard-step-header h2 {
  color: var(--text-dark);
}

body.light-mode .complexity-alert {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-mode .complexity-intro {
  color: var(--text-dark-secondary);
}

body.light-mode .complexity-details h3 {
  color: var(--text-dark);
  font-weight: 600;
}

body.light-mode .complexity-feature {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-lg);
}

body.light-mode .complexity-feature .feature-name {
  color: var(--text-dark);
  font-weight: 600;
}

body.light-mode .complexity-feature .feature-count {
  color: #b45309;
  font-weight: 600;
}

body.light-mode .complexity-stats {
  border-top-color: var(--border-light-mode);
  border-bottom-color: var(--border-light-mode);
}

body.light-mode .complexity-stats .stat-value {
  color: var(--text-dark);
}

body.light-mode .complexity-stats .stat-label {
  color: var(--text-dark-secondary);
}

body.light-mode .complexity-recommendations h3 {
  color: var(--text-dark);
  font-weight: 600;
}

body.light-mode .complexity-recommendations ul {
  color: var(--text-dark-secondary);
}

/* ----------------------------------------
   Light Mode Docs Page
   ---------------------------------------- */

body.light-mode .docs-container {
  background: var(--bg-light);
}

body.light-mode .docs-sidebar {
  background: var(--bg-white);
  border-right: 1px solid var(--border-light-mode);
}

body.light-mode .docs-nav-link {
  color: var(--text-dark-secondary);
}

body.light-mode .docs-nav-link:hover {
  color: var(--text-dark);
  background: var(--bg-light-alt);
}

body.light-mode .docs-nav-link.active {
  color: var(--btn-primary-bg);
  background: rgba(79, 70, 229, 0.1);
}

body.light-mode .docs-content {
  color: var(--text-dark);
}

body.light-mode .docs-content h1,
body.light-mode .docs-content h2,
body.light-mode .docs-content h3 {
  color: var(--text-dark);
}

body.light-mode .docs-content p {
  color: var(--text-dark-secondary);
}

body.light-mode .docs-content code {
  background: var(--bg-light-alt);
  color: var(--btn-primary-bg);
  border: 1px solid var(--border-light-mode);
}

body.light-mode .docs-content pre {
  background: #1E293B;
  border: 1px solid var(--border-light-mode);
}

/* Docs page - all article elements */
body.light-mode .docs-article-pro {
  color: var(--text-dark);
}

body.light-mode .docs-section-pro h1,
body.light-mode .docs-section-pro h2,
body.light-mode .docs-section-pro h3 {
  color: var(--text-dark);
}

body.light-mode .docs-section-pro p {
  color: var(--text-dark-secondary);
}

body.light-mode .docs-lead {
  color: var(--text-dark-secondary);
}

/* Docs callouts */
body.light-mode .docs-callout {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
}

body.light-mode .docs-callout-content {
  color: var(--text-dark-secondary);
}

body.light-mode .docs-callout-content strong {
  color: var(--text-dark);
}

body.light-mode .docs-callout-info {
  background: #EEF2FF;
  border-color: #C7D2FE;
}

body.light-mode .docs-callout-info .docs-callout-icon {
  color: #4F46E5;
}

body.light-mode .docs-callout-warning {
  background: #FEF3C7;
  border-color: #FDE68A;
}

body.light-mode .docs-callout-warning .docs-callout-icon {
  color: #D97706;
}

/* Docs feature list */
body.light-mode .docs-feature-list {
  border: 1px solid var(--border-light-mode);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

body.light-mode .docs-feature-item {
  border-bottom: 1px solid var(--border-light-mode);
  padding: var(--space-4);
}

body.light-mode .docs-feature-item:last-child {
  border-bottom: none;
}

body.light-mode .docs-feature-title {
  color: var(--text-dark);
}

body.light-mode .docs-feature-desc {
  color: var(--text-dark-secondary);
}

/* Docs main containers get dark text naturally from CSS variables */
body.light-mode .docs-article-pro,
body.light-mode .docs-section-pro,
body.light-mode .docs-main {
  color: var(--text-dark);
}

/* Docs process list */
body.light-mode .docs-process-list {
  border: 1px solid var(--border-light-mode);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

body.light-mode .docs-process-item {
  color: var(--text-dark-secondary);
}

body.light-mode .docs-process-item::before {
  background: var(--btn-primary-bg);
}

/* Docs steps */
body.light-mode .docs-step-pro {
  border-color: var(--border-light-mode);
}

body.light-mode .docs-step-number {
  background: var(--btn-primary-bg);
  color: white;
}

body.light-mode .docs-step-content h3 {
  color: var(--text-dark);
}

body.light-mode .docs-step-content p {
  color: var(--text-dark-secondary);
}

body.light-mode .docs-step-content a {
  color: var(--btn-primary-bg);
}

/* Docs tables */
body.light-mode .docs-table-pro {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

body.light-mode .docs-table-pro table {
  border-collapse: collapse;
  width: 100%;
}

body.light-mode .docs-table-pro th {
  background: var(--bg-light-alt);
  color: var(--text-dark);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light-mode);
}

body.light-mode .docs-table-pro td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-dark-secondary);
  border-bottom: 1px solid var(--border-light-mode);
}

body.light-mode .docs-table-pro tr:last-child td {
  border-bottom: none;
}

body.light-mode .docs-table-pro code {
  background: var(--bg-light-alt);
  color: var(--btn-primary-bg);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}

/* Docs code examples */
body.light-mode .docs-code-example {
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-4) 0;
}

body.light-mode .docs-code-header {
  background: var(--bg-light-alt);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light-mode);
}

body.light-mode .docs-code-label {
  color: var(--text-dark-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
}

body.light-mode .docs-code-block {
  background: #1E293B;
  color: #E2E8F0;
  padding: var(--space-4);
  margin: 0;
}

/* Docs API list */
body.light-mode .docs-api-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

body.light-mode .docs-api-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-md);
}

body.light-mode .docs-api-item code {
  background: var(--bg-light-alt);
  color: var(--btn-primary-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

body.light-mode .docs-api-item span {
  color: var(--text-dark-secondary);
}

/* Docs FAQ */
body.light-mode .docs-faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

body.light-mode .docs-faq-question {
  color: var(--text-dark);
  background: transparent;
  width: 100%;
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

body.light-mode .docs-faq-question:hover {
  background: var(--bg-light-alt);
}

body.light-mode .docs-faq-question svg {
  color: var(--text-dark-muted);
}

body.light-mode .docs-faq-answer {
  color: var(--text-dark-secondary);
  padding: 0 var(--space-4) var(--space-4);
}

body.light-mode .docs-faq-answer p {
  color: var(--text-dark-secondary);
}

/* Docs divider */
body.light-mode .docs-divider {
  border-color: var(--border-light-mode);
}

/* Docs nav header */
body.light-mode .docs-nav-header {
  color: var(--text-dark-muted);
}

/* ----------------------------------------
   Light Mode About/Contact Pages
   ---------------------------------------- */

body.light-mode .about-hero,
body.light-mode .contact-hero {
  background: var(--bg-light-hero);
}

body.light-mode .about-hero h1,
body.light-mode .contact-hero h1 {
  color: var(--text-dark);
}

body.light-mode .about-hero p,
body.light-mode .contact-hero p {
  color: var(--text-dark-secondary);
}

body.light-mode .team-card,
body.light-mode .value-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .team-card h3,
body.light-mode .value-card h3 {
  color: var(--text-dark);
}

body.light-mode .team-card p,
body.light-mode .value-card p {
  color: var(--text-dark-secondary);
}

/* About page stat cards - keep dark for visual contrast */
body.light-mode .stat-card-pro {
  background: #1E293B;
  border: 1px solid #334155;
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .stat-card-pro .stat-value {
  color: #A78BFA;
}

body.light-mode .stat-card-pro .stat-label {
  color: #FFFFFF;
}

body.light-mode .stat-card-pro .stat-desc {
  color: #94A3B8;
}

/* About page mission section */
body.light-mode .about-mission-pro {
  background: var(--bg-light);
}

body.light-mode .mission-title {
  color: var(--text-dark);
}

body.light-mode .mission-lead {
  color: var(--text-dark-secondary);
}

body.light-mode .mission-content p {
  color: var(--text-dark-secondary);
}

/* About page hero */
body.light-mode .about-hero-pro {
  background: var(--bg-light-hero);
}

body.light-mode .about-hero-title {
  color: var(--text-dark);
}

body.light-mode .about-hero-subtitle {
  color: var(--text-dark-secondary);
}

/* About page values section */
body.light-mode .about-values-pro {
  background: var(--bg-light-alt);
}

body.light-mode .value-card-pro {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .value-card-pro h3 {
  color: var(--text-dark);
}

body.light-mode .value-card-pro p {
  color: var(--text-dark-secondary);
}

body.light-mode .value-icon-pro {
  color: var(--btn-primary-bg);
}

/* About page tech section */
body.light-mode .about-tech-pro {
  background: var(--bg-light);
}

body.light-mode .tech-card-pro {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-card);
}

body.light-mode .tech-card-pro h3 {
  color: var(--text-dark);
}

body.light-mode .tech-card-pro p {
  color: var(--text-dark-secondary);
}

body.light-mode .tech-number {
  color: var(--btn-primary-bg);
}

/* About page team/origin section */
body.light-mode .about-team-pro {
  background: var(--bg-light-alt);
}

body.light-mode .team-message-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .team-message-content h2 {
  color: var(--text-dark);
}

body.light-mode .team-message-content p {
  color: var(--text-dark-secondary);
}

/* About page CTA section */
body.light-mode .cta-section-pro {
  background: var(--bg-light);
}

body.light-mode .cta-card-pro {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

body.light-mode .cta-title-pro {
  color: white;
}

body.light-mode .cta-subtitle-pro {
  color: rgba(255, 255, 255, 0.9);
}

body.light-mode .contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .form-label {
  color: var(--text-dark);
}

body.light-mode .form-input,
body.light-mode .form-textarea {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-light-mode);
  color: var(--text-dark);
}

body.light-mode .form-input:focus,
body.light-mode .form-textarea:focus {
  border-color: var(--btn-primary-bg);
  background: var(--bg-white);
}

body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder {
  color: var(--text-dark-muted);
}

/* ----------------------------------------
   Light Mode Legal Pages
   ---------------------------------------- */

body.light-mode.legal-page {
  background: var(--bg-light);
}

body.light-mode .legal-content {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--border-light-mode);
  box-shadow: var(--shadow-light-lg);
}

body.light-mode .legal-header {
  border-bottom-color: var(--border-light-mode);
}

body.light-mode .legal-content h1,
body.light-mode .legal-content h2,
body.light-mode .legal-content h3 {
  color: var(--text-dark);
}

body.light-mode .legal-content p,
body.light-mode .legal-content li {
  color: var(--text-dark-secondary);
}

body.light-mode .legal-content li strong,
body.light-mode .legal-content p strong {
  color: var(--text-dark);
}

body.light-mode .legal-meta p {
  color: var(--text-dark-secondary);
}

body.light-mode .legal-meta strong {
  color: var(--text-dark);
}

body.light-mode .legal-intro {
  background: #F8FAFC;
  border-left-color: var(--btn-primary-bg);
}

body.light-mode .legal-toc {
  background: #F8FAFC;
  border: 1px solid var(--border-light-mode);
}

body.light-mode .legal-toc h2 {
  color: var(--text-dark);
}

body.light-mode .legal-toc li {
  color: var(--text-dark-secondary);
}

body.light-mode .legal-toc a {
  color: var(--btn-primary-bg);
}

body.light-mode .legal-toc a:hover {
  color: var(--btn-primary-hover);
}

body.light-mode .legal-section {
  border-bottom-color: var(--border-light-mode);
}

body.light-mode .legal-section a {
  color: var(--btn-primary-bg);
}

body.light-mode .legal-section a:hover {
  color: var(--btn-primary-hover);
}

body.light-mode .legal-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .legal-highlight p,
body.light-mode .legal-highlight strong {
  color: var(--text-dark);
}

body.light-mode .legal-highlight-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

body.light-mode .legal-table {
  border-color: var(--border-light-mode);
}

body.light-mode .legal-table th {
  background: #F1F5F9;
  color: var(--text-dark);
  border-color: var(--border-light-mode);
}

body.light-mode .legal-table td {
  color: var(--text-dark-secondary);
  border-color: var(--border-light-mode);
}

body.light-mode .legal-table tbody tr:hover {
  background: #F8FAFC;
}

body.light-mode .legal-contact {
  background: #F8FAFC;
  border-color: var(--border-light-mode);
}

body.light-mode .legal-contact p {
  color: var(--text-dark-secondary);
}

body.light-mode .legal-acknowledgment {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

/* ----------------------------------------
   Light Mode No Credits Overlay (already styled but ensure consistency)
   ---------------------------------------- */

body.light-mode .no-credits-overlay {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.light-mode .no-credits-title {
  color: var(--text-dark);
}

body.light-mode .no-credits-text {
  color: var(--text-dark-secondary);
}

/* ----------------------------------------
   Light Mode Mobile Responsive
   ---------------------------------------- */

@media (max-width: 768px) {
  body.light-mode .nav-links {
    background: var(--bg-white);
    border-left: 1px solid var(--border-light-mode);
    box-shadow: var(--shadow-light-xl);
  }

  body.light-mode .nav-link {
    border-bottom: 1px solid var(--border-light-mode);
  }

  body.light-mode .hero::before {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    opacity: 0.5;
  }
}

/* ============================================
   Value Comparison Section
   ============================================ */

.value-comparison-section {
  padding: var(--space-16) 0;
  background: var(--bg-secondary);
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.comparison-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}

.comparison-traditional h3 {
  color: var(--error);
}

.comparison-nativebridge {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.02) 0%,
    rgba(6, 182, 212, 0.02) 100%);
}

.comparison-nativebridge h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
}

.comparison-negative {
  color: var(--text-secondary);
}

.comparison-negative svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--error);
}

.comparison-positive {
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-positive svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--success);
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .value-comparison-section {
    padding: var(--space-12) 0;
  }
}

/* ============================================
   VALIDATION PAGE STYLES
   ============================================ */

/* Validation Hero */
.validation-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid #e5e7eb;
}

.validation-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.validation-hero .container {
  position: relative;
  z-index: 1;
}

.validation-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  color: #4F46E5;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.validation-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.validation-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.validation-date {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

/* Validation Metrics Grid */
.validation-metrics-section {
  padding: var(--space-16) 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.metric-card {
  padding: var(--space-8);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-base);
}

.metric-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-2px);
}

.metric-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: var(--success);
}

.metric-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  color: var(--primary);
}

.metric-highlight .metric-icon.success-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.metric-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-highlight .metric-value {
  background: linear-gradient(135deg, var(--success), #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.metric-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Scorecards Grid */
.scorecards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.scorecard {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
}

.scorecard:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.scorecard-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: var(--primary);
}

.scorecard-perfect {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
  border-color: var(--success);
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.scorecard-number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scorecard-score {
  font-size: var(--text-2xl);
  font-weight: 800;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
}

.score-perfect {
  background: var(--success);
  color: white;
}

.score-excellent {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.score-good {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.scorecard-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.scorecard-goal {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.scorecard-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.scorecard-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-weight: 600;
  color: var(--text);
}

.scorecard-verdict {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.scorecard-verdict strong {
  color: var(--text);
}

/* Code Example Section */
.code-example-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.code-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-8);
}

.code-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.code-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.code-lang {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.code-block {
  margin: 0;
  padding: var(--space-6);
  background: var(--bg-code);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: var(--text-sm);
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text);
}

.code-arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.code-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.highlight-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Methodology Section */
.methodology-section {
  background: var(--bg-secondary);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.methodology-step {
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: var(--text-2xl);
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-top: 1px solid var(--border);
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-12);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.cta-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Simplified Validation Components */
.validation-summary {
  padding: 40px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #4F46E5;
  line-height: 1;
}

.stat-text {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
}

.test-results-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-result-row {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.test-result-row:hover {
  border-color: #4F46E5;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.1);
}

.test-result-perfect {
  border-left: 4px solid #10b981;
}

.test-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.test-score {
  font-size: 28px;
  font-weight: 700;
  color: #F59E0B;
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

.test-score-excellent {
  color: #3B82F6;
}

.test-score-perfect {
  color: var(--success);
}

.test-result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.test-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.code-comparison-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.code-side {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .validation-summary {
    padding: 24px;
  }

  .summary-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 36px;
  }

  .test-result-header {
    flex-direction: column;
    gap: 16px;
  }

  .test-score {
    text-align: left;
  }

  .test-result-details {
    grid-template-columns: 1fr;
  }

  .code-comparison-simple {
    grid-template-columns: 1fr;
  }
}

/* Light Mode Overrides */
body.light-mode .validation-hero {
  background: var(--bg-white);
}

body.light-mode .validation-badge {
  background: rgba(99, 102, 241, 0.15);
}

body.light-mode .validation-title {
  color: var(--text-dark);
}

body.light-mode .validation-summary {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .test-result-row {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .test-result-row:hover {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.15);
}

body.light-mode .metric-card {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .metric-card:hover {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

body.light-mode .scorecard {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .scorecard-stats {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .code-panel {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .code-header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: var(--border-light-mode);
}

body.light-mode .code-block {
  background: #F9FAFB;
}

body.light-mode .highlight-item {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

body.light-mode .cta-box {
  background: var(--bg-white);
  border-color: var(--border-light-mode);
}

/* Responsive */
@media (max-width: 768px) {
  .code-comparison {
    grid-template-columns: 1fr;
  }

  .code-arrow {
    transform: rotate(90deg);
    margin: var(--space-4) auto;
  }

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

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

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