/* ==========================================================================
   SOMETHING IS COOKING — GEMINI AURORA GLASSMORPHISM DESIGN SYSTEM
   Crafted with UI-UX-PRO-MAX principles
   ========================================================================== */

:root {
  /* System Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme: Gemini Aurora (Default) */
  --theme-accent-1: #4285F4;       /* Gemini Blue */
  --theme-accent-2: #9B51E0;       /* Cosmic Violet */
  --theme-accent-3: #FF6492;       /* Radiant Rose */
  --theme-accent-4: #00F2FE;       /* Luminous Cyan */
  --glow-primary: rgba(66, 133, 244, 0.45);
  --glow-secondary: rgba(155, 81, 224, 0.35);
  --glow-tertiary: rgba(255, 100, 146, 0.3);

  /* Deep Cosmic Space Colors */
  --bg-deep: #07090E;
  --bg-surface: rgba(14, 18, 30, 0.6);
  --bg-surface-high: rgba(22, 28, 48, 0.75);

  /* Glassmorphism Specs */
  --glass-blur: 32px;
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-border-highlight: 1px solid rgba(255, 255, 255, 0.28);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  --glass-inner-shadow: inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4);
  --glass-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.75), 0 0 50px -15px var(--glow-primary);

  /* Text & Foreground */
  --text-main: #FFFFFF;
  --text-secondary: rgba(240, 244, 255, 0.72);
  --text-muted: rgba(210, 220, 245, 0.45);

  /* Transitions & Animation Timers */
  --ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme 2: Cyber Ember (Cooking Flame & Gold) */
body[data-theme="ember"] {
  --theme-accent-1: #F59E0B;
  --theme-accent-2: #EF4444;
  --theme-accent-3: #EC4899;
  --theme-accent-4: #FBBF24;
  --glow-primary: rgba(245, 158, 11, 0.45);
  --glow-secondary: rgba(239, 68, 68, 0.35);
  --glow-tertiary: rgba(236, 72, 153, 0.3);
}

/* Theme 3: Cosmic Cyan (Hyper Teal & Mint Aurora) */
body[data-theme="cyan"] {
  --theme-accent-1: #06B6D4;
  --theme-accent-2: #10B981;
  --theme-accent-3: #3B82F6;
  --theme-accent-4: #2DD4BF;
  --glow-primary: rgba(6, 182, 212, 0.45);
  --glow-secondary: rgba(16, 185, 129, 0.35);
  --glow-tertiary: rgba(59, 130, 246, 0.3);
}

/* Theme 4: Quantum Pink (Ultra Magenta & Orchid) */
body[data-theme="quantum"] {
  --theme-accent-1: #D946EF;
  --theme-accent-2: #8B5CF6;
  --theme-accent-3: #F43F5E;
  --theme-accent-4: #E879F9;
  --glow-primary: rgba(217, 70, 239, 0.45);
  --glow-secondary: rgba(139, 92, 246, 0.35);
  --glow-tertiary: rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* ==========================================================================
   BACKGROUND VISUAL LAYERS
   ========================================================================== */

#aurora-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* High-frequency micro-grain texture for tactile frosted realism */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Soft ambient atmospheric glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  transition: background 1.2s var(--ease-gentle), transform 2s var(--ease-gentle);
  will-change: transform, opacity;
}

.glow-1 {
  top: -15%;
  left: 15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--theme-accent-1) 0%, transparent 70%);
  animation: floatOrb1 18s infinite alternate ease-in-out;
}

.glow-2 {
  bottom: -20%;
  right: 10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--theme-accent-2) 0%, transparent 70%);
  animation: floatOrb2 22s infinite alternate ease-in-out;
}

.glow-3 {
  top: 35%;
  left: 45%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--theme-accent-3) 0%, transparent 70%);
  animation: floatOrb3 16s infinite alternate ease-in-out;
  opacity: 0.35;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 8vh) scale(1.15); }
  100% { transform: translate(-4vw, -5vh) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7vw, -6vh) scale(1.2); }
  100% { transform: translate(5vw, 4vh) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  50% { transform: translate(-42%, -55%) scale(1.25); }
  100% { transform: translate(-55%, -45%) scale(1); }
}

/* ==========================================================================
   APP SHELL VIEWPORT
   ========================================================================== */

.app-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 3vh, 32px) clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}

/* ==========================================================================
   TOP NAVIGATION BAR (CENTERED BRAND PILL)
   ========================================================================== */

.top-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 44px;
}

/* Glass Pill Base */
.glass-pill {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  border-radius: 9999px;
  transition: all 0.25s var(--ease-gentle);
}

.glass-pill:hover {
  background: var(--bg-surface-high);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--glass-highlight), 0 12px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--glow-primary);
}

/* Brand Pill: Perfectly Centered */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  cursor: default;
  margin: 0 auto;
}

.gemini-star-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  animation: starBreathe 4s infinite ease-in-out;
}

@keyframes starBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px var(--theme-accent-1)); }
  50% { transform: scale(1.18) rotate(90deg); filter: drop-shadow(0 0 12px var(--theme-accent-3)); }
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
}

.ping-dot {
  position: absolute;
  left: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34D399;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.status-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Actions (Positioned on the Right) */
.nav-actions {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
}

.icon-pill .icon {
  width: 17px;
  height: 17px;
}

.icon-pill:focus-visible {
  box-shadow: 0 0 0 2px var(--theme-accent-1);
}

.theme-name-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  color: #FFFFFF;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   HERO STAGE: "SOMETHING IS COOKING"
   ========================================================================== */

.hero-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
  padding: 20px 0;
}

/* Hero Glass Container */
.hero-glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(38px, 6vw, 68px) clamp(24px, 5vw, 60px);
  border-radius: clamp(32px, 5vw, 48px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), var(--bg-surface);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: var(--glass-border-highlight);
  box-shadow: var(--glass-shadow), var(--glass-highlight), var(--glass-inner-shadow);
  transition: transform 0.15s ease-out, box-shadow 0.4s var(--ease-gentle), border-color 0.4s var(--ease-gentle);
  transform-style: preserve-3d;
  cursor: pointer;
  max-width: 860px;
  width: min(92vw, 820px);
  outline: none;
  overflow: visible;
}

.hero-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 40px 100px -15px rgba(0, 0, 0, 0.85), 0 0 70px -10px var(--glow-primary);
}

.hero-glass-card:focus-visible {
  outline: 2px solid var(--theme-accent-1);
  outline-offset: 6px;
}

/* Specular Light Flare */
.card-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   THE HERO PHRASE: "Something is Cooking."
   ========================================================================== */

.word-container {
  position: relative;
  display: inline-block;
  transform: translateZ(50px);
  text-align: center;
  padding: 8px 12px 20px 12px;
  width: 100%;
  overflow: visible;
}

.word-hero {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.4vw, 5.5rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.035em;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.32em;
  row-gap: 0.12em;
  cursor: pointer;
  text-align: center;
  padding: 0.08em 0.08em 0.32em 0.08em;
  overflow: visible;

  /* Gemini dynamic animated gradient text fill */
  background: linear-gradient(
    115deg,
    #FFFFFF 0%,
    #F3F7FF 18%,
    var(--theme-accent-4) 38%,
    var(--theme-accent-1) 58%,
    var(--theme-accent-2) 78%,
    var(--theme-accent-3) 92%,
    #FFFFFF 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: geminiGradientFlow 8s infinite linear;
  filter: drop-shadow(0 0 35px var(--glow-primary));
  transition: filter 0.3s ease, transform 0.2s ease;
}

@keyframes geminiGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.word-hero:hover {
  filter: drop-shadow(0 0 55px var(--glow-primary)) drop-shadow(0 0 85px var(--glow-secondary));
}

.word-group {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  padding-bottom: 0.22em;
  overflow: visible;
}

/* Individual letter bouncy interaction */
.letter-wrap {
  display: inline-block;
  padding-bottom: 0.18em;
  line-height: inherit;
  overflow: visible;
  transition: transform 0.3s var(--ease-elastic), filter 0.3s ease;
}

.letter-wrap:hover {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 0 15px #FFFFFF);
}

/* Pulsing terminal dot */
.hero-dot {
  display: inline-block;
  margin-left: -0.04em;
  padding-bottom: 0.15em;
  background: linear-gradient(135deg, var(--theme-accent-3), var(--theme-accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dotSimmer 1.8s infinite ease-in-out;
  transform-origin: center;
}

@keyframes dotSimmer {
  0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 8px var(--theme-accent-3)); }
  50% { transform: scale(1.35) translateY(-3px); filter: drop-shadow(0 0 24px var(--theme-accent-1)); }
}

/* Deep underglow mirror reflection */
.text-glow-shadow {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.4vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.35;
  color: var(--theme-accent-2);
  filter: blur(28px);
  opacity: 0.32;
  transform: scaleY(-0.45) translateY(-6px);
  pointer-events: none;
  z-index: 1;
  transition: color 0.8s ease;
}

/* ==========================================================================
   SIMMER FLUID GAUGE (CONTAINED INSIDE CARD)
   ========================================================================== */

.fluid-simmer-gauge {
  width: 100%;
  max-width: 280px;
  margin-top: clamp(24px, 4vh, 34px);
  transform: translateZ(25px);
  box-sizing: border-box;
}

.gauge-track {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden; /* STRICTLY CONTAINED: NEVER POKES OUT OF THE CARD */
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.gauge-fluid {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--theme-accent-4) 25%,
    var(--theme-accent-1) 50%,
    var(--theme-accent-3) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: simmerFluidMove 3s infinite linear;
}

@keyframes simmerFluidMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Micro-caption below the gauge */
.micro-caption {
  margin-top: clamp(14px, 2.5vh, 22px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateZ(20px);
  transition: color 0.3s ease;
}

.caption-sparkle {
  color: var(--theme-accent-1);
  font-size: 0.82rem;
  animation: sparkleTwinkle 3s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ==========================================================================
   ORBITING SATELLITE SPARKLES
   ========================================================================== */

.star-orbit {
  position: absolute;
  inset: -25px;
  border-radius: inherit;
  pointer-events: none;
  animation: orbitRotate 24s infinite linear;
}

@keyframes orbitRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.satellite-sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  color: #FFFFFF;
  filter: drop-shadow(0 0 10px var(--theme-accent-1)) drop-shadow(0 0 20px var(--theme-accent-3));
}

.spark-1 {
  top: -10px;
  right: 25%;
  animation: sparklePulse 3s infinite ease-in-out;
}

.spark-2 {
  bottom: -10px;
  left: 20%;
  animation: sparklePulse 3s infinite ease-in-out 1.5s;
}

@keyframes sparklePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ==========================================================================
   BOTTOM FLOATING DOCK (GEMINI APP STYLE)
   ========================================================================== */

.bottom-dock {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.glass-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface-high);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: var(--glass-border-highlight);
  box-shadow: var(--glass-highlight), 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 35px -10px var(--glow-primary);
  border-radius: 9999px;
  max-width: 90vw;
}

.dock-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: all 0.25s var(--ease-gentle);
}

.dock-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.dock-action-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.dock-action-btn:hover .dock-icon {
  transform: scale(1.12);
  stroke: var(--theme-accent-4);
}

.dock-action-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--theme-accent-1);
}

/* Primary "Get Notified" button with Gemini gradient shine */
.primary-action {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.22), rgba(155, 81, 224, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.primary-action:hover {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.4), rgba(155, 81, 224, 0.4));
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px -5px var(--glow-primary);
}

.badge-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shineSweep 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 80% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* ==========================================================================
   MODAL DIALOGS (GEMINI FROSTED GLASS SHEETS)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease-gentle), visibility 0.3s var(--ease-gentle);
}

.modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-glass-sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(28, 34, 54, 0.85) 0%, rgba(16, 20, 36, 0.95) 100%);
  border: var(--glass-border-highlight);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: var(--glass-highlight), 0 30px 90px -10px rgba(0, 0, 0, 0.85), 0 0 50px -10px var(--glow-primary);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  transform: scale(1) translateY(0);
  transition: transform 0.35s var(--ease-elastic);
}

.modal-backdrop.hidden .modal-glass-sheet {
  transform: scale(0.94) translateY(16px);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: scale(1.08);
}

.modal-close-btn svg {
  width: 17px;
  height: 17px;
}

.modal-header {
  text-align: left;
  margin-bottom: 22px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px var(--glow-primary);
}

.modal-icon-badge svg {
  width: 22px;
  height: 22px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Input & Form Styling */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .input-wrapper {
    flex-direction: row;
  }
}

.glass-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: #FFFFFF;
  outline: none;
  transition: all 0.25s ease;
}

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

.glass-input:focus {
  border-color: var(--theme-accent-1);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--theme-accent-1) 0%, var(--theme-accent-2) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  outline: none;
  transition: all 0.25s var(--ease-gentle);
  box-shadow: 0 4px 18px var(--glow-primary);
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 8px 25px var(--glow-primary);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.feedback-msg {
  font-size: 0.82rem;
  padding: 4px 2px;
  min-height: 20px;
  transition: all 0.2s ease;
}

.feedback-msg.success {
  color: #34D399;
}

.feedback-msg.error {
  color: #F87171;
}

/* ==========================================================================
   TOAST PILL
   ========================================================================== */

.toast-pill {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(18, 24, 40, 0.88);
  border: var(--glass-border-highlight);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 10px 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: #FFFFFF;
  z-index: 150;
  opacity: 1;
  transition: all 0.3s var(--ease-elastic);
}

.toast-pill.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}

.toast-icon {
  width: 17px;
  height: 17px;
  stroke: #34D399;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 640px) {
  .app-viewport {
    padding: 14px 16px;
  }

  .status-label {
    display: none;
  }

  .top-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-pill {
    margin: 0 auto;
  }

  .nav-actions {
    position: absolute;
    right: 0;
  }

  .hero-glass-card {
    padding: 36px 18px;
    width: 95vw;
  }

  .word-hero {
    font-size: clamp(2rem, 8vw, 2.9rem);
  }

  .dock-btn-label {
    font-size: 0.78rem;
  }

  .dock-action-btn {
    padding: 9px 14px;
  }

  .orbit-outer {
    display: none; /* Reduce visual noise on compact screens */
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 0.82rem;
  }

  .status-indicator {
    padding-left: 6px;
  }

  .word-hero {
    font-size: 1.85rem;
  }

  .dock-action-btn {
    padding: 8px 12px;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-glass-card {
    transform: none !important;
  }

  #aurora-canvas {
    display: none;
  }
}
