/* ==========================================================================
   FindYourPassport - Field Cartographer's Logbook Theme
   ========================================================================== */

:root {
  /* Field Cartographer Canvas & Archival Color Palette */
  --color-sky-light: #f4f8fc;
  --color-sky-deep: #edf4fa;
  --color-paper: #faf8f4; /* warm unbleached cotton paper stock */
  --color-paper-alt: #fdfbf7;
  --color-paper-warm: #fdf8ed; /* parchment tinted callout */
  --color-ink: #0a1b39;
  --color-ink-muted: #475569;
  --color-ink-faint: #94a3b8;
  --color-amber: #d97706;
  --color-amber-light: #fef3c7;
  --color-amber-dark: #b45309;
  --color-brass: #d4af37; /* antique brass */
  --color-ochre: #92400e; /* warm antique ochre */
  --color-mint: #059669;
  --color-mint-light: #d1fae5;
  --color-border: #d9e5f0; /* subtle hairline borders */
  --color-border-hover: #cbd5e1;
  --color-card-border: #d9e5f0;

  /* Typography: Editorial Serif, Precision Sans, Space Mono & Field Typewriter */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;
  --font-typewriter: 'Courier New', Courier, monospace;

  /* Elevation Shadows: Tactile physical shadows */
  --shadow-sm: 0 1px 3px rgba(10, 27, 57, 0.04), 0 1px 2px rgba(10, 27, 57, 0.03);
  --shadow-md: 0 4px 14px rgba(10, 27, 57, 0.05), 0 2px 4px rgba(10, 27, 57, 0.03);
  --shadow-lg: 0 14px 34px -6px rgba(10, 27, 57, 0.07);
  --shadow-card: 0 14px 34px -6px rgba(10, 27, 57, 0.07);
  --shadow-stamp: 0 8px 24px rgba(180, 83, 9, 0.18);

  /* Layout */
  --container-max: 1040px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

/* Base Reset & Background */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, var(--color-sky-deep) 0%, var(--color-sky-light) 100%);
  color: var(--color-ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Cartographic Horizon Texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(217, 119, 6, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(5, 150, 105, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Explorer Journal & Flatlay Desk Atmosphere (from Reference Media)
   ========================================================================== */
.tabletop-underlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('images/explorer-journal-desk.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.25;
  filter: contrast(1.05) saturate(1.1);
  mix-blend-mode: multiply;
  pointer-events: none;
  /* Radial vignette mask: softens center behind reading cards while revealing wooden desk, brass compasses, fountain pen & airplane on perimeter */
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.95) 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.95) 100%);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Site Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

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

.brand-compass {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-ink);
  display: block;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11px;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-edition {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-alt);
  color: var(--color-ink-muted);
  border: 1px solid var(--color-border);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-amber-dark);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-text:hover {
  background: var(--color-amber-light);
}

/* Main Layout */
.main-content {
  padding: 36px 24px 60px;
}

/* Card Stock Texture - Warm Unbleached Cotton Paper with 18px Drafting Grid */
.card-stock {
  background-color: var(--color-paper);
  background-image: radial-gradient(#d2deeb 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Progress Tracker: 7-Gate Horizon Bar & Altitude Tracker
   ========================================================================== */

.progress-section {
  margin-bottom: 28px;
}

.altitude-indicator {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.altitude-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-amber);
}

.altitude-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.5px;
  margin-right: auto;
  margin-left: 12px;
}

.altitude-sub {
  font-size: 13px;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.horizon-bar-container {
  background: var(--color-paper);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.horizon-track {
  height: 8px;
  background: #e9eef5;
  border-radius: var(--radius-pill);
  position: relative;
  margin-bottom: 14px;
  overflow: visible;
}

.horizon-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-amber) 0%, #f59e0b 50%, var(--color-mint) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aircraft-glyph {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 24px;
  height: 24px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(10, 27, 57, 0.35);
  z-index: 2;
}

.plane-icon {
  font-size: 12px;
  transform: rotate(45deg);
  display: inline-block;
}

.gates-pills {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gate-pill {
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-faint);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.gate-pill.active {
  color: var(--color-ink);
  background: var(--color-paper-alt);
  border: 1px solid var(--color-border);
}

.gate-pill.completed {
  color: var(--color-mint);
}

/* ==========================================================================
   The 7-Gate Manifest Stage
   ========================================================================== */

.manifest-card {
  padding: 40px 44px;
}

/* Archival Punched Serial Code (For Boarding Pass Stub) */
.punched-serial-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #8c7853;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8), -0.5px -0.5px 0 rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px dotted rgba(140, 120, 83, 0.4);
  display: inline-block;
}

.gate-header {
  margin-bottom: 28px;
}

.gate-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 8px;
}

.gate-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
  margin-bottom: 10px;
}

.gate-subtitle {
  font-size: 15px;
  color: var(--color-ink-muted);
  max-width: 680px;
}

/* Gate 2 Airport Repositioning Pro-Tip Box */
.pro-tip-box {
  background: #fdfbf7;
  border: 1px solid #f6e0b5;
  border-left: 4px solid var(--color-amber);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s ease;
}

.pro-tip-badge {
  background: var(--color-amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pro-tip-content {
  font-size: 13.5px;
  color: var(--color-ink);
  line-height: 1.5;
}

/* ==========================================================================
   Gate 2 Regional Departure Corridor & Hub Differentiation
   ========================================================================== */

/* Step 1 Corridor Guide Banner */
.corridor-guide-banner {
  background: linear-gradient(135deg, rgba(237, 244, 250, 0.85) 0%, rgba(245, 248, 252, 0.95) 100%);
  border: 1.5px solid #d9e5f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(10, 27, 57, 0.04);
}

.corridor-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.corridor-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.corridor-step-pill .step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  background: var(--color-ink);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.corridor-step-pill .step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--color-ink);
  text-transform: uppercase;
}

.corridor-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-ink-muted);
  background: #ffffff;
  border: 1px solid #d9e5f0;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.corridor-guide-badge .beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-amber);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
  animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.corridor-guide-sub {
  font-size: 12.5px;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

/* Regional Corridor Switcher Container */
.corridor-switcher {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* The 5 Regional Corridor Tabs */
.corridor-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  color: var(--color-ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(10, 27, 57, 0.04);
}

.corridor-tab .corridor-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.corridor-tab .corridor-flag {
  font-size: 16px;
  line-height: 1;
}

.corridor-tab .corridor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.corridor-tab .corridor-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.corridor-tab .corridor-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-ink-faint);
  line-height: 1;
}

/* Specific Regional Corridor Colorways */
/* 1. US East (Atlantic Blue) */
.corridor-tab.corridor-us_east .corridor-pulse-dot {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.corridor-tab.corridor-us_east:hover {
  border-color: #2563eb;
  background: #f0f7ff;
  transform: translateY(-2px);
}
.corridor-tab.corridor-us_east.active {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28);
}
.corridor-tab.corridor-us_east.active .corridor-pulse-dot {
  background: #93c5fd;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.corridor-tab.corridor-us_east.active .corridor-count {
  color: rgba(255, 255, 255, 0.85);
}

/* 2. US Central (Heartland Amber) */
.corridor-tab.corridor-us_central .corridor-pulse-dot {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}
.corridor-tab.corridor-us_central:hover {
  border-color: #d97706;
  background: #fffbeb;
  transform: translateY(-2px);
}
.corridor-tab.corridor-us_central.active {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}
.corridor-tab.corridor-us_central.active .corridor-pulse-dot {
  background: #fde68a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.corridor-tab.corridor-us_central.active .corridor-count {
  color: rgba(255, 255, 255, 0.85);
}

/* 3. US West (Pacific Teal) */
.corridor-tab.corridor-us_west .corridor-pulse-dot {
  background: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}
.corridor-tab.corridor-us_west:hover {
  border-color: #0d9488;
  background: #f0fdfa;
  transform: translateY(-2px);
}
.corridor-tab.corridor-us_west.active {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  border-color: #0d9488;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}
.corridor-tab.corridor-us_west.active .corridor-pulse-dot {
  background: #99f6e4;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.corridor-tab.corridor-us_west.active .corridor-count {
  color: rgba(255, 255, 255, 0.85);
}

/* 4. Europe (Old World Crimson) */
.corridor-tab.corridor-europe .corridor-pulse-dot {
  background: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}
.corridor-tab.corridor-europe:hover {
  border-color: #b91c1c;
  background: #fef2f2;
  transform: translateY(-2px);
}
.corridor-tab.corridor-europe.active {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #b91c1c;
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.28);
}
.corridor-tab.corridor-europe.active .corridor-pulse-dot {
  background: #fca5a5;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.corridor-tab.corridor-europe.active .corridor-count {
  color: rgba(255, 255, 255, 0.85);
}

/* 5. Asia & Oceania (Imperial Jade) */
.corridor-tab.corridor-asia_pac .corridor-pulse-dot {
  background: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}
.corridor-tab.corridor-asia_pac:hover {
  border-color: #059669;
  background: #ecfdf5;
  transform: translateY(-2px);
}
.corridor-tab.corridor-asia_pac.active {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
}
.corridor-tab.corridor-asia_pac.active .corridor-pulse-dot {
  background: #a7f3d0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.corridor-tab.corridor-asia_pac.active .corridor-count {
  color: rgba(255, 255, 255, 0.85);
}

/* Selection Badge on Corridor Tab */
.corridor-tab .corridor-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

/* Step 2: Hub Selection Directive Bar */
.hub-stage-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #d9e5f0;
  border-radius: 8px;
  margin-bottom: 16px;
}

.hub-step-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  background: var(--color-ink);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.hub-stage-text {
  font-size: 13px;
  color: var(--color-ink);
  font-weight: 500;
}

.hub-stage-text strong {
  color: var(--color-ink);
  font-weight: 700;
}

/* Gate 2 Hub Option Cards Visual Differentiation */
@keyframes hubCardReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hub-option-card {
  position: relative;
  animation: hubCardReveal 0.36s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  border: 1.5px solid var(--color-border);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-option-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-ink);
  box-shadow: 0 10px 24px -6px rgba(10, 27, 57, 0.12);
}

.hub-iata-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0a1b39;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(10, 27, 57, 0.15);
}

.hub-iata-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.hub-beacon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.hub-corridor-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* Interactive Option Cards Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.option-card {
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.option-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 18px rgba(217, 119, 6, 0.10),
    0 0 12px rgba(245, 158, 11, 0.08),
    var(--shadow-md);
}

.option-card.selected {
  border-color: var(--color-ink);
  background: #fbfdff;
  box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-md);
}

.option-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.option-icon {
  font-size: 26px;
}

.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.option-card.selected .option-radio {
  border-color: var(--color-ink);
  background: var(--color-ink);
}

.option-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.option-card.selected .option-radio::after {
  opacity: 1;
  transform: scale(1);
}

.option-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.option-desc {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.45;
}

.option-tag {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-amber-dark);
}

/* Gate Footer */
.gate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-hint {
  font-size: 13px;
  color: var(--color-ink-muted);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 27, 57, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #142a54;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(10, 27, 57, 0.25);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-paper-alt);
  border-color: var(--color-border-hover);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   The Deliberation Loader Stage
   ========================================================================== */

.deliberation-card {
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.compass-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-amber);
  opacity: 0;
  animation: pulseRing 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 1s; }
.ring-3 { animation-delay: 2s; }

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.compass-dial {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fffdfa 0%, #f7f3ea 100%);
  border: 2px solid #d4c5a9;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardinal {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-ink-muted);
}

.cardinal.north { top: 6px; color: var(--color-amber-dark); }
.cardinal.east { right: 8px; }
.cardinal.south { bottom: 6px; }
.cardinal.west { left: 8px; }

.compass-needle {
  width: 6px;
  height: 90px;
  position: relative;
  animation: needleSearch 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.compass-needle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 45px solid var(--color-amber);
}

.compass-needle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 45px solid var(--color-ink);
}

@keyframes needleSearch {
  0% { transform: rotate(15deg); }
  25% { transform: rotate(165deg); }
  50% { transform: rotate(70deg); }
  75% { transform: rotate(290deg); }
  100% { transform: rotate(40deg); }
}

.compass-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 2px solid #fff;
  position: absolute;
  z-index: 5;
}

.deliberation-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.deliberation-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 12px;
  text-align: center;
}

.deliberation-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
  min-height: 36px;
  transition: opacity 0.3s ease;
  text-align: center;
  width: 100%;
}

.deliberation-sub {
  font-size: 14.5px;
  color: var(--color-ink-muted);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  min-height: 44px;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   The Proclamation & Boarding Pass Reveal Stage
   ========================================================================== */

.proclamation-section {
  animation: fadeIn 0.8s ease;
}

/* Proclamation Header & Stamp (Passport Topography Theme) */
.proclamation-header {
  background: linear-gradient(135deg, #fdfefe 0%, #f6fafc 50%, #edf5fa 100%);
  border: 1px solid #d3e2f0;
  border-left: 6px solid var(--color-amber);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: 
    0 12px 36px rgba(10, 27, 57, 0.07),
    0 2px 6px rgba(10, 27, 57, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.passport-topo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.95;
}

.passport-topo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.compass-rose-watermark {
  opacity: 0.26;
  transition: opacity 0.3s ease;
}

.ceremonial-stamp {
  flex-shrink: 0;
  animation: stampSlam 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: rotate(-3.5deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceremonial-stamp:hover {
  transform: rotate(-1deg) scale(1.02);
}

.stamp-inner {
  border: 2px dashed #b45309;
  outline: 1px solid #b45309;
  outline-offset: -5px;
  padding: 14px 20px;
  border-radius: 6px;
  background: rgba(253, 248, 237, 0.95);
  backdrop-filter: blur(4px);
  text-align: center;
  color: #92400e;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.16), inset 0 0 12px rgba(180, 83, 9, 0.04);
}

.stamp-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #92400e;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stamp-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #92400e;
  display: block;
  line-height: 1.25;
}

.stamp-code {
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #b45309;
  display: block;
  margin-top: 5px;
}

@keyframes stampSlam {
  0% {
    transform: scale(2.4) rotate(15deg);
    opacity: 0;
  }
  70% {
    transform: scale(0.95) rotate(-5deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-3.5deg);
    opacity: 1;
  }
}

.archetype-proclamation {
  flex: 1;
  position: relative;
  z-index: 1;
}

.proclamation-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 6px;
}

.archetype-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.archetype-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  margin-bottom: 14px;
}

.oracle-verdict {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: #292524;
  border-left: 3px solid #d4af37;
  background: #fdf8ed;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  margin-top: 12px;
  box-shadow: 0 3px 12px rgba(10, 27, 57, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15px;
}

.recalibrate-action-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 24px;
  text-align: center;
}

.btn-recalibrate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-ink) 0%, #152e5a 100%);
  color: #ffffff;
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 27, 57, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-recalibrate:hover {
  transform: translateY(-2px);
  border-color: var(--color-amber);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
  background: linear-gradient(135deg, #0f2750 0%, var(--color-ink) 100%);
}

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

.recalibrate-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-recalibrate:hover .recalibrate-icon {
  transform: rotate(25deg);
}

.recalibrate-hint {
  font-size: 13px;
  color: var(--color-ink-muted);
  max-width: 560px;
  line-height: 1.5;
}

/* Carousel Tabs */
.carousel-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.carousel-tab {
  flex: 1;
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.carousel-tab:hover {
  border-color: rgba(217, 119, 6, 0.55);
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  box-shadow: 
    0 6px 20px rgba(217, 119, 6, 0.16),
    0 0 16px rgba(245, 158, 11, 0.16),
    0 2px 4px rgba(10, 27, 57, 0.04);
}

.carousel-tab.active {
  border-color: #b45309;
  background: var(--color-paper-warm);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12), inset 0 0 0 1px #d4af37;
}

.carousel-tab.active:hover {
  border-color: var(--color-amber-dark);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(217, 119, 6, 0.22),
    0 0 18px rgba(245, 158, 11, 0.20),
    0 2px 6px rgba(10, 27, 57, 0.06);
}

.carousel-tab:hover .tab-rank {
  color: var(--color-amber);
}

.tab-rank {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 4px;
}

.tab-dest-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  display: block;
}

/* ==========================================================================
   The Boarding Pass Card & Dual-Section Perforated Stub
   ========================================================================== */

.boarding-pass {
  background-color: var(--color-paper);
  background-image: radial-gradient(#d2deeb 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
  position: relative;
  overflow: visible; /* Allows cutout notches to punch cleanly into the edge */
}

.pass-header {
  background: var(--color-ink);
  color: #fff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pass-airline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pass-carrier-text {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.pass-match-badge {
  background: var(--color-amber);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.pass-coupon-container {
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (min-width: 860px) {
  .pass-coupon-container {
    flex-direction: row;
    align-items: stretch;
  }
}

.pass-body {
  flex: 1;
  min-width: 0;
  padding: 32px 36px 28px;
  background: var(--color-paper);
}

@media (min-width: 860px) {
  .pass-body {
    border-radius: 0 0 0 var(--radius-lg);
  }
}

/* Flight Path Row */
.pass-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: 24px;
}

.route-origin, .route-dest {
  display: flex;
  flex-direction: column;
}

.route-dest {
  text-align: right;
}

.route-code {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 4px;
}

.route-city {
  font-size: 13px;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.route-dest .route-city,
#pass-dest-city {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

.route-flight-path {
  flex: 1;
  max-width: 320px;
  margin: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.path-alliance {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-amber-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

.path-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ink);
  position: absolute;
}

.path-dot.start { left: 0; }
.path-dot.end { right: 0; }

.path-plane {
  font-size: 15px;
  color: var(--color-ink);
  background: transparent;
  padding: 0;
  transform: rotate(45deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.path-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-ink-faint);
  font-weight: 600;
}

/* 3 Glanceable Metric Pills */
.metric-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-pill {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(10, 27, 57, 0.03);
}

.metric-icon {
  font-size: 20px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-ink-faint);
  display: block;
}

.metric-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
  display: block;
}

/* Match Narrative */
.pass-narrative-box {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(10, 27, 57, 0.03);
}

.narrative-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 6px;
}

.narrative-text {
  font-size: 14.5px;
  color: var(--color-ink);
  line-height: 1.55;
}

/* Dual Strategy Cards Grid */
.strategy-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 12px;
}

.strategy-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(10, 27, 57, 0.03);
}

.stay-style-card {
  background: var(--color-paper);
  border-left: 4px solid var(--color-ink);
}

.flight-hack-card {
  background: var(--color-paper-warm);
  border-left: 4px solid var(--color-amber);
}

.strategy-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.strategy-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.3px;
}

.strategy-text {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* Vintage Fountain Pen Handwritten Field Marginalia (From Logbook Reference) */
.field-marginalia {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(217, 119, 6, 0.25);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.marginalia-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b45309;
}

.marginalia-script {
  font-family: 'Caveat', cursive, serif;
  font-size: 1.14rem;
  font-weight: 600;
  color: #1e3a5f; /* authentic fountain pen navy blue ink */
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* Dual-Section Perforated Ticket Stub (#f5f8fc) */
.pass-stub {
  background: #f5f8fc;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 860px) {
  .pass-stub {
    width: 290px;
    flex-shrink: 0;
    border-left: 2px dashed #d9e5f0;
    border-radius: 0 0 var(--radius-lg) 0;
  }
}

@media (max-width: 859px) {
  .pass-stub {
    width: 100%;
    border-top: 2px dashed #d9e5f0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* Perforation Seam Cutout Notches */
.perforation-line {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 860px) {
  .perforation-line {
    top: 0;
    bottom: 0;
    left: -2px;
    width: 2px;
  }

  .perforation-line .notch {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #edf4fa;
    box-shadow: inset 0 2px 4px rgba(10, 27, 57, 0.08);
  }

  .perforation-line .notch-top {
    top: -12px;
    left: -11px;
    border-bottom: 1.5px solid #d9e5f0;
  }

  .perforation-line .notch-bottom {
    bottom: -12px;
    left: -11px;
    border-top: 1.5px solid #d9e5f0;
  }
}

@media (max-width: 859px) {
  .perforation-line {
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
  }

  .perforation-line .notch {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #edf4fa;
    box-shadow: inset 0 2px 4px rgba(10, 27, 57, 0.08);
  }

  .perforation-line .notch-top {
    left: -12px;
    top: -11px;
    border-right: 1.5px solid #d9e5f0;
  }

  .perforation-line .notch-bottom {
    right: -12px;
    top: -11px;
    border-left: 1.5px solid #d9e5f0;
  }
}

.stub-content {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.stub-header {
  border-bottom: 1px dashed #d9e5f0;
  padding-bottom: 10px;
}

.stub-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.punched-serial-code.stub-serial {
  font-size: 10.5px;
  padding: 1px 6px;
  letter-spacing: 0.16em;
  color: #8c7853;
  background: rgba(255, 255, 255, 0.75);
}

.stub-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-ink-faint);
  display: block;
}

.stub-flight-code {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-ink);
  display: block;
}

.stub-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin: 4px 0;
}

.stub-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stub-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-ink-faint);
}

.stub-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.3px;
}

.stub-val.status-confirmed {
  color: var(--color-mint);
}

/* ==========================================================================
   Authentic Consular Passport Entry Stamp (Dynamic Programmatic Vector SVG)
   Modeled after user-uploaded consular transit seal template
   ========================================================================== */
.passport-stamp-wrapper {
  position: relative;
  margin: 12px auto 8px auto;
  max-width: 250px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  cursor: default;
}

.passport-entry-stamp-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.passport-stamp-wrapper:hover .passport-entry-stamp-box {
  transform: rotate(0deg) scale(1.03) !important;
}

.passport-entry-seal {
  width: 100%;
  height: auto;
  color: #a3471f; /* Authentic weathered terracotta rubber-stamp ink from reference */
  mix-blend-mode: multiply;
  opacity: 0.90;
  filter: drop-shadow(0 2px 5px rgba(163, 71, 31, 0.16));
  transition: filter 0.32s ease;
}

.passport-stamp-wrapper:hover .passport-entry-seal {
  filter: drop-shadow(0 6px 14px rgba(163, 71, 31, 0.24));
}

.stub-barcode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #d9e5f0;
}

.stub-barcode .bar {
  display: inline-block;
  width: 2px;
  height: 100%;
  background: var(--color-ink);
}

.stub-barcode .bar.thick {
  width: 5px;
}

.stub-actions {
  margin-top: auto;
}

.btn-dossier {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  text-align: center;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

/* ==========================================================================
   The Expedition Dossier (Expanded View)
   ========================================================================== */

.dossier-section {
  padding: 44px;
  margin-bottom: 40px;
  border: 1.5px solid var(--color-border);
  animation: fadeIn 0.4s ease;
}

/* Dedicated Dossier Header Kicker Row & Back Navigation */
.dossier-kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-back-pass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.btn-back-pass:hover,
#btn-back-to-boarding-pass:hover,
#btn-back-to-boarding-pass-bottom:hover {
  transform: translateX(-3px);
  background: #142a54 !important;
  color: #ffffff !important;
  border-color: #142a54 !important;
  box-shadow: 0 4px 12px rgba(20, 42, 84, 0.25) !important;
}

.dossier-bottom-bar {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.dossier-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.dossier-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 6px;
}

.dossier-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.dossier-country {
  font-size: 15px;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.dossier-stamp {
  border: 2px solid var(--color-mint);
  color: var(--color-mint);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(6deg);
}

.dossier-overview-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.dossier-window-highlight {
  color: var(--color-ink);
  font-weight: 700;
}

.dossier-text {
  font-size: 14.5px;
  color: var(--color-ink-muted);
  line-height: 1.6;
}

/* Cost Breakdown Card */
.cost-breakdown-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(10, 27, 57, 0.03);
}

.cost-card-heading {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.cost-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cost-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cost-icon {
  font-size: 20px;
}

.cost-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-ink-faint);
  display: block;
}

.cost-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink);
  display: block;
}

/* 4 Signature Highlights */
.highlights-section {
  margin-bottom: 44px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.highlight-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-bottom: 2.5px solid rgba(212, 175, 55, 0.4); /* subtle warm brass separator */
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(10, 27, 57, 0.03);
}

.highlight-card:hover {
  border-color: var(--color-brass);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.1);
  transform: translateY(-2px);
}

.highlight-icon {
  font-size: 26px;
  line-height: 1;
}

.highlight-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.highlight-title::before {
  content: "✦ ";
  color: var(--color-brass);
  font-size: 0.9em;
  margin-right: 3px;
}

.highlight-desc {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Destination Geographic Topography & Embedded Google Maps Interface
   ========================================================================== */

.destination-map-section {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 27, 57, 0.04);
}

.map-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 32px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-paper-alt);
}

.map-header-text {
  flex: 1;
  min-width: 260px;
}

.map-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-amber-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.map-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.map-subtitle {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin: 0;
}

.map-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.map-coords-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-paper-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

.map-coords-badge svg {
  color: var(--color-mint);
  flex-shrink: 0;
}

.btn-map-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-map-external:hover {
  background: var(--color-ink);
  color: #ffffff;
  border-color: var(--color-ink);
  box-shadow: 0 2px 8px rgba(10, 27, 57, 0.15);
}

.map-frame-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background: #eef4f9;
}

.destination-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-card-header {
    padding: 20px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .map-frame-wrapper {
    height: 280px;
  }
}

/* ==========================================================================
   Interactive 6-Month Cash Fare Projection SVG Chart
   ========================================================================== */

.fare-chart-section {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 32px 28px;
  box-shadow: 0 2px 10px rgba(10, 27, 57, 0.03);
}

.fare-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-amber-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.chart-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.chart-subtitle {
  font-size: 13px;
  color: var(--color-ink-muted);
}

.hub-selector-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.hub-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-ink-faint);
}

.hub-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hub-pill {
  background: var(--color-paper);
  border: 1.5px solid rgba(212, 175, 55, 0.45); /* subtle brass border */
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #78350f;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(10, 27, 57, 0.03);
}

.hub-pill:hover {
  border-color: var(--color-brass);
  color: #92400e;
  background: var(--color-paper-warm);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.2);
}

.hub-pill.active {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: #ffffff;
  border-color: var(--color-brass);
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.28), 0 0 8px rgba(212, 175, 55, 0.35); /* warm highlight */
}

.hub-more-btn {
  background: var(--color-paper-alt);
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  color: #78350f;
  font-family: var(--font-mono);
}

.hub-more-btn:hover {
  border-color: var(--color-brass);
  background: var(--color-paper-warm);
  color: #92400e;
}

.more-hubs-drawer {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  animation: fadeIn 0.2s ease;
}

/* SVG Chart Container */
.svg-chart-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 16px 0 10px;
}

.fare-svg {
  width: 100%;
  height: 295px;
  display: block;
  font-family: var(--font-sans);
}

/* Action Bar below chart */
.fare-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.fare-deal-summary {
  font-size: 14px;
  color: var(--color-ink);
}

.btn-launch-flights {
  background: var(--color-mint);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
}

.btn-launch-flights:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  padding: 32px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left p {
  font-size: 13px;
  color: var(--color-ink);
}

.footer-left .copyright {
  font-size: 12px;
  color: var(--color-ink-muted);
  margin-top: 4px;
}

.oracle-status {
  font-size: 12px;
  color: var(--color-mint);
  font-weight: 600;
  background: var(--color-mint-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 820px) {
  .site-header { padding: 10px 0; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-actions {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-actions::-webkit-scrollbar { display: none; }
  .header-actions > * { flex-shrink: 0; }
  .badge-edition { display: none; }
  .manifest-card { padding: 28px 20px; }
  .manifest-serial-header {
    margin: -12px -12px 20px -12px;
    padding: 8px 12px;
  }
  .manifest-serial-text { display: none; }
  .proclamation-header { flex-direction: column; text-align: center; padding: 28px 20px; gap: 24px; border-left-width: 4px; }
  .oracle-verdict { border-left: none; border-top: 3px solid #d4af37; padding: 14px 16px; border-radius: var(--radius-sm); text-align: left; }
  .stamp-inner { transform: rotate(0deg); }
  .pass-route-row { flex-direction: column; gap: 20px; }
  .route-dest { text-align: left; }
  .route-flight-path { margin: 12px 0; max-width: 100%; width: 100%; }
  .metric-pills-row { grid-template-columns: 1fr; }
  .strategy-cards-grid { grid-template-columns: 1fr; }
  .dossier-section { padding: 24px; }
  .dossier-overview-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile Responsive Experience (375px to 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* 1. LAYOUT & SCROLLING: Zero horizontal overflow & comfortable 16px screen edge padding */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container,
  .main-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-content {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .tabletop-underlay {
    opacity: 0.16;
  }

  /* 2. Site Header & Quick Navigation */
  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    gap: 8px;
  }

  .brand-compass {
    font-size: 22px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.2px;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .header-actions > * {
    flex-shrink: 0;
  }

  .btn-api-key,
  .btn-header-about,
  .btn-header-favorites,
  .btn-google-signin,
  .btn-header-quiz {
    padding: 6px 10px;
    font-size: 11.5px;
    min-height: 36px;
  }

  /* 3. Progress Tracker: Altitude Indicator & Gate Pills */
  .progress-section {
    margin-bottom: 20px;
  }

  .altitude-indicator {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
  }

  .altitude-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .altitude-value {
    font-size: 17px;
    margin-left: 6px;
  }

  .altitude-sub {
    font-size: 11px;
    text-align: right;
  }

  .horizon-bar-container {
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }

  .gates-pills {
    gap: 4px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .gate-pill {
    padding: 7px 6px;
    font-size: 11px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 4. Manifest Stage & Gate Question Cards */
  .manifest-card {
    padding: 22px 14px;
    border-radius: var(--radius-md);
  }

  .gate-kicker {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .gate-title {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .gate-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Gate Option Cards - Minimum 48px touch height with generous finger breathing room */
  .options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .option-card {
    padding: 16px 14px;
    min-height: 52px;
    border-radius: var(--radius-md);
  }

  .option-card-top {
    margin-bottom: 8px;
  }

  .option-icon {
    font-size: 22px;
  }

  .option-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .option-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .option-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Gate 2 Corridor Tabs & Guide Banner */
  .corridor-guide-banner {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .corridor-guide-title {
    font-size: 12px;
  }

  .corridor-guide-text {
    font-size: 11.5px;
  }

  .corridor-switcher {
    gap: 8px;
    padding: 2px 2px 10px 2px;
  }

  .corridor-tab {
    padding: 10px 14px;
    min-height: 48px;
    border-radius: 10px;
  }

  .corridor-tab .corridor-name {
    font-size: 12.5px;
  }

  .corridor-tab .corridor-count {
    font-size: 9.5px;
  }

  .hub-stage-callout {
    padding: 10px 12px;
    font-size: 11.5px;
    border-radius: 10px;
  }

  /* Pro Tip Box: Stack badge on top of text for 100% full readability without pinching */
  .pro-tip-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  .pro-tip-badge {
    align-self: flex-start;
    font-size: 10px;
    padding: 3px 9px;
  }

  .pro-tip-content {
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Gate Footer: Full-width stacked buttons with 48px touch targets to prevent overflow */
  .gate-footer {
    flex-direction: column-reverse;
    gap: 10px;
    padding-top: 18px;
  }

  .gate-footer .btn-prev,
  .gate-footer .btn-next {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .footer-hint {
    text-align: center;
    font-size: 11.5px;
  }

  /* 5. Deliberation Loader Stage */
  .deliberation-card {
    padding: 44px 16px;
    min-height: 360px;
  }

  .compass-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 22px;
  }

  .deliberation-title {
    font-size: 19px;
  }

  .deliberation-sub {
    font-size: 12.5px;
  }

  /* 6. Proclamation Stage & Sorting Verdict */
  .proclamation-header {
    flex-direction: column;
    text-align: center;
    padding: 22px 14px;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .ceremonial-stamp {
    max-width: 100%;
  }

  .stamp-inner {
    padding: 12px 14px;
    transform: rotate(0deg);
  }

  .stamp-sub {
    font-size: 9px;
  }

  .stamp-main {
    font-size: 13px;
    line-height: 1.3;
  }

  .archetype-title {
    font-size: 23px;
    line-height: 1.2;
  }

  .archetype-subtitle {
    font-size: 12.5px;
    margin-bottom: 8px;
  }

  /* Grand Cartographer sortingVerdict: fully readable, unclipped */
  .oracle-verdict {
    border-left: none;
    border-top: 3px solid #d4af37;
    padding: 14px 14px;
    font-size: 14px;
    line-height: 1.55;
    border-radius: var(--radius-sm);
    text-align: left;
    margin-top: 10px;
    word-break: break-word;
  }

  /* Match Carousel Navigation Tabs */
  .carousel-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
  }

  .carousel-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    min-height: 48px;
    border-radius: 10px;
  }

  .tab-rank {
    font-size: 9px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .tab-dest-name {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-heart-pill {
    font-size: 12px;
  }

  /* 7. Boarding Pass Card & Stacking */
  .boarding-pass {
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  /* Boarding Pass Header: Re-arranged into a clean 2-row layout */
  .pass-header {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 10px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .pass-airline {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pass-carrier-text {
    font-size: 11.5px;
    letter-spacing: 0.8px;
  }

  .pass-header-actions {
    display: contents; /* Flattens children directly into the parent grid */
  }

  .btn-favorite-heart {
    grid-column: 2 / 3;
    grid-row: 1;
    padding: 5px 10px;
    font-size: 11.5px;
    min-height: 32px;
  }

  .pass-match-badge {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 9px;
    padding: 4px 10px;
    letter-spacing: 0.8px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-pill);
    box-sizing: border-box;
  }

  /* Main Manifest Coupon (Body) */
  .pass-body {
    padding: 18px 14px 16px;
    border-radius: 0;
  }

  .route-code {
    font-size: 28px;
  }

  .route-city {
    font-size: 12px;
  }

  .pass-route-row {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    align-items: stretch;
  }

  .route-origin,
  .route-dest {
    text-align: center;
    align-items: center;
  }

  .route-flight-path {
    margin: 6px auto;
    width: 100%;
    max-width: 220px;
  }

  .path-alliance {
    font-size: 9px;
  }

  .metric-pills-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .metric-pill {
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  .strategy-card {
    padding: 14px 12px;
    border-radius: var(--radius-md);
  }

  .strategy-heading {
    font-size: 13px;
  }

  .strategy-text {
    font-size: 12px;
  }

  .marginalia-script {
    font-size: 1.05rem;
  }

  /* Perforated Ticket Stub - Stacked Neatly Below with Horizontal Dashed Separator */
  .pass-stub {
    width: 100% !important;
    border-top: 2px dashed #d9e5f0 !important;
    border-left: none !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .stub-content {
    padding: 18px 14px;
    gap: 14px;
  }

  .stub-header-route {
    font-size: 15px;
  }

  .stub-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
  }

  /* Dynamic SVG Country Stamp - Scales fluidly without overflowing card boundaries */
  .passport-stamp-wrapper {
    max-width: 230px;
    width: 100%;
    margin: 6px auto;
  }

  .passport-entry-stamp-box {
    width: 100%;
  }

  .passport-entry-seal {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
  }

  .stub-barcode {
    height: 32px;
    padding: 4px 8px;
  }

  .btn-open-dossier {
    min-height: 48px;
    font-size: 13.5px;
    padding: 12px 14px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* 8. 6-Month Cash Fare Projection SVG Chart & Departure Hubs */
  .fare-chart-section {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .fare-chart-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .chart-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .chart-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }

  .hub-selector-container {
    width: 100%;
    align-items: flex-start;
    gap: 6px;
  }

  .hub-label {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  /* Departure Hub Pills: Wrap cleanly into two neat rows */
  .hub-pills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .hub-pill {
    padding: 7px 4px;
    font-size: 11.5px;
    text-align: center;
    justify-content: center;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    box-sizing: border-box;
  }

  .hub-more-btn {
    font-size: 11px;
    padding: 7px 4px;
  }

  .more-hubs-drawer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 6px;
  }

  /* SVG Chart ViewBox Responsiveness without letterboxing */
  .svg-chart-wrapper {
    width: 100%;
    padding: 6px 0;
    overflow-x: hidden;
  }

  .fare-svg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 720 / 295 !important;
    display: block;
  }

  /* Fare Action Bar & Google Flights CTA */
  .fare-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    text-align: center;
  }

  .fare-deal-summary {
    font-size: 13px;
    line-height: 1.4;
  }

  .btn-launch-flights {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 13.5px;
    padding: 12px 14px;
    box-sizing: border-box;
  }

  /* 9. Expedition Dossier View & Highlights */
  .dossier-stage {
    margin-top: 20px;
  }

  .dossier-section {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .dossier-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    align-items: center;
  }

  .dossier-header-actions .btn-back-dossier {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
    justify-content: center;
  }

  .dossier-header-actions .btn-favorite-dossier {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
    justify-content: center;
  }

  .dossier-match-badge {
    width: 100%;
    text-align: center;
    margin-top: 2px;
    order: 3;
  }

  .dossier-dest-title {
    font-size: 26px;
    line-height: 1.2;
    margin-top: 12px;
  }

  .dossier-country-title {
    font-size: 13px;
  }

  .dossier-overview-row {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
  }

  .dossier-text {
    font-size: 13px;
    line-height: 1.55;
  }

  .cost-breakdown-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  /* Single Column Stack for Signature Highlights to eliminate crushed columns */
  .highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .highlight-card {
    padding: 14px 12px;
    gap: 12px;
    border-radius: var(--radius-md);
  }

  .highlight-icon {
    font-size: 22px;
    flex-shrink: 0;
  }

  .highlight-title {
    font-size: 14.5px;
    line-height: 1.3;
  }

  .highlight-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }

  /* Interactive Map Section */
  .interactive-map-section {
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }

  .map-header {
    padding: 16px 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .map-header-text {
    min-width: 0 !important;
  }

  .map-title {
    font-size: 18px;
  }

  .map-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .map-coord-badge,
  .btn-open-google-maps {
    font-size: 11px;
    padding: 6px 10px;
  }

  /* Recalibrate CTA Button */
  .recalibrate-action-container {
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .btn-recalibrate {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
    min-height: 48px;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Gemini API Key Modal & Header Status
   ========================================================================== */

.btn-api-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-paper-alt);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-api-key:hover {
  background: #ffffff;
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-sm);
}

.key-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-amber);
  display: inline-block;
  transition: background 0.2s ease;
}

.key-status-dot.active {
  background: var(--color-mint);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}

.api-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 27, 57, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.api-modal {
  width: 100%;
  max-width: 520px;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.modal-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--color-ink-faint);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-ink);
}

.api-modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.key-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.key-input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  font-family: monospace;
  font-size: 13px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.2s;
}

.key-input:focus {
  border-color: var(--color-ink);
}

.btn-toggle-visibility {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
}

.btn-toggle-visibility:hover {
  opacity: 1;
}

.key-notice {
  font-size: 12px;
  color: var(--color-ink-muted);
  background: var(--color-paper-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.key-feedback-alert {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.api-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #fafaf9;
}

/* ==========================================================================
   Google Account Top-Right Widget & Navigation
   ========================================================================== */
.btn-header-quiz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.btn-header-quiz:hover {
  border-color: rgba(5, 150, 105, 0.6);
  background: #f0fdf4;
  color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
}

.btn-header-quiz .icon {
  font-size: 13px;
  color: #059669;
}

.btn-header-about {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.btn-header-about:hover {
  border-color: rgba(37, 99, 235, 0.6);
  background: #f8faff;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16), 0 0 10px rgba(59, 130, 246, 0.12);
}

.btn-header-about .about-icon {
  font-size: 13px;
  color: #2563eb;
}

.btn-header-favorites {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-paper);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.btn-header-favorites:hover {
  border-color: rgba(217, 119, 6, 0.6);
  background: #fffdfa;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.16), 0 0 10px rgba(245, 158, 11, 0.12);
}

.btn-header-favorites .fav-icon {
  color: var(--color-amber);
  font-size: 13px;
}

.fav-count-badge {
  background: var(--color-amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  line-height: 1.3;
}

.account-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Unauthenticated Sign In Pill Button */
.btn-google-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.btn-google-signin:hover {
  border-color: rgba(217, 119, 6, 0.6);
  background: #f8fafd;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15), 0 0 10px rgba(245, 158, 11, 0.1);
  color: var(--color-ink);
}

.google-logo-svg {
  flex-shrink: 0;
}

/* Authenticated Avatar Button */
.btn-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-amber);
  background: var(--color-sky-light);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3), 0 0 12px rgba(245, 158, 11, 0.25);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-ink) 0%, #1a365d 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-active-ring {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: var(--color-mint);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

/* Account Dropdown Menu Popover */
.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 16px 36px rgba(10, 27, 57, 0.12);
  padding: 16px;
  z-index: 1000;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.dropdown-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--color-amber);
}

.dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-avatar-initials {
  width: 100%;
  height: 100%;
  background: var(--color-ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.dropdown-user-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--color-ink-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-auth-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-mint);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}

.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.dropdown-menu-btn:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

.menu-btn-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.menu-btn-labels {
  flex: 1;
}

.menu-btn-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  display: block;
}

.menu-btn-sub {
  font-size: 11px;
  color: var(--color-ink-faint);
  display: block;
}

.menu-btn-badge {
  background: var(--color-amber-light);
  color: var(--color-amber-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.menu-btn-arrow {
  color: var(--color-ink-faint);
  font-size: 14px;
}

.dropdown-footer {
  padding-top: 4px;
}

.btn-account-logout {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-account-logout:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

/* ==========================================================================
   Persistent Favorite / Heart Button on Destination Reveal & Boarding Pass
   ========================================================================== */
.pass-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-favorite-heart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.btn-favorite-heart:hover {
  border-color: rgba(217, 119, 6, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.18), 0 0 12px rgba(245, 158, 11, 0.14);
  color: var(--color-ink);
}

.btn-favorite-heart .heart-icon {
  font-size: 16px;
  color: var(--color-ink-faint);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.btn-favorite-heart:hover .heart-icon {
  color: var(--color-amber);
  transform: scale(1.15);
}

/* Active / Favorited State */
.btn-favorite-heart.favorited {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: var(--color-amber);
  color: var(--color-amber-dark);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.22), 0 0 14px rgba(245, 158, 11, 0.18);
}

.btn-favorite-heart.favorited .heart-icon {
  color: #dc2626;
  font-weight: bold;
  animation: heartPop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Carousel Tab Heart Pill */
.tab-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tab-heart-pill {
  font-size: 14px;
  color: var(--color-ink-faint);
  transition: all 0.2s ease;
  line-height: 1;
}

.tab-heart-pill.active {
  color: #dc2626;
  font-weight: bold;
  transform: scale(1.1);
}

/* Dossier Header Favorite Button */
.dossier-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-favorite-dossier {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* ==========================================================================
   Login Prompt Modal (Unauthenticated Save Reminder)
   ========================================================================== */
.login-prompt-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 27, 57, 0.55);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.login-prompt-modal {
  width: 100%;
  max-width: 480px;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 27, 57, 0.2), 0 4px 12px rgba(10, 27, 57, 0.08);
  border: 1px solid var(--color-border);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.google-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3c4043;
}

.login-modal-body {
  padding: 24px;
}

.login-modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-ink);
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.login-modal-subtitle {
  font-size: 13.5px;
  color: var(--color-ink-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.login-dest-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.dest-preview-heart {
  font-size: 22px;
  color: #dc2626;
  flex-shrink: 0;
}

.dest-preview-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  display: block;
}

.dest-preview-sub {
  font-size: 11.5px;
  color: var(--color-amber-dark);
  font-weight: 500;
  display: block;
}

.login-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--color-ink);
  line-height: 1.4;
}

.benefit-check {
  color: var(--color-mint);
  font-weight: 800;
}

.gsi-button-slot {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.login-options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-google-instant {
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.btn-google-instant:hover {
  background: #f8fafd;
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.16);
  color: var(--color-ink);
}

.custom-login-toggle-wrap {
  text-align: center;
  margin-top: 4px;
}

.btn-text-subtle {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--color-ink-muted);
  cursor: pointer;
  text-decoration: underline;
}

.custom-login-fields {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.input-text-sm {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.input-text-sm:focus {
  border-color: var(--color-amber);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.login-modal-footer {
  padding: 14px 24px;
  background: #fafaf9;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.btn-dismiss-text {
  background: transparent;
  border: none;
  font-size: 12.5px;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.btn-dismiss-text:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

/* ==========================================================================
   Slide-Over Drawers (Saved Expeditions & About / Explainer)
   ========================================================================== */
.about-drawer-backdrop,
.favorites-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 27, 57, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1050;
  animation: fadeIn 0.25s ease;
}

.favorites-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 480px;
  max-width: 92vw;
  background: var(--color-paper);
  box-shadow: -10px 0 36px rgba(10, 27, 57, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 1060;
  overflow: hidden;
  animation: drawerSlide 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 530px;
  max-width: 94vw;
  background: var(--color-paper);
  box-shadow: -10px 0 36px rgba(10, 27, 57, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 1060;
  overflow: hidden;
  animation: drawerSlide 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Topography Background for Drawer */
.drawer-topo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.95;
}

.drawer-topo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.drawer-header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-amber-dark);
  text-transform: uppercase;
  display: block;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-ink);
}

.drawer-count-badge {
  background: var(--color-amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-ink-muted);
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: var(--color-paper-alt);
  color: var(--color-ink);
}

.drawer-user-status {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 8px 24px;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 24px;
}

.drawer-body::-webkit-scrollbar {
  width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
  background: rgba(10, 27, 57, 0.03);
}

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(10, 27, 57, 0.2);
  border-radius: 4px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 119, 6, 0.6);
}

/* Favorites Empty State */
.favorites-empty {
  text-align: center;
  padding: 48px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px dashed rgba(10, 27, 57, 0.18);
  border-radius: var(--radius-lg);
  margin-top: 10px;
}

.empty-compass-icon {
  font-size: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.2));
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 13px;
  color: var(--color-ink-muted);
  max-width: 300px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* Favorites List Cards with Topography Aesthetics */
.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.favorite-item-card,
.favorite-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(10, 27, 57, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(10, 27, 57, 0.05);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Micro Topographic Contour Texture on Cards */
.favorite-item-card::before,
.favorite-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(5, 150, 105, 0.04) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(10, 27, 57, 0.012) 0px, rgba(10, 27, 57, 0.012) 1px, transparent 1px, transparent 16px);
  pointer-events: none;
  z-index: 0;
}

.favorite-item-card:hover,
.favorite-card:hover {
  border-color: rgba(217, 119, 6, 0.65);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.16), 0 0 16px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.fav-card-top,
.fav-card-meta,
.fav-card-actions {
  position: relative;
  z-index: 1;
}

.fav-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fav-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.fav-card-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-amber-dark);
  background: rgba(217, 119, 6, 0.1);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fav-card-text {
  flex: 1;
}

.fav-card-name,
.fav-card-destination {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.25;
}

.fav-card-country {
  font-size: 12px;
  color: var(--color-ink-muted);
  margin: 2px 0 0;
}

.btn-fav-remove,
.fav-btn-remove {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.btn-fav-remove:hover,
.fav-btn-remove:hover {
  transform: scale(1.25);
  color: #b91c1c;
}

.fav-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.fav-archetype-tag,
.fav-card-archetype {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-navy);
  background: rgba(10, 27, 57, 0.06);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.fav-route-hint,
.fav-card-route {
  font-size: 12px;
  color: var(--color-ink-muted);
}

.fav-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(10, 27, 57, 0.08);
  padding-top: 12px;
}

/* Blue Explore Dossier Button in Favorites Area */
.btn-fav-explore {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
  font-size: 12px !important;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-fav-explore:hover {
  background: #1d4ed8 !important;
  border-color: #1e40af !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px);
}

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

.drawer-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   About & Explainer Drawer Content Cards & Accordion UI
   ========================================================================== */
.about-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Accordion Controls Bar */
.about-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(10, 27, 57, 0.03);
  border: 1px dashed rgba(10, 27, 57, 0.14);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  flex-shrink: 0;
  width: 100%;
}

.about-controls-hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.btn-toggle-all-cards {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-ink);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-toggle-all-cards:hover {
  background: var(--color-amber-light);
  border-color: var(--color-amber);
  color: var(--color-amber-dark);
}

.btn-toggle-all-cards .toggle-icon {
  font-size: 12px;
  font-weight: bold;
}

/* About Accordion Cards */
.about-card {
  flex-shrink: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(10, 27, 57, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(10, 27, 57, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.about-card:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}

.about-card.highlight-corridor {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.65) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.about-card.highlight-corridor:hover {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

/* Accordion Card Header Button */
.about-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background 0.18s ease;
}

.about-card-header:hover {
  background: rgba(217, 119, 6, 0.04);
}

.about-card-header:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: -2px;
}

.about-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.about-icon-pill {
  font-size: 18px;
  background: rgba(10, 27, 57, 0.05);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-header-text {
  flex: 1;
  min-width: 0;
}

.about-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--color-amber-dark);
  text-transform: uppercase;
  background: rgba(217, 119, 6, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 3px;
}

.about-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.35;
}

.about-accordion-icon {
  font-size: 10px;
  color: var(--color-ink-muted);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 27, 57, 0.04);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.about-card.is-expanded .about-accordion-icon {
  transform: rotate(0deg);
  background: rgba(217, 119, 6, 0.14);
  color: var(--color-amber-dark);
}

.about-card.is-collapsed .about-accordion-icon {
  transform: rotate(-90deg);
}

/* Card Content Area - Scrollable Within Each Accordion */
.about-card-content {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(10, 27, 57, 0.06);
  padding-top: 14px;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.about-card-content::-webkit-scrollbar {
  width: 5px;
}

.about-card-content::-webkit-scrollbar-track {
  background: rgba(10, 27, 57, 0.03);
  border-radius: 4px;
}

.about-card-content::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.45);
  border-radius: 4px;
}

.about-card-content::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 119, 6, 0.85);
}

.about-card.is-collapsed .about-card-content {
  display: none;
}

.about-hero-text {
  font-size: 13.5px;
  color: var(--color-ink-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

.about-hero-text strong {
  color: var(--color-ink);
}

.about-hero-text em {
  font-style: italic;
  color: var(--color-amber-dark);
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 27, 57, 0.08);
}

.about-stat-item {
  text-align: center;
  background: #fafaf8;
  border: 1px solid rgba(10, 27, 57, 0.06);
  border-radius: 6px;
  padding: 10px 6px;
}

.about-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-amber-dark);
}

.about-stat-label {
  font-size: 10.5px;
  color: var(--color-ink-muted);
  line-height: 1.3;
  display: block;
  margin-top: 2px;
}

.about-section-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(10, 27, 57, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(10, 27, 57, 0.04);
}

.about-section-card.highlight-corridor {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.6) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.about-card-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.about-icon-pill {
  font-size: 18px;
  background: rgba(10, 27, 57, 0.05);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.3;
}

.about-section-p {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

.about-section-p:last-child {
  margin-bottom: 0;
}

.about-corridor-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.corridor-note-item {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-ink-muted);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 3px solid #2563eb;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 3px rgba(10, 27, 57, 0.04);
}

.corridor-note-item strong {
  color: var(--color-ink);
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.about-tip-callout {
  font-size: 12px;
  color: #1e40af;
  background: rgba(219, 234, 254, 0.6);
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0 0;
  line-height: 1.5;
}

.about-feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-feature-list li {
  font-size: 12.5px;
  color: var(--color-ink-muted);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.about-feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-amber-dark);
  font-weight: 700;
}

.about-feature-list li strong {
  color: var(--color-ink);
}

.about-gates-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}

.mini-gate-item {
  font-size: 12px;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(10, 27, 57, 0.03);
  border-radius: 4px;
}

.mini-gate-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  background: var(--color-ink);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.btn-about-start {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
  transition: all 0.2s ease !important;
}

.btn-about-start:hover {
  background: #1d4ed8 !important;
  border-color: #1e40af !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Looker Studio Analytics & Telemetry Modal
   ========================================================================== */
.analytics-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 27, 57, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.analytics-modal {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(10, 27, 57, 0.22);
  border: 1px solid var(--color-border);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.analytics-modal-header {
  padding: 24px 28px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.analytics-modal-body {
  padding: 24px 28px;
}

.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.stat-card {
  background: #fafaf9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-ink);
  display: block;
}

.stat-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.looker-action-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 22px 0;
}

.looker-action-header h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.looker-action-header p {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin-bottom: 14px;
}

.looker-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sheets-formula-box {
  margin-top: 12px;
  background: #ffffff;
  border: 1px dashed #059669;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.formula-copied-hint {
  color: #059669;
  font-weight: 700;
  font-size: 11px;
}

.analytics-breakdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.breakdown-heading {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 10px;
  background: #fafaf9;
  border-radius: var(--radius-sm);
}

.rank-item-name {
  font-weight: 600;
  color: var(--color-ink);
}

.rank-item-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-amber-dark);
}

.gap-text {
  font-size: 12.5px;
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.gap-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
  background: #fdf6ec;
  border: 1px solid #fed7aa;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.analytics-modal-footer {
  padding: 16px 28px;
  background: #fafaf9;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--color-amber);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 25px rgba(10, 27, 57, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 3.7s forwards;
  max-width: 340px;
}

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

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

.toast-icon {
  font-size: 16px;
}

@media (max-width: 768px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-breakdown-row {
    grid-template-columns: 1fr;
  }
  .favorites-drawer,
  .about-drawer,
  .bonuses-drawer {
    width: 100%;
  }
  .recalibrate-action-container {
    margin-top: 28px;
    padding: 0 12px;
  }
  .btn-recalibrate {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   TRANSFER BONUSES & ARBITRAGE STYLES
   ========================================================================== */

/* Header Bonuses Button */
.btn-header-bonuses {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-bonuses:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.7);
  transform: translateY(-1px);
}

.btn-header-bonuses .bonus-icon {
  color: #b38927;
  font-size: 13px;
}

.btn-header-bonuses .bonus-count-badge {
  background: #b38927;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.2;
}

/* Boarding Pass Bonus Banner */
.pass-bonus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0.04) 100%);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.bonus-banner-sparkle {
  color: #b38927;
  font-size: 16px;
  flex-shrink: 0;
}

.bonus-banner-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bonus-banner-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #8c6818;
  text-transform: uppercase;
}

.bonus-banner-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.bonus-banner-badge {
  background: #b38927;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Dossier Economics & Arbitrage Column */
.dossier-economics-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Dossier Arbitrage Box (Accordion) */
.dossier-arbitrage-box {
  background: linear-gradient(180deg, #fffefc 0%, #fbf7ee 100%);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  box-shadow: 0 3px 12px rgba(201, 168, 76, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dossier-arbitrage-box:hover {
  border-color: rgba(201, 168, 76, 0.65);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.12);
}

.arbitrage-accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: block;
  font-family: inherit;
  color: inherit;
  outline: none;
}

.arbitrage-accordion-toggle:focus-visible {
  outline: 2px solid #b38927;
  outline-offset: 4px;
  border-radius: 4px;
}

.arbitrage-summary-main {
  display: flex;
  flex-direction: column;
}

.arbitrage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.arbitrage-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arbitrage-sparkle {
  color: #b38927;
  font-size: 13px;
}

.arbitrage-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #8c6818;
  text-transform: uppercase;
}

.arbitrage-bonus-pill {
  background: #b38927;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.arbitrage-headline {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 5px 0;
  line-height: 1.35;
}

.arbitrage-toggle-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #8c6818;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.arbitrage-accordion-toggle:hover .arbitrage-toggle-prompt {
  color: #634608;
}

.arbitrage-chevron {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dossier-arbitrage-box.expanded .arbitrage-chevron {
  transform: rotate(180deg);
}

/* Accordion Expand / Collapse via CSS Grid */
.arbitrage-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dossier-arbitrage-box.expanded .arbitrage-accordion-content {
  grid-template-rows: 1fr;
}

.arbitrage-content-inner {
  min-height: 0;
  overflow: hidden;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px dashed rgba(201, 168, 76, 0.3);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dossier-arbitrage-box.expanded .arbitrage-content-inner {
  opacity: 1;
  transform: translateY(0);
}

.arbitrage-desc {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

/* Arbitrage Math Panel */
.arbitrage-math-panel {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.arbitrage-math-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(201, 168, 76, 0.2);
}

.arbitrage-math-row:last-child {
  border-bottom: none;
}

.arbitrage-math-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-muted);
  letter-spacing: 0.2px;
}

.arbitrage-math-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.arbitrage-math-row.highlight .arbitrage-math-label {
  color: var(--color-ink);
  font-weight: 600;
}

.arbitrage-math-row.highlight .arbitrage-math-val {
  color: #0a1b39;
  font-weight: 700;
}

.arbitrage-math-row.savings .arbitrage-math-label {
  color: #2e7d32;
  font-weight: 600;
}

.arbitrage-math-row.savings .arbitrage-math-val {
  color: #2e7d32;
  font-weight: 700;
}

.arbitrage-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arbitrage-timing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8c6818;
}

.arbitrage-disclaimer {
  font-size: 11px;
  font-style: italic;
  color: var(--color-ink-muted);
  line-height: 1.45;
  margin: 0;
}

/* Bonuses Slide-Over Drawer */
.bonuses-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 27, 57, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.25s ease-out;
}

.bonuses-drawer {
  background: var(--color-paper);
  width: 480px;
  max-width: 90vw;
  height: 100%;
  box-shadow: -8px 0 32px rgba(10, 27, 57, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.bonuses-drawer-intro {
  font-size: 13.5px;
  color: var(--color-ink-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid #b38927;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.bonuses-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bonus-drawer-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(10, 27, 57, 0.04);
}

.bonus-drawer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bonus-drawer-bank {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-ink-muted);
  text-transform: uppercase;
}

.bonus-drawer-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.bonus-drawer-notes {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.bonus-drawer-protip {
  font-size: 12px;
  font-style: italic;
  color: #8c6818;
  background: rgba(201, 168, 76, 0.06);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.bonus-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-ink-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}


