/* ==========================================================================
   FLIGHTER v2 - NEXT-GEN MOTION UI FLIGHT BOOKING ENGINE
   Powered by Motion Tokens, Multi-Style Presets & Spring Physics
   ========================================================================== */

/* --- MOTION TOKENS & PHYSICS CURVES --- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --spring-press: cubic-bezier(0.2, 0.9, 0.3, 1.25);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-snappy: cubic-bezier(0.25, 1.25, 0.5, 1);
  --spring-panel: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-float: cubic-bezier(0.3, 0.7, 0.4, 1.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Default Dark Tokens */
  --bg-page: #0a0d14;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(24, 33, 53, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-input: rgba(15, 23, 42, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --emerald: #10b981;
  --card-radius: 20px;
  --btn-radius: 12px;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  --spotlight-color: rgba(59, 130, 246, 0.12);
}

/* Light Base Theme */
html[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.09);
  --border-focus: #2563eb;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.15);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --spotlight-color: rgba(37, 99, 235, 0.08);
}

/* --- 6 AESTHETIC STYLE PRESETS --- */

/* 1. Origin (High Craft) */
[data-style="origin"] {
  --bg-page: #090d16;
  --bg-card: rgba(15, 23, 42, 0.85);
  --border-color: rgba(255, 255, 255, 0.09);
  --card-radius: 20px;
  --btn-radius: 12px;
  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  --spotlight-color: rgba(59, 130, 246, 0.15);
}
html[data-theme="light"][data-style="origin"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-input: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --spotlight-color: rgba(59, 130, 246, 0.08);
}

/* 2. Glow (Luminous Neon Beam) */
[data-style="glow"] {
  --bg-page: #030712;
  --bg-card: rgba(17, 24, 39, 0.9);
  --border-color: rgba(99, 102, 241, 0.3);
  --border-focus: #818cf8;
  --text-primary: #ffffff;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.6);
  --accent: #ec4899;
  --card-radius: 22px;
  --btn-radius: 14px;
  --card-shadow: 0 0 35px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.35);
  --spotlight-color: rgba(168, 85, 247, 0.22);
}
html[data-theme="light"][data-style="glow"] {
  --bg-page: #faf5ff;
  --bg-card: #ffffff;
  --border-color: rgba(99, 102, 241, 0.2);
  --text-primary: #1e1b4b;
  --card-shadow: 0 0 30px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.2);
  --spotlight-color: rgba(168, 85, 247, 0.12);
}

/* 3. iOS Liquid (Backdrop Blur & Squircle) */
[data-style="ios"] {
  --bg-page: #080b12;
  --bg-card: rgba(28, 28, 30, 0.70);
  --bg-card-hover: rgba(44, 44, 46, 0.82);
  --bg-glass: rgba(28, 28, 30, 0.75);
  --bg-input: rgba(44, 44, 46, 0.65);
  --border-color: rgba(255, 255, 255, 0.16);
  --border-focus: #007aff;
  --text-primary: #f2f2f7;
  --text-secondary: #aeaeb2;
  --text-muted: #8e8e93;
  --primary: #007aff;
  --primary-hover: #0062cc;
  --primary-glow: rgba(0, 122, 255, 0.35);
  --accent: #5856d6;
  --card-radius: 28px;
  --btn-radius: 20px;
  --card-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  --spotlight-color: rgba(0, 122, 255, 0.12);
}
html[data-theme="light"][data-style="ios"] {
  --bg-page: #edf2f9;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.78);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-input: rgba(255, 255, 255, 0.55);
  --border-color: rgba(255, 255, 255, 0.8);
  --border-focus: #007aff;
  --text-primary: #1d1d1f;
  --text-secondary: #48484a;
  --text-muted: #86868b;
  --card-shadow: 0 20px 48px -12px rgba(0, 80, 220, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(255, 255, 255, 0.95) inset;
  --spotlight-color: rgba(0, 122, 255, 0.08);
}

/* iOS Dynamic Wallpaper Ambient Mesh (Provides vibrancy under frosted glass) */
html[data-style="ios"] body {
  background-color: var(--bg-page);
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.25) 0px, transparent 48%),
    radial-gradient(at 100% 0%, rgba(175, 82, 222, 0.22) 0px, transparent 48%),
    radial-gradient(at 50% 50%, rgba(52, 199, 89, 0.10) 0px, transparent 45%),
    radial-gradient(at 15% 85%, rgba(255, 45, 85, 0.12) 0px, transparent 48%),
    radial-gradient(at 90% 90%, rgba(0, 122, 255, 0.20) 0px, transparent 48%);
  background-attachment: fixed;
  background-size: 100% 100%;
}
html[data-theme="light"][data-style="ios"] body {
  background-color: #ecf2fa;
  background-image:
    radial-gradient(at 0% 0%, rgba(96, 165, 250, 0.45) 0px, transparent 45%),
    radial-gradient(at 100% 0%, rgba(192, 132, 252, 0.38) 0px, transparent 45%),
    radial-gradient(at 50% 30%, rgba(251, 146, 60, 0.18) 0px, transparent 40%),
    radial-gradient(at 10% 70%, rgba(56, 189, 248, 0.32) 0px, transparent 45%),
    radial-gradient(at 90% 85%, rgba(129, 140, 248, 0.36) 0px, transparent 45%);
  background-attachment: fixed;
  background-size: 100% 100%;
}

/* iOS Frosted Glass & Apple Specular Highlights */
[data-style="ios"] .spotlight-card,
[data-style="ios"] .filter-sidebar,
[data-style="ios"] .navbar,
[data-style="ios"] .modal-card,
[data-style="ios"] .drawer-panel {
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
}

html[data-theme="light"][data-style="ios"] .spotlight-card,
html[data-theme="light"][data-style="ios"] .filter-sidebar,
html[data-theme="light"][data-style="ios"] .modal-card,
html[data-theme="light"][data-style="ios"] .drawer-panel {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 45px -12px rgba(37, 99, 235, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.9) inset,
              0 1px 2px rgba(255, 255, 255, 0.95) inset;
}

html[data-theme="light"][data-style="ios"] .navbar {
  background: rgba(255, 255, 255, 0.70);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"][data-style="ios"] .input-with-icon input,
html[data-theme="light"][data-style="ios"] .time-chip,
html[data-theme="light"][data-style="ios"] .chip-bubble {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

html[data-theme="light"][data-style="ios"] .input-with-icon input:focus {
  background: rgba(255, 255, 255, 0.88);
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"][data-style="ios"] .segmented-control,
html[data-theme="light"][data-style="ios"] .trip-types-segmented,
html[data-theme="light"][data-style="ios"] .sort-tabs-wrapper {
  background: rgba(118, 118, 128, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"][data-style="ios"] .segment-btn.active,
html[data-theme="light"][data-style="ios"] .trip-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"][data-style="ios"] .flight-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 35px -10px rgba(37, 99, 235, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"][data-style="ios"] .flight-card:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 22px 50px -12px rgba(0, 122, 255, 0.16),
              0 0 0 1px rgba(255, 255, 255, 1) inset;
}

[data-style="ios"] .btn-primary {
  background: linear-gradient(180deg, #007aff 0%, #0066d6 100%);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: none;
}
[data-style="ios"] .btn-primary:hover {
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 4. Minimal (Clean Monochrome) */
[data-style="minimal"] {
  --bg-page: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #181818;
  --bg-glass: rgba(18, 18, 18, 0.9);
  --bg-input: #181818;
  --border-color: #262626;
  --border-focus: #ffffff;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --primary: #ffffff;
  --primary-hover: #e5e5e5;
  --primary-glow: transparent;
  --accent: #737373;
  --card-radius: 10px;
  --btn-radius: 8px;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --spotlight-color: rgba(255, 255, 255, 0.05);
}
html[data-theme="light"][data-style="minimal"] {
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #111827;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --primary: #111827;
  --primary-hover: #000000;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --spotlight-color: rgba(0, 0, 0, 0.02);
}

/* 5. Neo-Brutalist */
[data-style="brutalist"] {
  --bg-page: #18181b;
  --bg-card: #27272a;
  --bg-card-hover: #3f3f46;
  --bg-glass: #27272a;
  --bg-input: #27272a;
  --border-color: #ffffff;
  --border-focus: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --primary: #facc15;
  --primary-hover: #eab308;
  --primary-glow: transparent;
  --accent: #3b82f6;
  --card-radius: 0px;
  --btn-radius: 0px;
  --card-shadow: 5px 5px 0px #ffffff;
  --spotlight-color: rgba(250, 204, 21, 0.2);
}
html[data-theme="light"][data-style="brutalist"] {
  --bg-page: #fefce8;
  --bg-card: #ffffff;
  --bg-card-hover: #fef08a;
  --bg-glass: #ffffff;
  --bg-input: #ffffff;
  --border-color: #000000;
  --border-focus: #000000;
  --text-primary: #000000;
  --text-secondary: #1f2937;
  --text-muted: #4b5563;
  --primary: #facc15;
  --primary-hover: #eab308;
  --card-shadow: 5px 5px 0px #000000;
  --spotlight-color: rgba(250, 204, 21, 0.3);
}

/* 6. Enterprise (High Information Density) */
[data-style="enterprise"] {
  --bg-page: #0b1120;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.9);
  --bg-input: #1f2937;
  --border-color: #374151;
  --border-focus: #60a5fa;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent: #60a5fa;
  --card-radius: 6px;
  --btn-radius: 4px;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --spotlight-color: rgba(59, 130, 246, 0.08);
}
html[data-theme="light"][data-style="enterprise"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-input: #ffffff;
  --border-color: #cbd5e1;
  --border-focus: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --spotlight-color: rgba(15, 23, 42, 0.04);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body, .navbar, .search-card, .filter-sidebar, .flight-card, .modal-card, .btn, .btn-secondary, .btn-outline, .input-with-icon input, .trip-types-segmented, .trip-btn, .segmented-control, .segment-btn, .boarding-pass, .footer, .stepper button, .chip-bubble, .time-chip, .seat-btn, .theme-switch-toggle, .theme-switch-track, .theme-switch-thumb, .passenger-box, .addon-option, .price-breakdown-card, .booking-item-card {
  transition: background-color 0.4s var(--ease-out),
              color 0.3s var(--ease-out),
              border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Helpers */
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.block { display: block; }
.w-full { width: 100%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-align-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-emerald { color: #10b981; }

/* Motion Tactile Press Micro-interaction */
.motion-press {
  transition: transform 0.15s var(--spring-press), box-shadow 0.15s var(--ease-out);
}
.motion-press:active {
  transform: scale(0.96) !important;
}

/* --- VIEW TRANSITIONS (Page-wide Ripple Reveal) --- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* --- THEME SWITCH TOGGLE (Motion UI Component) --- */
.theme-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease-out);
}
.theme-switch-toggle:hover {
  border-color: var(--primary);
}

.theme-switch-track {
  width: 46px;
  height: 24px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.theme-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translateX(0px);
  transition: transform 0.35s var(--spring-bounce), background-color 0.3s var(--ease-out);
}

.theme-icon {
  transition: transform 0.35s var(--spring-bounce), opacity 0.25s var(--ease-out);
}

/* Dark mode state */
html[data-theme="dark"] .sun-icon {
  display: none !important;
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
html[data-theme="dark"] .moon-icon {
  display: block !important;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(0px);
  background: #6366f1;
}

/* Light mode state */
html[data-theme="light"] .moon-icon {
  display: none !important;
  opacity: 0;
  transform: rotate(90deg) scale(0);
}
html[data-theme="light"] .sun-icon {
  display: block !important;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html[data-theme="light"] .theme-switch-thumb {
  transform: translateX(22px);
  background: #f59e0b;
}

.theme-mode-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  user-select: none;
}

/* --- NAVBAR --- */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: all 0.3s var(--ease-out);
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--btn-radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-v2 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 6px;
  font-family: var(--font-mono);
}

/* Style Preset Switcher Segmented Bar */
.preset-switcher-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.segmented-control {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.segment-btn {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--spring-snappy);
}

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

.segment-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

[data-style="brutalist"] .segment-btn.active {
  color: #000000;
  border: 1.5px solid #000;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-selector select {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  outline: none;
}

.badge-bounce {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: transform 0.3s var(--spring-bounce);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px var(--primary-glow);
}
[data-style="brutalist"] .btn-primary {
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--bg-card);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 56px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-canvas-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, var(--spotlight-color) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px auto;
}

.motion-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.motion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* --- SPOTLIGHT CARDS (Motion UI Feature) --- */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    var(--spotlight-color),
    transparent 65%
  );
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Search Card */
.search-card {
  padding: 28px;
  margin-bottom: 32px;
}

.search-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.trip-types-segmented {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
}

.trip-btn {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--spring-snappy);
}
.trip-btn.active {
  background: var(--primary);
  color: white;
}
[data-style="brutalist"] .trip-btn.active {
  color: #000;
}

.search-selectors {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-select, .pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.pill-select select {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* Spring Panel & Popover */
.passenger-dropdown-wrapper {
  position: relative;
}

.spring-panel {
  transition: transform 0.3s var(--spring-panel), opacity 0.2s var(--ease-out);
}

.passenger-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 20px;
  width: 260px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: none;
}
.passenger-popover.show {
  display: block;
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.stepper button:hover {
  background: var(--primary);
  color: white;
}

/* Search Grid */
.search-grid {
  display: grid;
  grid-template-columns: 1.4fr auto 1.4fr 1.2fr 1.1fr;
  align-items: flex-end;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--btn-radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s var(--ease-out);
}
.input-with-icon input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-swap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 1px;
}
.btn-swap:hover {
  color: var(--primary);
  transform: rotate(180deg);
}

.btn-search {
  width: 100%;
  height: 49px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Quick Route Chips */
.popular-routes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}
.routes-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-bubble {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--spring-snappy);
}
.chip-bubble:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* --- RESULTS SECTION --- */
.main-content {
  padding: 20px 20px 80px 20px;
}

.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar */
.filter-sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 90px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.filter-box {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}
.filter-box:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.time-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.time-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--spring-snappy);
}
.time-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-box-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.price-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

/* Results Column */
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.sort-tabs-wrapper {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 4px;
}

.sort-tabs {
  display: flex;
  gap: 4px;
}

.sort-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px;
  background: transparent;
  border: none;
  border-radius: calc(var(--btn-radius) - 2px);
  cursor: pointer;
  transition: all 0.2s var(--spring-snappy);
}

.sort-tab .sort-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.sort-tab .sort-hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.sort-tab.active {
  background: var(--primary);
}
.sort-tab.active .sort-name, .sort-tab.active .sort-hint {
  color: white;
}
[data-style="brutalist"] .sort-tab.active .sort-name,
[data-style="brutalist"] .sort-tab.active .sort-hint {
  color: #000;
}

/* Flight Cards with Motion Spotlight */
.flight-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flight-card {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: default;
}
.flight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.flight-main-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flight-airline-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--btn-radius);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--primary);
  font-family: var(--font-mono);
}

.airline-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.aircraft-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 2px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.flight-timeline {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 20px;
}

.flight-point {
  display: flex;
  flex-direction: column;
}
.flight-point.dest {
  text-align: right;
}

.flight-time {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.flight-code {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flight-city {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.flight-duration-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.duration-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.flight-line {
  width: 100%;
  height: 2px;
  background: var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-plane-icon {
  position: absolute;
  color: var(--primary);
  background: var(--bg-card);
  padding: 0 4px;
}

.stops-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 5px;
}
.stops-label.direct { color: #10b981; }
.stops-label.layover { color: #f59e0b; }

.flight-amenities {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flight-price-col {
  border-left: 1px solid var(--border-color);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 160px;
}

.price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-mono);
}

.price-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Animated Ticker Digit */
.ticker-digit {
  font-family: var(--font-mono);
  display: inline-block;
  transition: transform 0.25s var(--spring-snappy);
}

/* --- CENTER MORPH MODAL (Motion UI Component) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.center-morph {
  animation: centerMorphIn 0.3s var(--spring-panel) forwards;
  transform-origin: center center;
}
@keyframes centerMorphIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 780px; }
.modal-ticket { max-width: 650px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header.no-border { border-bottom: none; }

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-input);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- SEAT SELECTION & AIRPLANE CABIN --- */
.seat-instruction-banner {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.seat-legend {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.legend-box.available { background: var(--bg-card); border: 1px solid var(--border-color); }
.legend-box.selected { background: var(--primary); }
.legend-box.occupied { background: rgba(255, 255, 255, 0.1); }
.legend-box.extra-legroom { background: #8b5cf6; }

.airplane-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 90px 90px 24px 24px;
  padding: 40px 20px 30px 20px;
  position: relative;
}

.plane-nose {
  width: 90px;
  height: 24px;
  background: var(--border-color);
  border-radius: 40px 40px 0 0;
  margin: -32px auto 16px auto;
}

.cabin-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cabin-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
}
.cabin-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-color);
}
.cabin-divider span {
  position: relative;
  background: var(--bg-input);
  padding: 0 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.seat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.row-number {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.aisle-gap {
  width: 20px;
}

.seat-btn {
  width: 32px;
  height: 36px;
  border-radius: 6px 6px 4px 4px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--spring-bounce);
}
.seat-btn:hover:not(:disabled) {
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.08);
}
.seat-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.08);
}
.seat-btn.occupied {
  opacity: 0.3;
  cursor: not-allowed;
}
.seat-btn.extra-legroom {
  border-color: #8b5cf6;
}

/* --- ACTION SWAP BUTTON (Motion UI Primitive) --- */
.btn-action-swap {
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.action-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--spring-snappy);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.check-draw {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.4s var(--ease-out) forwards;
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* Form Styles */
.form-section-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 20px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.passenger-box, .addon-option {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.price-breakdown-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 18px;
  margin: 20px 0;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.breakdown-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  margin-top: 10px;
}

.modal-footer-inside {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* --- 3D TILT BOARDING PASS (Motion UI Feature) --- */
.success-badge-motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.boarding-pass {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
}

.pass-top {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pass-airline-name { font-size: 1.25rem; font-weight: 800; }
.pass-flight-no { font-size: 0.875rem; opacity: 0.85; margin-left: 6px; font-family: var(--font-mono); }
.pass-class-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pass-route-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px;
  border-bottom: 2px dashed var(--border-color);
}
.pass-origin, .pass-dest { display: flex; flex-direction: column; }
.pass-dest { text-align: right; }
.pass-city { font-size: 0.875rem; color: var(--text-muted); }
.pass-code { font-size: 2.25rem; font-weight: 800; line-height: 1.1; font-family: var(--font-mono); }
.pass-time { font-size: 0.875rem; font-weight: 700; font-family: var(--font-mono); }

.pass-flight-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.pass-duration { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-muted); }
.flight-line-dot { color: var(--primary); margin: 2px 0; }
.pass-stops-text { font-size: 0.75rem; color: #10b981; font-weight: 600; }

.pass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
  padding: 24px;
}
.pass-item { display: flex; flex-direction: column; }
.pass-item .label { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); }
.pass-item .val { font-size: 0.9375rem; font-weight: 700; font-family: var(--font-mono); }

.pass-stub {
  background: var(--bg-input);
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.barcode-bars {
  height: 38px;
  width: 200px;
  background: repeating-linear-gradient(90deg, var(--text-primary), var(--text-primary) 2px, transparent 2px, transparent 4px, var(--text-primary) 4px, var(--text-primary) 7px, transparent 7px, transparent 9px);
  border-radius: 2px;
}
.barcode-number { font-size: 0.6875rem; font-family: var(--font-mono); color: var(--text-muted); display: block; margin-top: 4px; }
.pass-notice { font-size: 0.75rem; color: var(--text-muted); max-width: 220px; text-align: right; }

.modal-actions-split {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* --- SPRING DRAWER --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.spring-drawer {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  height: 100%;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.3s var(--spring-panel);
}
@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-item-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 16px;
  transition: all 0.2s var(--spring-snappy);
}
.booking-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.booking-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.booking-pnr { font-weight: 800; color: var(--primary); font-family: var(--font-mono); }
.booking-status { font-size: 0.6875rem; font-weight: 700; color: #10b981; background: rgba(16, 185, 129, 0.15); padding: 2px 8px; border-radius: 9999px; }
.booking-route { font-size: 1.125rem; font-weight: 800; margin-bottom: 6px; font-family: var(--font-mono); }
.booking-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 10px; }
.booking-actions { display: flex; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 10px; }
.booking-actions button { flex: 1; }

/* Toast Stack */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}
.toast-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toastPop 0.3s var(--spring-bounce);
}
@keyframes toastPop {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 300;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 960px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .btn-swap { display: none; }
  .results-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .flight-card { grid-template-columns: 1fr; }
  .flight-price-col { border-left: none; border-top: 1px solid var(--border-color); padding-left: 0; padding-top: 16px; }
  .preset-switcher-container { display: none; }
}

@media (max-width: 600px) {
  .search-grid { grid-template-columns: 1fr; }
  .flight-timeline { grid-template-columns: 70px 1fr 70px; gap: 8px; }
  .pass-grid { grid-template-columns: 1fr 1fr; }
  .pass-stub { flex-direction: column; gap: 12px; }
}
