/* ════════════════════════════════════════════════════════
   SAS Airlines Mobile App — Styles (Dark Theme)
   Brand: #000099 (SAS Blue), #D40E14 (SAS Red), #FFFFFF
════════════════════════════════════════════════════════ */

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

:root {
  --sas-blue: #000099;
  --sas-blue-bright: #1A6FFF;
  --sas-red: #D40E14;
  --white: #ffffff;
  /* Dark theme */
  --bg: #0C0C14;
  --card-bg: #1A1A24;
  --card-bg-2: #222230;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.62);
  --text-muted: rgba(255,255,255,0.38);
  --border: rgba(255,255,255,0.1);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --bottom-bar-h: 68px;
  --status-bar-h: 0px;
  --hero-h: 340px;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ═══ STATUS BAR — hidden (simulator provides its own) ═══ */
.status-bar { display: none; }

/* ═══ APP WRAPPER ═══ */
.app-wrapper {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

/* ═══ SCREEN ═══ */
.screen {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-bar-h) + 16px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.screen.is-active { display: block; }

/* ═══ HOME HERO — full bleed destination photo with rotating slideshow ═══ */
.home-hero {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  flex-shrink: 0;
  background: #0a1a2e; /* fallback while images load */
}

/* Dark gradient overlay */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 30%,
    rgba(0,0,0,0.45) 65%,
    rgba(12,12,20,1) 100%
  );
  pointer-events: none;
}

/* Blur layer — only active during a call (body.in-call class)
   Fades from full blur at top to none ~55% down, matching banner gradient */
.hero-blur-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  z-index: 3;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: backdrop-filter 0.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 100%);
}
body.in-call .hero-blur-top {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Individual hero slide layers */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
  transform: scale(1.06);
  animation: hero-ken-burns 18s ease-in-out infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

.hero-slide--riga {
  background-image: url('https://components.flysas.com/content/assets/ctfassets/oz9qk43ly6yk/3ECVO3W22LKtQTGTyqY71k/606a4fda6719d79e8c87895177ffabdb/Latvia-Riga-rix-garden-buildings-sas.jpeg?fm=webp&q=82&f=&w=1600');
}
.hero-slide--cph {
  background-image: url('https://components.flysas.com/content/assets/ctfassets/oz9qk43ly6yk/anyt7YL3XBYB8DZH2UibJ/7975c7caf6bda50c60e6598e22f609f2/denmark-copenhagen-cph-canal-dusk-sas.png?fm=webp&q=66&f=&w=800');
}
.hero-slide--hotel {
  background-image: url('https://components.flysas.com/content/assets/ctfassets/oz9qk43ly6yk/1XHsMpeH1CTAeeNvlvrr9k/0a1af2ef8543c3e2fce60c280b4a77cb/SAS.XX_BIG62_Hotel_960x720.png?fm=webp&q=66&f=&w=800');
}

@keyframes hero-ken-burns {
  0%   { opacity: 0; transform: scale(1.06); }
  8%   { opacity: 1; transform: scale(1.05); }
  50%  { opacity: 1; transform: scale(1.00); }
  58%  { opacity: 0; transform: scale(1.00); }
  100% { opacity: 0; transform: scale(1.06); }
}

/* Floating top bar — sits over the slides + overlay */
.home-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}
.htb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 24px;
  padding: 6px 14px 6px 6px;
  backdrop-filter: blur(8px);
}
.passenger-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.passenger-avatar svg { width: 18px; height: 18px; }
.passenger-points {
  color: white;
  font-size: 13px;
  font-weight: 600;
}
.points-value { font-weight: 700; }
.points-label { font-weight: 400; opacity: 0.8; font-size: 12px; }

/* Language toggle pill */
.lang-toggle {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.15s;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.lang-toggle:active { background: rgba(0,0,0,0.55); }
#lang-flag { font-size: 14px; line-height: 1; }
#lang-code { font-size: 12px; font-weight: 700; }

/* Hero content (text over photo) */
.hero-content {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  z-index: 5; /* above .home-hero::after overlay */
  color: white;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.hero-headline {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
}
.hero-sub {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero-cta {
  display: inline-block;
  background: white;
  color: var(--sas-blue);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.15s;
}
.hero-cta:active { transform: scale(0.97); opacity: 0.9; }

/* ═══ SEARCH WIDGET — dark two-panel ═══ */
.search-widget {
  display: flex;
  background: var(--card-bg);
  position: relative;
  margin-top: -2px;
}
.sw-panel {
  flex: 1;
  padding: 18px 20px;
  cursor: pointer;
}
.sw-panel--from {
  background: #1C1C28;
}
.sw-panel--to {
  background: #141420;
}
.sw-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 400;
}
.sw-plane-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }
.sw-panel-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.sw-panel-value--search {
  color: var(--sas-blue-bright);
}
.sw-panel-city {
  font-size: 12px;
  color: var(--text-muted);
}
/* Swap button in center */
.sw-swap-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  background: #2A2A3A;
  border: 2px solid var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--text-secondary);
}
.sw-swap-btn svg { width: 14px; height: 14px; }

/* ═══ SECTION LABELS (above the search widget) ═══ */
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 16px 16px 2px;
}
.section-sublabel {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 16px 10px;
}

/* ═══ OFFER CARD (big blue banner) ═══ */
.offer-card {
  margin: 0 16px 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 80px;
  background: linear-gradient(135deg, var(--sas-blue) 0%, var(--sas-blue-bright) 100%);
  cursor: pointer;
}
.offer-card-body {
  padding: 18px 20px;
}
.offer-card-eyebrow {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.offer-card-headline {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
}

/* ═══ DEALS STRIP ═══ */
.deals-strip {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.deals-strip::-webkit-scrollbar { display: none; }
.deal-item {
  flex-shrink: 0;
  width: 130px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}
.deal-img {
  height: 72px;
  background: #1e3a5f;
  position: relative;
}
.deal-img--barcelona {
  background: url('https://tripx-wp.imgix.net/18/2025/12/rome-colloseum-sas-holidays-scaled.jpg?auto=format') center/cover;
}
.deal-img--london {
  background: url('https://tripx-wp.imgix.net/18/2025/12/london-big-ben-bus-sas-holidays.jpg?auto=format') center/cover;
}
.deal-img--oslo {
  background: url('https://tripx-wp.imgix.net/18/2025/12/france-paris-baguettes-city-sas-holidays-scaled.jpg?auto=format') center/cover;
}
.deal-info { padding: 10px 12px 12px; }
.deal-city { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.deal-type { font-size: 11px; color: var(--text-muted); margin: 1px 0; }
.deal-price { font-size: 12px; font-weight: 600; color: var(--sas-blue-bright); }

/* ═══ HOLIDAYS PROMO CARD ═══ */
.holidays-card {
  margin: 0 16px 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
}
.holidays-card-img {
  height: 160px;
  background: url('https://tripx-wp.imgix.net/18/2026/01/swimsuit-woman-back-sas-holidays_2_1650x1100.jpg?auto=format') center/cover;
  position: relative;
}
.holidays-card-text { padding: 16px 20px 20px; }
.holidays-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.holidays-brand svg path { fill: var(--sas-blue-bright); }
.holidays-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.holidays-headline { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.holidays-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.holidays-btn {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 10px 24px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.holidays-btn:active { background: rgba(255,255,255,0.08); }

/* ═══ SKYTEAM FOOTER ═══ */
.skyteam-footer {
  display: flex;
  justify-content: center;
  padding: 20px 0 24px;
  opacity: 0.6;
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 20px 16px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.section-link {
  font-size: 13px;
  color: var(--sas-blue-bright);
  text-decoration: none;
  font-weight: 500;
}

/* ═══ TRIP CARD ═══ */
.trip-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.trip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sas-blue-bright);
}
.trip-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.trip-city { text-align: center; }
.trip-code {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.trip-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.trip-arrow-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.trip-flight-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.trip-plane {
  width: 20px;
  height: 20px;
  transform: rotate(0deg);
  margin: 0 8px;
  opacity: 0.5;
}
.trip-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.trip-meta-item { text-align: center; }
.trip-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}
.trip-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.trip-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}
.trip-badge--confirmed {
  background: rgba(46,125,50,0.2);
  color: #66BB6A;
}

/* ═══ QUICK ACTIONS ═══ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-action {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
  font-family: inherit;
}
.quick-action:active { transform: scale(0.95); }
.quick-action-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,0,153,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-action-icon svg { width: 20px; height: 20px; stroke: var(--sas-blue-bright); }
.quick-action span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

/* ═══ EUROBONUS CARD ═══ */
.eurobonus-card {
  background: linear-gradient(135deg, #12125C 0%, #1a1ab3 100%);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}
.eurobonus-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.eurobonus-points {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.eurobonus-points span {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}
.eurobonus-tier {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 3px;
}
.eurobonus-right { flex: 1; padding-left: 24px; }
.eurobonus-progress-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 6px;
}
.eurobonus-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}
.eurobonus-bar-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
}
.eurobonus-progress-text {
  font-size: 11px;
  opacity: 0.6;
}

/* ═══ ACTION LIST (real SAS app style rows) ═══ */
.action-list {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.action-list-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.action-list-item:last-child { border-bottom: none; }
.action-list-item:active { background: rgba(255,255,255,0.05); }
.action-list-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.action-list-icon svg { width: 20px; height: 20px; }
.action-list-label {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
}
.action-list-arrow {
  color: var(--text-muted);
}
.action-list-arrow svg { width: 16px; height: 16px; }

/* ═══ BOTTOM NAV ═══ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 420px;
  margin: 0 auto;
  background: #0C0C14;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 0 4px;
  height: var(--bottom-bar-h);
}
.bottom-nav-item {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
  font-family: inherit;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item span { font-size: 10px; font-weight: 500; }
.bottom-nav-item.is-active { color: white; }
/* Active indicator dot */
.bottom-nav-item.is-active::before {
  display: none;
}

/* Home item uses SAS SVG logo */
.bottom-nav-item--home .sas-logo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  color: rgba(255,255,255,0.4);
}
.bottom-nav-item--home.is-active .sas-logo-nav {
  color: white;
}
.sas-logo-nav svg { height: 14px; width: auto; }

/* Centre call button */
.bottom-nav-call-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-bottom: 4px;
}
.bottom-nav-call {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sas-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,153,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: -12px;
}
.bottom-nav-call:active { transform: scale(0.93); box-shadow: 0 2px 8px rgba(0,0,153,0.3); }
.bottom-nav-call svg { width: 22px; height: 22px; }
.bottom-nav-call-label { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.6); }
.bottom-nav-call.is-ringing { animation: ring-pulse 0.8s ease infinite; }

/* ═══ IN-CALL BAR ═══ */
.incall-bar {
  position: fixed;
  bottom: var(--bottom-bar-h);
  left: 0; right: 0;
  max-width: 420px;
  margin: 0 auto;
  background: #1A1A24;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 49;
  padding: 10px 16px 12px;
  animation: fly-in-up 0.3s cubic-bezier(0.32,0.72,0,1);
}
.incall-transcript-row {
  min-height: 26px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.incall-transcript-row.is-empty { display: none; }
.transcript-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  white-space: nowrap;
  display: block;
}
@keyframes transcript-scroll {
  0%   { transform: translateX(0); }
  10%  { transform: translateX(0); }
  90%  { transform: translateX(var(--scroll-dist)); }
  100% { transform: translateX(var(--scroll-dist)); }
}
.incall-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.incall-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.call-avatar {
  width: 48px;
  height: 48px;
  background: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  margin: -6px 0;
}
.call-avatar img {
  height: 52px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}
.incall-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.incall-duration {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.incall-buttons { display: flex; gap: 8px; align-items: center; }
.incall-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.incall-btn:active { transform: scale(0.92); }
.incall-btn svg { width: 18px; height: 18px; }
.incall-btn--mute { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.incall-btn--mute.is-muted { background: var(--sas-red); color: white; }
.incall-btn--speaker { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.incall-btn--speaker.is-on { background: var(--sas-blue); color: white; }
.incall-btn--hangup { background: var(--sas-red); color: white; width: 46px; height: 46px; }

/* ═══════════════════════════════════════════════
   OVERLAY CARDS (white — slide up over dark bg)
═══════════════════════════════════════════════ */
.overlay-card {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 420px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  max-height: 88vh;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom, 16px);
  display: flex;
  flex-direction: column;
}
.overlay-card.is-open { transform: translateY(0); }
.overlay-card--compact { max-height: 70vh; }
.overlay-card--escalation { max-height: 80vh; }
.overlay-handle {
  width: 36px; height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  margin: 12px auto 4px;
  flex-shrink: 0;
}
.overlay-close {
  position: absolute;
  top: 12px; right: 16px;
  width: 32px; height: 32px;
  background: #F3F4F6;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #6B7280;
  z-index: 2;
}
.overlay-close svg { width: 16px; height: 16px; }
.overlay-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

/* Text colours inside white overlay cards */
.overlay-card { --text-primary: #0D0D2B; --text-secondary: #6B7280; --text-muted: #9CA3AF; --border: #E5E7EB; }

/* ═══ BOOKING CARD ═══ */
.booking-header {
  text-align: center;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.booking-ref-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.booking-ref {
  font-size: 32px;
  font-weight: 800;
  color: #000099;
  letter-spacing: -1px;
}
.booking-passenger {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}
.flight-card {
  background: #F8F9FF;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.flight-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.flight-card-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fc-city { text-align: center; }
.fc-time { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; }
.fc-code { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.fc-middle { flex: 1; padding: 0 12px; text-align: center; }
.fc-duration { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.fc-line { display: flex; align-items: center; }
.fc-dot { width: 6px; height: 6px; border-radius: 50%; background: #000099; flex-shrink: 0; }
.fc-line-bar { flex: 1; height: 1px; background: #000099; opacity: 0.3; }
.fc-direct { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.flight-card-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.flight-card-meta span::after { content: '·'; margin-left: 10px; }
.flight-card-meta span:last-child::after { content: ''; margin: 0; }
.booking-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.bd-item { background: #F8F9FF; border-radius: var(--radius-sm); padding: 12px 14px; }
.bd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.bd-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.bd-value--confirmed { color: #2E7D32; }
.action-btn {
  width: 100%; padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  margin-bottom: 10px;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.action-btn:active { transform: scale(0.98); opacity: 0.9; }
.action-btn--primary { background: #000099; color: white; }
.action-btn--secondary { background: #EEF0FF; color: #000099; }

/* ═══ FLIGHT RESULTS ═══ */
.search-header {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.search-route { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 4px; }
.search-meta { font-size: 13px; color: var(--text-secondary); }
.flight-result-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
  margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.15s;
  animation: card-slide-in 0.35s cubic-bezier(0.32,0.72,0,1) both;
}
.flight-result-card:nth-child(2) { animation-delay: 0.06s; }
.flight-result-card:nth-child(3) { animation-delay: 0.12s; }
.flight-result-card.is-selected { border-color: #000099; box-shadow: 0 0 0 2px rgba(0,0,153,0.12); }
@keyframes card-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.frc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.frc-times { display: flex; align-items: center; gap: 8px; }
.frc-time { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; }
.frc-dash { color: var(--text-muted); font-size: 14px; }
.frc-price { text-align: right; }
.frc-price-amount { font-size: 20px; font-weight: 700; color: #000099; letter-spacing: -0.5px; }
.frc-price-class { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.frc-bottom { display: flex; justify-content: space-between; align-items: center; }
.frc-meta { font-size: 12px; color: var(--text-secondary); }
.frc-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.frc-badge--cheapest { background: #E8F5E9; color: #2E7D32; }
.frc-badge--popular { background: #EEF0FF; color: #000099; }
.frc-badge--fastest { background: #FFF3E0; color: #E65100; }
.frc-select-btn {
  width: 100%; padding: 12px; border-radius: var(--radius-md);
  background: #000099; color: white; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  margin-top: 14px; display: none; font-family: inherit;
}
.flight-result-card.is-selected .frc-select-btn { display: block; }

/* ═══ CONFIRMATION CARDS ═══ */
.confirmation-icon { text-align: center; padding: 24px 0 16px; }
.confirmation-icon svg { width: 72px; height: 72px; }
.confirmation-title { font-size: 22px; font-weight: 700; color: var(--text-primary); text-align: center; letter-spacing: -0.3px; margin-bottom: 8px; }
.confirmation-desc { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; }
.confirmation-ref-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); text-align: center; margin-bottom: 6px; }
.confirmation-ref { font-size: 28px; font-weight: 800; color: #000099; text-align: center; letter-spacing: -0.5px; margin-bottom: 8px; }
.confirmation-amount { font-size: 16px; font-weight: 600; color: var(--text-secondary); text-align: center; margin-bottom: 24px; }

/* ═══ SEAT MAP ═══ */
.seat-header { padding: 12px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.seat-header-title { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.seat-header-flight { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.seat-map-container { background: #F8F9FF; border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.seat-map { display: flex; flex-direction: column; gap: 4px; min-width: 220px; margin: 0 auto; width: fit-content; }
.seat-row { display: flex; gap: 4px; align-items: center; }
.seat-row-num { width: 20px; font-size: 10px; color: var(--text-muted); text-align: right; margin-right: 4px; }
.seat-cell { width: 28px; height: 28px; border-radius: 6px 6px 3px 3px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; transition: transform 0.2s; }
.seat-cell--available { background: #E5E7EB; color: #9CA3AF; }
.seat-cell--occupied { background: #F3F4F6; color: #D1D5DB; cursor: default; }
.seat-cell--selected { background: #000099; color: white; transform: scale(1.15); box-shadow: 0 2px 8px rgba(0,0,153,0.35); }
.seat-cell--extra-legroom { background: #DBEAFE; color: #1D4ED8; }
.seat-cell--selected.seat-cell--extra-legroom { background: #000099; color: white; }
.seat-aisle { width: 12px; }
.seat-info-card { background: #EEF0FF; border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; }
.seat-info-number { font-size: 28px; font-weight: 800; color: #000099; letter-spacing: -0.5px; margin-bottom: 4px; }
.seat-info-type { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.seat-info-features { display: flex; gap: 8px; flex-wrap: wrap; }
.seat-feature { font-size: 11px; background: white; color: #000099; padding: 3px 10px; border-radius: 20px; font-weight: 500; }

/* ═══ FAQ CARD ═══ */
.faq-header { padding: 4px 0 16px; }
.faq-header-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.faq-icon { width: 36px; height: 36px; background: rgba(0,0,153,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-icon svg { width: 18px; height: 18px; color: #4444CC; }
.faq-header-text {}
.faq-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #4444CC; font-weight: 600; margin-bottom: 2px; }
.faq-title { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }

/* Topic pills */
.faq-topics { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.faq-topic-pill { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; background: var(--card-bg-2); color: var(--text-secondary); border: 1px solid var(--border); white-space: nowrap; }
.faq-topic-pill.is-active { background: #000099; color: #fff; border-color: #000099; }

.faq-answer { font-size: 14px; line-height: 1.7; color: var(--text-primary); margin-bottom: 20px; }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: #6699FF; }
.faq-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.faq-table th { background: rgba(255,255,255,0.06); padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.faq-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.faq-table tr:last-child td { border-bottom: none; }
.faq-related { margin-top: 4px; }
.faq-related-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.faq-related-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; color: #6699FF; font-size: 14px; font-weight: 500; gap: 8px; }
.faq-related-item:last-child { border-bottom: none; }
.faq-related-item::after { content: '→'; margin-left: auto; font-size: 16px; opacity: 0.5; }

/* ═══ ESCALATION CARD ═══ */
.escalation-icon { text-align: center; padding: 20px 0 10px; position: relative; }
.escalation-icon svg { width: 72px; height: 72px; }
.escalation-pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80px; height: 80px; border-radius: 50%; background: rgba(0,0,153,0.1); animation: pulse 2s ease infinite; }
@keyframes pulse { 0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.8; } 100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; } }
.escalation-title { font-size: 20px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 8px; letter-spacing: -0.3px; }
.escalation-desc { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 20px; }
.escalation-wait { background: #F8F9FF; border-radius: var(--radius-md); padding: 16px; text-align: center; margin-bottom: 20px; }
.escalation-wait-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.escalation-wait-time { font-size: 18px; font-weight: 700; color: #000099; }
.escalation-context { background: #F8F9FF; border-radius: var(--radius-md); padding: 14px; margin-bottom: 20px; }
.escalation-context-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.escalation-context-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.escalation-context-item:last-child { border-bottom: none; }
.escalation-context-dot { width: 6px; height: 6px; border-radius: 50%; background: #000099; flex-shrink: 0; }
.escalation-connecting { display: flex; justify-content: center; gap: 8px; padding: 10px 0; }
.connecting-dot { width: 10px; height: 10px; border-radius: 50%; background: #000099; opacity: 0.3; animation: connecting-pulse 1.2s ease infinite; }
.connecting-dot:nth-child(2) { animation-delay: 0.2s; }
.connecting-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes connecting-pulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* ═══ ANIMATIONS ═══ */
@keyframes fly-in-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ring-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,153,0.5); } 50% { box-shadow: 0 0 0 10px rgba(0,0,153,0); } }

/* ═══ OVERLAY BACKDROP ═══ */
.overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 70; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.overlay-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* ═══ CALL STATUS BANNER ═══ */
.call-status-pill {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  max-width: 420px;
  margin: 0 auto;
  /* Semi-transparent blue, very long soft fade to transparent at bottom */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 153, 0.85) 0%,
    rgba(0, 0, 153, 0.65) 20%,
    rgba(0, 0, 153, 0.38) 45%,
    rgba(0, 0, 153, 0.14) 68%,
    rgba(0, 0, 153, 0.04) 85%,
    rgba(0, 0, 153, 0.0) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  padding: 14px 20px 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 60;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s cubic-bezier(0.32,0.72,0,1), transform 0.35s cubic-bezier(0.32,0.72,0,1);
  pointer-events: none;
  letter-spacing: 0.2px;
}
.call-status-pill::before {
  /* Pulsing green dot */
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: call-dot-pulse 1.5s ease infinite;
}
@keyframes call-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}
.call-status-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ═══ RESPONSIVE ═══ */
@media (min-width: 421px) {
  .app-wrapper, .bottom-nav, .incall-bar {
    left: 50%; right: auto;
    transform: translateX(-50%);
    width: 420px;
  }
  .overlay-card {
    left: 50%; right: auto; width: 420px;
    transform: translateX(-50%) translateY(110%);
  }
  .overlay-card.is-open { transform: translateX(-50%) translateY(0); }
  .call-status-pill { left: 50%; right: auto; width: 420px; transform: translateY(-100%); }
  .call-status-pill.is-visible { transform: translateX(-50%) translateY(0); }
  .overlay-backdrop { max-width: 420px; left: 50%; transform: translateX(-50%); }
}
