/**
 * BMGA Preloader — Design 1b premium system
 * Page loaders + flight search overlay
 */

:root {
  --bmga-pl-brand: #de2a1f;
  --bmga-pl-brand-dark: #8f1710;
  --bmga-pl-brand-soft: #fbedea;
  --bmga-pl-ink: #1c1414;
  --bmga-pl-muted: #4a403c;
  --bmga-pl-muted-2: #59504c;
  --bmga-pl-bg: #faf6f3;
  --bmga-pl-accent-2: #f4a15a;
  --bmga-pl-flight: #1d4ed8;
  --bmga-pl-flight-soft: #eff6ff;
  --bmga-pl-hotel: #c2410c;
  --bmga-pl-hotel-soft: #fff7ed;
  --bmga-pl-card: #ffffff;
  --bmga-pl-border: #f0e4df;
  --bmga-pl-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  --bmga-pl-font-display: "Baloo 2", system-ui, sans-serif;
  --bmga-pl-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --bmga-pl-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bmga-pl-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark-mode {
  --bmga-pl-bg: #141010;
  --bmga-pl-card: #1c1414;
  --bmga-pl-border: rgba(255, 255, 255, 0.08);
  --bmga-pl-ink: #faf6f3;
  --bmga-pl-muted: #9a8d89;
  --bmga-pl-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ── Surface ── */
.bmga-preloader-surface {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: var(--bmga-pl-font-body);
}

.bmga-preloader-surface.is-entering .bmga-preloader-card,
.bmga-preloader-card.is-entering {
  animation: bmga-pl-card-enter 0.7s var(--bmga-pl-ease-out) both;
}

.bmga-preloader-surface.is-exiting {
  animation: bmga-pl-surface-exit 0.45s var(--bmga-pl-ease-out) forwards;
}

@keyframes bmga-pl-surface-exit {
  to { opacity: 0; backdrop-filter: blur(0); }
}

@keyframes bmga-pl-card-enter {
  0% { opacity: 0; transform: translateY(28px) scale(0.94); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ── Scene backdrop ── */
.bmga-preloader-scene {
  position: absolute;
  inset: 0;
  background: var(--bmga-pl-bg);
  overflow: hidden;
}

.bmga-preloader-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.98) 0%, transparent 50%),
    linear-gradient(180deg, var(--bmga-pl-bg) 0%, #fff 100%);
}

.bmga-preloader-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(28, 20, 20, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}

.bmga-pl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  animation: bmga-pl-orb-float 10s ease-in-out infinite;
}

.bmga-pl-orb--1 { width: min(380px, 58vw); height: min(380px, 58vw); top: -12%; left: -8%; background: rgba(222, 42, 31, 0.2); }
.bmga-pl-orb--2 { width: min(300px, 48vw); height: min(300px, 48vw); bottom: -12%; right: -6%; background: rgba(244, 161, 90, 0.18); animation-delay: -3.5s; }
.bmga-pl-orb--3 { width: min(220px, 38vw); height: min(220px, 38vw); top: 42%; right: 12%; background: rgba(222, 42, 31, 0.06); animation-delay: -6s; }

.bmga-preloader-surface--flight .bmga-pl-orb--1 { background: rgba(29, 78, 216, 0.16); }
.bmga-preloader-surface--flight .bmga-pl-orb--2 { background: rgba(222, 42, 31, 0.1); }
.bmga-preloader-surface--flight .bmga-pl-orb--3 { background: rgba(147, 197, 253, 0.22); }

.bmga-preloader-surface--hotel .bmga-pl-orb--1 { background: rgba(244, 161, 90, 0.26); }
.bmga-preloader-surface--hotel .bmga-pl-orb--2 { background: rgba(222, 42, 31, 0.08); }
.bmga-preloader-surface--hotel .bmga-pl-orb--3 { background: rgba(251, 191, 36, 0.14); }

.bmga-preloader-surface--search .bmga-pl-orb--1 { background: rgba(29, 78, 216, 0.18); }
.bmga-preloader-surface--search .bmga-pl-orb--2 { background: rgba(222, 42, 31, 0.12); }
.bmga-preloader-surface--search .bmga-pl-orb--3 { background: rgba(191, 219, 254, 0.3); }

@keyframes bmga-pl-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(16px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 12px) scale(0.98); }
}

/* ── Card ── */
.bmga-preloader-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(420px, 100vw - 1.5rem);
  background: var(--bmga-pl-card);
  border: 1.5px solid var(--bmga-pl-border);
  border-radius: 20px;
  box-shadow: var(--bmga-pl-shadow);
  overflow: hidden;
}

.bmga-preloader-card--wide { max-width: min(480px, 100vw - 1.5rem); }

.bmga-preloader-card__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bmga-pl-brand), var(--bmga-pl-accent-2), transparent);
  background-size: 200% 100%;
  animation: bmga-pl-shimmer 2.4s ease-in-out infinite;
}

.bmga-preloader-surface--flight .bmga-preloader-card__shimmer {
  background: linear-gradient(90deg, transparent, var(--bmga-pl-flight), #60a5fa, var(--bmga-pl-brand), transparent);
  background-size: 200% 100%;
}

.bmga-preloader-surface--hotel .bmga-preloader-card__shimmer {
  background: linear-gradient(90deg, transparent, var(--bmga-pl-hotel), #fb923c, var(--bmga-pl-brand), transparent);
  background-size: 200% 100%;
}

.bmga-preloader-surface--search .bmga-preloader-card__shimmer {
  background: linear-gradient(90deg, transparent, var(--bmga-pl-flight), var(--bmga-pl-brand), transparent);
  background-size: 200% 100%;
}

@keyframes bmga-pl-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bmga-preloader-card__body {
  padding: clamp(1.5rem, 4.5vw, 2rem) clamp(1.25rem, 3.5vw, 1.75rem) clamp(1.25rem, 3vw, 1.65rem);
  text-align: center;
}

/* ── Brand block ── */
.bmga-pl-brand-block {
  margin-bottom: 1.1rem;
}

.bmga-pl-logo-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.85rem;
}

.bmga-pl-logo-ring::before {
  content: "";
  position: absolute;
  inset: -7px 12%;
  border-radius: 16px;
  border: 2px solid transparent;
  border-top-color: rgba(222, 42, 31, 0.3);
  border-right-color: rgba(244, 161, 90, 0.18);
  animation: bmga-pl-ring-spin 2.4s linear infinite;
  pointer-events: none;
}

.bmga-pl-logo-ring--wide::before {
  inset: -8px 8%;
}

@keyframes bmga-pl-ring-spin {
  to { transform: rotate(360deg); }
}

.bmga-pl-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.35rem 0.5rem;
  border-radius: 14px;
  background: transparent;
}

.bmga-pl-logo-wrap--wide {
  min-height: 56px;
  padding: 0.45rem 0.75rem;
}

.bmga-pl-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: min(200px, 72vw);
  object-fit: contain;
  object-position: center;
}

.bmga-pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bmga-pl-brand);
  background: var(--bmga-pl-brand-soft);
  border: 1px solid rgba(222, 42, 31, 0.08);
}

.bmga-preloader-surface--flight .bmga-pl-eyebrow { color: var(--bmga-pl-flight); background: var(--bmga-pl-flight-soft); border-color: rgba(29, 78, 216, 0.1); }
.bmga-preloader-surface--hotel .bmga-pl-eyebrow { color: var(--bmga-pl-hotel); background: var(--bmga-pl-hotel-soft); border-color: rgba(194, 65, 12, 0.1); }

.bmga-pl-title {
  font-family: var(--bmga-pl-font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bmga-pl-ink);
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}

.bmga-pl-sub {
  font-size: clamp(0.84rem, 2.2vw, 0.92rem);
  line-height: 1.55;
  color: var(--bmga-pl-muted);
  margin: 0;
}

/* ── Stage visuals ── */
.bmga-pl-stage {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem 0 1.15rem;
}

/* Home — orbital hub */
.bmga-pl-orbit-hub {
  position: relative;
  width: 100px;
  height: 100px;
}

.bmga-pl-orbit-hub__core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bmga-pl-brand), var(--bmga-pl-accent-2));
  box-shadow: 0 4px 20px rgba(222, 42, 31, 0.35);
  animation: bmga-pl-core-pulse 2s ease-in-out infinite;
}

@keyframes bmga-pl-core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(222, 42, 31, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 6px 28px rgba(222, 42, 31, 0.45); }
}

.bmga-pl-orbit-hub__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(222, 42, 31, 0.15);
  animation: bmga-pl-ring-spin 12s linear infinite reverse;
}

.bmga-pl-orbit-hub__sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--bmga-pl-brand);
  background: #fff;
  border: 1.5px solid var(--bmga-pl-border);
  box-shadow: 0 4px 14px rgba(28, 20, 20, 0.06);
  transform: rotate(var(--angle)) translateY(-46px) rotate(calc(-1 * var(--angle)));
  animation: bmga-pl-sat-glow 2.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bmga-pl-orbit-hub__sat.is-active {
  color: #fff;
  background: var(--bmga-pl-brand);
  border-color: var(--bmga-pl-brand);
  box-shadow: 0 6px 20px rgba(222, 42, 31, 0.35);
  transform: rotate(var(--angle)) translateY(-46px) rotate(calc(-1 * var(--angle))) scale(1.12);
}

@keyframes bmga-pl-sat-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* Flight page — globe route */
.bmga-pl-globe-route {
  position: relative;
  width: 120px;
  height: 80px;
}

.bmga-pl-globe-route svg { width: 100%; height: 100%; overflow: visible; }

.bmga-pl-globe-route .route-bg {
  fill: none;
  stroke: rgba(29, 78, 216, 0.12);
  stroke-width: 2;
  stroke-dasharray: 4 8;
}

.bmga-pl-globe-route .route-active {
  fill: none;
  stroke: url(#bmgaRouteGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: bmga-pl-route-draw 2.2s ease-in-out infinite;
}

@keyframes bmga-pl-route-draw {
  0% { stroke-dashoffset: 200; opacity: 0.3; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0.3; }
}

.bmga-pl-globe-route .route-plane {
  position: absolute;
  top: 18%;
  left: 50%;
  font-size: 1.5rem;
  color: var(--bmga-pl-brand);
  offset-path: path("M 10 58 Q 60 8 110 58");
  offset-distance: 0%;
  animation: bmga-pl-plane-path 2.2s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(222, 42, 31, 0.3));
}

@supports not (offset-path: path("M 0 0 L 1 1")) {
  .bmga-pl-globe-route .route-plane {
    offset-path: none;
    animation: bmga-pl-plane-fallback 2.2s ease-in-out infinite;
  }
}

@keyframes bmga-pl-plane-path {
  0% { offset-distance: 0%; transform: rotate(-12deg); }
  50% { offset-distance: 50%; transform: rotate(4deg); }
  100% { offset-distance: 100%; transform: rotate(12deg); }
}

@keyframes bmga-pl-plane-fallback {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-8deg); left: 12%; }
  50% { transform: translateX(-50%) translateY(-8px) rotate(6deg); left: 88%; }
}

/* Hotel — skyline */
.bmga-pl-skyline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 72px;
  padding-bottom: 4px;
}

.bmga-pl-skyline__b {
  position: relative;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #fdba74 0%, var(--bmga-pl-hotel) 100%);
  animation: bmga-pl-sky-rise 1.4s ease-in-out infinite;
  overflow: hidden;
}

.bmga-pl-skyline__b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 8px,
    rgba(255, 255, 255, 0.25) 8px,
    rgba(255, 255, 255, 0.25) 10px
  );
  opacity: 0;
  animation: bmga-pl-windows 1.4s ease-in-out infinite;
}

.bmga-pl-skyline__b:nth-child(1) { width: 16px; height: 32px; animation-delay: 0s; }
.bmga-pl-skyline__b:nth-child(2) { width: 20px; height: 48px; animation-delay: 0.12s; }
.bmga-pl-skyline__b:nth-child(3) { width: 24px; height: 64px; animation-delay: 0.24s; }
.bmga-pl-skyline__b:nth-child(4) { width: 18px; height: 40px; animation-delay: 0.36s; }
.bmga-pl-skyline__b:nth-child(5) { width: 22px; height: 52px; animation-delay: 0.48s; }

@keyframes bmga-pl-sky-rise {
  0%, 100% { transform: scaleY(0.7); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes bmga-pl-windows {
  0%, 40% { opacity: 0; }
  60%, 100% { opacity: 1; }
}

/* ── Progress ── */
.bmga-pl-progress-wrap {
  margin-bottom: 0.9rem;
}

.bmga-pl-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bmga-pl-muted-2);
}

.bmga-pl-progress-meta span:last-child {
  color: var(--bmga-pl-brand);
  font-variant-numeric: tabular-nums;
}

.bmga-preloader-surface--flight .bmga-pl-progress-meta span:last-child { color: var(--bmga-pl-flight); }
.bmga-preloader-surface--hotel .bmga-pl-progress-meta span:last-child { color: var(--bmga-pl-hotel); }

.bmga-pl-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(222, 42, 31, 0.08);
  overflow: hidden;
}

.bmga-preloader-surface--flight .bmga-pl-progress { background: rgba(29, 78, 216, 0.1); }
.bmga-preloader-surface--hotel .bmga-pl-progress { background: rgba(194, 65, 12, 0.1); }

.bmga-pl-progress__fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bmga-pl-brand), var(--bmga-pl-accent-2));
  transform: scaleX(var(--bmga-pl-progress, 0));
  transform-origin: left center;
  transition: transform 0.35s var(--bmga-pl-ease-out);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.bmga-pl-progress__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: bmga-pl-fill-shine 1.8s ease-in-out infinite;
}

.bmga-preloader-surface--flight .bmga-pl-progress__fill { background: linear-gradient(90deg, var(--bmga-pl-flight), #60a5fa); }
.bmga-preloader-surface--hotel .bmga-pl-progress__fill { background: linear-gradient(90deg, var(--bmga-pl-hotel), #fb923c); }

@keyframes bmga-pl-fill-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.bmga-pl-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bmga-pl-muted);
}

.bmga-pl-status__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bmga-pl-brand);
  flex-shrink: 0;
  animation: bmga-pl-pulse-dot 1.4s ease-in-out infinite;
}

.bmga-preloader-surface--flight .bmga-pl-status__pulse { background: var(--bmga-pl-flight); }
.bmga-preloader-surface--hotel .bmga-pl-status__pulse { background: var(--bmga-pl-hotel); }

@keyframes bmga-pl-pulse-dot {
  0%, 100% { transform: scale(0.85); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 1; }
}

.bmga-pl-status__text {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bmga-pl-status__text.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.bmga-pl-footnote {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--bmga-pl-border);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--bmga-pl-muted-2);
}

.bmga-pl-footnote strong { color: var(--bmga-pl-ink); font-weight: 600; }

/* Page loader exit */
.search-loader-overlay {
  transition: opacity 0.5s var(--bmga-pl-ease-out);
}

.search-loader-overlay.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.search-loader-overlay.is-hidden .bmga-preloader-card {
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s var(--bmga-pl-ease-out), opacity 0.45s;
}

/* ── Flight search overlay ── */
.flight-preloader { z-index: 100000; display: none; }
.flight-preloader.is-visible { display: flex; animation: bmga-pl-surface-enter 0.4s var(--bmga-pl-ease-out); }

@keyframes bmga-pl-surface-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bmga-fs-headline {
  font-family: var(--bmga-pl-font-display);
  font-size: clamp(1.1rem, 3vw, 1.28rem);
  font-weight: 700;
  color: var(--bmga-pl-ink);
  margin: 0 0 1.15rem;
  line-height: 1.25;
}

/* Premium boarding pass */
.bmga-pass {
  position: relative;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid rgba(29, 78, 216, 0.12);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.08);
  overflow: hidden;
}

.bmga-pass__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 20% 30%, var(--bmga-pl-flight-soft) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--bmga-pl-brand-soft) 0%, transparent 45%);
}

.bmga-pass__notch {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bmga-pl-bg);
  border: 1.5px solid rgba(29, 78, 216, 0.1);
  transform: translateY(-50%);
  z-index: 2;
}

.bmga-pass__notch--l { left: -9px; }
.bmga-pass__notch--r { right: -9px; }

.bmga-pass__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
}

.bmga-pass__body::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  border-left: 2px dashed rgba(29, 78, 216, 0.15);
  transform: translateX(-50%);
}

.bmga-pass__port { text-align: center; z-index: 1; }

.bmga-pass__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bmga-pl-muted-2);
  margin-bottom: 0.3rem;
}

.bmga-iata-pill {
  display: block;
  font-family: var(--bmga-pl-font-display);
  font-size: clamp(1.65rem, 5.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--bmga-pl-flight);
  line-height: 1;
  animation: bmga-iata-pop 0.5s var(--bmga-pl-ease-spring) both;
}

.bmga-pass__port:last-child .bmga-iata-pill { animation-delay: 0.08s; }

@keyframes bmga-iata-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.bmga-pass__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
  min-width: 72px;
}

.bmga-pass__arc {
  position: relative;
  width: 72px;
  height: 28px;
}

.bmga-pass__arc svg { width: 100%; height: 100%; }

.bmga-pass__arc path {
  fill: none;
  stroke: rgba(29, 78, 216, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.bmga-pass__arc-plane {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.15rem;
  color: var(--bmga-pl-brand);
  offset-path: path("M 4 22 Q 36 2 68 22");
  offset-distance: 0%;
  animation: bmga-pass-fly 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(222, 42, 31, 0.25));
}

@supports not (offset-path: path("M 0 0 L 1 1")) {
  .bmga-pass__arc-plane { animation: bmga-pass-fly-fallback 2s ease-in-out infinite; }
}

@keyframes bmga-pass-fly {
  0% { offset-distance: 0%; transform: rotate(-10deg); }
  100% { offset-distance: 100%; transform: rotate(10deg); }
}

@keyframes bmga-pass-fly-fallback {
  0%, 100% { left: 0; transform: rotate(-10deg); }
  50% { left: calc(100% - 1rem); transform: rotate(10deg); }
}

.bmga-pass__chip {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bmga-pl-brand);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bmga-pl-brand-soft);
}

/* Horizontal step timeline */
.bmga-fs-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.bmga-fs-timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--bmga-pl-border);
  z-index: 0;
}

.bmga-fs-timeline__fill {
  position: absolute;
  top: 11px;
  left: 12%;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--bmga-pl-flight), var(--bmga-pl-brand));
  z-index: 1;
  transition: width 0.5s var(--bmga-pl-ease-out);
}

.bmga-fs-tl-step {
  flex: 1;
  text-align: center;
  z-index: 2;
  min-width: 0;
}

.bmga-fs-tl-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--bmga-pl-muted-2);
  background: #fff;
  border: 2px solid var(--bmga-pl-border);
  transition: all 0.35s var(--bmga-pl-ease-out);
}

.bmga-fs-tl-step.is-active .bmga-fs-tl-dot {
  color: #fff;
  background: var(--bmga-pl-flight);
  border-color: var(--bmga-pl-flight);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
  transform: scale(1.08);
}

.bmga-fs-tl-step.is-done .bmga-fs-tl-dot {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
}

.bmga-fs-tl-step.is-done .bmga-fs-tl-dot span { display: none; }
.bmga-fs-tl-step.is-done .bmga-fs-tl-dot::before { content: "✓"; font-size: 0.7rem; }

.bmga-fs-tl-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bmga-pl-muted-2);
  padding: 0 0.15rem;
}

.bmga-fs-tl-step.is-active .bmga-fs-tl-label { color: var(--bmga-pl-ink); }

.bmga-flight-extras {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--bmga-pl-border);
  font-size: 0.78rem;
}

.bmga-flight-extras a {
  color: var(--bmga-pl-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.bmga-flight-extras a:hover { color: var(--bmga-pl-brand); }

@media (max-width: 420px) {
  .bmga-pass__body { grid-template-columns: 1fr; gap: 0.85rem; }
  .bmga-pass__body::after { display: none; }
  .bmga-fs-tl-label { font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bmga-pl-orb,
  .bmga-pl-orbit-hub__core,
  .bmga-pl-orbit-hub__ring,
  .bmga-pl-orbit-hub__sat,
  .bmga-pl-globe-route .route-active,
  .bmga-pl-globe-route .route-plane,
  .bmga-pl-skyline__b,
  .bmga-pl-progress__fill::after,
  .bmga-pl-status__pulse,
  .bmga-preloader-card__shimmer,
  .bmga-pl-logo-ring::before,
  .bmga-pass__arc-plane,
  .bmga-iata-pill { animation: none !important; }
}
