/* ═══════════════════════════════════════════════════════════
   🥚 LIMPIAAI - Sistema de Estilos Profesional
   ═══════════════════════════════════════════════════════════
   Mobile-First • Dark Theme • Premium Animations
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Primary Palette */
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --primary-glow: rgba(124, 58, 237, 0.4);
  
  /* Accent Colors */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #ef4444;
  --danger-light: #f87171;
  --info: #3b82f6;
  --info-light: #60a5fa;
  
  /* Background & Surface */
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --bg-elevated: #1e2d4a;
  --bg-glass: rgba(22, 33, 62, 0.8);
  
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c4b5fd;
  
  /* Borders */
  --border: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.05);
  --border-focus: var(--primary);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-mystic: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #7c3aed 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 45, 74, 0.6), rgba(22, 33, 62, 0.9));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  
  /* Spacing */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-height: 56px;
  --bottom-nav-height: 70px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: var(--primary-light); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { 
  border: none; 
  background: none; 
  cursor: pointer; 
  font-family: inherit; 
  font-size: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevent zoom on iOS */
  color: var(--text-primary);
}

/* ─── SPLASH SCREEN ──────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  padding: 2rem;
}
.splash-egg {
  font-size: 5rem;
  animation: splashBounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}
.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 1rem;
}
.splash-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.splash-loader {
  width: 200px;
  height: 3px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  margin: 2rem auto 0;
  overflow: hidden;
}
.splash-loader-bar {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: splashLoad 2s ease-in-out forwards;
}

@keyframes splashBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}
@keyframes splashLoad {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ─── APP CONTAINER ──────────────────────────────────────── */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: calc(var(--header-height) + var(--safe-top));
}
.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.header-icon-btn:active {
  background: var(--bg-card);
  color: var(--text-primary);
  transform: scale(0.92);
}
.header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
}
.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── TAB NAV (Top - hidden on mobile, visible on desktop) ─ */
.tab-nav {
  display: none;
}
@media (min-width: 769px) {
  .tab-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
  }
  .tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
  }
  .tab-btn.active {
    background: var(--primary);
    color: white;
  }
  .tab-btn:hover:not(.active) {
    background: var(--bg-card);
    color: var(--text-primary);
  }
  .bottom-nav { display: none !important; }
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen.active {
  display: flex;
  flex-direction: column;
  animation: screenFadeIn 0.35s ease-out;
}
.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen-scroll::-webkit-scrollbar { display: none; }

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

/* ─── BOTTOM NAV ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 8px calc(var(--safe-bottom) + 6px);
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
}
.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  min-width: 60px;
}
.bottom-nav-btn i {
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}
.bottom-nav-btn.active {
  color: var(--primary-light);
}
.bottom-nav-btn.active i {
  transform: scale(1.15);
}
.bottom-nav-btn:active {
  transform: scale(0.9);
}
.bottom-nav-btn-main {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin-top: -16px;
  box-shadow: var(--shadow-glow);
  color: white;
  transition: transform var(--transition-fast);
}
.bottom-nav-btn:active .bottom-nav-btn-main {
  transform: scale(0.9);
}
.bottom-nav-btn-main i {
  color: white;
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════
   HOME SCREEN
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.hero-section {
  text-align: center;
  padding: 2rem 0 1.5rem;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 4s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-egg-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.hero-egg {
  font-size: 5rem;
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.5));
  position: relative;
  z-index: 1;
}
.floating {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-sparkles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}
.s1 { top: 0; left: 10%; animation-delay: 0s; }
.s2 { top: 20%; right: 0; animation-delay: 0.5s; }
.s3 { bottom: 10%; left: 0; animation-delay: 1s; }
.s4 { bottom: 0; right: 15%; animation-delay: 1.5s; }
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f1f5f9, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 340px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  min-height: 50px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.3px;
}
.btn-primary:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-sm);
}
.btn-glow {
  box-shadow: var(--shadow-glow), var(--shadow-md);
}
.btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
  min-height: 42px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.btn-secondary:active {
  background: var(--bg-elevated);
  transform: scale(0.96);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}
.feature-card:active {
  transform: scale(0.97);
  border-color: var(--primary);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Section Container */
.section-container {
  margin-bottom: 2rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.section-title i {
  color: var(--primary-light);
}

/* Steps Timeline */
.steps-timeline {
  position: relative;
  padding-left: 40px;
}
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light), var(--accent));
  border-radius: 1px;
}
.step-item {
  position: relative;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease-out;
}
.step-item:last-child { margin-bottom: 0; }
.step-number {
  position: absolute;
  left: -40px;
  top: 2px;
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-glow);
}
.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Testimonials */
.testimonials-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: 280px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.testimonial-stars {
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.testimonial-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}
.testimonial-author {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* Disclaimer */
.disclaimer-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 1rem;
}
.disclaimer-icon {
  color: var(--warning);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   UPLOAD SCREEN
   ═══════════════════════════════════════════════════════════ */
.upload-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.upload-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.upload-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Progress */
.upload-progress-container {
  margin-bottom: 1.25rem;
}
.upload-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.photo-count-badge {
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
}
.upload-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease-out;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  background: rgba(124, 58, 237, 0.03);
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.upload-zone:active,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  transform: scale(0.99);
}
.upload-zone.drag-over::before {
  opacity: 0.05;
}
.upload-zone-content {
  position: relative;
  z-index: 1;
}
.upload-icon-container {
  margin-bottom: 16px;
}
.upload-main-icon {
  font-size: 3rem;
  color: var(--primary-light);
  animation: uploadPulse 2s ease-in-out infinite;
}
@keyframes uploadPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}
.upload-text-primary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.upload-text-secondary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.upload-text-formats {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Action Buttons */
.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 50px;
  transition: all var(--transition-fast);
}
.btn-action:active {
  transform: scale(0.96);
}
.btn-camera {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-gallery {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

/* Preview Grid */
.preview-grid {
  margin-top: 24px;
  animation: fadeInUp 0.4s ease-out;
}
.preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.preview-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  animation: zoomIn 0.3s ease-out;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.preview-item-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.preview-item-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  backdrop-filter: blur(4px);
  transition: transform var(--transition-fast);
  opacity: 0;
}
.preview-item:hover .preview-item-remove,
.preview-item:active .preview-item-remove {
  opacity: 1;
}
/* Always show on touch devices */
@media (hover: none) {
  .preview-item-remove { opacity: 1; }
}
.preview-item-remove:active {
  transform: scale(0.85);
}

.btn-add-more {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  background: rgba(124, 58, 237, 0.05);
}
.btn-add-more:active {
  background: rgba(124, 58, 237, 0.1);
  transform: scale(0.98);
}

/* Tips */
.tips-card {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 20px;
}
.tips-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--info-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tips-list {
  list-style: none;
}
.tips-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.tips-list li i {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Analyze Button */
.analyze-btn-container {
  position: sticky;
  bottom: 0;
  padding: 16px 0;
  background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
  z-index: 10;
}
.btn-analyze {
  width: 100%;
  font-size: 1.1rem;
  padding: 16px 32px;
  min-height: 56px;
}

/* ═══════════════════════════════════════════════════════════
   PROCESSING SCREEN
   ═══════════════════════════════════════════════════════════ */
.processing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem;
  text-align: center;
}
.processing-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
}
.processing-egg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  z-index: 2;
  animation: processEgg 2s ease-in-out infinite;
}
@keyframes processEgg {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.05); }
}
.processing-rings {
  position: absolute;
  inset: 0;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.ring-1 {
  border-top-color: var(--primary);
  animation: spin 1.5s linear infinite;
}
.ring-2 {
  inset: 10px;
  border-right-color: var(--primary-light);
  animation: spinReverse 2s linear infinite;
}
.ring-3 {
  inset: 20px;
  border-bottom-color: var(--accent);
  animation: spin 2.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.processing-particles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
}
.particle {
  position: absolute;
  font-size: 1rem;
  animation: orbit 4s linear infinite;
}
.p1 { animation-delay: 0s; }
.p2 { animation-delay: 0.6s; }
.p3 { animation-delay: 1.2s; }
.p4 { animation-delay: 1.8s; }
.p5 { animation-delay: 2.4s; }
.p6 { animation-delay: 3s; }
@keyframes orbit {
  0% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) rotate(0deg) translateX(80px); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) rotate(360deg) translateX(80px); }
}

.processing-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.processing-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}
.processing-progress-container {
  width: 100%;
  max-width: 300px;
  margin-bottom: 2rem;
}
.processing-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}
.processing-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}
.processing-percentage {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
}

.processing-steps {
  width: 100%;
  max-width: 280px;
  text-align: left;
}
.p-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}
.p-step.active {
  color: var(--primary-light);
  font-weight: 600;
}
.p-step.completed {
  color: var(--success);
}
.p-step.completed i::before {
  content: "\f00c"; /* fa-check */
}

/* ═══════════════════════════════════════════════════════════
   RESULTS SCREEN
   ═══════════════════════════════════════════════════════════ */

/* Results Header Card */
.result-header-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease-out;
}
.result-header-top {
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-header-top::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  border-radius: 0 0 50% 50%;
}
.result-header-top.level-positivo::before,
.result-header-top.level-excelente::before {
  background: var(--gradient-success);
}
.result-header-top.level-leve::before {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}
.result-header-top.level-moderado::before {
  background: var(--gradient-gold);
}
.result-header-top.level-alto::before {
  background: linear-gradient(135deg, #f97316, #ef4444);
}
.result-header-top.level-critico::before {
  background: var(--gradient-danger);
}
.result-level-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  display: block;
}
.result-level-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.result-level-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Energy Gauge */
.result-gauge-container {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.result-gauge {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  position: relative;
}
.result-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.result-gauge-bg {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 6;
}
.result-gauge-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}
.result-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}
.result-gauge-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.result-gauge-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Result Section Cards */
.result-section {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease-out;
}
.result-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}
.result-section-header:active {
  background: rgba(255,255,255,0.02);
}
.result-section-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-section-header .chevron {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}
.result-section-header .chevron.open {
  transform: rotate(180deg);
}
.result-section-body {
  padding: 0 20px 20px;
  display: none;
}
.result-section-body.open {
  display: block;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Symbol Cards */
.symbol-result-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
  transition: all var(--transition-fast);
}
.symbol-result-card:active {
  background: rgba(255,255,255,0.04);
}
.symbol-result-card.cat-positivo { border-left-color: var(--success); }
.symbol-result-card.cat-energetico { border-left-color: var(--info); }
.symbol-result-card.cat-alerta { border-left-color: var(--warning); }
.symbol-result-card.cat-critico { border-left-color: var(--danger); }

.symbol-result-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.symbol-result-info {
  flex: 1;
  min-width: 0;
}
.symbol-result-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.symbol-confidence {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.symbol-confidence.high { background: rgba(16, 185, 129, 0.15); color: var(--success-light); }
.symbol-confidence.medium { background: rgba(245, 158, 11, 0.15); color: var(--warning-light); }
.symbol-confidence.low { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

.symbol-result-meaning {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.symbol-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.symbol-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-accent);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* Interpretation Text */
.result-interpretation {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.result-interpretation p {
  margin-bottom: 12px;
}
.result-interpretation strong {
  color: var(--text-primary);
}

/* Recommendations */
.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.04);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.recommendation-number {
  width: 28px;
  height: 28px;
  background: var(--gradient-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.recommendation-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Warnings */
.warning-card {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.warning-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger-light);
  margin-bottom: 10px;
}
.warning-item {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

/* Result Images Preview */
.result-images-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.result-images-grid::-webkit-scrollbar { display: none; }
.result-image-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.result-image-thumb:active {
  border-color: var(--primary);
}
.result-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 0;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary) 70%, transparent);
  z-index: 5;
}
.result-actions .btn-action-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: var(--radius-lg);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  min-height: 56px;
}
.result-actions .btn-action-result i {
  font-size: 1.1rem;
}
.result-actions .btn-action-result:active {
  transform: scale(0.95);
}
.btn-share {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-new-reading {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════════════
   LEARN SCREEN
   ═══════════════════════════════════════════════════════════ */
.learn-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.learn-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.learn-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Learn Sections (Accordion) */
.learn-section {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}
.learn-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  user-select: none;
}
.learn-section-title:active {
  background: rgba(255,255,255,0.02);
}
.learn-section-title span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.learn-section-title i.fa-chevron-down {
  transition: transform var(--transition-normal);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.learn-section-title.open i.fa-chevron-down {
  transform: rotate(180deg);
}
.learn-section-content {
  display: none;
  padding: 0 20px 20px;
  animation: slideDown 0.3s ease-out;
}
.learn-section-content.open {
  display: block;
}

/* Learn Steps */
.learn-steps .learn-step-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.learn-step-num {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}
.learn-step-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.learn-step-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Symbol Dictionary */
.symbol-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.symbol-search i {
  color: var(--text-muted);
}
.symbol-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  color: var(--text-primary);
}
.symbol-search input::placeholder {
  color: var(--text-muted);
}

.symbol-dict-item {
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid var(--primary);
}
.symbol-dict-item:active {
  background: rgba(255,255,255,0.04);
}
.symbol-dict-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.symbol-dict-icon {
  font-size: 1.5rem;
}
.symbol-dict-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.symbol-dict-category {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.symbol-dict-meanings {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: none;
}
.symbol-dict-item.expanded .symbol-dict-meanings {
  display: block;
  animation: slideDown 0.3s ease-out;
}

/* Culture Cards */
.culture-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.culture-card {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}
.culture-card:active {
  border-color: var(--primary);
  background: rgba(255,255,255,0.04);
}
.culture-flag {
  font-size: 2rem;
  margin-bottom: 8px;
}
.culture-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.culture-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Best Practices */
.best-practices-list .practice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  margin-bottom: 6px;
}
.practice-item i {
  color: var(--success);
  margin-top: 3px;
  flex-shrink: 0;
}
.practice-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   HISTORY SCREEN
   ═══════════════════════════════════════════════════════════ */
.history-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.history-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.history-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.history-empty {
  text-align: center;
  padding: 3rem 2rem;
}
.history-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.history-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.history-empty p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.history-item {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: fadeInUp 0.3s ease-out;
}
.history-item:active {
  transform: scale(0.98);
  border-color: var(--primary);
}
.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.history-item-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.history-item-level {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.history-item-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-item-symbols {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.history-symbol-chip {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-accent);
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════
   SIDE MENU
   ═══════════════════════════════════════════════════════════ */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
}
.side-menu.active {
  transform: translateX(0);
}
.side-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.side-menu-logo {
  font-size: 2rem;
}
.side-menu-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  flex: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.side-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.side-menu-close:active {
  background: var(--bg-card);
}
.side-menu-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.side-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.side-menu-item:active {
  background: var(--bg-card);
  color: var(--text-primary);
}
.side-menu-item i {
  width: 20px;
  text-align: center;
  color: var(--primary-light);
}
.side-menu-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.side-menu-footer {
  padding: 20px 16px;
  margin-top: auto;
}
.side-menu-version {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.side-menu-copyright {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.side-menu-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   IMAGE VIEWER
   ═══════════════════════════════════════════════════════════ */
.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.image-viewer.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}
.image-viewer-close {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  z-index: 1;
}
.image-viewer img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 70px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  width: calc(100% - 32px);
  max-width: 400px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s ease-out;
  pointer-events: all;
  backdrop-filter: blur(20px);
}
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info { border-left: 4px solid var(--info); }
.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.toast-message {
  font-size: 0.85rem;
  line-height: 1.4;
}
.toast.hiding {
  animation: toastOut 0.3s ease-in forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.fade-in { animation: fadeIn 0.4s ease-out; }
.fade-in-up { animation: fadeInUp 0.5s ease-out; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 480px) {
  .preview-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .culture-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 769px) {
  .app-container {
    max-width: 600px;
    box-shadow: -1px 0 0 var(--border), 1px 0 0 var(--border);
  }
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES (for PDF generation)
   ═══════════════════════════════════════════════════════════ */
@media print {
  body {
    background: white;
    color: black;
  }
  .app-header, .bottom-nav, .tab-nav,
  .result-actions, .side-menu, .side-menu-overlay {
    display: none !important;
  }
  .screen-scroll {
    padding-bottom: 0;
  }
}
