/**
 * HealthESD - Modern Design System
 * 
 * A comprehensive, modern theme featuring:
 * - Cohesive color palette with gradients
 * - Modern spacing & typography system
 * - Smooth animations & transitions
 * - Glassmorphism effects
 * - Responsive design patterns
 * - Premium shadows & glows
 * 
 * Design tokens are centralized in :root for easy theming
 */

:root {
  /* Design System Colors - Logo-Inspired Theme */
  --card: #ffffff;
  --ring: #FF6B35;
  --input: #e5e7eb;
  --muted: #f9fafb;
  --accent: #fffbeb;
  --border: #e5e7eb;
  --radius: 0.375rem;
  --chart-1: #FF6B35;
  --chart-2: #FF8C42;
  --chart-3: #00BCD4;
  --chart-4: #26C6DA;
  --chart-5: #E85A2B;
  --popover: #ffffff;
  --primary: #FF6B35;
  --sidebar: #f9fafb;
  --spacing: 0.25rem;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
  --secondary: #f3f4f6;
  --background: #ffffff;
  --font-serif: 'Source Serif 4', serif;
  --foreground: #262626;
  --destructive: #ef4444;
  --shadow-blur: 8px;
  --shadow-color: hsl(0 0% 0%);
  --sidebar-ring: #FF6B35;
  --shadow-spread: -1px;
  --letter-spacing: 0em;
  --shadow-opacity: 0.1;
  --sidebar-accent: #fffbeb;
  --sidebar-border: #e5e7eb;
  --card-foreground: #262626;
  --shadow-offset-x: 0px;
  --shadow-offset-y: 4px;
  --sidebar-primary: #FF6B35;
  --muted-foreground: #6b7280;
  --accent-foreground: #92400e;
  --popover-foreground: #262626;
  --primary-foreground: #000000;
  --sidebar-foreground: #262626;
  --secondary-foreground: #4b5563;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #92400e;
  --sidebar-primary-foreground: #ffffff;
  
  /* Logo-Inspired Color Palette - Orange & Cyan Theme */
  --logo-orange: #FF6B35;
  --logo-orange-bright: #FF8C42;
  --logo-orange-dark: #E85A2B;
  --logo-cyan: #00BCD4;
  --logo-cyan-bright: #26C6DA;
  --logo-cyan-dark: #0097A7;
  
  /* Legacy green (keeping for compatibility) */
  --yuka-green-primary: #4CAF50;
  --yuka-green-bright: #62DC46;
  --yuka-green-vibrant: #33CC66;
  --yuka-green-light: #81C784;
  --yuka-green-dark: #388E3C;
  
  --yuka-red-bad: #FF0000;
  --yuka-red-poor: #FF6B6B;
  
  /* Logo-Inspired Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #00BCD4 100%);
  --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #FF8C42 40%, #00BCD4 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-background: linear-gradient(135deg, #f5f7fa 0%, #e0f7fa 100%);
  --gradient-text: linear-gradient(135deg, #FF6B35 0%, #00BCD4 100%);
  
  /* Primary colors using logo colors */
  --primary-color: var(--logo-orange);
  --secondary-color: var(--logo-cyan);
  
  /* Text Colors - Modern Scale */
  --yuka-text-primary: #1A1A1A;
  --yuka-text-secondary: #4B5563;
  --yuka-text-muted: #6B7280;
  --yuka-text-light: #9CA3AF;
  --yuka-text-white: #FFFFFF;
  
  /* Background Colors */
  --yuka-bg-white: #FFFFFF;
  --yuka-bg-light: #F8F9FA;
  --yuka-bg-teal: #F7FCFB;
  --yuka-bg-gradient: var(--gradient-primary);
  --yuka-bg-glass: rgba(255, 255, 255, 0.8);
  
  /* Border Colors */
  --yuka-border: #E5E7EB;
  --yuka-border-light: #F0F0F0;
  --yuka-border-medium: #D1D5DB;
  
  /* Status Colors */
  --yuka-status-excellent: #4CAF50; /* Keep green for good scores */
  --yuka-status-good: #62DC46;
  --yuka-status-moderate: #FF9900;
  --yuka-status-poor: #FF6B6B;
  --yuka-status-bad: #FF0000;
  
  /* Modern Shadow System */
  --yuka-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --yuka-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yuka-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yuka-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --yuka-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --yuka-shadow-colored: 0 10px 40px rgba(255, 107, 53, 0.25);
  
  /* Glow Effects - Logo Colors */
  --yuka-glow-orange: 0 0 20px rgba(255, 107, 53, 0.4);
  --yuka-glow-cyan: 0 0 20px rgba(0, 188, 212, 0.4);
  --yuka-glow-soft: 0 0 40px rgba(0, 0, 0, 0.08);
  --yuka-glow-bright: 0 0 30px rgba(255, 140, 66, 0.5);
  
  /* Spacing System (8px base) */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Support */
.dark {
  --card: #262626;
  --ring: #FF6B35;
  --input: #404040;
  --muted: #262626;
  --accent: #92400e;
  --border: #404040;
  --chart-1: #FF8C42;
  --chart-2: #FF6B35;
  --chart-3: #26C6DA;
  --chart-4: #00BCD4;
  --chart-5: #E85A2B;
  --popover: #262626;
  --primary: #FF6B35;
  --sidebar: #0f0f0f;
  --secondary: #262626;
  --background: #171717;
  --foreground: #e5e5e5;
  --destructive: #ef4444;
  --sidebar-ring: #FF6B35;
  --sidebar-accent: #92400e;
  --sidebar-border: #404040;
  --card-foreground: #e5e5e5;
  --sidebar-primary: #FF6B35;
  --muted-foreground: #a3a3a3;
  --accent-foreground: #fde68a;
  --popover-foreground: #e5e5e5;
  --primary-foreground: #000000;
  --sidebar-foreground: #e5e5e5;
  --secondary-foreground: #e5e5e5;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #fde68a;
  --sidebar-primary-foreground: #ffffff;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  line-height: 1.6;
  background: var(--gradient-background);
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "kern";
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  letter-spacing: var(--letter-spacing);
}

/* Animated Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 188, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 140, 66, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

/* Yuka-style Navigation - Premium */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) calc(var(--shadow-blur) * 2) var(--shadow-spread) rgba(0, 0, 0, calc(var(--shadow-opacity) * 0.5));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Navigation Auth Section - Right side near hamburger */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-signin-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: var(--letter-spacing);
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.logo {
  height: 40px;
  width: auto;
  display: block !important;
  object-fit: contain;
  transition: transform 0.2s ease;
  max-width: 120px;
}

.logo-fallback {
  font-size: 28px;
  color: var(--logo-orange);
}

.nav-brand:hover .logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Navigation Auth Section - Right side near hamburger */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 12px;
  order: 2;
}

.nav-signin-btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block !important;
}

/* Scan Button Styling */
.yuka-scan-btn {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(232, 90, 43, 0.3) !important;
}

.yuka-scan-btn:hover {
  background: #E85A2B !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(232, 90, 43, 0.4) !important;
}

.yuka-scan-btn:active {
  transform: translateY(0) !important;
}

/* Bottom Nav Scan Button */
.scan-nav-btn {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  margin-top: -4px !important;
  box-shadow: 0 2px 6px rgba(232, 90, 43, 0.2) !important;
  border: 2px solid white !important;
  transition: all 0.2s ease !important;
}

.scan-nav-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 10px rgba(232, 90, 43, 0.3) !important;
}

.scan-nav-btn .yuka-nav-icon {
  font-size: 20px !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  margin-left: 12px;
  order: 3;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 400;
  font-size: 16px;
  transition: color 0.3s;
}

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

/* Features Dropdown Menu */
.features-dropdown {
  position: relative;
  display: inline-block;
}

.features-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--foreground);
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.features-dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.features-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.features-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--border);
}

.features-dropdown.active .features-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.features-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid var(--border);
}

.features-dropdown-menu a:last-child {
  border-bottom: none;
}

.features-dropdown-menu a:hover {
  background: var(--muted);
  color: var(--primary);
}

/* Mobile menu overlay - added via JavaScript for better control */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Modern Button System */
.btn-primary {
  padding: 14px 32px;
  border-radius: calc(var(--radius) * 3);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  background: linear-gradient(135deg, var(--logo-orange) 0%, var(--logo-orange-bright) 100%);
  color: var(--yuka-text-white);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--yuka-shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-offset-x) calc(var(--shadow-offset-y) * 2.5) calc(var(--shadow-blur) * 5) var(--shadow-spread) rgba(255, 107, 53, calc(var(--shadow-opacity) * 3));
  background: linear-gradient(135deg, var(--logo-orange-bright) 0%, var(--primary) 100%);
}

.btn-secondary {
  padding: 14px 32px;
  border-radius: calc(var(--radius) * 3);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition-base);
  background-color: var(--secondary);
  backdrop-filter: blur(10px);
  color: var(--secondary-foreground);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) calc(var(--shadow-blur) * 1.5) var(--shadow-spread) rgba(0, 0, 0, var(--shadow-opacity));
}

.btn-secondary:hover {
  background-color: var(--foreground);
  color: white;
  border-color: var(--foreground);
  transform: translateY(-3px);
  box-shadow: var(--shadow-offset-x) calc(var(--shadow-offset-y) * 2) calc(var(--shadow-blur) * 2.5) var(--shadow-spread) rgba(0, 0, 0, calc(var(--shadow-opacity) * 1.5));
}

.btn-large {
  padding: 16px 40px;
  font-size: 20px;
}

.btn-block {
  width: 100%;
}

/* Hero Section - Modern & Eye-Catching */
.hero {
  padding: 120px 0 140px;
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 50%, #f5f5f5 100%);
  color: var(--foreground);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBg 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBg 15s ease-in-out infinite reverse;
}

@keyframes floatBg {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Ensure hero is visible on mobile */
@media (max-width: 768px) {
  .hero {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-container {
    display: block !important;
  }

  .hero-left,
  .hero-right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Right Side: Product Preview */
.hero-left {
  position: relative;
  height: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  z-index: 2;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  z-index: 5;
}

.phone-frame {
  width: 320px;
  height: 640px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* App Preview Inside Phone */
.app-preview {
  width: 100%;
  height: 100%;
  padding: 40px 24px;
  background: linear-gradient(180deg, #f0f9f4 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.preview-icon {
  font-size: 32px;
}

.preview-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b5e20;
}

.preview-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-emoji {
  font-size: 40px;
}

.card-score {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
}

.card-bar {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
  border-radius: 6px;
  transition: width 2s ease;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 10;
}

.badge-1 {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 15%;
  left: 5%;
  animation-delay: 2s;
}

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



/* Left Side: Text Content - Modern & Attractive */
.hero-right {
  position: relative;
  padding: 60px 0;
  z-index: 2;
  background: transparent;
}

.hero-content {
  max-width: 100%;
  text-align: left;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.badge-icon {
  font-size: 18px;
}

/* Hero Title - Split into two lines */
.hero-title {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-title-line-1,
.hero-title-line-2 {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #4CAF50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-title-line-2 {
  background: linear-gradient(135deg, #FF9800 0%, #FB8C00 50%, #F57C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Clean white background - remove any green accents */

.hero-subtitle {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  color: #424242;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  max-width: 580px;
}

.hero-subtitle strong {
  color: #2e7d32;
  font-weight: 600;
}

.hero-url {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: #2e7d32;
  text-decoration: none;
  margin-bottom: 24px;
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  font-weight: 500;
}

.hero-url:hover {
  text-decoration: underline;
}

.hero-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

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


/* Stats Section */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #2e7d32 0%, #4CAF50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* Hero Actions - Enhanced Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  margin-top: 12px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #2e7d32 0%, #4CAF50 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.4);
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.btn-hero-primary:active {
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-hero-secondary {
  padding: 18px 36px;
  background: white;
  color: #2e7d32;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.btn-hero-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #2e7d32;
  background: #f0f9f4;
}

.btn-hero-secondary:active {
  transform: translateY(-1px);
}

/* Feature Section - Clean & Professional */
.features {
  padding: 80px 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
  z-index: 0;
}

.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  letter-spacing: var(--letter-spacing);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--logo-cyan) 100%);
  border-radius: calc(var(--radius) / 2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--card);
  padding: 36px 28px;
  border-radius: calc(var(--radius) * 4);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-spread) rgba(0, 0, 0, var(--shadow-opacity));
  position: relative;
  overflow: hidden;
  color: var(--card-foreground);
}

.feature-card:hover {
  border-color: var(--ring);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(98, 220, 70, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

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

.feature-card:hover {
  box-shadow: var(--shadow-offset-x) calc(var(--shadow-offset-y) * 2) calc(var(--shadow-blur) * 3) var(--shadow-spread) rgba(255, 107, 53, calc(var(--shadow-opacity) * 1.5));
  transform: translateY(-4px);
  border-color: var(--ring);
  background: var(--muted);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: inline-block;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 16px;
  letter-spacing: var(--letter-spacing);
}

.feature-card p {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Yuka-style Scanner Section - Green Header like Yuka */
.scanner-section {
  padding: 0;
  background: var(--yuka-bg-white);
}

.scanner-header {
  background: var(--background);
  padding: 60px 0 40px;
  text-align: center;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.scanner-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--foreground);
  margin: 0;
}

.scanner-container {
  background: var(--yuka-bg-white);
  border-radius: 20px;
  padding: 32px;
  margin: -30px auto 0;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .scanner-container {
    padding: 16px;
    margin: -20px auto 0;
    border-radius: 16px;
  }
}

.scanner-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.scanner-tab {
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--yuka-border);
  background: var(--yuka-bg-white);
  color: var(--yuka-text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scanner-tab.active {
  background: var(--logo-orange);
  color: var(--yuka-text-white);
  border-color: var(--logo-orange);
}

.scanner-panel {
  display: none;
}

.scanner-panel.active {
  display: block;
}

.scanner-video {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#scanner-video {
  width: 100%;
  display: block;
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: var(--yuka-text-white);
  backdrop-filter: blur(2px);
}

.scanner-overlay p {
  font-size: 18px;
  font-weight: 500;
  margin-top: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scan-line {
  width: 90%;
  height: 4px;
  background: var(--yuka-green-bright);
  border-radius: 2px;
  animation: scanMove 2s infinite;
  box-shadow: 0 0 12px rgba(98, 220, 70, 0.8);
}

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

/* Yuka-style Product Results */
.results-container {
  margin-top: 32px;
}

.product-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--yuka-border);
}

.product-image {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--yuka-bg-light);
}

.product-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin-bottom: 4px;
}

.product-info p {
  font-size: 16px;
  color: var(--yuka-text-secondary);
  margin-bottom: 12px;
}

/* Yuka-style Score Display */
.yuka-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yuka-score-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--yuka-text-white);
}

.yuka-score-label {
  font-size: 18px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

.yuka-recommendation-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

/* Yuka-style Breakdown (Negatives/Positives) */
.yuka-breakdown-container {
  margin-top: 24px;
}

.yuka-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.yuka-breakdown-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--yuka-text-primary);
}

.yuka-breakdown-serving {
  font-size: 14px;
  color: var(--yuka-text-secondary);
}

.yuka-breakdown-list {
  margin-bottom: 24px;
}

.yuka-breakdown-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--yuka-border);
  gap: 12px;
}

.yuka-breakdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.yuka-breakdown-content {
  flex: 1;
}

.yuka-breakdown-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--yuka-text-primary);
  margin-bottom: 4px;
}

.yuka-breakdown-item-desc {
  font-size: 14px;
  color: var(--yuka-text-secondary);
}

.yuka-breakdown-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yuka-breakdown-item-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

.yuka-breakdown-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.yuka-separator {
  height: 1px;
  background: var(--yuka-border);
  margin: 16px 0;
}

/* Yuka-style Product List (Horizontal Rows) */
.yuka-product-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--yuka-border);
  background: var(--yuka-bg-white);
  cursor: pointer;
  transition: background 0.2s ease;
}

.yuka-product-row:hover {
  background: var(--yuka-bg-light);
}

.yuka-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
  background: var(--yuka-bg-light);
}

.yuka-product-info {
  flex: 1;
}

.yuka-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--yuka-text-primary);
  margin-bottom: 4px;
}

.yuka-product-brand {
  font-size: 14px;
  color: var(--yuka-text-secondary);
  margin-bottom: 8px;
}

.yuka-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yuka-rating-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.yuka-rating-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

/* Health Score Display */
.health-score-container {
  margin: 24px 0;
  padding: 24px;
  background: var(--yuka-bg-light);
  border-radius: 12px;
  text-align: center;
}

/* Nutrition Breakdown */
.nutrition-breakdown {
  margin-top: 24px;
}

.nutrient-item {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--yuka-bg-light);
  border-radius: 8px;
}

.nutrient-name {
  font-weight: 600;
  color: var(--yuka-text-primary);
  margin-bottom: 8px;
}

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

/* Dashboard */
.dashboard-section {
  padding: 80px 0;
  background: var(--yuka-bg-white);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.dashboard-card {
  background: var(--yuka-bg-white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--yuka-border);
  box-shadow: 0 4px 10px var(--yuka-shadow);
}

.dashboard-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--yuka-text-primary);
  margin-bottom: 16px;
}

.score-circle-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--yuka-text-white);
  margin: 0 auto 16px;
  background: var(--yuka-green-primary);
}

/* Auth Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--yuka-bg-white);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
  color: var(--yuka-text-secondary);
  line-height: 1;
}

.close-modal:hover {
  color: var(--yuka-text-primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin-bottom: 24px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--yuka-border);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: var(--yuka-green-primary);
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  color: var(--yuka-text-secondary);
  font-size: 14px;
}

.auth-switch a {
  color: var(--yuka-green-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background for space effect */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  overflow: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2); /* Light border for dark background */
  border-top-color: #22c55e; /* Bright green for visibility */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); /* Glow effect */
}

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

.loading-overlay p {
  margin-top: 16px;
  color: #ffffff; /* White text for visibility on dark space background */
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--yuka-border);
  border-radius: 12px;
  padding: 64px 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--yuka-bg-light);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upload-area:hover {
  border-color: var(--yuka-green-primary);
  background: rgba(76, 175, 80, 0.05);
  transform: scale(1.02);
}

.upload-area:active {
  transform: scale(0.98);
}

.upload-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.upload-area p {
  color: var(--yuka-text-secondary);
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: var(--yuka-text-secondary);
}

.photo-preview {
  margin-top: 24px;
}

.photo-preview img {
  width: 100%;
  max-width: 300px;
  max-height: 250px;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .photo-preview img {
    max-width: 100%;
    max-height: 200px;
  }
}

/* Responsive */
/* ============================================
   YUKA-STYLE MAIN SECTIONS (History, Recs, Top, Search)
   ============================================ */

.yuka-main-section {
  min-height: calc(100vh - 200px);
  padding-bottom: 100px;
}

.yuka-page-header {
  background: var(--yuka-bg-white);
  border-bottom: 1px solid var(--yuka-border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.yuka-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yuka-page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin: 0;
}

.yuka-header-actions {
  display: flex;
  gap: 12px;
}

.yuka-icon-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--yuka-text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.yuka-icon-btn:hover {
  background: var(--yuka-bg-light);
}

/* Product List (History) */
.yuka-product-list {
  background: var(--yuka-bg-white);
  border-radius: 0;
}

/* Recommendations Grid */
.yuka-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px 0;
  position: relative;
}

.yuka-recommendation-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
}

.yuka-swap-arrow {
  font-size: 24px;
  color: var(--yuka-text-secondary);
  z-index: 10;
}

.yuka-product-card {
  background: var(--yuka-bg-white);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--yuka-border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.yuka-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--yuka-shadow);
}

.yuka-product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--yuka-bg-light);
}

.yuka-product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--yuka-text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yuka-product-card-brand {
  font-size: 14px;
  color: var(--yuka-text-secondary);
  margin-bottom: 12px;
}

.yuka-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yuka-card-rating-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.yuka-card-rating-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

.yuka-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.yuka-card-badge.excellent {
  background: var(--yuka-green-primary);
  color: white;
}

.yuka-card-badge.bad {
  background: var(--yuka-red-bad);
  color: white;
}

.yuka-card-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--yuka-text-secondary);
  cursor: pointer;
  padding: 4px;
}

/* Top Products */
.yuka-category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--yuka-border);
}

.yuka-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--yuka-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.yuka-tab.active {
  color: var(--yuka-green-primary);
}

.yuka-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yuka-green-primary);
}

.yuka-invite-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--yuka-bg-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.yuka-invite-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 12px;
}

.yuka-invite-text {
  flex: 1;
}

.yuka-invite-text p {
  font-size: 16px;
  color: var(--yuka-text-primary);
  margin-bottom: 12px;
}

.yuka-invite-btn {
  background: var(--yuka-green-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.yuka-invite-btn:hover {
  background: var(--yuka-green-bright);
}

.yuka-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yuka-category-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--yuka-bg-white);
  border-radius: 12px;
  border: 1px solid var(--yuka-border);
  cursor: pointer;
  transition: background 0.2s;
}

.yuka-category-item:hover {
  background: var(--yuka-bg-light);
}

.yuka-category-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.yuka-category-icon.locked {
  background: var(--yuka-bg-light);
  opacity: 0.5;
}

.yuka-category-name {
  flex: 1;
  font-size: 18px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

.yuka-category-arrow {
  font-size: 20px;
  color: var(--yuka-text-secondary);
}

.yuka-category-lock {
  font-size: 20px;
  color: var(--yuka-text-secondary);
}

/* Search Section */
.yuka-search-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 0;
}

.yuka-search-illustration {
  margin-bottom: 40px;
  position: relative;
}

.yuka-search-phone {
  width: 280px;
  height: 400px;
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
}

.yuka-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--yuka-bg-light);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.yuka-search-icon {
  font-size: 20px;
}

.yuka-search-results-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yuka-preview-item {
  height: 60px;
  background: var(--yuka-bg-light);
  border-radius: 8px;
}

.yuka-search-info {
  text-align: center;
}

.yuka-member-badge {
  display: inline-block;
  background: var(--yuka-green-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.yuka-search-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin-bottom: 12px;
}

.yuka-search-subtitle {
  font-size: 18px;
  color: var(--yuka-text-secondary);
  margin-bottom: 32px;
}

.yuka-member-btn {
  background: var(--yuka-green-primary);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.yuka-member-btn:hover {
  background: var(--yuka-green-bright);
}

/* Floating Action Button (FAB) */
.yuka-fab {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232, 90, 43, 0.25);
  z-index: 99;
  transition: transform 0.2s, box-shadow 0.2s;
}

.yuka-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 90, 43, 0.35);
}

.yuka-fab-icon {
  font-size: 18px;
}

/* Bottom Navigation */
/* Settings Section Styles */
.yuka-settings-content {
  padding: 24px 0;
}

.yuka-settings-section {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--yuka-bg-white);
  border-radius: 12px;
  border: 1px solid var(--yuka-border);
}

.yuka-settings-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin-bottom: 8px;
}

.yuka-settings-description {
  font-size: 14px;
  color: var(--yuka-text-secondary);
  margin-bottom: 16px;
}

.yuka-settings-hint {
  font-size: 13px;
  color: var(--yuka-text-secondary);
  margin-top: 12px;
  font-style: italic;
}

.yuka-language-selector {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.yuka-lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: var(--yuka-bg-light);
  border: 2px solid var(--yuka-border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--yuka-text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.yuka-lang-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.yuka-lang-btn.active {
  background: var(--yuka-green-primary);
  color: white;
  border-color: var(--yuka-green-primary);
}

.yuka-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--yuka-bg-light);
  border-radius: 8px;
  margin-top: 12px;
  transition: background 0.2s;
}

.yuka-settings-item:hover {
  background: #f0f0f0;
}

.yuka-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--yuka-bg-white);
  border-top: 1px solid var(--yuka-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  visibility: visible !important;
}

.yuka-nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s;
  color: var(--yuka-text-secondary);
  flex: 1;
}

.yuka-nav-item.active {
  color: var(--yuka-green-primary);
}

.yuka-nav-item.active .yuka-nav-icon {
  background: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yuka-nav-icon {
  font-size: 24px;
}

.yuka-nav-label {
  font-size: 12px;
  font-weight: 500;
}

/* Responsive Design for Hero - Split Layout */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 32px;
  }

  .hero-left {
    min-height: 400px;
    order: 2;
  }

  .hero-right {
    order: 1;
    padding: 40px 0;
    text-align: center;
  }

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

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


  .animated-produce {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
  }

  .produce-emoji {
    font-size: clamp(40px, 6vw, 70px);
  }
}

@media (max-width: 768px) {
  /* Mobile Hero - disable fixed attachment for better mobile performance */
  .hero {
    background-attachment: scroll;
    padding: 40px 0 60px;
    min-height: auto;
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
    display: block;
  }

  /* Reorder - content first, then visual */
  .hero-right {
    order: 1;
    padding: 20px 0;
    width: 100%;
  }

  .hero-left {
    order: 2;
    min-height: 300px;
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    width: 100%;
  }

  .hero-badge {
    justify-content: center;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: clamp(14px, 4vw, 16px);
    margin-bottom: 24px;
    text-align: center;
    padding: 0 10px;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
  }

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

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

  .phone-mockup {
    max-width: 280px;
    margin: 0 auto;
  }

  .phone-frame {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 9/16;
  }

  .animated-produce {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
  }

  .produce-item {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
  }

  .produce-emoji {
    font-size: clamp(35px, 8vw, 60px);
  }

  /* Ensure all sections are visible on mobile */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Fix scanner section for mobile */
  .scanner-header {
    padding: 40px 0 30px;
  }

  .scanner-header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Fix features section for mobile */
  #features {
    padding: 60px 0;
  }

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

  .feature-card {
    padding: 24px;
    text-align: center;
  }

  .feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }

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

  .feature-card p {
    font-size: 14px;
  }

  /* Mobile Navigation */
  .navbar {
    padding: 12px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .nav-brand {
    font-size: 18px;
  }

  .nav-brand .logo {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .navbar .container {
    position: relative;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px;
  }

  .nav-auth {
    margin-right: 8px;
    order: 2;
  }

  .nav-signin-btn {
    padding: 8px 16px;
    font-size: 14px;
    display: inline-block !important;
  }

  .mobile-menu-toggle {
    order: 3;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a,
  .nav-links button,
  .features-dropdown {
    width: 100%;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 18px;
  }
  
  .features-dropdown {
    padding: 0;
  }
  
  .features-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px;
  }
  
  .features-dropdown-menu {
    position: static;
    margin-top: 0;
    margin-left: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  .features-dropdown.active .features-dropdown-menu {
    display: block;
  }
  
  .nav-links button.btn-primary {
    margin-top: 16px;
    text-align: center;
    border-radius: 8px;
  }
  
  /* Brand name adjustments */
  .brand-name {
    font-size: 18px;
  }
  
  .logo {
    height: 32px;
    max-width: 80px;
  }
  
  .navbar {
    padding: 12px 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .brand-name {
    font-size: 16px;
  }
  
  .logo {
    height: 28px;
    max-width: 60px;
  }
  
  .nav-links {
    width: 100%;
    max-width: 100vw;
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .scanner-options {
    flex-direction: column;
  }
  
  .product-header {
    flex-direction: column;
    text-align: center;
  }
  
  .yuka-breakdown-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .yuka-recommendations-grid {
    grid-template-columns: 1fr;
  }

  .yuka-recommendation-pair {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .yuka-swap-arrow {
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .yuka-fab {
    bottom: 80px;
    right: 16px;
  }

  .yuka-page-title {
    font-size: 24px;
  }
  
  .yuka-results-container {
    margin-top: 16px;
  }
  
  .yuka-section {
    padding: 16px;
  }
  
  .yuka-breakdown-item {
    padding: 12px 0;
  }
  
  .yuka-breakdown-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   YUKA-STYLE PRODUCT REPORT
   ============================================ */

.yuka-results-container {
  background: var(--yuka-bg-white);
  padding: 0;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* AGGRESSIVE IMAGE SIZE LIMITS - NO EXCEPTIONS */
.yuka-results-container img,
.yuka-product-header-section img,
#product-image,
.yuka-product-header-image {
  width: 80px !important;
  height: 110px !important;
  max-width: 80px !important;
  max-height: 110px !important;
  min-width: 80px !important;
  min-height: 110px !important;
  object-fit: contain !important;
  object-position: center !important;
  flex-shrink: 0 !important;
  display: block !important;
}

@media (max-width: 768px) {
  .yuka-results-container img,
  .yuka-product-header-section img,
  #product-image,
  .yuka-product-header-image {
    width: 60px !important;
    height: 80px !important;
    max-width: 60px !important;
    max-height: 80px !important;
    min-width: 60px !important;
    min-height: 80px !important;
  }
}

/* Product Header */
.yuka-product-header-section {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--yuka-border);
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.yuka-product-header-section img {
  width: 80px !important;
  height: 110px !important;
  max-width: 80px !important;
  max-height: 110px !important;
}

@media (max-width: 768px) {
  .yuka-product-header-section {
    gap: 10px;
    padding: 12px 16px;
  }
  
  .yuka-product-header-section img {
    width: 60px !important;
    height: 80px !important;
    max-width: 60px !important;
    max-height: 80px !important;
  }
}

.yuka-product-header-image {
  width: 80px !important;
  height: 110px !important;
  max-width: 80px !important;
  max-height: 110px !important;
  min-width: 80px !important;
  min-height: 110px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 8px;
  background: var(--yuka-bg-light);
  flex-shrink: 0 !important;
  display: block !important;
}

#product-image {
  width: 80px !important;
  height: 110px !important;
  max-width: 80px !important;
  max-height: 110px !important;
  min-width: 80px !important;
  min-height: 110px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

@media (max-width: 768px) {
  .yuka-product-header-image,
  #product-image {
    width: 60px !important;
    height: 80px !important;
    max-width: 60px !important;
    max-height: 80px !important;
    min-width: 60px !important;
    min-height: 80px !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  
  .yuka-product-header-section {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  
  .yuka-product-header-name {
    font-size: 16px !important;
  }
  
  .yuka-product-header-brand {
    font-size: 14px !important;
  }
  
  .yuka-score-circle-large {
    width: 60px !important;
    height: 60px !important;
  }
  
  .yuka-score-number {
    font-size: 24px !important;
  }
  
  .yuka-score-divider {
    font-size: 14px !important;
  }
  
  .yuka-score-rating {
    font-size: 14px !important;
  }
}

.yuka-product-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yuka-product-header-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  line-height: 1.3;
}

.yuka-product-header-brand {
  font-size: 16px;
  color: var(--yuka-text-secondary);
}

.yuka-score-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.yuka-score-circle-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  position: relative;
}

.yuka-score-number {
  font-size: 32px;
  line-height: 1;
}

.yuka-score-divider {
  font-size: 18px;
  margin-left: 4px;
  opacity: 0.9;
}

.yuka-score-rating {
  font-size: 18px;
  font-weight: 400;
  margin-top: 4px;
}

/* Section Headers */
.yuka-section {
  border-bottom: 1px solid var(--yuka-border);
  padding: 20px;
}

.yuka-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.yuka-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin: 0;
}

.yuka-serving-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yuka-serving-size {
  font-size: 14px;
  color: var(--yuka-text-secondary);
  margin-right: 4px;
}

.yuka-serving-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--yuka-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.yuka-serving-btn:hover {
  background: var(--yuka-bg-light);
}

/* Breakdown List */
.yuka-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yuka-breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--yuka-border);
}

.yuka-breakdown-item:last-child {
  border-bottom: none;
}

.yuka-breakdown-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yuka-breakdown-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yuka-breakdown-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--yuka-text-primary);
}

.yuka-breakdown-desc {
  font-size: 14px;
  color: var(--yuka-text-secondary);
}

.yuka-breakdown-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.yuka-breakdown-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--yuka-text-primary);
}

.yuka-breakdown-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.yuka-breakdown-arrow {
  font-size: 14px;
  color: var(--yuka-text-secondary);
  cursor: pointer;
}

/* Progress Bars */
.yuka-progress-bar {
  width: 100%;
  height: 24px;
  background: transparent;
  border-radius: 4px;
  overflow: visible;
  margin: 12px 0;
  position: relative;
}

.yuka-progress-segment {
  height: 100%;
  position: absolute;
  top: 0;
}

.yuka-progress-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.yuka-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--yuka-text-secondary);
  margin-top: 4px;
}

/* Additives Breakdown */
.yuka-additives-breakdown {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.yuka-additive-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.yuka-additive-count.red {
  background: #FFE5E5;
  color: #FF0000;
}

.yuka-additive-count.yellow {
  background: #FFF3E0;
  color: #FF9900;
}

.yuka-additive-count.green {
  background: #E8F5E9;
  color: #4CAF50;
}

.yuka-additive-number {
  font-size: 16px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yuka-additive-count.red .yuka-additive-number {
  background: #FF0000;
  color: white;
}

.yuka-additive-count.yellow .yuka-additive-number {
  background: #FF9900;
  color: white;
}

.yuka-additive-count.green .yuka-additive-number {
  background: #4CAF50;
  color: white;
}

.yuka-additives-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.yuka-info-btn,
.yuka-callout-btn {
  background: var(--yuka-bg-light);
  border: 1px solid var(--yuka-border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--yuka-text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.yuka-info-btn:hover,
.yuka-callout-btn:hover {
  background: var(--yuka-border);
}

/* Additional Info */
.yuka-additional-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yuka-analysis-section {
  padding: 20px;
  background: var(--yuka-bg-white);
  border-radius: 12px;
  border: 1px solid var(--yuka-border);
}

.yuka-analysis-text {
  color: #333333;
  line-height: 1.8;
  font-size: 15px;
}

.yuka-analysis-text p {
  margin-bottom: 12px;
}

.yuka-concerns-section,
.yuka-benefits-section,
.yuka-nutritional-breakdown-section {
  padding: 0;
}

.yuka-concern-item,
.yuka-benefit-item,
.yuka-nutrient-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yuka-concern-item:hover,
.yuka-benefit-item:hover,
.yuka-nutrient-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yuka-eco-score {
  padding: 20px;
  background: var(--yuka-bg-light);
  border-radius: 12px;
}

.yuka-eco-score h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin-bottom: 12px;
}

.yuka-eco-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yuka-eco-grade {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.yuka-eco-score-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--yuka-text-primary);
  margin-bottom: 4px;
}

.yuka-eco-desc {
  font-size: 14px;
  color: var(--yuka-text-secondary);
}

.yuka-product-flags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Additives Modal */
.yuka-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.yuka-modal-content {
  background: var(--yuka-bg-white);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--yuka-shadow-xl);
  overflow: hidden;
}

.yuka-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--yuka-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--yuka-bg-white);
  position: sticky;
  top: 0;
  z-index: 1;
}

.yuka-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--yuka-text-primary);
  margin: 0;
}

.yuka-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.yuka-modal-close:hover {
  background: var(--yuka-bg-light);
}

.yuka-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 768px) {
  .yuka-modal {
    padding: 0;
  }
  
  .yuka-modal-content {
    max-height: 100vh;
    border-radius: 0;
  }
  
  .yuka-modal-header {
    padding: 16px 20px;
  }
  
  .yuka-modal-body {
    padding: 16px 20px;
  }
}

.yuka-flag {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.yuka-flag.organic {
  background: #4CAF50;
}

.yuka-flag.vegan {
  background: #62DC46;
}

.yuka-flag.vegetarian {
  background: #4CAF50;
}

/* ============================================
   ADMIN SECTION STYLES
   ============================================ */

.admin-section {
  background: var(--yuka-bg-white);
  min-height: 100vh;
  padding-top: 80px;
}

.admin-header {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  padding: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.admin-nav-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.admin-nav-btn.active {
  background: white;
  color: #FF6B35;
  font-weight: 600;
}

.admin-exit-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.admin-exit-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.admin-content {
  padding: 40px 0;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.admin-panel h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 32px;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.admin-stat-icon {
  font-size: 48px;
  line-height: 1;
}

.admin-stat-content {
  flex: 1;
}

.admin-stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--foreground);
}

/* Charts Section */
.admin-charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.admin-chart-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-chart-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 20px;
}

.admin-activity-list {
  max-height: 400px;
  overflow-y: auto;
}

.admin-activity-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.admin-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.admin-activity-content {
  flex: 1;
}

.admin-activity-text {
  font-size: 14px;
  color: var(--foreground);
  margin-bottom: 4px;
}

.admin-activity-time {
  font-size: 12px;
  color: #666;
}

.admin-top-products-list {
  max-height: 400px;
  overflow-y: auto;
}

.admin-top-product-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-top-product-item:last-child {
  border-bottom: none;
}

.admin-product-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.admin-product-info {
  flex: 1;
}

.admin-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.admin-product-scans {
  font-size: 14px;
  color: #666;
}

/* Search Bar */
.admin-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-search-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-search-btn:hover {
  background: #E85A2B;
}

/* Users Table */
.admin-users-table,
.admin-products-table {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

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

.admin-table th {
  text-align: left;
  padding: 16px;
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
  font-size: 14px;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--foreground);
}

.admin-table tr:hover {
  background: var(--muted);
}

.admin-action-btn {
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-action-btn:hover {
  background: #E85A2B;
}

.admin-action-btn.danger {
  background: var(--destructive);
}

.admin-action-btn.danger:hover {
  background: #dc2626;
}

/* Analytics */
.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.admin-analytics-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-analytics-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 20px;
}

.admin-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--muted);
  border-radius: 8px;
}

.admin-stat-row-label {
  font-size: 14px;
  color: var(--foreground);
}

.admin-stat-row-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.admin-score-chart,
.admin-growth-chart {
  padding: 20px 0;
}

/* Settings */
.admin-settings-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-setting-item {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-setting-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.admin-setting-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-section {
    padding-top: 60px;
  }

  .admin-header {
    padding: 16px 0;
  }

  .admin-header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 16px;
  }

  .admin-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .admin-nav-btn,
  .admin-exit-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .admin-content {
    padding: 24px 0;
  }

  .admin-content .container {
    padding: 0 16px;
  }

  .admin-panel h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-stat-card {
    padding: 16px;
  }

  .admin-stat-icon {
    font-size: 36px;
  }

  .admin-stat-value {
    font-size: 24px;
  }

  .admin-charts-section,
  .admin-analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-chart-card,
  .admin-analytics-card {
    padding: 16px;
  }

  .admin-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 4px;
    white-space: nowrap;
  }

  .admin-users-table,
  .admin-products-table {
    padding: 16px;
    overflow-x: auto;
  }

  .admin-search-bar {
    flex-direction: column;
  }

  .admin-input {
    width: 100%;
    margin-bottom: 8px;
  }

  .admin-search-btn {
    width: 100%;
  }
}

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


