@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;

    --card: 240 8% 7%;
    --card-foreground: 0 0% 98%;

    --popover: 240 8% 7%;
    --popover-foreground: 0 0% 98%;

    --primary: 47 100% 65%;
    --primary-foreground: 240 10% 3.9%;

    --secondary: 280 70% 60%;
    --secondary-foreground: 0 0% 98%;

    --muted: 240 5% 15%;
    --muted-foreground: 240 5% 64.9%;

    --accent: 280 70% 60%;
    --accent-foreground: 0 0% 98%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 240 5% 15%;
    --input: 240 5% 15%;
    --ring: 47 100% 65%;

    --radius: 0.75rem;
    
    --gradient-primary: linear-gradient(135deg, hsl(47 100% 65%), hsl(280 70% 60%));
    --gradient-card: linear-gradient(135deg, hsl(240 8% 9%), hsl(240 8% 7%));
    --glow-primary: 0 0 40px hsl(47 100% 65% / 0.3);
    --glow-secondary: 0 0 40px hsl(280 70% 60% / 0.3);

    --sidebar-background: 0 0% 98%;

    --sidebar-foreground: 240 5.3% 26.1%;

    --sidebar-primary: 240 5.9% 10%;

    --sidebar-primary-foreground: 0 0% 98%;

    --sidebar-accent: 240 4.8% 95.9%;

    --sidebar-accent-foreground: 240 5.9% 10%;

    --sidebar-border: 220 13% 91%;

    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;

    --card: 240 8% 7%;
    --card-foreground: 0 0% 98%;

    --popover: 240 8% 7%;
    --popover-foreground: 0 0% 98%;

    --primary: 47 100% 65%;
    --primary-foreground: 240 10% 3.9%;

    --secondary: 280 70% 60%;
    --secondary-foreground: 0 0% 98%;

    --muted: 240 5% 15%;
    --muted-foreground: 240 5% 64.9%;

    --accent: 280 70% 60%;
    --accent-foreground: 0 0% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;

    --border: 240 5% 15%;
    --input: 240 5% 15%;
    --ring: 47 100% 65%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

@layer base {
  * {
    border-color: hsl(var(--border));
  }

  body {
    @apply bg-background text-foreground;
    font-family: 'Inter', sans-serif;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
  }
}/* Nano Banana Friends - Premium CSS */
/* NANO BANANA FRIENDS - DESIGN TOKENS */
/* Diese Datei definiert alle globalen Design-Variablen */
:root {
  /* ============================================
     COLOR SYSTEM - Erweitert
     ============================================ */
  
  /* Base Colors */
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;

  /* Card & Surface Colors */
  --card: 240 8% 7%;
  --card-foreground: 0 0% 98%;

  /* Popover Colors */
  --popover: 240 8% 7%;
  --popover-foreground: 0 0% 98%;

  /* Primary Brand Colors */
  --primary: 47 100% 65%;
  --primary-foreground: 240 10% 3.9%;

  /* Secondary Colors */
  --secondary: 280 70% 60%;
  --secondary-foreground: 0 0% 98%;

  /* Muted Colors */
  --muted: 240 5% 15%;
  --muted-foreground: 240 5% 50%;

  /* Accent Colors */
  --accent: 240 5% 15%;
  --accent-foreground: 0 0% 98%;

  /* Destructive Colors */
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 85.7% 97.3%;

  /* Border & Ring Colors */
  --border: 240 5% 15%;
  --input: 240 5% 15%;
  --ring: 240 4.9% 83.9%;

  /* Tool-specific Brand Colors */
  --nano-banana: #a86d09;
  --qwen: #2563eb;
  --seedream: #8B5CF6;
  --wan: #E91E63;
  --kling: #00CED1;
  --gallery: #5a387d;
  --grok: #667eea;
  --community: #ff6b6b;
  --instagram: #E1306C;

  /* Status Colors */
  --success: 120 100% 30%;
  --warning: 45 100% 50%;
  --info: 210 100% 50%;

  /* ============================================
     SPACING SYSTEM
     ============================================ */
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Container Spacing */
  --container-padding: 20px;
  --container-padding-mobile: 16px;
  --container-max-width: 1200px;

  /* ============================================
     TYPOGRAPHY SYSTEM
     ============================================ */
  
  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-brand: 'Space Grotesk', sans-serif;
  --font-serif: Georgia, serif;

  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 28px;
  --text-5xl: 32px;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ============================================
     BORDER RADIUS SYSTEM
     ============================================ */
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Component-specific Radius */
  --radius-button: var(--radius-lg);
  --radius-card: var(--radius-2xl);
  --radius-input: var(--radius-md);

  /* ============================================
     SHADOW SYSTEM
     ============================================ */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  /* Tool Card Shadows */
  --shadow-card: 0 15px 35px hsl(var(--background) / 0.2);
  --shadow-card-hover: 0 25px 50px rgba(0, 0, 0, 0.15);

  /* Glow Effects */
  --glow-primary: 0 0 20px hsl(var(--primary) / 0.3);
  --glow-blue: 0 0 20px #3b82f6;

  /* ============================================
     Z-INDEX SYSTEM
     ============================================ */
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* ============================================
     TRANSITION SYSTEM
     ============================================ */
  
  --transition-fast: 0.1s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Common Transitions */
  --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  --transition-transform: transform 0.3s ease;
  --transition-shadow: box-shadow 0.3s ease;
  --transition-all: all 0.3s ease;

  /* ============================================
     BREAKPOINT SYSTEM
     ============================================ */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ============================================
     COMPONENT SIZING
     ============================================ */
  
  /* Button Sizes */
  --button-height-sm: 32px;
  --button-height-md: 40px;
  --button-height-lg: 48px;

  /* Input Sizes */
  --input-height-sm: 32px;
  --input-height-md: 40px;
  --input-height-lg: 48px;

  /* ============================================
     GRADIENTS
     ============================================ */
  
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  --gradient-nano-banana: linear-gradient(135deg, #fbbf24, #f59e0b);
  --gradient-qwen: linear-gradient(135deg, #4facfe, #00f2fe);
  --gradient-seedream: linear-gradient(135deg, #a8edea, #fed6e3);
  --gradient-wan: linear-gradient(135deg, #f093fb, #f5576c);
  --gradient-kling: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-gallery: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-grok: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-instagram: linear-gradient(135deg, #E1306C, #FD1D1D, #F77737);
}
/* ============================================
   DARK MODE OVERRIDES (wenn gewünscht)
   ============================================ */
@media (prefers-color-scheme: light) {
  :root {
    /* Light mode würde hier definiert werden */
    /* Aktuell ist die App für Dark Mode optimiert */
  }
}
/* ============================================
   MOBILE OVERRIDES
   ============================================ */
@media (max-width: 768px) {
  :root {
    /* Mobile-specific adjustments */
    --container-padding: var(--container-padding-mobile);
    --text-4xl: 20px;
    --text-3xl: 18px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
  }
}
/* NANO BANANA FRIENDS - GLOBAL COMPONENT SYSTEM */
/* Diese Datei definiert wiederverwendbare Component-Klassen für konsistentes Design */
/* ============================================
   CONTAINER & LAYOUT COMPONENTS
   ============================================ */
/* Page Container - Für alle Seiten */
.page-container {
  min-height: 100vh;
  background: hsl(var(--background));
  padding: 20px;
  color: hsl(var(--foreground));
}
.page-container--centered {
  max-width: 1200px;
  margin: 0 auto;
}
/* Content Wrapper */
.content-wrapper {
  background: hsl(var(--card));
  border-radius: 24px;
  padding: 20px;
  border: 2px solid hsl(var(--border) / 0.2);
  box-shadow: 0 12px 40px hsl(var(--primary) / 0.1);
}
.content-wrapper--glass {
  backdrop-filter: blur(20px);
  background: hsl(var(--card) / 0.8);
}
/* ============================================
   HEADER COMPONENTS
   ============================================ */
/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: hsl(var(--card));
  backdrop-filter: blur(20px);
  padding: 20px 25px;
  border-radius: 20px;
  border: 1px solid hsl(var(--border));
}
@media (max-width: 768px) {
  .page-header {
    padding: 12px 16px;
  }
}
/* App Branding */
.app-brand {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 600;
  color: hsl(0 0% 50%);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .app-brand {
    font-size: 18px;
  }
}
/* Page Title */
.page-title {
  margin: 0 0 4px 0;
  font-size: 28px;
  color: hsl(var(--foreground));
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, hsl(47 100% 65%), hsl(280 70% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .page-title {
    font-size: 20px;
  }
}
/* Page Subtitle */
.page-subtitle {
  margin: 0;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  font-family: Georgia, serif;
  font-style: italic;
}
@media (max-width: 768px) {
  .page-subtitle {
    font-size: 12px;
  }
}
/* ============================================
   BUTTON COMPONENTS
   ============================================ */
/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--mobile {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}
/* Primary Button */
.btn--primary {
  background: linear-gradient(135deg, hsl(47 100% 65%), hsl(280 70% 60%));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover {
  filter: brightness(1.1);
}
/* Secondary Button */
.btn--secondary {
  background: hsl(220 70% 60% / 0.15);
  border-color: hsl(220 70% 60% / 0.3);
  color: hsl(var(--foreground));
}
.btn--secondary:hover {
  background: hsl(220 70% 60% / 0.25);
  border-color: hsl(220 70% 60% / 0.5);
}
/* Destructive Button */
.btn--destructive {
  background: hsl(var(--destructive) / 0.1);
  border-color: hsl(var(--destructive) / 0.3);
  color: hsl(var(--destructive));
}
.btn--destructive:hover {
  background: hsl(var(--destructive) / 0.2);
  border-color: hsl(var(--destructive) / 0.5);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
/* ============================================
   CARD COMPONENTS
   ============================================ */
/* Base Card */
.card {
  background: hsl(var(--card));
  border-radius: 25px;
  padding: 20px 30px;
  box-shadow: 0 15px 35px hsl(var(--background) / 0.2);
  border: 1px solid hsl(var(--border));
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}
.card--mobile {
  padding: 16px 20px;
  border-radius: 16px;
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
/* Tool Card */
.tool-card {
  display: block;
  text-decoration: none;
  background: hsl(var(--card));
  border-radius: 25px;
  padding: 20px 30px;
  box-shadow: 0 15px 35px hsl(var(--background) / 0.2);
  border: 1px solid hsl(var(--border));
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.tool-card--mobile {
  padding: 16px 20px;
  border-radius: 16px;
}
.tool-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
/* Tool Card Variants */
.tool-card--nano-banana {
  background: #a86d09;
}
.tool-card--qwen {
  background: #2563eb;
}
.tool-card--seedream {
  background: #8B5CF6;
}
.tool-card--wan {
  background: #E91E63;
}
.tool-card--kling {
  background: #00CED1;
}
.tool-card--gallery {
  background: #5a387d;
}
.tool-card--grok {
  background: #667eea;
}
/* ============================================
   FORM COMPONENTS
   ============================================ */
/* Form Group */
.form-group {
  margin-bottom: 24px;
}
/* Label */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
/* Input */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 14px;
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
/* Textarea */
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
}
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
/* ============================================
   STAT COMPONENTS
   ============================================ */
/* Stats Container */
.stats-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
  }
}
/* Stat Card */
.stat-card {
  background: hsl(var(--card));
  border-radius: 24px;
  padding: 20px;
  border: 2px solid hsl(var(--primary) / 0.2);
  box-shadow: 0 12px 40px hsl(var(--primary) / 0.1);
  flex: 1;
  transition: all 0.3s ease;
  position: relative;
}
/* Stat Header */
.stat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.stat-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: hsl(0 0% 65%);
  letter-spacing: 0.5px;
}
/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
/* Display */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
/* Flexbox */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
/* Responsive visibility */
.mobile-only {
  display: none;
}
.desktop-only {
  display: block;
}
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}
/* ============================================
   ANIMATION COMPONENTS
   ============================================ */
/* Glow Animation */
@keyframes blueGlow {
  0% { box-shadow: 0 0 5px #3b82f6; }
  50% { box-shadow: 0 0 20px #3b82f6, 0 0 30px #1d4ed8; }
  100% { box-shadow: 0 0 5px #3b82f6; }
}
.glow-blue {
  animation: blueGlow 2s ease-in-out infinite;
}
/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.3s ease;
}
/* Loading Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-spinner {
  animation: spin 1s linear infinite;
}
/* NANO BANANA FRIENDS - MEDIA COMPONENTS */
/* Wiederverwendbare Media-Display Komponenten für Images & Videos */
/* ============================================
   SINGLE IMAGE DISPLAY (Qwen, Seedream)
   ============================================ */
/* Single image container */
.media-result-single {
  background: hsl(var(--card));
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px solid hsl(var(--border) / 0.3);
  margin-top: 24px;
  text-align: center;
}
.media-result-single--mobile {
  padding: 16px;
}
/* Single generated image */
.generated-image-single {
  width: 100%;
  max-width: 512px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: var(--transition-all);
  display: block;
  margin: 0 auto;
}
.generated-image-single:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2xl);
}
/* ============================================
   MULTI IMAGE GRID (4x, 10x Nano-Banana)
   ============================================ */
/* Multi image container */
.media-result-grid {
  background: hsl(var(--card));
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px solid hsl(var(--border) / 0.3);
  margin-top: 24px;
}
.media-result-grid--mobile {
  padding: 16px;
}
/* 4x Grid (2x2) */
.image-grid-4x {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.image-grid-4x--mobile {
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 10x Grid (flexible) */
.image-grid-10x {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.image-grid-10x--mobile {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
/* Grid image item */
.grid-image-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: hsl(var(--muted));
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition-all);
}
.grid-image-item:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: var(--shadow-xl);
}
.grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Grid item loading state */
.grid-image-item--loading {
  background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--muted) / 0.5), hsl(var(--muted)));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
/* Grid item overlay (for actions) */
.grid-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 8px;
}
.grid-image-item:hover .grid-image-overlay {
  opacity: 1;
}
.grid-action-btn {
  background: hsl(var(--background) / 0.9);
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-all);
  color: hsl(var(--foreground));
  backdrop-filter: blur(4px);
}
.grid-action-btn:hover {
  background: hsl(var(--primary));
  transform: scale(1.1);
}
/* ============================================
   VIDEO COMPONENTS (WAN, Kling)
   ============================================ */
/* Video result container */
.media-result-video {
  background: hsl(var(--card));
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px solid hsl(var(--border) / 0.3);
  margin-top: 24px;
  text-align: center;
}
/* Generated video */
.generated-video {
  width: 100%;
  max-width: 512px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: block;
  margin: 0 auto;
}
/* Video thumbnail (before generation) */
.video-thumbnail {
  width: 100%;
  max-width: 512px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: var(--transition-all);
  position: relative;
  display: block;
  margin: 0 auto;
}
.video-thumbnail::after {
  content: '▶️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.video-thumbnail:hover {
  transform: scale(1.02);
}
/* ============================================
   MEDIA ACTIONS (Universal)
   ============================================ */
/* Action buttons for any media */
.media-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.media-actions--mobile {
  gap: 8px;
  flex-direction: column;
}
.media-actions--grid {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
/* Save Button */
.btn--save {
  background: linear-gradient(135deg, hsl(120 100% 30%), hsl(120 80% 35%));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-all);
  cursor: pointer;
}
.btn--save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsl(120 100% 30% / 0.3);
}
.btn--save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* Download Button */
.btn--download {
  background: linear-gradient(135deg, hsl(210 100% 50%), hsl(210 80% 55%));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-all);
  cursor: pointer;
}
.btn--download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsl(210 100% 50% / 0.3);
}
/* Download All (for grids) */
.btn--download-all {
  background: linear-gradient(135deg, hsl(280 100% 50%), hsl(280 80% 55%));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-all);
  cursor: pointer;
}
.btn--download-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsl(280 100% 50% / 0.3);
}
/* ============================================
   LOADING STATES (Universal)
   ============================================ */
/* Single image loading */
.media-loading-single {
  width: 100%;
  max-width: 512px;
  height: 512px;
  background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--muted) / 0.5), hsl(var(--muted)));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}
/* Grid loading placeholders */
.media-loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.media-loading-item {
  aspect-ratio: 1;
  background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--muted) / 0.5), hsl(var(--muted)));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
/* Progress indicators */
.generation-progress {
  width: 100%;
  max-width: 512px;
  height: 8px;
  background: hsl(var(--muted));
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 16px auto;
}
.generation-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
.progress-text {
  text-align: center;
  font-size: var(--text-sm);
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}
/* ============================================
   FULLSCREEN VIEWER (Universal)
   ============================================ */
.media-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 20px;
}
.media-fullscreen {
  max-width: min(90vw, 500px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
}
.btn--close-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(4px);
  border: 2px solid hsl(var(--border));
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-all);
  color: hsl(var(--foreground));
}
.btn--close-fullscreen:hover {
  background: hsl(var(--destructive));
  border-color: hsl(var(--destructive));
  transform: scale(1.1);
}
/* ============================================
   DATA FORMAT HELPERS
   ============================================ */
/* Base64 images */
.media-base64 {
  /* Specific styles for base64 images if needed */
}
/* URL images */
.media-url {
  /* Specific styles for URL images if needed */
}
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {

  .media-result-single,
  .media-result-grid,
  .media-result-video {
    padding: 16px;
  }

  .image-grid-4x {
    grid-template-columns: 1fr;
  }

  .image-grid-10x {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }

  .media-actions {
    flex-direction: column;
  }

  .btn--save,
  .btn--download,
  .btn--download-all {
    width: 100%;
    justify-content: center;
  }

  .video-thumbnail::after {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
}
/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.media-fade-in {
  animation: fadeInScale 0.5s ease-out;
}
/* NANO BANANA FRIENDS - INSTAGRAM COMPONENTS */
/* Instagram-spezifische Komponenten mit Design-System Integration */
/* ============================================
   INSTAGRAM PAGE LAYOUT
   ============================================ */
.instagram-page {
  min-height: 100vh;
  background: hsl(var(--background));
  padding: var(--spacing-lg);
  color: hsl(var(--foreground));
}
/* ============================================
   INSTAGRAM HEADER
   ============================================ */
.instagram-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}
.instagram-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  background: var(--gradient-instagram);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0 0 var(--spacing-md) 0;
  letter-spacing: var(--tracking-tight);
  font-family: var(--font-brand);
}
.instagram-subtitle {
  font-size: var(--text-xl);
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-weight: var(--font-normal);
}
/* ============================================
   COMING SOON CARD
   ============================================ */
.instagram-coming-soon-card {
  max-width: 600px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-all);
}
.instagram-coming-soon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
  border-color: hsl(var(--instagram) / 0.3);
}
.instagram-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-xl);
  filter: grayscale(0.2);
}
.instagram-coming-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin: 0 0 var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--instagram), #F77737);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--font-brand);
}
.instagram-description {
  font-size: var(--text-lg);
  color: hsl(var(--muted-foreground));
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--spacing-xl) 0;
}
/* ============================================
   FEATURES SECTION
   ============================================ */
.instagram-features {
  background: hsl(var(--muted) / 0.1);
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: left;
  margin-top: var(--spacing-xl);
  transition: var(--transition-all);
}
.instagram-features:hover {
  background: hsl(var(--muted) / 0.15);
  border-color: hsl(var(--instagram) / 0.2);
}
.instagram-features-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--spacing-md) 0;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.instagram-features-title::before {
  content: '✨';
  font-size: var(--text-base);
}
.instagram-features-list {
  margin: 0;
  padding: 0 0 0 var(--spacing-lg);
  color: hsl(var(--muted-foreground));
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.instagram-features-list li {
  margin-bottom: var(--spacing-sm);
  position: relative;
}
.instagram-features-list li::marker {
  color: var(--instagram);
}
/* ============================================
   STATUS SECTION
   ============================================ */
.instagram-status {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, 
    hsla(330, 79%, 48%, 0.1), 
    hsla(19, 93%, 62%, 0.1)
  );
  border-radius: var(--radius-lg);
  border: 1px solid hsla(330, 79%, 48%, 0.2);
  transition: var(--transition-all);
}
.instagram-status:hover {
  background: linear-gradient(135deg, 
    hsla(330, 79%, 48%, 0.15), 
    hsla(19, 93%, 62%, 0.15)
  );
  border-color: hsla(330, 79%, 48%, 0.3);
}
.instagram-status-text {
  font-size: var(--text-base);
  color: hsl(var(--muted-foreground));
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}
.instagram-status-eta {
  font-size: var(--text-sm);
  color: hsl(var(--muted-foreground));
  margin-top: var(--spacing-xs);
  opacity: 0.8;
}
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .instagram-page {
    padding: var(--spacing-md);
  }
  
  .instagram-header {
    margin-bottom: var(--spacing-xl);
  }
  
  .instagram-title {
    font-size: var(--text-3xl);
  }
  
  .instagram-subtitle {
    font-size: var(--text-lg);
  }
  
  .instagram-coming-soon-card {
    padding: var(--spacing-xl);
  }
  
  .instagram-coming-title {
    font-size: var(--text-3xl);
  }
  
  .instagram-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-lg);
  }
  
  .instagram-features {
    padding: var(--spacing-lg);
  }
  
  .instagram-features-list {
    font-size: var(--text-sm);
    padding-left: var(--spacing-lg);
  }
}
/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes instagram-glow {
  0% { 
    box-shadow: 0 0 20px hsla(330, 79%, 48%, 0.3);
  }
  50% { 
    box-shadow: 0 0 30px hsla(330, 79%, 48%, 0.5), 
                0 0 40px hsla(19, 93%, 62%, 0.3);
  }
  100% { 
    box-shadow: 0 0 20px hsla(330, 79%, 48%, 0.3);
  }
}
.instagram-coming-soon-card:hover {
  animation: instagram-glow 2s ease-in-out infinite;
}
/* ============================================
   FUTURE COMPONENT PREVIEWS
   ============================================ */
/* Placeholder für zukünftige Instagram-spezifische Komponenten */
.instagram-form-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.instagram-upload-area {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-all);
  background: hsl(var(--muted) / 0.05);
}
.instagram-upload-area:hover {
  border-color: var(--instagram);
  background: hsl(var(--muted) / 0.1);
}
.instagram-btn {
  background: var(--gradient-instagram);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-button);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition-all);
  font-family: var(--font-primary);
}
.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsla(330, 79%, 48%, 0.3);
}
/*
 * Mobile Swipe Enhancement Styles
 * Optimized for performance and native-like feel
 */
/* Prevent text selection during swipe gestures */
.swipe-container,
.swipe-container * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* Optimize scrolling performance */
.swipe-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: none; /* Prevent horizontal bounce */
  overscroll-behavior-y: contain; /* Allow vertical bounce only */
}
/* Hardware acceleration for smooth animations */
.swipe-target {
  will-change: transform, opacity;
  transform: translateZ(0); /* Force GPU layer */
  backface-visibility: hidden;
}
/* Touch-friendly interactive elements */
.touch-target {
  min-height: 44px; /* Apple's minimum touch target */
  min-width: 44px;
  position: relative;
}
/* Visual feedback for touch interactions */
.touch-feedback {
  position: relative;
  overflow: hidden;
}
.touch-feedback::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.touch-feedback:active::before {
  width: 200px;
  height: 200px;
}
/* Swipe hint animations */
@keyframes swipeHint {
  0% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(20px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.7;
  }
}
.swipe-hint {
  animation: swipeHint 2s ease-in-out infinite;
  animation-delay: 1s;
}
/* Edge swipe indicators */
.swipe-edge-indicator {
  position: fixed;
  top: 50%;
  left: 0;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%) translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}
.swipe-edge-indicator.visible {
  transform: translateY(-50%) translateX(0);
}
/* Loading states optimized for mobile */
.mobile-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  will-change: opacity;
  transform: translateZ(0);
}
.mobile-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translateZ(0);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Improved button states for mobile */
.mobile-button {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.mobile-button:active {
  transform: scale(0.98) translateZ(0);
}
.mobile-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
}
.mobile-button:active::after {
  width: 300px;
  height: 300px;
}
/* Swipe progress indicator */
.swipe-progress {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}
.swipe-progress.visible {
  opacity: 1;
}
.swipe-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s ease;
}
/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .touch-feedback::before,
  .mobile-button::after,
  .swipe-hint {
    animation: none;
    transition: none;
  }
  
  .swipe-progress::before {
    transition: width 0.3s ease;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  .swipe-edge-indicator {
    background: linear-gradient(180deg, transparent 0%, #000 50%, transparent 100%);
  }
  
  .touch-feedback::before {
    background: rgba(0, 0, 0, 0.3);
  }
}
/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  .mobile-loading-overlay {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .swipe-progress {
    background: rgba(255, 255, 255, 0.1);
  }
}
/* Performance hints for browsers */
.performance-layer {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
/* Prevent layout shifts during animations */
.stable-layout {
  contain: layout style paint;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
}
#root {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
* {
  box-sizing: border-box;
}
/* ============================================
   GLOBAL PAGE WIDTH — SINGLE SOURCE OF TRUTH
   All pages use this except Gallery (1200px).
   To change app-wide width, edit ONLY this value.
   ============================================ */
:root {
  --app-max-width: 800px;
}
.page-container {
  max-width: var(--app-max-width);
  margin: 0 auto;
  width: 100%;
}
/* CRITICAL: Prevent horizontal overflow on all elements */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  max-width: 100vw !important;
}
/* Lock body to viewport - MOBILE OPTIMIZED */
body {
  position: relative;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 0 !important;
  padding: 0 !important;
}
/* Prevent any element from exceeding viewport width */
* {
  max-width: 100%;
}
/* MOBILE TOUCH OPTIMIZATIONS - FIXED */
/* Prevent unwanted touch behaviors without breaking dropdowns */
.nano-banana-container {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.nano-banana-container button:not(.dropdown-option),
.nano-banana-container .mobile-template-button {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
/* Allow selection on dropdown options */
.dropdown-option {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
/* Allow text selection for input elements */
input,
textarea,
[contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  touch-action: manipulation;
}
/* Page scroll - clean rules, no overscroll-behavior (breaks Windows Chrome wheel) */
html,
body {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#root {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}
/* CRITICAL: Ultimate mobile overflow prevention */
* {
  min-width: 0;
}
/* Ensure no element can push content beyond viewport */
.nano-banana-container *,
.mobile-prompt-templates-section,
.mobile-template-category,
.mobile-template-grid,
.mobile-template-button,
.mobile-settings-section,
.premium-dropdown-menu {
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
}
/* Force container boundaries - MOBILE SCROLL FIXED */
@media (max-width: 768px) {

  html,
  body {
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    /* Prevent content cutoff */
    padding-bottom: env(safe-area-inset-bottom, 20px) !important;
  }

  #root {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: env(safe-area-inset-bottom, 20px) !important;
  }

  .nano-banana-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  .mobile-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 100% !important;
  }
}
/* Premium Button Styles */
.premium-button {
  position: relative;
  width: 100%;
  padding: 24px;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-align: center;
  isolation: isolate;
}
.premium-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.premium-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.premium-button:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}
/* Individual button themes */
.premium-button--blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}
.premium-button--blue::before {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}
.premium-button--blue:hover::before {
  opacity: 1;
}
.premium-button--orange {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8px 32px rgba(245, 87, 108, 0.3);
}
.premium-button--orange::before {
  background: linear-gradient(135deg, #ed64a6 0%, #e53e3e 100%);
}
.premium-button--orange:hover::before {
  opacity: 1;
}
.premium-button--purple {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #4a5568;
  box-shadow: 0 8px 32px rgba(168, 237, 234, 0.3);
}
.premium-button--purple::before {
  background: linear-gradient(135deg, #81e6d9 0%, #fbb6ce 100%);
}
.premium-button--purple:hover::before {
  opacity: 1;
}
/* Button content */
.button-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.button-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.button-description {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.4;
}
/* Container and layout */
.homepage-container {
  padding: 60px 20px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.homepage-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.homepage-subtitle {
  font-size: 1.3rem;
  color: #6b7280;
  margin-bottom: 48px;
  font-weight: 500;
}
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.button-link {
  text-decoration: none;
  width: 100%;
  max-width: 380px;
  display: block;
}
/* Nano Banana Page Title */
.nano-banana-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  color: hsl(47 100% 65%);
  background: linear-gradient(135deg, hsl(47 100% 65%), hsl(280 70% 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 12px hsl(47 100% 65% / 0.3);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.nano-banana-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
  border-radius: 20px;
  z-index: -1;
  filter: blur(20px);
}
/* Premium Settings Section */
.premium-settings-section {
  background: hsl(var(--card));
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  padding: 32px 28px;
  margin: 32px 0;
  box-shadow:
    0 20px 40px hsl(var(--background) / 0.3),
    0 8px 16px hsl(var(--background) / 0.2);
  position: relative;
  overflow: hidden;
}
.premium-settings-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(245, 87, 108, 0.03) 100%);
  pointer-events: none;
  z-index: -1;
}
.settings-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.settings-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: subtleRotate 8s ease-in-out infinite;
}
@keyframes subtleRotate {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(5deg);
  }
}
.settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.settings-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}
.premium-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* Premium Dropdown Styles */
.premium-dropdown {
  position: relative;
  width: 100%;
}
.premium-dropdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.dropdown-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.premium-dropdown-container {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-dropdown-trigger {
  width: 100%;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(15px);
  box-shadow:
    0 4px 12px hsl(var(--primary) / 0.1),
    0 2px 6px hsl(var(--secondary) / 0.05);
  overflow: hidden;
  isolation: isolate;
}
.premium-dropdown-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.05) 0%, rgba(251, 191, 36, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.premium-dropdown-trigger:active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.1) 0%, rgba(251, 191, 36, 0.08) 100%);
}
/* Loading shimmer effect for premium feel */
.premium-dropdown-container.loading .premium-dropdown-trigger::before {
  opacity: 1;
  background: linear-gradient(90deg,
      rgba(251, 113, 133, 0.1) 0%,
      rgba(251, 191, 36, 0.15) 50%,
      rgba(251, 113, 133, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
.premium-dropdown-trigger:hover {
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow:
    0 8px 20px rgba(251, 113, 133, 0.12),
    0 4px 12px rgba(251, 191, 36, 0.08),
    0 0 0 3px rgba(251, 113, 133, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}
.premium-dropdown-container.open .premium-dropdown-trigger {
  border-color: #f472b6;
  box-shadow:
    0 12px 28px rgba(251, 113, 133, 0.16),
    0 6px 16px rgba(251, 191, 36, 0.1),
    0 0 0 3px rgba(251, 113, 133, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.dropdown-value-section {
  flex: 1;
  text-align: left;
}
.dropdown-main-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.dropdown-description {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}
.dropdown-chevron {
  font-size: 0.8rem;
  color: #9ca3af;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.dropdown-chevron.rotated {
  transform: rotate(180deg);
  color: #f472b6;
}
/* Dropdown backdrop removed to fix selection issues */
.premium-dropdown-menu {
  background: hsl(var(--card));
  backdrop-filter: blur(20px);
  border: 2px solid hsl(var(--border));
  border-radius: 16px;
  overflow: visible;
  z-index: 999999999 !important;
  box-shadow:
    0 20px 40px hsl(var(--background) / 0.5),
    0 8px 16px hsl(var(--background) / 0.3);
  animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  isolation: isolate;
  min-width: 100px;
  max-width: 300px;
}
@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.dropdown-option {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  position: relative;
  opacity: 0;
  animation: optionFadeIn 0.3s ease forwards;
  pointer-events: auto !important;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@keyframes optionFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.dropdown-option:nth-child(1) {
  animation-delay: 0.05s;
}
.dropdown-option:nth-child(2) {
  animation-delay: 0.1s;
}
.dropdown-option:nth-child(3) {
  animation-delay: 0.15s;
}
.dropdown-option:nth-child(4) {
  animation-delay: 0.2s;
}
.dropdown-option:last-child {
  border-bottom: none;
}
.dropdown-option:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(245, 87, 108, 0.06) 100%);
  transform: translateX(4px);
}
.dropdown-option.selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(245, 87, 108, 0.08) 100%);
  border-left: 4px solid #667eea;
}
.dropdown-option.selected:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(245, 87, 108, 0.1) 100%);
}
.option-content {
  flex: 1;
}
.option-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.option-description {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}
.option-check {
  font-size: 1rem;
  color: #10b981;
  font-weight: 700;
  margin-left: 12px;
  animation: checkBounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes checkBounce {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}
/* Premium Prompt Templates Section */
.prompt-templates-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 28px;
  margin: 24px 0;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.prompt-templates-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.02) 0%, rgba(245, 87, 108, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
}
.prompt-templates-header {
  text-align: center;
  margin-bottom: 24px;
}
.templates-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.templates-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.templates-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}
.template-category {
  margin-bottom: 16px;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(245, 87, 108, 0.06) 100%);
  border-radius: 8px;
  border-left: 3px solid #667eea;
}
.category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
}
.category-count {
  font-size: 0.8rem;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.template-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
/* Premium Template Button Design */
.premium-template-button {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(229, 231, 235, 0.4);
  border-radius: 20px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  isolation: isolate;
}
.premium-template-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(245, 87, 108, 0.03) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.premium-template-button::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 22px;
  opacity: 0;
  z-index: -2;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-template-button:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 12px 24px rgba(102, 126, 234, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.premium-template-button:hover::before {
  opacity: 1;
}
.premium-template-button:hover::after {
  opacity: 0.6;
  animation: gradientPulse 2s ease-in-out infinite;
}
.premium-template-button:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes gradientPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}
.template-button-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}
/* Template Header with Icon and Title */
.template-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.template-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: subtleBounce 3s ease-in-out infinite;
}
@keyframes subtleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}
.template-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Template Description */
.template-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
  flex-grow: 1;
  font-weight: 500;
  margin-bottom: 8px;
}
/* Template Footer with Keyword and Action */
.template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 2px solid rgba(229, 231, 235, 0.3);
  margin-top: auto;
}
.template-keyword {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(245, 87, 108, 0.1) 100%);
  color: #667eea;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.template-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 600;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 12px;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}
.template-action-icon {
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-template-button:hover .template-action {
  opacity: 1;
  transform: translateX(0);
}
.premium-template-button:hover .template-action-icon {
  transform: translateX(2px);
}
.premium-template-button:hover .template-keyword {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(245, 87, 108, 0.15) 100%);
  border-color: rgba(102, 126, 234, 0.4);
  transform: scale(1.05);
}
/* ========================================
   MOBILE-FIRST NANO BANANA REDESIGN
   Pink & Yellow Theme - Mobile Optimized
======================================== */
/* Main Container - MOBILE SCROLL OPTIMIZED */
.nano-banana-container {
  padding: 16px;
  padding-bottom: 16px;
  /* Normal bottom padding */
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(135deg, #fef7ed 0%, #fff1f2 50%, #fef3c7 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .nano-banana-container {
    padding: 20px;
    max-width: var(--app-max-width);
    margin: 0 auto;
  }
}
/* Mobile Template Section */
.mobile-prompt-templates-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 12px 0;
  position: relative;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-prompt-templates-section::before {
  display: none;
}
.mobile-templates-header {
  text-align: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 8px;
}
.mobile-templates-header:hover {
  background: rgba(251, 113, 133, 0.05);
  transform: scale(1.02);
}
.mobile-templates-header:active {
  transform: scale(0.98);
}
.templates-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(251, 113, 133, 0.3));
  animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 2px 8px rgba(251, 113, 133, 0.3));
  }

  50% {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
  }
}
.mobile-templates-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.templates-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
  text-align: center;
}
/* Mobile Template Category */
.mobile-template-category {
  margin-bottom: 10px;
  /* background: hsl(var(--card)); */
  /* padding: 16px; */
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
}
.mobile-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.1) 0%, rgba(251, 191, 36, 0.08) 100%);
  border-radius: 12px;
  border-left: 4px solid #f472b6;
  box-shadow: 0 2px 8px rgba(251, 113, 133, 0.1);
}
.mobile-category-title {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  background-clip: text;
  letter-spacing: -0.01em;
}
.category-count {
  background: rgba(251, 113, 133, 0.15);
  color: #ec4899;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(251, 113, 133, 0.2);
}
/* Mobile Template Grid - MOBILE SAFE 3 COLUMNS */
.mobile-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
/* Mobile Template Button - OVERFLOW SAFE */
.mobile-template-button {
  position: relative;
  background: rgb(156, 163, 175);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(156, 163, 175, 0.3);
  border-radius: 12px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 4px 12px rgba(251, 113, 133, 0.08),
    0 2px 6px rgba(251, 191, 36, 0.05);
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
  word-break: break-word;
}
.mobile-template-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.05) 0%, rgba(251, 191, 36, 0.03) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.mobile-template-button:hover,
.mobile-template-button:active {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow:
    0 8px 24px rgba(251, 113, 133, 0.15),
    0 4px 12px rgba(251, 191, 36, 0.1);
}
.mobile-template-button:hover::before,
.mobile-template-button:active::before {
  opacity: 1;
}
/* Selected State */
.mobile-template-button.selected {
  border-color: hsl(47 100% 65%);
  background: linear-gradient(135deg, hsl(47 100% 65%) 0%, #f59e0b 100%);
  box-shadow:
    0 8px 24px rgba(251, 191, 36, 0.3),
    0 4px 12px rgba(245, 158, 11, 0.2),
    0 0 0 2px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px) scale(1.01);
}
.mobile-template-button.selected::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.1) 0%, rgba(251, 191, 36, 0.08) 100%);
}
.template-button-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.template-button-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: black;
  line-height: 1.2;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  hyphens: auto;
}
.mobile-template-button.selected .template-button-title {
  color: #374151;
  font-weight: 700;
}
.selection-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  background: hsl(280 70% 60%);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.4);
  animation: checkBounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
/* Mobile Prompt Section */
.mobile-prompt-section {
  margin: 20px 0;
}
.mobile-prompt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
}
.prompt-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(251, 113, 133, 0.3));
}
.mobile-prompt-textarea {
  width: 100%;
  max-width: 100%;
  height: 120px;
  padding: 16px;
  padding-right: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: rgba(255, 255, 255, 0.03);
  color: hsl(var(--foreground));
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  touch-action: manipulation;
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
}
.mobile-prompt-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.mobile-prompt-textarea::placeholder {
  color: hsl(var(--muted-foreground));
  font-style: italic;
  opacity: 0.5;
}
/* Mobile Settings Section */
.mobile-settings-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 20px;
  padding: 20px 16px;
  margin: 20px 0;
  box-shadow:
    0 8px 32px rgba(251, 113, 133, 0.1),
    0 4px 16px rgba(251, 191, 36, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10;
}
.mobile-settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  justify-content: center;
}
.mobile-settings-title {
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mobile-settings-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .mobile-settings-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile-optimized dropdown styles */
  .premium-dropdown-trigger {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .premium-dropdown-label {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .dropdown-main-value {
    font-size: 0.95rem;
  }

  .dropdown-description {
    font-size: 0.8rem;
  }

  .dropdown-option {
    padding: 14px 16px;
  }

  .option-label {
    font-size: 0.9rem;
  }

  .option-description {
    font-size: 0.75rem;
  }
}
/* Enhanced Dropdown with Higher Z-Index - MOBILE SAFE */
.premium-dropdown {
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 999999;
  overflow: visible;
  box-sizing: border-box;
}
/* CRITICAL: Fix dropdown visibility issues */
.premium-dropdown-container {
  position: relative;
  z-index: 999999;
  isolation: isolate;
  overflow: visible !important;
  /* Ensure dropdown content is never clipped */
}
.premium-dropdown-container.open {
  z-index: 1000000 !important;
  isolation: isolate;
  overflow: visible !important;
}
/* Premium Dropdown Wrapper - Pink/Yellow Theme */
.premium-dropdown-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  z-index: 1000;
  overflow: visible !important;
  /* Critical: never clip dropdown content */
}
/* CRITICAL: Ensure all parent containers allow dropdown overflow */
.premium-dropdown-wrapper,
.premium-dropdown-wrapper *:not(.premium-dropdown-menu):not(.dropdown-option) {
  overflow: visible !important;
}
/* Settings section should not clip dropdowns */
[style*="position: relative"]:has(.premium-dropdown-wrapper) {
  overflow: visible !important;
}
/* Force dropdown to be above all content with absolute positioning */
.premium-dropdown-menu {
  position: absolute !important;
  z-index: 9999999 !important;
  transform: none !important;
  /* Remove any transforms that might interfere */
}
.premium-dropdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
}
.label-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(251, 113, 133, 0.3));
  animation: subtleGlow 4s ease-in-out infinite;
}
@keyframes subtleGlow {

  0%,
  100% {
    filter: drop-shadow(0 1px 2px rgba(251, 113, 133, 0.3));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
    transform: scale(1.05);
  }
}
.premium-dropdown-container {
  position: relative;
  z-index: 999999;
  isolation: isolate;
}
.premium-dropdown-container.open {
  z-index: 1000000 !important;
  isolation: isolate;
}
.premium-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  overflow: visible !important;
  /* Allow all content to be visible */
  z-index: 1000000 !important;
  box-shadow:
    0 20px 40px rgba(251, 113, 133, 0.15),
    0 8px 16px rgba(251, 191, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  /* CRITICAL: Ensure dropdown can extend beyond parent container */
  min-height: auto;
  max-height: none;
}
.premium-dropdown-trigger {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(255, 255, 255, 0.95);
}
.premium-dropdown-trigger:hover {
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow:
    0 8px 16px rgba(251, 113, 133, 0.1),
    0 0 0 3px rgba(251, 113, 133, 0.1);
}
.premium-dropdown-container.open .premium-dropdown-trigger {
  border-color: #f472b6;
  box-shadow:
    0 12px 24px rgba(251, 113, 133, 0.15),
    0 0 0 3px rgba(251, 113, 133, 0.15);
}
.dropdown-option:hover {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.08) 0%, rgba(251, 191, 36, 0.06) 100%);
}
.dropdown-option.selected {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
  border-left: 4px solid #f472b6;
}
.dropdown-chevron.rotated {
  color: #f472b6;
}
.option-check {
  color: #f472b6;
}
/* Mobile Generate Button */
.mobile-generate-button {
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(251, 113, 133, 0.3),
    0 4px 12px rgba(251, 191, 36, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin: 5px 0 5px 0;
  /* Reduced margin for compact layout */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  /* Ensure button is always accessible on mobile */
  min-height: 56px;
  z-index: 10;
}
.mobile-generate-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.mobile-generate-button:hover:not(.disabled):not(.loading) {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 32px rgba(251, 113, 133, 0.4),
    0 8px 16px rgba(251, 191, 36, 0.3);
}
.mobile-generate-button:hover:not(.disabled):not(.loading)::before {
  opacity: 1;
}
.mobile-generate-button:active:not(.disabled):not(.loading) {
  transform: translateY(-1px) scale(1.01);
}
.mobile-generate-button.loading {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  pointer-events: none;
  animation: pulse 1.5s ease-in-out infinite;
}
.mobile-generate-button.disabled {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}
.generate-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.generate-text {
  position: relative;
  z-index: 2;
}
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}
/* CRITICAL: Image upload and preview container fixes */
.nano-banana-container img {
  max-width: 100% !important;
  height: auto;
  box-sizing: border-box !important;
}
/* Fix any grid layouts that might overflow */
.nano-banana-container [style*="display: grid"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
/* Fix any absolute positioned elements */
.nano-banana-container [style*="position: absolute"] {
  max-width: calc(100vw - 32px) !important;
}
/* Force all children to respect container bounds */
.nano-banana-container>* {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
}
/* ULTIMATE MOBILE OVERFLOW PREVENTION - OPTIMIZED */
* {
  box-sizing: border-box !important;
}
html,
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-width: 100vw !important;
  width: 100% !important;
  height: auto !important;
}
.nano-banana-container {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  position: relative;
}
.nano-banana-container>* {
  word-wrap: break-word !important;
}
/* Prevent specific elements from causing overflow */
pre,
code {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}
textarea {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* Mobile Responsive Adjustments */
@media (max-width: 480px) {

  /* Fix iOS Safari viewport issues */
  body {
    min-height: -webkit-fill-available;
  }

  #root {
    min-height: -webkit-fill-available;
  }

  .nano-banana-container {
    padding: 12px;
    padding-bottom: 20px;
    /* Minimal bottom padding */
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-prompt-templates-section,
  .mobile-settings-section {
    padding: 16px 12px;
    margin: 16px 0;
    border-radius: 16px;
  }

  .mobile-template-grid {
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .mobile-template-button {
    padding: 4px 6px;
    min-height: 28px;
    border-radius: 8px;
  }

  .template-button-title {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .mobile-templates-title {
    font-size: 1.1rem;
  }

  .mobile-settings-title {
    font-size: 1.1rem;
  }

  .templates-icon {
    font-size: 2rem;
  }

  .mobile-prompt-textarea {
    height: 100px;
    padding: 14px;
    font-size: 0.9rem;
  }

  .mobile-generate-button {
    padding: 16px 18px;
    font-size: 1rem;
    margin-bottom: 20px;
    /* Normal spacing */
    position: relative;
    z-index: 100;
  }

  .generate-icon {
    font-size: 1.2rem;
  }

  /* Ensure result sections have proper spacing on mobile */
  div[style*="marginTop: 20px"] {
    margin-bottom: 20px !important;
  }

  /* Timer and loading state mobile fixes */
  div[style*="backgroundColor: #FEF3C7"] {
    margin-bottom: 20px !important;
  }

  div[style*="backgroundColor: #F3F4F6"] {
    margin-bottom: 20px !important;
    position: relative;
    z-index: 1;
  }
}
/* Premium loading state for buttons */
.premium-template-button.loading {
  pointer-events: none;
  opacity: 0.7;
}
.premium-template-button.loading::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(245, 87, 108, 0.08) 100%);
  animation: buttonShimmer 1.5s ease-in-out infinite;
}
@keyframes buttonShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
/* Removed overlay for cleaner design */
/* Compact Settings Section */
.compact-settings-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.compact-settings-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(245, 87, 108, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
}
.compact-settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  justify-content: center;
}
.compact-settings-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compact-settings-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Premium Prompt Input Section */
.premium-prompt-section {
  margin: 24px 0;
}
.prompt-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.premium-textarea {
  width: 100%;
  height: 120px;
  padding: 16px 18px;
  border: 2px solid rgba(229, 231, 235, 0.6);
  border-radius: 16px;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: #374151;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.premium-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 0 0 4px rgba(102, 126, 234, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}
.premium-textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}
/* Responsive design */
@media (max-width: 768px) {
  .homepage-title {
    font-size: 2.5rem;
  }

  .premium-button {
    padding: 20px;
  }

  .button-icon {
    font-size: 1.8rem;
  }

  .button-title {
    font-size: 1.2rem;
  }

  .nano-banana-title {
    font-size: 2.8rem;
  }

  .premium-settings-section {
    padding: 24px 20px;
    margin: 24px 0;
  }

  .premium-settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-icon {
    font-size: 2rem;
  }

  .settings-title {
    font-size: 1.3rem;
  }

  .premium-dropdown-trigger {
    padding: 14px 16px;
  }

  .dropdown-main-value {
    font-size: 0.95rem;
  }

  .dropdown-description {
    font-size: 0.75rem;
  }

  /* Mobile responsive for new components */
  .prompt-templates-section {
    padding: 16px 12px;
    margin: 16px 0;
  }

  .template-category {
    margin-bottom: 12px;
  }

  .category-header {
    padding: 4px 8px;
    margin-bottom: 6px;
  }

  .templates-title {
    font-size: 1.2rem;
  }

  .template-buttons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .premium-template-button {
    padding: 18px 16px;
    min-height: 110px;
    border-radius: 16px;
  }

  .template-header {
    gap: 8px;
    margin-bottom: 6px;
  }

  .template-icon {
    font-size: 1.4rem;
  }

  .template-title {
    font-size: 0.95rem;
  }

  .template-description {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .template-footer {
    padding-top: 8px;
  }

  .template-keyword {
    padding: 6px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  .template-action {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  /* Mobile hover effects are reduced for touch devices */
  .premium-template-button:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .compact-settings-section {
    padding: 16px 18px;
  }

  .compact-settings-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .compact-settings-title {
    font-size: 1rem;
  }

  /* Mobile responsive for prompt section */
  .premium-prompt-section {
    margin: 20px 0;
  }

  .prompt-label {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .premium-textarea {
    height: 100px;
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}
/* ========================================
   PREMIUM DASHBOARD REDESIGN - MOBILE FIRST
   Modern, Sophisticated, Premium Experience
======================================== */
/* Dashboard Container */
.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  position: relative;
  padding: 1rem;
  overflow-x: hidden;
}
/* Tools Grid */
.tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
/* Premium Header */
.premium-header {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(34, 197, 94, 0.95) 50%, rgba(59, 130, 246, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.header-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(244, 63, 94, 0.03) 100%);
  z-index: -1;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.welcome-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.welcome-avatar {
  position: relative;
}
.avatar-circle {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.8);
}
.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 0.75rem;
  height: 0.75rem;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
.welcome-text {
  flex: 1;
  min-width: 0;
}
.welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: white;
  letter-spacing: -0.01em;
}
.welcome-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 500;
}
.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.settings-button {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.logout-button {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.action-button:hover:not(.loading) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.settings-button:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}
.logout-button:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
  border-color: rgba(244, 63, 94, 0.3);
}
.action-button.loading {
  opacity: 0.6;
  cursor: not-allowed;
  animation: loadingPulse 1.5s ease-in-out infinite;
}
@keyframes loadingPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.8;
  }
}
.action-icon {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.action-text {
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Brand Section */
.brand-section {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding: 2rem 0;
}
.brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: brandFloat 6s ease-in-out infinite;
}
@keyframes brandFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-8px) rotate(2deg);
  }

  66% {
    transform: translateY(-4px) rotate(-1deg);
  }
}
.brand-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.brand-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.subtitle-highlight {
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.2rem;
}
.subtitle-text {
  color: #6b7280;
  font-weight: 500;
  font-size: 1.2rem;
}
.brand-features {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.feature-icon {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
/* Tools Section */
.tools-section {
  margin-bottom: 3rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1f2937 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}
/* Premium Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.tool-link {
  text-decoration: none;
  display: block;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0ms) both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Premium Tool Card */
.premium-tool-card {
  position: relative;
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.75rem;
  min-height: 80px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  isolation: isolate;
}
.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  border-radius: inherit;
}
.card-hover-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.premium-tool-card:hover .card-hover-gradient {
  opacity: 1;
}
.premium-tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.premium-tool-card:active {
  transform: translateY(-4px) scale(1.01);
  transition: all 0.2s ease;
}
/* Category Badge */
.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  z-index: 10;
}
.category-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Beta Badge */
.beta-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(10px);
}
/* Card Content */
.card-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: white;
}
.card-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: iconFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}
.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}
.card-body {
  text-align: center;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}
.card-description {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
/* Card Footer */
.card-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
}
.action-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}
.premium-tool-card:hover .action-indicator {
  opacity: 1;
  transform: translateY(0);
}
.action-text {
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.action-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.premium-tool-card:hover .action-arrow {
  transform: translateX(4px);
}
/* Card Effects */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  z-index: 10;
  pointer-events: none;
  transition: left 0.6s ease;
}
.premium-tool-card:hover .card-shimmer {
  left: 100%;
}
.card-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -3;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.premium-tool-card:hover .card-shadow {
  opacity: 1;
}
/* Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -10;
}
.floating-gradient {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  filter: blur(40px);
}
.gradient-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.gradient-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -5%;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  animation-delay: -7s;
}
.gradient-3 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: 50%;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  animation-delay: -14s;
}
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
    opacity: 0.5;
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
    opacity: 0.2;
  }
}
/* Mobile Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 0.75rem;
  }

  .premium-header {
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .welcome-section {
    width: 100%;
    gap: 0.75rem;
  }

  .avatar-circle {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .welcome-title {
    font-size: 1.25rem;
  }

  .welcome-subtitle {
    font-size: 0.9rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .action-button {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .brand-title {
    font-size: 2.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .brand-emoji {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .premium-tool-card {
    min-height: 180px;
    padding: 1.25rem;
    border-radius: 20px;
  }

  .card-icon {
    font-size: 3rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-description {
    font-size: 0.95rem;
  }

  /* Mobile hover effects (touch devices) */
  .premium-tool-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  /* Hide floating gradients on small screens for performance */
  .background-elements {
    display: none;
  }
}
@media (max-width: 480px) {
  .dashboard-container {
    padding: 0.5rem;
  }

  .premium-header {
    padding: 1rem 0.75rem;
    border-radius: 16px;
  }

  .welcome-title {
    font-size: 1.1rem;
  }

  .welcome-subtitle {
    font-size: 0.85rem;
  }

  .brand-title {
    font-size: 1.75rem;
  }

  .brand-emoji {
    font-size: 2rem;
  }

  .subtitle-highlight,
  .subtitle-text {
    font-size: 1rem;
  }

  .feature-badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .premium-tool-card {
    min-height: 70px;
    padding: 0.75rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .category-text {
    font-size: 0.7rem;
  }

  .action-indicator {
    padding: 0.5rem 1rem;
  }

  .action-text {
    font-size: 0.85rem;
  }
}
/* ========================================
   MOBILE-FIRST TOOL CARDS REDESIGN
   Clean, Native-Feel Mobile Experience
======================================== */
/* Mobile Header - Clean & Compact */
.mobile-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mobile-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.user-info {
  min-width: 0;
}
.user-greeting {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}
.user-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
}
.mobile-header .header-actions {
  display: flex;
  gap: 0.5rem;
}
.mobile-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #374151;
}
.mobile-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #6b7280;
}
.mobile-action-btn:active {
  transform: scale(0.95);
}
.logout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
/* Mobile Brand - Simplified */
.mobile-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.mobile-brand .brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.brand-tagline {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}
/* Dark mode support for new components */
@media (prefers-color-scheme: dark) {
  .mobile-header {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .user-greeting {
    color: #f9fafb;
  }

  .user-subtitle {
    color: #d1d5db;
  }

  .mobile-action-btn {
    background: rgba(55, 65, 81, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
  }

  .mobile-brand .brand-title {
    color: #f9fafb;
  }

  .brand-tagline {
    color: #9ca3af;
  }

  .mobile-section-header .section-title {
    color: #f9fafb;
  }

  .mobile-section-header .section-subtitle {
    color: #d1d5db;
  }
}
/* Mobile Section Header */
.mobile-section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.mobile-section-header .section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}
.mobile-section-header .section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}
/* Dashboard fade-in animation */
.dashboard-container {
  animation: dashboardFadeIn 0.8s ease forwards;
}
@keyframes dashboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile Tools Grid - Mobile First Design */
.mobile-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
}
/* Mobile Tool Card - Optimized for Touch */
.mobile-tool-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1rem;
  min-height: 80px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;

  /* Touch-friendly sizing */
  min-height: 72px;
  /* iOS guideline minimum */

  /* Animation entrance */
  opacity: 0;
  transform: translateY(20px);
  animation: cardSlideIn 0.6s ease forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes cardSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Card Hover and Touch States */
.mobile-tool-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--card-color, #6b7280);
}
.mobile-tool-card:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}
/* Tool Status Badge */
.tool-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  opacity: 0.8;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--card-color, #6b7280);
  animation: pulse 2s infinite;
}
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}
.status-text {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Beta Indicator */
.beta-indicator {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 1.2rem;
  opacity: 0.7;
}
/* Main Tool Content */
.tool-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
.tool-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}
.mobile-tool-card:hover .tool-icon {
  transform: scale(1.1);
}
.tool-info {
  flex: 1;
  min-width: 0;
  /* Prevents overflow */
}
.tool-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}
.tool-description {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Touch Ripple Effect */
.touch-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.touch-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-color, #6b7280) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.mobile-tool-card:active .touch-ripple {
  animation: ripple 0.6s linear;
}
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}
/* Desktop Adaptations */
@media (min-width: 768px) {
  .mobile-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
    max-width: 1000px;
  }

  .mobile-tool-card {
    min-height: 100px;
    padding: 1.25rem;
  }

  .tool-icon {
    font-size: 3rem;
  }

  .tool-title {
    font-size: 1.2rem;
  }

  .tool-description {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
}
@media (min-width: 1024px) {
  .mobile-tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .mobile-tool-card {
    min-height: 120px;
    padding: 1.5rem;
  }
}
/* Enhanced accessibility for mobile */
@media (prefers-color-scheme: dark) {
  .mobile-tool-card {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .tool-title {
    color: #f9fafb;
  }

  .tool-description {
    color: #d1d5db;
  }

  .status-text {
    color: #9ca3af;
  }
}
/* Enhanced accessibility and reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .dashboard-container,
  .brand-emoji,
  .card-icon,
  .floating-gradient,
  .icon-glow,
  .status-indicator,
  .mobile-tool-card,
  .status-dot {
    animation: none;
  }

  .premium-tool-card,
  .mobile-tool-card {
    transition: box-shadow 0.2s ease, transform 0.1s ease;
  }

  .premium-tool-card:hover,
  .mobile-tool-card:hover {
    transform: translateY(-2px);
  }

  .mobile-tool-card:active {
    transform: scale(0.99);
  }
}
/* ============================================================
   SCROLL GUARANTEE — MUST BE LAST IN FILE
   Fixes mouse wheel scroll on Windows Chrome.
   Root cause: overscroll-behavior + conflicting overflow rules
   block wheel events on Windows Chrome specifically.
   ============================================================ */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  overscroll-behavior: auto !important;
}
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh;
  overscroll-behavior: auto !important;
}
#root {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh;
  overscroll-behavior: auto !important;
}
.nano-banana-container {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}