/* vJet2 — style accueil original + pages internes épurées */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

:root {
  --jet-red: #EF4138;
  --jet-blue: #012169;
  --jet-white-red: #C8102E;
  --jet-gold: #d4af37;
  --jet-orange: #f59e0b;
  --bg: #000;
  --surface: rgba(12, 12, 12, 0.92);
  --surface-2: rgba(22, 22, 22, 0.95);
  --border: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: #bbb;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 8px;
  --nav-sticky-offset: 5.25rem;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f8;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-2: #ffffff;
  --border: rgba(0, 0, 0, 0.12);
  --text: #000000;
  --muted: #444444;
}

html[data-theme="light"] .cursor-dot {
  background: rgba(239, 65, 56, 0.34);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  background: var(--bg);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  background-color: var(--bg);
  overflow-x: hidden;
  color: var(--text);
  cursor: default;
  min-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  background: rgba(239, 65, 56, 0.42);
  border: none;
  pointer-events: none;
  z-index: 100001;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-dot.is-visible {
  opacity: 1;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot {
    display: none;
  }
}

a {
  color: var(--jet-red);
}

a:hover {
  color: #ff6b5b;
}

body.has-layout:not(.page-revealing) {
  animation: none;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active > :not(.intro-splash) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.page-revealing > :not(.intro-splash) {
  visibility: visible;
  opacity: 1;
  animation: none;
}

@keyframes contentReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Intro d'ouverture ── */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #030508;
  pointer-events: none;
  overflow: hidden;
}

.intro-photo {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-image: url('/manchester-airport.jpg');
  background-size: cover;
  background-position: center 58%;
  filter: blur(8px) brightness(0.48) saturate(0.92);
  transform: scale(1.06);
  pointer-events: none;
}

.intro-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 72% at 50% 48%, transparent 0%, rgba(3, 5, 10, 0.32) 52%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(165deg, rgba(0, 0, 0, 0.22) 0%, rgba(5, 10, 24, 0.4) 42%, rgba(18, 6, 8, 0.48) 100%);
  pointer-events: none;
}

.intro-aviation {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.intro-brand,
.intro-tagline {
  position: relative;
  z-index: 3;
}

.intro-runway-pad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(68px, 11.5vh, 100px);
  opacity: 0;
  animation: runwayFade 1.8s ease 0.08s forwards;
}

.intro-runway {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4a4f57 0%, #3a3f47 55%, #2f343c 100%);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.32);
}

.intro-runway-markings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --piano-bar: clamp(3px, 0.42vw, 5px);
  --piano-gap: clamp(3px, 0.42vw, 5px);
  --piano-step: calc(var(--piano-bar) + var(--piano-gap));
  --piano-zone-dep: clamp(52px, 7.5vw, 84px);
  --piano-zone-far: clamp(44px, 6.2vw, 70px);
}

.intro-runway-markings::before {
  content: '';
  position: absolute;
  left: calc(clamp(4px, 0.6vw, 8px) + var(--piano-zone-dep) + clamp(28px, 4vw, 48px));
  right: calc(clamp(4px, 0.6vw, 8px) + var(--piano-zone-far) + clamp(20px, 3vw, 36px));
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0,
    rgba(255, 255, 255, 0.92) 22px,
    transparent 22px,
    transparent 38px
  );
}

.intro-runway-threshold {
  position: absolute;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0,
    rgba(255, 255, 255, 0.96) var(--piano-bar),
    transparent var(--piano-bar),
    transparent var(--piano-step)
  );
  background-size: 100% calc(var(--piano-step) * var(--piano-count));
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.intro-runway-threshold--dep {
  --piano-count: 10;
  left: clamp(4px, 0.6vw, 8px);
  top: 0;
  bottom: 0;
  width: clamp(52px, 7.5vw, 84px);
  height: auto;
}

.intro-runway-threshold--far {
  --piano-count: 8;
  right: clamp(4px, 0.6vw, 8px);
  left: auto;
  top: 0;
  bottom: 0;
  width: clamp(44px, 6.2vw, 70px);
  height: auto;
  opacity: 0.85;
}

.intro-runway-id {
  position: absolute;
  top: 50%;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    -1.5px -1.5px 0 #0a0c10,
    1.5px -1.5px 0 #0a0c10,
    -1.5px 1.5px 0 #0a0c10,
    1.5px 1.5px 0 #0a0c10,
    0 0 8px rgba(0, 0, 0, 0.35);
}

/* ── Page transitions — overlay only (content stays put, no layout jumps) ── */
html {
  scrollbar-gutter: stable;
}

html.page-fx-boot-cover {
  background: var(--page-fx-boot-bg, #020810);
}

html.page-fx-boot-cover::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: var(--page-fx-boot-bg, #020810);
  pointer-events: none;
}

.page-fx-overlay.is-enter {
  pointer-events: none;
}

@keyframes fxBgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fxOverlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.page-fx-overlay {
  position: fixed;
  inset: 0;
  z-index: 10003;
  pointer-events: all;
}

/* Flight Transition — Vols */
.page-fx-overlay--flight {
  overflow: hidden;
  background: #020810;
}

.page-fx-overlay--flight .flight-photo {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-image: url('/manchester-airport.jpg');
  background-size: cover;
  background-position: center 58%;
  filter: blur(8px) brightness(0.46) saturate(0.9);
  transform: scale(1.06);
  opacity: 0;
  will-change: opacity, transform, filter;
}

.page-fx-overlay--flight .flight-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(72, 132, 198, 0.42) 0%,
    rgba(1, 33, 105, 0.48) 28%,
    rgba(2, 8, 16, 0.62) 55%,
    rgba(0, 0, 0, 0.58) 100%
  );
  opacity: 0;
}

.page-fx-overlay--flight .flight-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.page-fx-overlay--flight .flight-clouds::before {
  content: '';
  position: absolute;
  inset: 0 0 45%;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 68%),
    linear-gradient(180deg, rgba(186, 214, 244, 0.12) 0%, transparent 72%);
  pointer-events: none;
}

.page-fx-overlay--flight .flight-clouds::after {
  content: '';
  position: absolute;
  inset: 8% 0 52%;
  background:
    radial-gradient(ellipse 18% 8% at 18% 42%, rgba(255, 255, 255, 0.22) 0%, transparent 100%),
    radial-gradient(ellipse 14% 6% at 62% 28%, rgba(255, 255, 255, 0.16) 0%, transparent 100%),
    radial-gradient(ellipse 12% 5% at 84% 56%, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0.85;
}

.page-fx-overlay--flight .flight-cloud {
  position: absolute;
  display: block;
  opacity: var(--cloud-opacity, 0.72);
  backface-visibility: hidden;
  animation-duration: calc(1.45s + var(--i) * 0.12s);
}

.page-fx-overlay--flight .flight-cloud::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 10%;
  bottom: 8%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(96, 128, 168, 0.22) 0%, transparent 72%);
  pointer-events: none;
}

.page-fx-overlay--flight .flight-cloud-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  filter:
    drop-shadow(0 10px 22px rgba(62, 102, 148, 0.22))
    drop-shadow(0 2px 6px rgba(255, 255, 255, 0.12));
}

.page-fx-overlay--flight .flight-cloud-wisp {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 55% at 35% 45%, rgba(255, 255, 255, 0.55) 0%, transparent 72%),
    radial-gradient(ellipse 50% 40% at 68% 50%, rgba(240, 247, 252, 0.42) 0%, transparent 70%);
  backface-visibility: hidden;
}

.page-fx-overlay--flight .flight-cloud-wisp--1 {
  --wisp-opacity: 0.42;
  top: 8%;
  left: 28%;
  width: clamp(90px, 11vw, 150px);
  height: clamp(28px, 3.5vw, 44px);
}

.page-fx-overlay--flight .flight-cloud-wisp--2 {
  --wisp-opacity: 0.35;
  top: 26%;
  left: 58%;
  width: clamp(110px, 13vw, 175px);
  height: clamp(32px, 4vw, 50px);
}

.page-fx-overlay--flight .flight-cloud-wisp--3 {
  --wisp-opacity: 0.28;
  top: 12%;
  left: 82%;
  width: clamp(70px, 8vw, 115px);
  height: clamp(22px, 2.8vw, 36px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(1) {
  --cloud-opacity: 0.78;
  top: 5%;
  left: -4%;
  width: clamp(200px, 26vw, 340px);
  height: clamp(72px, 9.5vw, 120px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(2) {
  --cloud-opacity: 0.52;
  top: 14%;
  left: 42%;
  width: clamp(150px, 18vw, 240px);
  height: clamp(54px, 6.5vw, 86px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(3) {
  --cloud-opacity: 0.82;
  top: 22%;
  left: 64%;
  width: clamp(220px, 28vw, 360px);
  height: clamp(76px, 9vw, 124px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(4) {
  --cloud-opacity: 0.46;
  top: 9%;
  left: 76%;
  width: clamp(130px, 15vw, 210px);
  height: clamp(48px, 5.8vw, 76px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(5) {
  --cloud-opacity: 0.68;
  top: 30%;
  left: 6%;
  width: clamp(170px, 20vw, 270px);
  height: clamp(60px, 7.2vw, 96px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(6) {
  --cloud-opacity: 0.74;
  top: 36%;
  left: 48%;
  width: clamp(240px, 30vw, 400px);
  height: clamp(82px, 10vw, 132px);
}

.page-fx-overlay--flight .flight-cloud:nth-child(7) {
  --cloud-opacity: 0.58;
  top: 18%;
  left: -10%;
  width: clamp(160px, 19vw, 260px);
  height: clamp(56px, 6.8vw, 90px);
}

.page-fx-overlay--flight .flight-plane-wrap {
  position: absolute;
  top: 36%;
  left: 0;
  z-index: 3;
  width: clamp(200px, 32vw, 380px);
  transform: translateX(-120%);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.page-fx-overlay--flight .flight-plane-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-fx-overlay--flight .flight-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.page-fx-overlay--flight.is-leaving .flight-photo {
  animation: flightPhotoIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--flight.is-leaving .flight-sky {
  animation: flightSkyIn 0.35s ease 0.06s forwards;
}

.page-fx-overlay--flight.is-leaving .flight-clouds {
  animation: flightCloudsIn 0.45s ease 0.08s forwards;
}

.page-fx-overlay--flight.is-leaving .flight-cloud-wisp {
  animation:
    flightWispIn 0.55s ease 0.14s forwards,
    flightWispDrift 1.5s linear 0.1s forwards;
}

.page-fx-overlay--flight.is-leaving .flight-cloud {
  animation-name: flightCloudDrift;
  animation-timing-function: linear;
  animation-delay: 0.08s;
  animation-fill-mode: forwards;
}

.page-fx-overlay--flight.is-leaving .flight-plane-wrap {
  animation: flightCross 1.35s linear 0.08s forwards;
}

.page-fx-overlay--flight.is-leaving .flight-label {
  animation: flightLabelIn 0.35s ease 0.32s forwards;
}

.page-fx-overlay--flight.is-enter.is-covered .flight-photo {
  opacity: 1;
  transform: scale(1.05);
  filter: blur(6px) brightness(0.5) saturate(0.92);
}

.page-fx-overlay--flight.is-enter.is-covered .flight-sky,
.page-fx-overlay--flight.is-enter.is-covered .flight-clouds {
  opacity: 1;
}

.page-fx-overlay--flight.is-enter.is-covered .flight-cloud-wisp--1 {
  opacity: var(--wisp-opacity);
}

.page-fx-overlay--flight.is-enter.is-covered .flight-cloud-wisp--2 {
  opacity: var(--wisp-opacity);
}

.page-fx-overlay--flight.is-enter.is-covered .flight-cloud-wisp--3 {
  opacity: var(--wisp-opacity);
}

.page-fx-overlay--flight.is-enter.is-revealing .flight-plane-wrap {
  animation: flightCross 1.35s linear forwards;
}

.page-fx-overlay--flight.is-enter.is-revealing .flight-photo {
  animation: flightPhotoOut 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.page-fx-overlay--flight.is-enter.is-revealing .flight-sky {
  animation: flightSkyOut 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
}

.page-fx-overlay--flight.is-enter.is-revealing .flight-clouds {
  animation: flightCloudsOut 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
}

.page-fx-overlay--flight.is-enter.is-revealing:not(.flight-clouds-continued) .flight-cloud {
  animation-name: flightCloudDrift;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.page-fx-overlay--flight.is-enter.is-revealing .flight-label {
  animation: flightLabelOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--flight.is-enter.is-revealing {
  animation: fxOverlayFadeOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

@keyframes flightCross {
  0% {
    transform: translate(-120%, 6px) rotate(-1deg);
  }
  12% {
    transform: translate(-55vw, 4px) rotate(-0.5deg);
  }
  28% {
    transform: translate(-5vw, 0) rotate(0deg);
  }
  45% {
    transform: translate(28vw, -3px) rotate(1deg);
  }
  62% {
    transform: translate(52vw, -6px) rotate(1.5deg);
  }
  78% {
    transform: translate(78vw, -8px) rotate(2deg);
  }
  100% {
    transform: translate(calc(100vw + 120%), -10px) rotate(2.5deg);
  }
}

@keyframes flightPhotoIn {
  from {
    opacity: 0;
    transform: scale(1.12);
    filter: blur(14px) brightness(0.58) saturate(0.78);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(6px) brightness(0.5) saturate(0.92);
  }
}

@keyframes flightPhotoOut {
  to {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(4px) brightness(0.58) saturate(0.94);
  }
}

@keyframes flightSkyIn {
  to { opacity: 1; }
}

@keyframes flightCloudsIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flightWispIn {
  from { opacity: 0; }
  to { opacity: var(--wisp-opacity, 0.4); }
}

@keyframes flightWispDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18vw, 0, 0); }
}

@keyframes flightCloudsOut {
  0% { opacity: 1; }
  35% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes flightCloudDrift {
  from {
    transform: translate3d(calc(var(--i) * 1.5vw), 0, 0) scale(var(--cloud-scale, 1));
  }
  to {
    transform: translate3d(calc(-14vw - var(--i) * 4vw), 0, 0) scale(var(--cloud-scale, 1));
  }
}

.page-fx-overlay--flight .flight-cloud--1 { --cloud-scale: 1; }
.page-fx-overlay--flight .flight-cloud--2 { --cloud-scale: 0.94; }
.page-fx-overlay--flight .flight-cloud--3 { --cloud-scale: 1.04; }
.page-fx-overlay--flight .flight-cloud--4 { --cloud-scale: 0.88; }

@keyframes flightSkyOut {
  0% { opacity: 1; }
  35% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes flightLabelIn {
  to { opacity: 1; }
}

@keyframes flightLabelOut {
  to { opacity: 0; }
}

/* Rectangular Wipe Transition — Ressources */
.page-fx-overlay--wipe {
  background: #020810;
  overflow: hidden;
}

.page-fx-overlay--wipe .wipe-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #020810;
}

.page-fx-overlay--wipe .wipe-panels {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

.page-fx-overlay--wipe .wipe-panels span {
  flex: 1 1 0;
  min-width: 0;
  margin-right: -1px;
  transform: scaleX(0);
  background: #012169;
}

.page-fx-overlay--wipe .wipe-panels span:nth-child(even) {
  background: #1a0810;
  transform-origin: right center;
}

.page-fx-overlay--wipe .wipe-panels span:nth-child(odd) {
  transform-origin: left center;
}

.page-fx-overlay--wipe .wipe-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.page-fx-overlay--wipe.is-leaving .wipe-backdrop {
  opacity: 1;
}

.page-fx-overlay--wipe.is-leaving .wipe-panels span {
  animation: rectWipeIn 0.48s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 0.06s) forwards;
}

.page-fx-overlay--wipe.is-leaving .wipe-label {
  animation: wipeLabelIn 0.35s ease 0.18s forwards;
}

.page-fx-overlay--wipe.is-enter.is-covered .wipe-backdrop {
  opacity: 1;
}

.page-fx-overlay--wipe.is-enter.is-covered .wipe-panels span {
  transform: scaleX(1);
}

.page-fx-overlay--wipe.is-enter.is-revealing .wipe-panels span:nth-child(odd) {
  animation: rectWipeOutLeft 0.62s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.055s) forwards;
}

.page-fx-overlay--wipe.is-enter.is-revealing .wipe-panels span:nth-child(even) {
  animation: rectWipeOutRight 0.62s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.055s) forwards;
}

.page-fx-overlay--wipe.is-enter.is-revealing .wipe-backdrop {
  animation: wipeBackdropOut 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.page-fx-overlay--wipe.is-enter.is-revealing .wipe-label {
  animation: wipeLabelOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--wipe.is-enter.is-revealing {
  animation: fxOverlayFadeOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

@keyframes rectWipeIn {
  to { transform: scaleX(1); }
}

@keyframes rectWipeOutLeft {
  to { transform: scaleX(0); }
}

@keyframes rectWipeOutRight {
  to { transform: scaleX(0); }
}

@keyframes wipeBackdropOut {
  0% { opacity: 1; }
  30% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes wipeLabelIn {
  to { opacity: 1; }
}

@keyframes wipeLabelOut {
  to { opacity: 0; }
}

/* Cockpit Rise Transition — Mon espace */
.page-fx-overlay--space {
  background: #020810;
  overflow: hidden;
}

.page-fx-overlay--space .space-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #020810;
}

.page-fx-overlay--space .space-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.page-fx-overlay--space .space-layers span {
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: -1px;
  transform: translateY(100%);
  background: linear-gradient(180deg, #012169 0%, #071428 100%);
  border-bottom: 1px solid rgba(239, 65, 56, 0.18);
}

.page-fx-overlay--space .space-layers span:nth-child(even) {
  background: linear-gradient(180deg, #0a1635 0%, #020810 100%);
}

.page-fx-overlay--space .space-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.page-fx-overlay--space.is-leaving .space-backdrop {
  opacity: 1;
}

.page-fx-overlay--space.is-leaving .space-layers span {
  animation: spaceLayerIn 0.44s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 0.05s) forwards;
}

.page-fx-overlay--space.is-leaving .space-label {
  animation: spaceLabelIn 0.35s ease 0.16s forwards;
}

.page-fx-overlay--space.is-enter.is-covered .space-backdrop {
  opacity: 1;
}

.page-fx-overlay--space.is-enter.is-covered .space-layers span {
  transform: translateY(0);
}

.page-fx-overlay--space.is-enter.is-revealing .space-layers span {
  animation: spaceLayerOut 0.62s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.055s) forwards;
}

.page-fx-overlay--space.is-enter.is-revealing .space-backdrop {
  animation: spaceBackdropOut 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.page-fx-overlay--space.is-enter.is-revealing .space-label {
  animation: spaceLabelOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--space.is-enter.is-revealing {
  animation: fxOverlayFadeOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

@keyframes spaceLayerIn {
  to { transform: translateY(0); }
}

@keyframes spaceLayerOut {
  to { transform: translateY(-100%); }
}

@keyframes spaceBackdropOut {
  0% { opacity: 1; }
  30% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes spaceLabelIn {
  to { opacity: 1; }
}

@keyframes spaceLabelOut {
  to { opacity: 0; }
}

/* Story Rise Transition — À propos */
.page-fx-overlay--about {
  background: #020810;
  overflow: hidden;
}

.page-fx-overlay--about .about-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, #020810 0%, #0a1028 45%, #1a0810 100%);
}

.page-fx-overlay--about .about-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 55% 40% at 50% 58%, rgba(239, 65, 56, 0.22) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.page-fx-overlay--about .about-panels {
  position: absolute;
  inset: -8% 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 116%;
}

.page-fx-overlay--about .about-panels span {
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: -1px;
  transform: translateY(105%) skewY(-3deg);
  transform-origin: center bottom;
}

.page-fx-overlay--about .about-panels span:nth-child(1) {
  background: linear-gradient(90deg, #012169 0%, #0a2d6e 100%);
}

.page-fx-overlay--about .about-panels span:nth-child(2) {
  background: linear-gradient(90deg, #1a0810 0%, #3a1018 100%);
}

.page-fx-overlay--about .about-panels span:nth-child(3) {
  background: linear-gradient(90deg, #0a1028 0%, #141c38 100%);
}

.page-fx-overlay--about .about-panels span:nth-child(4) {
  background: linear-gradient(90deg, #8b1a22 0%, #ef4138 100%);
}

.page-fx-overlay--about .about-panels span:nth-child(5) {
  background: linear-gradient(90deg, #012169 0%, #071428 100%);
}

.page-fx-overlay--about .about-label {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
}

.page-fx-overlay--about.is-leaving .about-backdrop {
  opacity: 1;
}

.page-fx-overlay--about.is-leaving .about-glow {
  animation: aboutGlowIn 0.5s ease 0.12s forwards;
}

.page-fx-overlay--about.is-leaving .about-panels span {
  animation: aboutPanelIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 0.07s) forwards;
}

.page-fx-overlay--about.is-leaving .about-label {
  animation: aboutLabelIn 0.4s ease 0.22s forwards;
}

.page-fx-overlay--about.is-enter.is-covered .about-backdrop {
  opacity: 1;
}

.page-fx-overlay--about.is-enter.is-covered .about-glow {
  opacity: 1;
}

.page-fx-overlay--about.is-enter.is-covered .about-panels span {
  transform: translateY(0) skewY(-3deg);
}

.page-fx-overlay--about.is-enter.is-revealing .about-panels span {
  animation: aboutPanelOut 0.68s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.06s) forwards;
}

.page-fx-overlay--about.is-enter.is-revealing .about-glow {
  animation: aboutGlowOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.page-fx-overlay--about.is-enter.is-revealing .about-backdrop {
  animation: aboutBackdropOut 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.page-fx-overlay--about.is-enter.is-revealing .about-label {
  animation: aboutLabelOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--about.is-enter.is-revealing {
  animation: fxOverlayFadeOut 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

@keyframes aboutPanelIn {
  to { transform: translateY(0) skewY(-3deg); }
}

@keyframes aboutPanelOut {
  to { transform: translateY(-108%) skewY(-3deg); }
}

@keyframes aboutGlowIn {
  to { opacity: 1; }
}

@keyframes aboutGlowOut {
  to { opacity: 0; }
}

@keyframes aboutBackdropOut {
  0% { opacity: 1; }
  35% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes aboutLabelIn {
  to { opacity: 1; }
}

@keyframes aboutLabelOut {
  to { opacity: 0; }
}

/* Control Panel Transition — Paramètres */
.page-fx-overlay--settings {
  background: #020810;
  overflow: hidden;
}

.page-fx-overlay--settings .settings-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #020810 0%, #071428 55%, #0a1635 100%);
}

.page-fx-overlay--settings .settings-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-fx-overlay--settings .settings-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
}

.page-fx-overlay--settings .settings-panels span {
  flex: 1 1 0;
  min-width: 0;
  margin-right: -1px;
  transform: translateX(105%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.page-fx-overlay--settings .settings-panels span:nth-child(odd) {
  background: linear-gradient(180deg, #0a1e45 0%, #012169 100%);
  transform-origin: right center;
}

.page-fx-overlay--settings .settings-panels span:nth-child(even) {
  background: linear-gradient(180deg, #071428 0%, #0d2248 100%);
  transform-origin: left center;
}

.page-fx-overlay--settings .settings-icon-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.page-fx-overlay--settings .settings-gear-svg {
  width: clamp(42px, 8vw, 64px);
  height: clamp(42px, 8vw, 64px);
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.page-fx-overlay--settings .settings-label {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(72px, 14vw, 96px);
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
}

.page-fx-overlay--settings.is-leaving .settings-backdrop {
  opacity: 1;
}

.page-fx-overlay--settings.is-leaving .settings-grid {
  animation: settingsGridIn 0.35s ease 0.1s forwards;
}

.page-fx-overlay--settings.is-leaving .settings-panels span {
  animation: settingsPanelIn 0.46s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 0.055s) forwards;
}

.page-fx-overlay--settings.is-leaving .settings-icon-wrap {
  animation: settingsIconIn 0.45s ease 0.2s forwards;
}

.page-fx-overlay--settings.is-leaving .settings-gear-svg {
  animation: settingsGearSpin 1.8s linear 0.2s infinite;
}

.page-fx-overlay--settings.is-leaving .settings-label {
  animation: settingsLabelIn 0.35s ease 0.24s forwards;
}

.page-fx-overlay--settings.is-enter.is-covered .settings-backdrop {
  opacity: 1;
}

.page-fx-overlay--settings.is-enter.is-covered .settings-grid {
  opacity: 1;
}

.page-fx-overlay--settings.is-enter.is-covered .settings-panels span {
  transform: translateX(0);
}

.page-fx-overlay--settings.is-enter.is-covered .settings-icon-wrap {
  opacity: 1;
}

.page-fx-overlay--settings.is-enter.is-revealing .settings-panels span:nth-child(odd) {
  animation: settingsPanelOutLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.05s) forwards;
}

.page-fx-overlay--settings.is-enter.is-revealing .settings-panels span:nth-child(even) {
  animation: settingsPanelOutRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.05s) forwards;
}

.page-fx-overlay--settings.is-enter.is-revealing .settings-grid {
  animation: settingsGridOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.page-fx-overlay--settings.is-enter.is-revealing .settings-backdrop {
  animation: settingsBackdropOut 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.page-fx-overlay--settings.is-enter.is-revealing .settings-icon-wrap {
  animation: settingsIconOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--settings.is-enter.is-revealing .settings-label {
  animation: settingsLabelOut 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--settings.is-enter.is-revealing {
  animation: fxOverlayFadeOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

/* ── Transition Connexion (Ceinture de sécurité) ── */
.page-fx-overlay--seatbelt {
  background: #030508;
  overflow: hidden;
}

.page-fx-overlay--seatbelt .seatbelt-photo {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-image: url('/boeing-757-flight-deck.jpg');
  background-size: cover;
  background-position: center 42%;
  filter: blur(14px) brightness(0.32) saturate(0.8);
  transform: scale(1.1);
  opacity: 0;
  will-change: opacity, transform, filter;
}

.page-fx-overlay--seatbelt .seatbelt-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 75% at 50% 44%, transparent 0%, rgba(3, 5, 10, 0.55) 55%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(227, 6, 19, 0.1) 0%, transparent 38%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
}

.page-fx-overlay--seatbelt .seatbelt-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 65% 48% at 50% 40%, rgba(45, 52, 72, 0.42) 0%, transparent 72%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.72) 0%, rgba(3, 5, 8, 0.88) 100%);
  opacity: 0;
}

.page-fx-overlay--seatbelt .seatbelt-cabin-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 44%, rgba(239, 65, 56, 0.16) 0%, transparent 42%),
    radial-gradient(ellipse 40% 28% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  opacity: 0;
}

.page-fx-overlay--seatbelt .seatbelt-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  perspective: 680px;
  will-change: transform, opacity;
}

.page-fx-overlay--seatbelt .seatbelt-assembly {
  width: min(520px, 94vw);
  transform: rotateX(12deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.48));
}

.page-fx-overlay--seatbelt .seatbelt-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.page-fx-overlay--seatbelt .seatbelt-left-group {
  transform-box: fill-box;
  transform-origin: center center;
  transform: translateX(-58px);
}

.page-fx-overlay--seatbelt .seatbelt-buckle-group {
  transform-box: fill-box;
  transform-origin: center center;
}

.page-fx-overlay--seatbelt .seatbelt-latch-lever {
  transform-box: fill-box;
  transform-origin: 82% 88%;
  transform: rotate(-24deg);
}

.page-fx-overlay--seatbelt .seatbelt-latch-pin {
  transform-box: fill-box;
  transform-origin: center top;
  transform: translateY(-12px);
  opacity: 0.15;
}

.page-fx-overlay--seatbelt .seatbelt-click-ring {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.35);
  opacity: 0;
}

.page-fx-overlay--seatbelt .seatbelt-label {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(2.5rem, 12vh, 5rem);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-photo {
  animation: seatbeltPhotoIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-vignette {
  animation: seatbeltVignetteIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-backdrop {
  animation: seatbeltBackdropIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-cabin-glow {
  animation: seatbeltGlowIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-left-group {
  animation: seatbeltConnect 0.88s cubic-bezier(0.25, 0.9, 0.35, 1) 0.18s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-latch-lever {
  animation: seatbeltLeverClose 0.3s cubic-bezier(0.34, 1.15, 0.48, 1) 1.02s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-latch-pin {
  animation: seatbeltPinDrop 0.22s cubic-bezier(0.22, 1, 0.36, 1) 1.14s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-click-ring {
  animation: seatbeltClickPulse 0.38s ease-out 1.18s forwards;
}

.page-fx-overlay--seatbelt.is-leaving .seatbelt-label {
  animation: seatbeltLabelIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) 1.22s forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-photo {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(12px) brightness(0.35) saturate(0.85);
}

.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-vignette,
.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-backdrop,
.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-cabin-glow {
  opacity: 1;
}

.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-left-group {
  transform: translateX(0);
}

.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-latch-lever {
  transform: rotate(0deg);
}

.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-latch-pin {
  transform: translateY(0);
  opacity: 1;
}

.page-fx-overlay--seatbelt.is-enter.is-covered .seatbelt-label {
  opacity: 1;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing .seatbelt-stage {
  animation: seatbeltStageOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing .seatbelt-photo {
  animation: seatbeltPhotoOut 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.08s forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing .seatbelt-vignette {
  animation: seatbeltVignetteOut 0.58s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing .seatbelt-backdrop {
  animation: seatbeltBackdropOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing .seatbelt-cabin-glow {
  animation: seatbeltGlowOut 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing .seatbelt-label {
  animation: seatbeltLabelOut 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-fx-overlay--seatbelt.is-enter.is-revealing {
  animation: fxOverlayFadeOut 0.58s cubic-bezier(0.4, 0, 0.2, 1) 0.22s forwards;
}

@keyframes seatbeltPhotoIn {
  from {
    opacity: 0;
    transform: scale(1.16);
    filter: blur(22px) brightness(0.55) saturate(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
    filter: blur(12px) brightness(0.35) saturate(0.85);
  }
}

@keyframes seatbeltPhotoOut {
  to {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(6px) brightness(0.55) saturate(0.9);
  }
}

@keyframes seatbeltVignetteIn {
  to { opacity: 1; }
}

@keyframes seatbeltVignetteOut {
  to { opacity: 0; }
}

@keyframes seatbeltBackdropIn {
  to { opacity: 1; }
}

@keyframes seatbeltGlowIn {
  to { opacity: 1; }
}

@keyframes seatbeltConnect {
  0% {
    transform: translateX(-58px);
  }
  22% {
    transform: translateX(-44px);
  }
  44% {
    transform: translateX(-30px);
  }
  64% {
    transform: translateX(-16px);
  }
  80% {
    transform: translateX(-6px);
  }
  91% {
    transform: translateX(-1.5px);
  }
  97% {
    transform: translateX(0.6px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes seatbeltLeverClose {
  0% {
    transform: rotate(-24deg);
  }
  70% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes seatbeltPinDrop {
  0% {
    transform: translateY(-12px);
    opacity: 0.15;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes seatbeltClickPulse {
  0% {
    opacity: 0.85;
    transform: scale(0.35);
    stroke-width: 3;
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
    stroke-width: 1;
  }
}

@keyframes seatbeltLabelIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seatbeltStageOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
}

@keyframes seatbeltBackdropOut {
  to { opacity: 0; }
}

@keyframes seatbeltGlowOut {
  to { opacity: 0; }
}

@keyframes seatbeltLabelOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes settingsPanelIn {
  to { transform: translateX(0); }
}

@keyframes settingsPanelOutLeft {
  to { transform: translateX(-108%); }
}

@keyframes settingsPanelOutRight {
  to { transform: translateX(108%); }
}

@keyframes settingsGridIn {
  to { opacity: 1; }
}

@keyframes settingsGridOut {
  to { opacity: 0; }
}

@keyframes settingsBackdropOut {
  0% { opacity: 1; }
  35% { opacity: 1; }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes settingsIconIn {
  to { opacity: 1; }
}

@keyframes settingsIconOut {
  to { opacity: 0; }
}

@keyframes settingsGearSpin {
  to { transform: rotate(360deg); }
}

@keyframes settingsLabelIn {
  to { opacity: 1; }
}

@keyframes settingsLabelOut {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-fx-overlay,
  .page-fx-overlay--flight .flight-plane-wrap,
  .page-fx-overlay--flight .flight-photo,
  .page-fx-overlay--flight .flight-sky,
  .page-fx-overlay--flight .flight-clouds,
  .page-fx-overlay--flight .flight-cloud,
  .page-fx-overlay--flight .flight-cloud-wisp,
  .page-fx-overlay--wipe .wipe-panels span,
  .page-fx-overlay--wipe .wipe-backdrop,
  .page-fx-overlay--space .space-layers span,
  .page-fx-overlay--space .space-backdrop,
  .page-fx-overlay--about .about-panels span,
  .page-fx-overlay--about .about-backdrop,
  .page-fx-overlay--about .about-glow,
  .page-fx-overlay--settings .settings-panels span,
  .page-fx-overlay--settings .settings-backdrop,
  .page-fx-overlay--settings .settings-grid,
  .page-fx-overlay--settings .settings-icon-wrap,
  .page-fx-overlay--settings .settings-gear-svg,
  .page-fx-overlay--seatbelt .seatbelt-left-group,
  .page-fx-overlay--seatbelt .seatbelt-buckle-group,
  .page-fx-overlay--seatbelt .seatbelt-latch-lever,
  .page-fx-overlay--seatbelt .seatbelt-latch-pin,
  .page-fx-overlay--seatbelt .seatbelt-click-ring,
  .page-fx-overlay--seatbelt .seatbelt-photo,
  .page-fx-overlay--seatbelt .seatbelt-vignette,
  .page-fx-overlay--seatbelt .seatbelt-backdrop,
  .page-fx-overlay--seatbelt .seatbelt-cabin-glow,
  .page-fx-overlay--seatbelt .seatbelt-stage,
  .flight-label,
  .wipe-label,
  .space-label,
  .about-label,
  .settings-label,
  .seatbelt-label {
    animation: none !important;
    transition: none !important;
    clip-path: none !important;
    opacity: 0 !important;
  }

  .page-fx-overlay--flight.is-enter.is-revealing,
  .page-fx-overlay--wipe.is-enter.is-revealing,
  .page-fx-overlay--space.is-enter.is-revealing,
  .page-fx-overlay--about.is-enter.is-revealing,
  .page-fx-overlay--seatbelt.is-enter.is-revealing,
  .page-fx-overlay--settings.is-enter.is-revealing {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ── Hero (accueil — style index original) ── */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-section .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}


.hero-section #hero-mount,
.hero-section .hero-footer {
  position: relative;
  z-index: 1;
}

#hero-mount {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 36, 21, 0.45);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
  flex: 1;
}

.hero-content h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}

.typewriter-welcome {
  display: inline-block;
  background: linear-gradient(90deg, var(--jet-blue) 0%, var(--jet-blue) 30%, #fff 30%, #fff 70%, var(--jet-white-red) 70%, var(--jet-white-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: 4px solid var(--jet-white-red);
  white-space: nowrap;
  overflow: hidden;
  font-weight: 900;
  font-style: italic;
  animation: typewriter 2s steps(24, end) forwards, blinkCursor 0.75s step-end infinite;
}

@keyframes typewriter {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes blinkCursor {
  from, to { border-right-color: transparent; }
  50% { border-right-color: var(--jet-white-red); }
}

.hero-footer,
.site-footer-inner {
  display: flex;
  padding: 0 50px 40px;
  align-items: flex-end;
  justify-content: center;
}

.page-shell footer,
.site-footer {
  padding: 1rem 1.25rem 2rem;
  text-align: center;
}

.page-shell footer .footer-center,
.site-footer .footer-center {
  max-width: 800px;
  margin: 0 auto;
}

.footer-center {
  max-width: 800px;
}

.main-desc {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--jet-blue) 0%, var(--jet-blue) 30%, #fff 30%, #fff 70%, var(--jet-white-red) 70%, var(--jet-white-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-style: italic;
}

.highlight-text {
  color: var(--jet-orange);
  font-weight: 900;
  font-style: italic;
  -webkit-text-fill-color: var(--jet-orange);
}

.disclaimer {
  font-size: 10px;
  color: #fff;
  line-height: 1.4;
  font-weight: 700;
  font-style: italic;
}

.footer-legal {
  margin-top: 12px;
}

.footer-privacy-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-privacy-link:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.page-shell footer .footer-privacy-link {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
}

.page-shell footer .footer-privacy-link:hover {
  color: var(--text);
  border-color: var(--jet-orange);
}

/* ── Navigation ── */
.navbar {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100;
}

#navbar:not(.nav-ready) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-shell > .navbar,
.hero-section .navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
  isolation: isolate;
}

.navbar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 20px 50px;
  gap: 1rem;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 18, 0.55) 0%,
    rgba(8, 10, 16, 0.38) 100%
  );
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.site-progress-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(15, 23, 42, 0.86), rgba(239, 68, 68, 0.2));
  border-bottom: 1px solid rgba(239, 68, 68, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-progress-banner__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--jet-red);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.logo-container:hover .logo-link {
  transform: scale(1.05);
}

.logo-main {
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -1px;
  color: #fff;
}

.logo-dot {
  color: var(--jet-blue);
  font-size: 20px;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.logo-container:hover .logo-dot {
  color: #0147a3;
  transform: scale(1.15);
}

.logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin-left: auto;
}

.nav-links > li > a,
.nav-dropdown-toggle,
.ressources-btn {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  font-family: 'Roboto', sans-serif;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 4px;
  transform: scale(1);
  transform-origin: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-dropdown-toggle,
.ressources-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links > li > a::after,
.nav-dropdown-toggle::after,
.ressources-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--jet-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.ressources-btn:hover,
.ressources-btn.active {
  color: #fff;
}

.nav-links > li > a:hover,
.nav-dropdown-toggle:hover,
.ressources-btn:hover {
  transform: scale(1.06);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.ressources-btn:hover::after,
.ressources-btn.active::after {
  transform: scaleX(1);
}

.nav-dropdown-toggle .chevron,
.ressources-btn .chevron {
  transition: transform 0.2s;
  color: var(--muted);
  font-size: 10px;
}

.nav-dropdown-toggle.active .chevron,
.ressources-btn.active .chevron {
  transform: rotate(180deg);
}

.nav-zulu-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 5.5rem;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-zulu-clock:hover {
  transform: scale(1.04);
}

.nav-zulu-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1;
}

.nav-zulu-time {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.nav-pilot-id {
  font-size: 22px;
  color: var(--jet-gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Typographie pilote connecté */
body.user-logged-in {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body.user-logged-in .nav-links > li > a,
body.user-logged-in .nav-dropdown-toggle,
body.user-logged-in .ressources-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

body.user-logged-in .nav-pilot-id {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jet-red);
  transform: skewX(-12deg) scale(1);
  display: inline-block;
  text-shadow: 0 1px 10px rgba(239, 65, 56, 0.35);
  transition: transform 0.25s ease;
}

body.user-logged-in .nav-pilot-id:hover {
  transform: skewX(-12deg) scale(1.04);
}

body.user-logged-in .nav-links > li > a:hover,
body.user-logged-in .nav-links > li > a.active,
body.user-logged-in .nav-dropdown-toggle:hover,
body.user-logged-in .nav-dropdown-toggle.active,
body.user-logged-in .ressources-btn:hover,
body.user-logged-in .ressources-btn.active {
  color: #fff;
}

body.user-logged-in .logo-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  margin-left: auto;
}

.nav-settings-item {
  display: flex;
  align-items: center;
}

.nav-links .nav-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0 0 4px;
  margin: 0;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  color: #fff;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links .nav-settings:hover,
.nav-links .nav-settings.active {
  color: #fff;
  background: none;
  transform: scale(1.06);
  box-shadow: none;
  opacity: 0.85;
}

.nav-settings-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.nav-settings-item .nav-settings::after {
  display: none;
}

.nav-lang-item {
  display: flex;
  align-items: center;
}

.nav-lang-toggle {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-lang-toggle:hover,
.nav-lang-toggle:focus-visible {
  transform: translateY(-1px) scale(1.06);
  opacity: 0.9;
  outline: none;
}

.nav-lang-flag {
  display: block;
  width: auto;
  height: 1.7rem;
  max-width: none;
  border-radius: 3px;
  object-fit: contain;
  line-height: 1;
  box-shadow: none;
}

.nav-lang-flag--en {
  height: 1.95rem;
}

.nav-lang-flag--fr {
  height: 1.7rem;
}

/* Panel Ressources */
.ressources-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    transform 0.32s ease,
    padding 0.42s ease;
  padding: 0 50px;
}

.ressources-panel.open {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  padding: 0 50px 14px;
}

.ressources-panel-inner {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-origin: top center;
  animation: resourcesPanelIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ressources-panel:not(.open) .ressources-panel-inner {
  animation: none;
}

@keyframes resourcesPanelIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ressources-panel.open a {
  animation: resourceLinkIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ressources-panel.open a:nth-of-type(1) { animation-delay: 0.06s; }
.ressources-panel.open a:nth-of-type(2) { animation-delay: 0.12s; }
.ressources-panel.open a:nth-of-type(3) { animation-delay: 0.18s; }
.ressources-panel.open a:nth-of-type(4) { animation-delay: 0.24s; }

@keyframes resourceLinkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ressources-panel a {
  color: rgba(229, 231, 235, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ressources-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ressources-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ── Pages internes ── */
.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/jet2-bg.avif');
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

.page-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
  pointer-events: none;
}

.page-shell > .page-main,
.page-shell > footer {
  position: relative;
  z-index: 2;
}

.page-shell--flights::before,
.page-shell--live::before {
  background-image: url('/boeing-757-flight-deck.jpg');
}

.page-shell--register::before {
  background-image: url('/jet2-crew.jpg');
}

.page-shell--login::before {
  background-image: url('/login-bg.avif');
}

.page-shell--dashboard::before {
  background-image: url('/dashboard-bg.jpg');
}

.page-shell--flights::after,
.page-shell--live::after,
.page-shell--register::after,
.page-shell--login::after,
.page-shell--dashboard::after {
  background: rgba(0, 0, 0, 0.65);
}

.page-main {
  flex: 1;
  padding: 2rem 1.25rem 3rem;
}

.container {
  max-width: 480px;
  margin: 0 auto;
}

.container.wide {
  max-width: 960px;
}

.page-shell--flights .container--routes,
.page-shell--live .container--live {
  max-width: 1320px;
  width: 100%;
}

.page-main--live {
  padding-bottom: 1.5rem;
}

.card--live {
  padding: 1.25rem 1.5rem 1.5rem;
}

.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.live-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(239, 65, 56, 0.18);
  border: 1px solid rgba(239, 65, 56, 0.45);
  color: var(--jet-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.live-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  min-height: calc(100vh - var(--nav-sticky-offset) - 12rem);
}

.live-flights-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-sticky-offset) + 1rem);
  max-height: calc(100vh - var(--nav-sticky-offset) - 2rem);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.live-flights-panel::-webkit-scrollbar {
  display: none;
  width: 0;
}

.live-flights-panel h3 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.live-flight-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-flight-card {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.live-flight-card:hover,
.live-flight-card--active {
  border-color: rgba(239, 65, 56, 0.55);
  background: rgba(239, 65, 56, 0.1);
}

.live-flight-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.live-flight-number {
  flex: 1 1 auto;
  min-width: 4.8rem;
  font-weight: 700;
  color: var(--jet-red);
  font-size: 0.95rem;
}

.live-status-badge {
  flex: 0 1 auto;
  max-width: 100%;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.42rem;
  border-radius: 4px;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.12;
  text-align: center;
}

.live-status--tracking {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.live-status--paused {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.live-status--init {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--border);
}

.live-status--stale {
  background: rgba(255, 184, 77, 0.13);
  color: #ffd58a;
  border: 1px solid rgba(255, 184, 77, 0.32);
}

.live-flight-route {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.live-flight-pilot {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.live-flight-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.live-empty {
  text-align: center;
  padding: 2rem 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.live-map-panel {
  position: relative;
  min-height: 480px;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0c12;
}

.live-map {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--nav-sticky-offset) - 12rem);
  z-index: 1;
}

.live-detail-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(320px, calc(100% - 2rem));
  z-index: 500;
  opacity: 0;
  transform: translateX(calc(100% + 1.25rem));
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.live-layout--detail-open .live-detail-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.live-detail-inner {
  background: rgba(10, 11, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.live-detail-head h3 {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.live-detail-close {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.live-detail-close:hover {
  background: rgba(239, 65, 56, 0.22);
  color: #fff;
}

#liveDetailContent {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

#liveDetailContent::-webkit-scrollbar {
  width: 4px;
}

#liveDetailContent::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.live-detail-hero {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.live-detail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.live-detail-flight {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.live-detail-route-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.live-detail-icao {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jet-red);
  letter-spacing: 0.04em;
}

.live-detail-route-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

.live-detail-route-names,
.live-detail-route {
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.live-detail-airports {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.live-detail-muted {
  color: rgba(255, 255, 255, 0.45);
}

.live-detail-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.live-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  min-width: 0;
}

.live-detail-card-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.live-detail-card-main {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  word-break: break-word;
}

.live-detail-card-sep {
  margin: 0 0.25rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.live-detail-card-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.live-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.live-detail-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-detail-block {
  margin-bottom: 1rem;
}

.live-detail-block:last-child {
  margin-bottom: 0;
}

.live-detail-block-title {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.live-detail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.live-detail-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
}

.live-detail-metric-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.live-detail-metric-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.live-detail-block--compact {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-detail-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
}

.live-detail-schedule-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.live-detail-schedule-item--wide {
  grid-column: 1 / -1;
}

.live-detail-schedule-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 600;
}

.live-detail-schedule-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.live-detail-hero .live-status-badge {
  font-size: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.live-detail-list {
  margin-top: 0.25rem;
}

.live-plane-marker {
  background: none;
  border: none;
}

.live-plane-marker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  transform-origin: center center;
}

.live-plane-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.live-plane-shape {
  fill: currentColor;
}

.live-plane-marker--active .live-plane-marker-inner {
  color: var(--jet-red);
  width: 36px;
  height: 36px;
}

.live-plane-marker--active .live-plane-svg {
  width: 36px;
  height: 36px;
  filter:
    drop-shadow(0 0 6px rgba(239, 65, 56, 0.6))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.live-map .leaflet-marker-pane {
  z-index: 650;
}

.live-map .leaflet-overlay-pane {
  z-index: 400;
}

.live-map .leaflet-control-zoom a {
  background: rgba(12, 12, 14, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.live-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
}

.live-map .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.7);
}

.live-map-style-control {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.live-map-style-btn {
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 14, 0.92);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.42rem 0.55rem;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.live-map-style-btn:last-child {
  border-right: none;
}

.live-map-style-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.live-map-style-btn.is-active {
  background: var(--jet-red);
  color: #fff;
}

.live-map--light .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.95);
  color: #1c1c1e;
  border-color: rgba(0, 0, 0, 0.12);
}

.live-map--light .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.88);
  color: rgba(0, 0, 0, 0.55);
}

.live-map--light .leaflet-control-attribution a {
  color: rgba(0, 0, 0, 0.7);
}

.live-map--light .live-map-style-control {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.live-map--light .live-map-style-btn {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(0, 0, 0, 0.65);
  border-right-color: rgba(0, 0, 0, 0.1);
}

.live-map--light .live-map-style-btn:hover {
  background: #fff;
  color: #1c1c1e;
}

.live-map--light .live-map-style-btn.is-active {
  background: var(--jet-red);
  color: #fff;
}

.live-map--light .live-plane-marker-inner {
  color: #1c1c1e;
}

.live-map--light .live-plane-marker--active .live-plane-marker-inner {
  color: var(--jet-red);
}

@media (max-width: 1100px) {
  .live-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .live-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 0;
  }

  .live-flights-panel {
    position: static;
    max-height: 220px;
    order: 2;
  }

  .live-map-panel {
    order: 1;
    min-height: 52vh;
  }

  .live-map {
    min-height: 52vh;
  }

  .live-detail-panel {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: auto;
    max-height: 45vh;
  }

  .live-layout:not(.live-layout--detail-open) .live-detail-panel {
    display: none;
  }
}

.page-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(90deg, var(--jet-blue), #fff, var(--jet-white-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

/* ── Cartes & formulaires ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--jet-red);
  margin-bottom: 0.25rem;
}

.card .subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.doc-resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.doc-resource-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.doc-resource-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-resource-info {
  flex: 1;
  min-width: 0;
}

.doc-resource-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.doc-resource-info p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.doc-resource-item .btn {
  flex-shrink: 0;
  align-self: center;
  margin-top: 0.15rem;
}

@media (max-width: 720px) {
  .doc-resource-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .doc-resource-item .btn {
    align-self: flex-start;
    margin-top: 0;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.15s;
}

.form-group select {
  color-scheme: light;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--jet-red);
}

.form-group select option {
  background: #ffffff !important;
  color: #111111 !important;
}

.form-group--checkbox {
  margin-top: 1.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jet-red);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--jet-red);
  color: #fff;
}

.btn-primary:hover {
  background: #d63530;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--jet-red);
  color: var(--jet-red);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Alertes ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.footer-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-link a {
  color: var(--jet-red);
  text-decoration: none;
  font-weight: 600;
}

.footer-link a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ── Dashboard ── */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.dashboard-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-pirep-accept-label {
  margin: 0;
}

.pirep-add-panel {
  background: linear-gradient(165deg, rgba(239, 65, 56, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%);
  border-color: rgba(239, 65, 56, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.pirep-add-panel__sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.pirep-add-form .admin-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-form-section--compact {
  padding: 0.85rem 1.125rem;
}

.pirep-add-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.routes-add__row--path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
}

.pirep-add-path-arrow {
  align-self: center;
  margin-top: 1.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-pilot-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.1rem;
  align-items: baseline;
}

.admin-pilot-option__id {
  grid-row: 1 / span 2;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--jet-red);
}

.admin-pilot-option__name {
  font-weight: 700;
  font-size: 0.8125rem;
}

.admin-pilot-option__meta {
  grid-column: 2;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .routes-add__row--path {
    grid-template-columns: 1fr;
  }

  .pirep-add-path-arrow {
    display: none;
  }

  .pirep-add-form__actions {
    flex-direction: column-reverse;
  }

  .pirep-add-form__actions .routes-btn {
    width: 100%;
  }
}

.dashboard-header__identity {
  min-width: 0;
}

.dashboard-header__subtitle {
  margin-bottom: 0 !important;
}

.dashboard-profile-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dashboard-profile-card .dashboard-header h2 {
  font-family: 'Plus Jakarta Sans', 'Roboto', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.dashboard-profile-card .dashboard-header h2 em,
.dashboard-profile-card .dashboard-header h2 strong {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(120deg, #fff 0%, #ffd4d1 45%, var(--jet-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pilot-grade-card {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.pilot-grade-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pilot-grade-name {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  color: var(--jet-red);
  line-height: 1.15;
}

.pilot-grade-hours {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pilot-grade-meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.pilot-grade-meta strong {
  color: var(--text);
  font-weight: 700;
}

.pilot-grade-progress {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pilot-grade-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--jet-red);
  transition: width 0.4s ease;
}

.pilot-grade-max {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
}

html[data-theme="light"] .pilot-grade-meta strong {
  color: #000;
}

html[data-theme="light"] .dashboard-profile-card .dashboard-header h2 {
  color: #000;
}

html[data-theme="light"] .dashboard-profile-card .dashboard-header h2 em,
html[data-theme="light"] .dashboard-profile-card .dashboard-header h2 strong {
  background: linear-gradient(120deg, var(--jet-blue) 0%, var(--jet-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-profile-card .profile-grid {
  gap: 0.85rem;
  margin-bottom: 0;
}

.dashboard-profile-card .profile-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dashboard-profile-card .profile-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--jet-blue), var(--jet-red));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-profile-card .profile-item:hover {
  border-color: rgba(239, 65, 56, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.dashboard-profile-card .profile-item:hover::before {
  opacity: 1;
}

.dashboard-profile-card .profile-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.dashboard-profile-card .profile-item .value {
  font-family: 'Plus Jakarta Sans', 'Roboto', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  word-break: break-word;
}

.profile-item--wide {
  grid-column: 1 / -1;
}

html[data-theme="light"] .dashboard-profile-card .profile-item {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .dashboard-profile-card .profile-item:hover {
  border-color: rgba(1, 33, 105, 0.22);
  box-shadow: 0 6px 18px rgba(1, 33, 105, 0.08);
}

/* ── Routes admin page ── */
.routes-page {
  padding: 1.75rem 2rem;
}

.routes-page__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.routes-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.routes-page__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 32rem;
  line-height: 1.5;
}

.routes-page__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.5rem;
}

.routes-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.routes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.routes-btn--xs {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.routes-btn--primary {
  background: var(--jet-red);
  color: #fff;
}

.routes-btn--primary:hover {
  background: #d93630;
}

.routes-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.routes-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.routes-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.routes-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.routes-btn--icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1;
}

.routes-btn--icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.routes-btn--danger-text {
  background: transparent;
  border-color: transparent;
  color: rgba(248, 113, 113, 0.85);
  font-weight: 500;
}

.routes-btn--danger-text:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.admin-live-import-card {
  width: min(1120px, calc(100vw - 2rem));
}

.admin-live-import-body {
  max-height: min(66vh, 680px);
  overflow: auto;
  padding: 0 1.5rem 1rem;
}

.admin-live-import-routes {
  display: grid;
  gap: 0.6rem;
}

.admin-live-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.admin-live-import-section {
  min-width: 0;
}

.admin-live-import-section h4 {
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-live-import-replace {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-live-import-replace input {
  width: 1rem;
  height: 1rem;
  accent-color: #ef174f;
}

.admin-live-import-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-live-import-route--skipped {
  align-items: flex-start;
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(248, 113, 113, 0.055);
}

.admin-live-import-route strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.admin-live-import-route p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.admin-live-import-route__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.admin-live-import-route__meta span {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-live-import-routes--skipped .admin-live-import-route__meta span {
  background: rgba(248, 113, 113, 0.12);
  color: rgba(254, 202, 202, 0.9);
}

.admin-trino-card {
  width: min(860px, calc(100vw - 2rem));
}

.admin-trino-body {
  display: grid;
  gap: 1rem;
  padding: 0 1.5rem 1rem;
}

.admin-trino-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-trino-grid > div {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-trino-grid span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-trino-grid strong {
  color: #fff;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.admin-trino-notes {
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 1.35rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.55;
}

.admin-trino-body textarea {
  min-height: auto;
  resize: vertical;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .admin-live-import-card {
    width: min(760px, calc(100vw - 1rem));
  }

  .admin-live-import-body {
    padding-inline: 1rem;
  }

  .admin-live-import-grid {
    grid-template-columns: 1fr;
  }

  .admin-trino-grid {
    grid-template-columns: 1fr;
  }
}

.routes-search {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.routes-search__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.routes-search__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.routes-search__path {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.routes-search__path .routes-field {
  flex: 1;
  max-width: 12rem;
}

.routes-search__arrow {
  flex-shrink: 0;
  padding-bottom: 0.65rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.routes-search__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.routes-search__filters--solo {
  padding-top: 0;
  border-top: 0;
}

.routes-search__filters .routes-field--sm {
  flex: 0 0 auto;
  min-width: 7rem;
}

.routes-search__filters .routes-field--md {
  flex: 0 0 auto;
  min-width: 8.5rem;
}

.routes-search__buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.routes-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.routes-field > span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.routes-field input,
.routes-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.routes-field input:focus,
.routes-field select:focus {
  outline: none;
  border-color: rgba(239, 65, 56, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 65, 56, 0.12);
}

.routes-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.routes-add {
  background: rgba(239, 65, 56, 0.06);
  border: 1px solid rgba(239, 65, 56, 0.2);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.routes-add__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.routes-add__head h3 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.routes-add__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.routes-add__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.routes-add__form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.routes-add__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.875rem;
}

.routes-types {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

.routes-types legend {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 0.25rem;
}

.routes-types__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem;
}

.routes-types__grid .admin-type-check {
  font-size: 0.875rem;
}

.routes-airport-hint {
  margin: 0.2rem 0 0;
  min-height: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.routes-results {
  margin-top: 0.5rem;
}

.routes-results__bar {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.routes-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.routes-empty__title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.routes-empty__hint {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.routes-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.routes-table {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.admin-routes-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-routes-results-layout .routes-table {
  min-width: 0;
}

.admin-routes-results-layout--detail-open {
  grid-template-columns: minmax(0, 1fr);
}

.routes-table--empty {
  display: none;
}

.routes-loading {
  margin: 0;
  padding: 1.25rem 1.15rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.routes-table__head,
.routes-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(13rem, 1fr) minmax(12rem, 0.85fr) 5.5rem 8.5rem;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.15rem;
}

.routes-table__head {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.routes-table__body {
  display: flex;
  flex-direction: column;
}

.routes-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s;
}

.routes-row:last-child {
  border-bottom: 0;
}

.routes-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.routes-row--selected {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(96, 165, 250, 0.18);
}

.routes-row--inactive {
  opacity: 0.55;
}

.routes-row__flight strong {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.routes-row__icaos {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.routes-row__arrow {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.routes-row__names {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.1rem;
}

.routes-row__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.routes-row__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.routes-row__types-preview {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.routes-row__types-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  min-width: 0;
  overflow: hidden;
}

.routes-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
}

.routes-tag--lock {
  background: rgba(245, 158, 11, 0.12);
}

.routes-tag-more {
  flex: 0 0 auto;
  border: 1px solid rgba(239, 65, 56, 0.34);
  border-radius: 5px;
  padding: 0.22rem 0.5rem;
  background: rgba(239, 65, 56, 0.08);
  color: #fca5a5;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.1;
}

.routes-tag-more:hover {
  background: rgba(239, 65, 56, 0.16);
  color: #fff;
}

.admin-route-detail-panel {
  position: fixed;
  top: 8.75rem;
  right: clamp(1rem, 3vw, 2.5rem);
  z-index: 45;
  width: min(340px, calc(100vw - 2rem));
  max-height: calc(100vh - 10.5rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 21, 31, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  padding: 1rem;
  min-height: 14rem;
}

.admin-route-detail-panel.hidden {
  display: none;
}

.admin-route-detail-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-route-detail-panel__head h3 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.admin-route-detail-panel__head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-route-detail-panel__close {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.admin-route-detail-panel__section {
  margin-top: 1rem;
}

.admin-route-detail-panel__section h4 {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-route-detail-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.routes-empty-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.routes-tag--reg {
  background: rgba(59, 130, 246, 0.14);
  color: rgba(191, 219, 254, 0.95);
}

.routes-services {
  margin-top: 0.5rem;
}

.admin-form-section,
.routes-services,
.routes-types {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
}

.admin-form-section legend,
.routes-services legend,
.routes-types legend {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 0.35rem;
}

.admin-form-section__hint,
.routes-aircraft__hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

.admin-form-section--path {
  padding: 1rem 1.125rem 0.875rem;
}

.route-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.route-services-head {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 2rem;
  gap: 0.75rem;
  padding: 0 0.75rem;
  margin-bottom: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.route-service-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 2rem;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.route-service-row__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.route-service-row .routes-field input {
  margin-top: 0.15rem;
}

@media (min-width: 641px) {
  .route-service-row__label {
    display: none;
  }
}

.route-service-remove {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.route-service-remove:hover {
  border-color: rgba(239, 65, 56, 0.45);
  color: #fca5a5;
  background: rgba(239, 65, 56, 0.1);
}

.route-service-remove-spacer {
  width: 2rem;
  height: 2rem;
}

.route-services-add {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.route-services-add:hover {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
  background: rgba(34, 197, 94, 0.06);
}

.routes-row__services {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.admin-route-edit-card .route-services-list {
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .route-services-head {
    display: none;
  }

  .route-service-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "flight remove";
  }

  .route-service-row .routes-field:first-child {
    grid-area: flight;
  }

  .route-service-row .route-service-remove,
  .route-service-row .route-service-remove-spacer {
    grid-area: remove;
    align-self: end;
  }
}

.routes-aircraft {
  margin-top: 0.25rem;
}

.routes-aircraft__hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.routes-aircraft__empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-aircraft-check__type {
  color: var(--muted);
  font-weight: 400;
}

.routes-status {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.routes-status--on {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
}

.routes-status--off {
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.routes-row__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.fleet-table.routes-table,
.fleet-table .routes-table__body,
.fleet-row {
  overflow: visible;
}

.fleet-table.routes-table {
  border-radius: 14px;
}

.fleet-table .routes-table__head,
.fleet-row {
  grid-template-columns: 7.5rem 5.5rem 1fr 7.5rem 7.5rem 5.5rem;
}

.fleet-row__photo {
  min-width: 0;
}

.fleet-photo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 7rem;
}

.fleet-photo__link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  line-height: 0;
}

.fleet-photo__link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4.5rem;
  object-fit: cover;
}

.fleet-photo__credit {
  font-size: 0.5625rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  word-break: break-word;
}

.fleet-photo--loading {
  width: 7rem;
  height: 3.5rem;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: fleet-photo-shimmer 1.2s infinite;
}

.fleet-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 3.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
}

.fleet-add-preview {
  grid-column: 1 / -1;
}

.fleet-add-preview .fleet-photo {
  max-width: 10rem;
}

.fleet-add-preview .fleet-photo__link img {
  max-height: 6rem;
}

@keyframes fleet-photo-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fleet-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s;
}

.fleet-row:last-child {
  border-bottom: 0;
}

.fleet-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.fleet-row__reg strong {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fleet-row__type-name,
.fleet-row__base-name {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
}

.fleet-row__base-code {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fleet-row__status .admin-status-picker {
  width: 100%;
  max-width: 8.5rem;
}

.fleet-row__actions {
  display: flex;
  justify-content: flex-end;
}

.fleet-remove-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(239, 65, 56, 0.28);
  border-radius: 6px;
  background: rgba(239, 65, 56, 0.08);
  color: #fca5a5;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fleet-remove-btn:hover {
  border-color: rgba(239, 65, 56, 0.45);
  background: rgba(239, 65, 56, 0.14);
  color: #fecaca;
}

.fleet-table.routes-table {
  overflow: visible;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(7, 8, 10, 0.88);
}

.fleet-table .routes-table__head {
  display: none;
}

.fleet-table .routes-table__body {
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
}

.fleet-row {
  position: relative;
  z-index: 0;
  grid-template-columns: 8.25rem minmax(5.75rem, 0.7fr) minmax(7.5rem, 0.9fr) minmax(7.25rem, 0.8fr) minmax(8.4rem, 0.75fr) 8.75rem;
  gap: 0.95rem;
  margin: 0;
  min-height: 6.9rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 15%, rgba(239, 65, 56, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(12, 12, 14, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.fleet-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.fleet-row:hover {
  background:
    radial-gradient(circle at 12% 15%, rgba(239, 65, 56, 0.18), transparent 29%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(59, 130, 246, 0.025)),
    rgba(16, 16, 18, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}

.fleet-row.is-status-open,
.fleet-row:has(.admin-status-picker.is-open) {
  z-index: 60;
}

.fleet-photo {
  width: 7.5rem;
  max-width: 7.5rem;
}

.fleet-photo__link {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.14);
}

.fleet-photo__link img {
  width: 7.5rem;
  height: 4.65rem;
  max-height: none;
}

.fleet-photo__credit {
  color: rgba(255, 255, 255, 0.48);
}

.fleet-row__reg strong {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 1rem;
  color: #fff;
}

.fleet-row__reg,
.fleet-row__type,
.fleet-row__base {
  min-width: 0;
}

.fleet-row__type .routes-tag {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding-inline: 0.55rem;
  border-radius: 7px;
  background: rgba(158, 197, 255, 0.12);
  color: #dbeafe;
  font-weight: 800;
}

.fleet-row__type-name,
.fleet-row__base-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-row__base-code {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
}

.fleet-row__status .admin-status-picker {
  width: 100%;
  min-width: 8rem;
  max-width: 8.75rem;
}

.fleet-row__status .admin-status-picker__trigger {
  justify-content: flex-start;
  min-height: 2.15rem;
  padding-inline: 0.75rem 0.6rem;
}

.fleet-row__actions {
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-direction: column;
  width: 8.75rem;
  justify-self: end;
}

.fleet-relocate-btn,
.fleet-remove-btn {
  width: 100%;
  min-height: 2.15rem;
  border-radius: 8px;
  padding: 0.48rem 0.7rem;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.fleet-relocate-btn {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(59, 130, 246, 0.11);
  color: #bfdbfe;
}

.fleet-relocate-btn:hover {
  border-color: rgba(96, 165, 250, 0.42);
  color: #dbeafe;
}

.fleet-remove-btn {
  border-color: rgba(239, 65, 56, 0.34);
  background: rgba(239, 65, 56, 0.09);
}

.hub-table__head,
.hub-row__main {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.4fr) 3rem minmax(7rem, 1fr) 5.5rem 8.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1rem;
}

.hub-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-row:last-child {
  border-bottom: 0;
}

.hub-row:hover .hub-row__main {
  background: rgba(255, 255, 255, 0.02);
}

.hub-row--inactive .hub-row__name,
.hub-row--inactive .hub-row__icao {
  opacity: 0.55;
}

.hub-row__icao {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 800;
  font-size: 0.8125rem;
  color: #9ec5ff;
}

.hub-row__name {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-row__country {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.hub-row__usage {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.hub-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.hub-row__edit {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.hub-row__edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 4rem auto;
  gap: 0.65rem;
  align-items: end;
}

.hub-row__edit-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.routes-field--xs {
  max-width: 4.5rem;
}

@media (max-width: 900px) {
  .hub-table__head {
    display: none;
  }

  .hub-row__main {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hub-row__actions {
    justify-content: flex-start;
  }

  .hub-row__edit-form {
    grid-template-columns: 1fr;
  }
}

.routes-page .admin-airport-field {
  position: relative;
}

.routes-page .admin-airport-dropdown {
  z-index: 30;
}

@media (max-width: 960px) {
  .admin-routes-results-layout {
    grid-template-columns: 1fr;
  }

  .admin-route-detail-panel {
    position: static;
  }

  .routes-table__head {
    display: none;
  }

  .routes-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
  }

  .routes-row__actions {
    flex-direction: row;
  }

  .fleet-table .routes-table__head {
    display: none;
  }

  .fleet-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
  }

  .fleet-row__status .admin-status-picker {
    max-width: 100%;
  }

  .fleet-row__actions {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    flex-direction: row;
  }

  .fleet-relocate-btn,
  .fleet-remove-btn {
    width: auto;
    min-width: 8rem;
  }

  .routes-search__path {
    flex-direction: column;
    align-items: stretch;
  }

  .routes-search__path .routes-field {
    max-width: none;
  }

  .routes-search__arrow {
    display: none;
  }

  .routes-search__buttons {
    margin-left: 0;
    width: 100%;
  }

  .routes-search__buttons .routes-btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .routes-page {
    padding: 1.15rem;
  }

  .routes-page__header {
    flex-direction: column;
  }

  .routes-page__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.status-stored {
  background: rgba(245, 158, 11, 0.2);
  color: var(--jet-orange);
}

.status-maintenance {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.status-admin {
  background: rgba(1, 33, 105, 0.45);
  color: #9ec5ff;
}

.admin-status-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: transparent;
}

.admin-status-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-status-picker {
  position: relative;
  display: inline-block;
  width: 100%;
}

.admin-status-picker.is-open {
  z-index: 70;
}

.admin-status-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.32rem 0.6rem 0.32rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.admin-status-picker__trigger:hover:not(:disabled) {
  transform: translateY(-1px);
}

.admin-status-picker.is-open .admin-status-picker__trigger {
  transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.admin-status-picker__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.admin-status-picker.status-active .admin-status-picker__trigger {
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-status-picker.status-maintenance .admin-status-picker__trigger {
  border-color: rgba(148, 163, 184, 0.35);
}

.admin-status-picker.status-stored .admin-status-picker__trigger {
  border-color: rgba(245, 158, 11, 0.35);
}

.admin-status-picker__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-active .admin-status-picker__dot {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}

.status-maintenance .admin-status-picker__dot {
  background: #94a3b8;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.45);
}

.status-stored .admin-status-picker__dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.admin-status-picker__label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.admin-status-picker__chevron {
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.admin-status-picker.is-open .admin-status-picker__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.admin-status-picker__menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.55rem);
  left: 50%;
  right: auto;
  width: max(100%, 10.25rem);
  min-width: 0;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 14, 28, 0.96);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transform-origin: top center;
  animation: adminStatusMenuIn 0.16s ease-out;
}

@keyframes adminStatusMenuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.admin-status-picker__menu.hidden {
  display: none;
}

.admin-status-picker__option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  margin: 0.12rem 0;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-status-picker__option-label {
  flex: 1;
}

.admin-status-picker__check {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 800;
}

.admin-status-picker__option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.admin-status-picker__option.is-selected {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-status-picker__option.status-active.is-selected {
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
}

.admin-status-picker__option.status-maintenance.is-selected {
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
}

.admin-status-picker__option.status-stored.is-selected {
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.admin-status-picker__option.status-active {
  color: #86efac;
}

.admin-status-picker__option.status-maintenance {
  color: #cbd5e1;
}

.admin-status-picker__option.status-stored {
  color: #fcd34d;
}

.admin-status-picker.is-busy .admin-status-picker__trigger {
  opacity: 0.65;
  cursor: wait;
}

.admin-status-picker__trigger:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--jet-orange);
}

.status-suspended,
.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.875rem;
}

.profile-item .label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-item .value {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.reset-link-box {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.875rem;
  font-family: monospace;
  font-size: 0.8125rem;
  word-break: break-all;
  margin-top: 0.5rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.actions .btn {
  flex: 1;
}

/* ── Admin ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-pending .stat-value { color: var(--jet-orange); }
.stat-active .stat-value { color: var(--success); }
.stat-admin .stat-value { color: #9ec5ff; }
.stat-rejected .stat-value { color: var(--danger); }
.stat-suspended .stat-value { color: var(--muted); }

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.admin-tab:hover {
  border-color: var(--jet-red);
  color: #fff;
}

.admin-tab.active {
  background: rgba(239, 65, 56, 0.12);
  border-color: var(--jet-red);
  color: var(--jet-red);
}

.page-shell--admin .ui-reveal,
.page-shell--admin .ui-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.page-shell--admin .card,
.page-shell--admin .routes-page,
.page-shell--admin .routes-search,
.page-shell--admin .routes-add,
.page-shell--admin .routes-table-panel,
.page-shell--admin .admin-manage-row,
.page-shell--admin .admin-pirep-card,
.page-shell--admin .fleet-row,
.page-shell--admin .candidate-card,
.page-shell--admin .pilot-card {
  transition: none !important;
}

.page-shell--admin .card:hover,
.page-shell--admin .routes-page:hover,
.page-shell--admin .routes-search:hover,
.page-shell--admin .routes-add:hover,
.page-shell--admin .routes-table-panel:hover,
.page-shell--admin .admin-manage-row:hover,
.page-shell--admin .admin-pirep-card:hover,
.page-shell--admin .fleet-row:hover,
.page-shell--admin .candidate-card:hover,
.page-shell--admin .pilot-card:hover {
  transform: none !important;
}

.admin-add-panel {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.admin-add-panel summary {
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  list-style: none;
}

.admin-add-panel summary::-webkit-details-marker {
  display: none;
}

.admin-add-panel summary::before {
  content: '+';
  display: inline-block;
  width: 1.25rem;
  color: var(--jet-red);
  font-weight: 700;
}

.admin-add-panel[open] summary::before {
  content: '−';
}

.admin-add-form {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-add-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.875rem;
}

.admin-add-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-add-form input,
.admin-add-form select {
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: #fff;
  font-size: 0.875rem;
}

.admin-type-fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.admin-type-fieldset legend {
  padding: 0 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-type-grid--chips .admin-type-check {
  position: relative;
  margin: 0;
}

.admin-type-grid--chips .admin-type-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.admin-type-grid--chips .admin-type-check span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-type-grid--chips .admin-type-check input:focus-visible + span {
  outline: 2px solid rgba(74, 144, 217, 0.85);
  outline-offset: 2px;
}

.admin-type-grid--chips .admin-type-check input:checked + span {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.admin-type-grid--aircraft .admin-type-check span {
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.admin-type-grid--aircraft .admin-aircraft-check__type {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
}

.admin-type-check {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #fff;
  cursor: pointer;
}

.admin-manage-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-manage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.admin-manage-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.admin-manage-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-manage-side {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.admin-route-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.admin-locked-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jet-orange);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
}

.admin-auto-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
}

.admin-route-search {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-route-search label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-route-search input,
.admin-route-search select {
  width: 100%;
}

.admin-route-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-route-count {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-route-headline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-manage-row--inactive {
  opacity: 0.72;
}

.admin-route-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-route-edit-card {
  max-width: 620px;
  width: calc(100% - 2rem);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.admin-route-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-route-modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-route-modal-path {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.admin-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.admin-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.admin-toggle-switch__track {
  position: relative;
  width: 2.35rem;
  height: 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.admin-toggle-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.3rem - 6px);
  height: calc(1.3rem - 6px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, background 0.2s ease;
}

.admin-toggle-switch input:checked + .admin-toggle-switch__track {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.55);
}

.admin-toggle-switch input:checked + .admin-toggle-switch__track::after {
  transform: translateX(1.05rem);
  background: #86efac;
}

.admin-toggle-switch__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.admin-route-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.admin-route-form-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.125rem 1.5rem;
  overflow-y: auto;
}

.admin-route-path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.admin-route-path-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-route-path-field > span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.admin-route-path-field input {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.admin-route-path-field input:focus {
  outline: none;
  border-color: rgba(74, 144, 217, 0.65);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.admin-route-path-arrow {
  margin-top: 1.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  line-height: 1;
}

.admin-airport-hint {
  margin: 0.15rem 0 0;
  min-height: 1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.35;
}

.admin-route-modal-foot {
  margin-top: 0;
  padding: 0.875rem 1.5rem 1.125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.admin-route-edit-card .booking-modal-actions {
  margin-top: 0;
}

.btn-save {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: 1px solid rgba(134, 239, 172, 0.25);
}

.btn-save:hover {
  background: linear-gradient(180deg, #34d399 0%, #22c55e 100%);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .admin-route-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-route-path-row {
    grid-template-columns: 1fr;
  }

  .admin-route-path-arrow {
    display: none;
  }
}

.admin-airport-field {
  position: relative;
}

.admin-airport-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 220px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.admin-airport-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 0.8125rem;
  cursor: pointer;
}

.admin-airport-option:hover,
.admin-airport-option:focus {
  background: var(--surface-2);
}

.admin-airport-hint {
  margin: 0.25rem 0 0;
  min-height: 1rem;
}

.admin-airport-hint--error {
  color: var(--jet-red);
}

.admin-airport-hint--success {
  color: #4ade80;
}

.admin-airport-db-meta {
  margin-top: 0.25rem;
}

.candidates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.candidate-card,
.pilot-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.pilots-list {
  gap: 0.35rem;
}

.pilot-search-bar {
  margin-bottom: 0.85rem;
}

.pilot-search-bar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.pilot-search-bar__field {
  margin: 0;
}

.pilot-search-bar__field--grow {
  flex: 1 1 12rem;
  min-width: 0;
}

.pilot-search-bar__input,
.pilot-search-bar__select {
  width: 100%;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.8125rem;
}

.pilot-search-bar__select {
  min-width: 7rem;
}

.pilot-search-bar__input:focus,
.pilot-search-bar__select:focus {
  outline: none;
  border-color: rgba(239, 65, 56, 0.45);
  box-shadow: 0 0 0 2px rgba(239, 65, 56, 0.12);
}

.pilot-search-bar__reset {
  flex-shrink: 0;
  padding: 0.42rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.pilot-search-bar__reset:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pilot-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pilot-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.pilot-card--expanded {
  border-color: rgba(239, 65, 56, 0.28);
  background: rgba(239, 65, 56, 0.04);
}

.pilot-card__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.pilot-card__id {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  background: rgba(1, 33, 105, 0.55);
  border: 1px solid rgba(158, 197, 255, 0.22);
  color: #bfdbfe;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.pilot-card__info {
  min-width: 0;
}

.pilot-card__line1,
.pilot-card__line2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  min-width: 0;
}

.pilot-card__line2 {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.pilot-card__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.status-badge--xs {
  padding: 0.08rem 0.38rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.pilot-card__rank-tag {
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.pilot-card__email {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-card__route,
.pilot-card__metric {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  white-space: nowrap;
}

.pilot-card__sep {
  opacity: 0.35;
  user-select: none;
}

.pilot-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}

.pilot-card__tool {
  padding: 0.24rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pilot-card__tool:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pilot-card__tool--primary {
  border-color: rgba(239, 65, 56, 0.35);
  background: rgba(239, 65, 56, 0.12);
  color: #fecaca;
}

.pilot-card__tool--primary:hover,
.pilot-card__tool--active {
  background: rgba(239, 65, 56, 0.22);
  color: #fff;
}

.pilot-card__tool--success {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.pilot-card__tool--danger {
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.pilot-card__tool--danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

.pilot-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pilot-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.pilot-card__edit {
  padding-top: 0.65rem;
  margin-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pilot-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pilot-card__feedback {
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.pilot-card__feedback--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.pilot-card__feedback--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.pilot-edit-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pilot-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
}

.pilot-stat-field--wide {
  grid-column: 1 / -1;
}

.pilot-stat-input--icao {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pilot-card__stats {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pilot-stats-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pilot-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.pilot-stat-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.pilot-stat-field__control {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pilot-stat-field__control:focus-within {
  border-color: rgba(239, 65, 56, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(239, 65, 56, 0.12);
}

.pilot-stat-field > .pilot-stat-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pilot-stat-field > .pilot-stat-input:focus {
  border-color: rgba(239, 65, 56, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(239, 65, 56, 0.12);
}

.pilot-stat-input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-style: normal;
  -moz-appearance: textfield;
}

.pilot-stat-input::-webkit-outer-spin-button,
.pilot-stat-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pilot-stat-input:focus {
  outline: none;
}

.pilot-stat-field__unit {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid var(--border);
}

.pilot-stats-save {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.62rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(239, 65, 56, 0.95) 0%, rgba(200, 45, 38, 0.95) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.pilot-stats-save:hover:not(:disabled) {
  filter: brightness(1.08);
}

.pilot-stats-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pilot-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pilot-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.pilot-card__action {
  font-style: normal;
  white-space: nowrap;
}

html[data-theme="light"] .pilot-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pilot-card:hover {
  background: rgba(0, 0, 0, 0.035);
}

html[data-theme="light"] .pilot-card__name {
  color: #000;
}

html[data-theme="light"] .pilot-card__line2 {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .pilot-search-bar__form {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pilot-search-bar__input,
html[data-theme="light"] .pilot-search-bar__select {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .pilot-stat-field__control {
  background: #fff;
}

html[data-theme="light"] .pilot-stat-input {
  color: #000;
}

@media (max-width: 900px) {
  .pilot-card__summary {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .pilot-card__toolbar {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0.15rem;
  }

  .pilot-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pilot-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pilot-card__summary {
    grid-template-columns: 1fr;
  }

  .pilot-card__id {
    justify-self: start;
  }

  .pilot-edit-grid,
  .pilot-stats-grid {
    grid-template-columns: 1fr;
  }

  .pilot-search-bar__form {
    flex-direction: column;
    align-items: stretch;
  }

  .pilot-search-bar__reset {
    align-self: flex-end;
  }
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.candidate-id {
  display: inline-block;
  background: rgba(1, 33, 105, 0.5);
  color: #9ec5ff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.candidate-name {
  font-weight: 700;
  font-size: 1rem;
}

.candidate-date {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.candidate-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.candidate-detail {
  font-size: 0.875rem;
}

.detail-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.125rem;
}

.candidate-actions {
  display: flex;
  gap: 0.5rem;
}

.candidate-actions .btn {
  flex: 1;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Vols ── */
.flight-search-form {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.form-group-action {
  display: flex;
  align-items: flex-end;
}

.form-group-action .btn {
  width: 100%;
}

.flight-table-wrap {
  overflow-x: auto;
}

.flight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.flight-table th,
.flight-table td {
  padding: 0.75rem 0.625rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.flight-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.flight-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.flight-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.fleet-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fleet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.fleet-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.fleet-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--jet-red);
  line-height: 1.1;
}

.fleet-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fleet-base-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}

.fleet-base-card:hover {
  border-color: var(--jet-red);
  transform: translateY(-1px);
}

.fleet-base-card--active {
  border-color: var(--jet-orange);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.25);
}

.fleet-base-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.fleet-base-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.fleet-base-icao {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--jet-red);
}

.fleet-base-name,
.fleet-base-group-name {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.fleet-base-total {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.fleet-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fleet-summary-type {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.fleet-summary-type-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.fleet-type-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.fleet-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.fleet-filter-bar .form-group-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fleet-aircraft-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fleet-base-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.fleet-base-group-title {
  margin: 0;
  font-size: 1.15rem;
}

.fleet-base-group-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.fleet-aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.fleet-aircraft-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, transform 0.15s;
}

.fleet-aircraft-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.fleet-aircraft-card--booked {
  opacity: 0.88;
}

.fleet-aircraft-card--legacy {
  border-style: dashed;
}

.legacy-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbbf77;
  line-height: 1;
}

.fleet-aircraft-badges .legacy-badge {
  margin-top: 0.15rem;
}

.aircraft-name-cell .legacy-badge {
  align-self: flex-start;
}

.route-info-model .legacy-badge {
  margin-left: 0.4rem;
  vertical-align: middle;
}

.fleet-aircraft-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.fleet-aircraft-reg {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fleet-aircraft-type {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.fleet-aircraft-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.fleet-aircraft-details {
  display: grid;
  gap: 0.55rem;
}

.fleet-aircraft-detail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.fleet-aircraft-detail .detail-label {
  flex-shrink: 0;
}

.fleet-aircraft-detail span:last-child {
  text-align: right;
  color: var(--text);
}

.fleet-aircraft-foot {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.fleet-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fleet-availability::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.fleet-availability--free {
  color: #6ee7a8;
}

.fleet-availability--free::before {
  background: #6ee7a8;
}

.fleet-availability--booked {
  color: #fbbf77;
}

.fleet-availability--booked::before {
  background: #fbbf77;
}

.active-session-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .active-session-layout {
    grid-template-columns: 1fr;
  }
}

.active-session-route {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.active-session-route h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.active-session-route .route-globe-wrap {
  margin-bottom: 0;
}

.active-booking-details {
  margin-top: 0.5rem;
}

.active-booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.active-booking-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#activeBookingCard,
#activeSessionCard {
  border-color: var(--jet-red);
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.15);
}

.acars-tracking-bar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.acars-tracking-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.acars-point-count {
  font-size: 0.875rem;
  color: var(--muted);
}

.active-removal-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(227, 6, 19, 0.32);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.active-removal-timer strong {
  color: var(--jet-red);
  font-weight: 800;
}

.active-removal-timer--expired {
  border-color: rgba(255, 107, 107, 0.65);
  background: rgba(255, 107, 107, 0.14);
}

.acars-id-label code {
  font-size: 0.8rem;
  color: var(--jet-red);
}

.book-flight-summary {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Routes planning — layout vJet2 */
.card--routes {
  padding: 1.5rem 1.75rem;
}

.routes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .routes-layout {
    grid-template-columns: 1fr;
  }

  .routes-filter-panel {
    order: -1;
  }
}

.routes-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.routes-table-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem 1.25rem;
}

.routes-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.routes-result-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.routes-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.routes-hub-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(227, 6, 19, 0.25);
  border-radius: 10px;
}

.routes-hub-banner-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.routes-hub-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  width: 100%;
}

.routes-hub-name {
  font-size: 1.2rem;
  color: var(--text);
}

.routes-hub-codes {
  font-size: 0.9rem;
  color: var(--muted);
}

.routes-hub-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--jet-red);
  color: #fff;
  font-weight: 700;
}

.routes-hub-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hub-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 4.5rem;
}

.hub-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jet-red);
  line-height: 1;
}

.hub-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hub-stat--fleet {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.hub-fleet-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hub-fleet-chip strong {
  color: var(--text);
  margin-left: 0.15rem;
}

.routes-empty-pick {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.routes-empty-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.routes-empty-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.base-quick-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 720px;
}

.base-quick-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.base-quick-pick:hover {
  border-color: var(--jet-red);
  background: rgba(227, 6, 19, 0.08);
  transform: translateY(-1px);
}

.base-quick-pick-icao {
  font-weight: 700;
  color: var(--jet-red);
  font-size: 0.95rem;
}

.base-quick-pick-name {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.routes-filter-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  position: sticky;
  top: calc(var(--nav-sticky-offset) + 1rem);
  align-self: start;
  z-index: 5;
  max-height: calc(100vh - var(--nav-sticky-offset) - 2rem);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.routes-filter-panel::-webkit-scrollbar {
  display: none;
  width: 0;
}

.routes-filter-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.routes-filter-panel .form-group {
  margin-bottom: 0.85rem;
}

.routes-filter-panel .form-group label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pilot-location-card {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(227, 6, 19, 0.22);
  border-radius: 8px;
}

.pilot-location-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pilot-location-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.pilot-location-codes {
  display: block;
  font-size: 0.8rem;
  color: var(--jet-red);
  font-weight: 600;
  margin-top: 0.15rem;
}

.pilot-location-hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.jumpseat-panel {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.jumpseat-panel--needed {
  border-color: rgba(227, 6, 19, 0.45);
  background: rgba(227, 6, 19, 0.08);
}

.jumpseat-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.jumpseat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--jet-red);
}

.jumpseat-hint {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.jumpseat-panel .form-group {
  margin-bottom: 0.65rem;
}

.jumpseat-btn {
  width: 100%;
}

.routes-filter-panel .form-group:last-of-type {
  margin-bottom: 0.75rem;
}

.duration-range {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.duration-range input[type="range"] {
  width: 100%;
}

.duration-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.flight-number-link {
  color: var(--jet-red);
  font-weight: 700;
  text-decoration: none;
}

.flight-number-link:hover {
  text-decoration: underline;
}

.routes-table .flight-table th {
  position: sticky;
  top: var(--nav-sticky-offset);
  background: var(--surface-2);
  z-index: 1;
}

.th-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.th-sortable:hover {
  color: var(--jet-red);
}

.th-sortable--asc::after {
  content: ' ↑';
  color: var(--jet-red);
  font-size: 0.75rem;
}

.th-sortable--desc::after {
  content: ' ↓';
  color: var(--jet-red);
  font-size: 0.75rem;
}

.routes-table tbody tr.routes-row {
  transition: background 0.15s;
}

.routes-table tbody tr.routes-row:hover {
  background: rgba(227, 6, 19, 0.06);
}

.routes-table tbody tr.routes-row--unavailable {
  opacity: 0.55;
}

.destination-cell {
  min-width: 200px;
  max-width: 320px;
  line-height: 1.35;
}

.destination-cell .airport-name {
  display: block;
  font-weight: 500;
}

.destination-cell .airport-codes {
  font-size: 0.78rem;
  color: var(--muted);
}

.routes-date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.routes-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.routes-distance {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.routes-action {
  text-align: right;
  white-space: nowrap;
}

.routes-booked-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jet-red);
}

.routes-muted {
  color: var(--muted);
}

.fleet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 220px;
}

.fleet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.fleet-pill--ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.fleet-pill--ok .fleet-pill-type {
  color: var(--text);
}

.fleet-pill-count {
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
}

.fleet-pill--none {
  opacity: 0.45;
  text-decoration: line-through;
}

.fleet-pill--none .fleet-pill-type {
  color: var(--muted);
}

/* ── Flight schedule cards (planning) ── */
.routes-table-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flight-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.flight-sort-btn:hover {
  border-color: rgba(239, 65, 56, 0.45);
  color: var(--text);
}

#refreshFlights.is-refreshing {
  opacity: 0.65;
  pointer-events: none;
}

.flight-sort-btn--asc,
.flight-sort-btn--desc {
  border-color: rgba(239, 65, 56, 0.5);
  color: var(--jet-red);
  background: rgba(239, 65, 56, 0.08);
}

.flight-sort-icon::after {
  content: '↕';
  font-size: 0.7rem;
  opacity: 0.5;
}

.flight-sort-btn--asc .flight-sort-icon::after {
  content: '↑';
  opacity: 1;
}

.flight-sort-btn--desc .flight-sort-icon::after {
  content: '↓';
  opacity: 1;
}

.flight-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flight-list-header {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1.4fr) minmax(14rem, 1.6fr) minmax(6.5rem, 0.9fr) 7.5rem;
  gap: 1rem;
  align-items: center;
  padding: 0.45rem 1rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flight-list-header span:last-child {
  text-align: right;
}

.flight-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.65rem;
}

.flight-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1.4fr) minmax(14rem, 1.6fr) minmax(6.5rem, 0.9fr) 7.5rem;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}

.flight-card:hover {
  border-color: rgba(239, 65, 56, 0.35);
  background: linear-gradient(135deg, rgba(239, 65, 56, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.flight-card--unavailable {
  opacity: 0.62;
}

.flight-card--unavailable:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.flight-card--booked {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.flight-card-col--id {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.flight-card-number {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--jet-red);
  text-decoration: none;
  line-height: 1.1;
}

.flight-card-number:hover {
  color: #ff6b5b;
}

.flight-card-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.flight-card-col--dest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.flight-card-iata {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(1, 33, 105, 0.55);
  border: 1px solid rgba(74, 144, 217, 0.35);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #93c5fd;
}

.flight-card-dest-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.flight-card-dest-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-card-dest-codes {
  font-size: 0.72rem;
  color: var(--muted);
}

.flight-card-col--schedule {
  min-width: 0;
}

.flight-card-times {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.flight-card-time-group {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 3.25rem;
}

.flight-card-time-group--arr {
  align-items: flex-end;
  text-align: right;
}

.flight-card-time-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.flight-card-time {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.flight-card-leg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 4.5rem;
  padding: 0 0.25rem;
}

.flight-card-leg-duration {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jet-red);
  font-variant-numeric: tabular-nums;
}

.flight-card-leg-line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 65, 56, 0.15) 0%, rgba(239, 65, 56, 0.55) 50%, rgba(239, 65, 56, 0.15) 100%);
  position: relative;
}

.flight-card-leg-line::before,
.flight-card-leg-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jet-red);
  transform: translateY(-50%);
}

.flight-card-leg-line::before { left: 0; }
.flight-card-leg-line::after { right: 0; }

.flight-card-leg-distance {
  font-size: 0.65rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.flight-card-col--fleet .flight-card-fleet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.flight-card-col--action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.flight-card-book-btn,
.flight-card-allocate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--jet-red);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.25);
}

.flight-card-allocate-btn {
  min-width: 7.25rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.flight-card-book-btn:hover {
  background: #ff4d42;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
}

.flight-card-allocate-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.flight-card-allocate-btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.flight-card-booked {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.flight-card-unavail {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: right;
  max-width: 7rem;
  line-height: 1.3;
}

.flight-card-col--fleet .fleet-pill {
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

@media (max-width: 1100px) {
  .flight-list-header {
    display: none;
  }

  .flight-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.75rem 1rem;
    padding: 1rem;
  }

  .flight-card-col--id {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 0.65rem;
  }

  .flight-card-col--action {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .flight-card-col--dest {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .flight-card-col--schedule {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .flight-card-col--fleet {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .flight-card-times {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.btn-book-route {
  background: var(--jet-red);
  border-color: var(--jet-red);
  color: #fff;
  font-weight: 600;
}

.btn-book-route:hover {
  filter: brightness(1.08);
}

.pirep-waiting {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.pirep-waiting-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.pirep-waiting-pulse {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--jet-orange);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  animation: pirepPulse 2s ease-out infinite;
}

@keyframes pirepPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pirep-waiting h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pirep-waiting-header .subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pirep-waiting-details {
  margin-top: 1rem;
}

.pirep-waiting-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}

.pirep-waiting-route {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
}

.pirep-waiting-flight {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.pirep-waiting-path {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-mono, monospace);
}

.pirep-waiting-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.pirep-waiting-badge {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.pirep-waiting-gps {
  font-size: 0.78rem;
  color: var(--muted);
}

.pirep-waiting-acars-id {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.pirep-waiting-acars-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.pirep-waiting-acars-code {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono, monospace);
  word-break: break-all;
  line-height: 1.35;
}

.pirep-readonly-hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.pirep-acars-id-line {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.pirep-acars-id-line code {
  font-size: 0.72rem;
  word-break: break-all;
}

.pirep-field-readonly {
  background: var(--surface-2);
  color: var(--text);
  cursor: default;
  opacity: 0.92;
}

.admin-fleet-relocate-card {
  max-width: 28rem;
}

.admin-fleet-relocate-body {
  padding: 0 1.25rem 1rem;
}

.admin-fleet-relocate-body .routes-field {
  width: 100%;
}

.admin-fleet-relocate-body select {
  width: 100%;
}

.admin-pirep-map-card {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.admin-pirep-map-canvas {
  width: 100%;
  height: min(60vh, 520px);
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 1.25rem 1.25rem;
}

.admin-pirep-map-card .admin-route-modal-head {
  padding: 1rem 1.25rem 0.5rem;
}

.admin-pirep-map-card #adminPirepMapError {
  margin: 0 1.25rem 0.75rem;
}

.admin-phase-legend-wrap {
  margin: 0 1.25rem 0.75rem;
}

.admin-phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
}

.admin-phase-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-phase-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.admin-phase-legend__swatch--touchdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111827;
  font-size: 0.55rem;
  font-weight: 800;
  border: 2px solid #111827;
}

.admin-touchdown-marker-wrap {
  background: transparent;
  border: none;
}

.admin-touchdown-marker {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.admin-touchdown-marker--good {
  background: #22c55e;
}

.admin-touchdown-marker--soft {
  background: #84cc16;
}

.admin-touchdown-marker--firm {
  background: #f59e0b;
}

.admin-touchdown-marker--hard {
  background: #ef4444;
}

.admin-touchdown-marker--unknown {
  background: #64748b;
}

.pilot-history-list,
.admin-pirep-list {
  display: grid;
  gap: 1rem;
}

.pilot-history-card,
.admin-pirep-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 1rem 1.1rem;
}

.pilot-history-card__head,
.admin-pirep-card__route {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pilot-history-flight,
.admin-pirep-flight-no {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pilot-history-route,
.admin-pirep-path {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.pilot-history-card__body,
.admin-pirep-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem 1rem;
}

.pilot-history-stat,
.admin-pirep-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.875rem;
}

.pilot-history-reg {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.pilot-history-card__foot,
.admin-pirep-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.pilot-history-date,
.admin-pirep-date {
  color: var(--muted);
  font-size: 0.8125rem;
}

.admin-pirep-remarks {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.admin-pirep-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.admin-pirep-flag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.75rem;
}

html[data-theme="light"] .admin-pirep-flag {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

/* Booking page layout */
.page-shell--book #bookFormCard {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
}

.page-shell--book #noFlightSelected {
  padding: 2rem 1.5rem;
}

.page-shell--book #bookContent {
  display: flex;
  flex-direction: column;
}

.book-route-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(239, 65, 56, 0.08) 0%, transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.book-route-banner__main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.book-route-banner__flight {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--jet-red);
}

.book-route-banner__route {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.book-route-banner__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.06em;
}

.book-route-banner__leg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 5.5rem;
}

.book-route-banner__duration {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jet-red);
  font-variant-numeric: tabular-nums;
}

.book-route-banner__line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.5), var(--jet-red) 50%, rgba(239, 65, 56, 0.5));
  border-radius: 999px;
}

.book-route-banner__line::before,
.book-route-banner__line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--jet-red);
}

.book-route-banner__line::before { left: 0; background: #22c55e; }
.book-route-banner__line::after { right: 0; }

.book-route-banner__distance {
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.book-route-banner__names {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.book-route-banner__times {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.book-route-banner__time {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: right;
}

.book-route-banner__time strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono, monospace);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 34%);
  gap: 0;
  align-items: start;
}

.book-main {
  padding: 1.35rem 1.5rem 1.5rem;
  min-width: 0;
}

.book-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.book-section-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jet-red);
  font-style: italic;
  letter-spacing: 0.01em;
}

.book-section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.book-back-link {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-main {
    padding-bottom: 0.75rem;
  }

  .route-info-panel {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    position: static !important;
  }

  .book-route-banner__times {
    width: 100%;
    justify-content: flex-start;
  }

  .book-route-banner__time {
    text-align: left;
  }

  .book-aircraft-card--horizontal {
    flex-direction: column;
  }

  .book-aircraft-card--horizontal .book-aircraft-card__photo {
    width: 100%;
    max-width: none;
  }

  .book-aircraft-grid--compact {
    grid-template-columns: 1fr;
  }

  .route-info-schedule {
    grid-template-columns: 1fr;
  }

  .route-info-schedule__cell--mid {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
  }
}

.route-info-panel {
  background: var(--surface-2);
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  align-self: stretch;
}

.route-info-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.route-globe-wrap {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1628 0%, #06101f 100%);
  border: 1px solid var(--border);
}

.route-globe-stage {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: visible;
}

.route-globe-hint {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  z-index: 3;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.62rem;
  color: var(--muted);
  background: rgba(6, 16, 31, 0.72);
  border: 1px solid var(--border);
  pointer-events: none;
}

.route-globe-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.route-globe-map-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  max-width: 130px;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(6, 16, 31, 0.88);
  border: 1px solid var(--border);
  text-align: center;
  line-height: 1.2;
  transition: opacity 0.15s ease;
}

.route-globe-map-label.hidden {
  opacity: 0;
}

.route-globe-map-label-code {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
}

.route-globe-map-label-name {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}

.route-globe-map-label-dep {
  border-color: rgba(34, 197, 94, 0.45);
}

.route-globe-map-label-arr {
  border-color: rgba(239, 65, 56, 0.45);
}

.route-globe-map-label--precise {
  max-width: 160px;
  border-width: 1.5px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.route-globe-map-label--precise .route-globe-map-label-name {
  font-size: 0.68rem;
}

.route-globe-map-label--precise .route-globe-map-label-code {
  font-size: 0.6rem;
}

.route-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.route-globe-canvas:active {
  cursor: grabbing;
}

.route-globe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.route-globe-legend-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 140px;
}

.route-globe-legend-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.route-globe-legend-text strong {
  font-size: 0.68rem;
  color: var(--text);
}

.route-globe-legend-text > span:not(.route-globe-legend-code) {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.25;
}

.route-globe-legend-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
}

.simbrief-panel--locked {
  opacity: 0.85;
}

.simbrief-panel--locked .subtitle {
  margin: 0;
}

.route-globe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-globe-legend-dep .route-globe-dot {
  background: var(--jet-red);
  box-shadow: 0 0 6px rgba(239, 65, 56, 0.6);
}

.route-globe-legend-arr .route-globe-dot {
  background: var(--jet-red);
  box-shadow: 0 0 6px rgba(239, 65, 56, 0.6);
}

.network-globe-dot-dest {
  background: var(--jet-red);
  box-shadow: 0 0 6px rgba(239, 65, 56, 0.55);
}

.network-map-page .network-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

.network-map-panel {
  min-width: 0;
}

.network-map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.85rem;
}

.network-map-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.network-map-stat strong {
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 700;
}

.network-globe-wrap {
  position: relative;
  margin-bottom: 0;
  background:
    radial-gradient(circle at 52% 45%, rgba(248, 232, 78, 0.12), transparent 30%),
    linear-gradient(180deg, #06172b 0%, #03101e 100%);
}

.network-map-2d-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #1189d7;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.network-map-2d-frame {
  position: relative;
  width: 100%;
  height: var(--network-map-height, 540px);
  min-height: 430px;
}

.network-map-2d-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.network-map-2d-graticule path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.7;
}

.network-map-2d-land path,
.network-map-2d-land circle {
  fill: #e72418;
  stroke: rgba(125, 16, 12, 0.38);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.network-map-2d-routes path {
  fill: none;
  stroke: #fff348;
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: url(#networkRouteGlow);
  opacity: 0.94;
  vector-effect: non-scaling-stroke;
}

.network-map-2d-airport {
  fill: #ffd52a;
  stroke: #fff8a8;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.network-map-2d-airport--hub {
  fill: #fff348;
  stroke: #ffffff;
  stroke-width: 1.6;
}

.network-map-2d-labels text {
  fill: #ffffff;
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 3;
  paint-order: stroke;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.network-globe-stage {
  height: min(72vh, 680px);
  min-height: 360px;
  position: relative;
}

.network-globe-stage .route-globe-canvas {
  position: absolute;
  inset: 0;
}

.network-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  z-index: 2;
  pointer-events: none;
}

.network-map-loading.hidden {
  display: none;
}

.network-map-empty {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

.network-map-empty.hidden {
  display: none;
}

.network-map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.network-map-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.network-map-legend-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.network-map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.network-map-legend-dot--hub {
  background: #fff348;
  box-shadow: 0 0 6px rgba(255, 243, 72, 0.55);
}

.network-map-legend-dot--dest {
  background: #ffd52a;
  box-shadow: 0 0 6px rgba(255, 213, 42, 0.5);
}

.network-map-legend-line {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff348;
  box-shadow: 0 0 8px rgba(255, 243, 72, 0.35);
  flex-shrink: 0;
}

.network-globe-legend {
  padding: 0.75rem 1rem 1rem;
}

.network-map-page .network-title-glow {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #4ade80;
  -webkit-text-fill-color: #4ade80;
  text-shadow:
    0 0 10px rgba(74, 222, 128, 0.95),
    0 0 22px rgba(34, 197, 94, 0.72),
    0 0 42px rgba(34, 197, 94, 0.45),
    0 0 64px rgba(22, 163, 74, 0.28);
  text-wrap: balance;
}

.network-map-page .blog-sidebar-card h3.network-title-glow {
  color: #4ade80;
  -webkit-text-fill-color: #4ade80;
}

.blog-featured--network .blog-featured-cover--network {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(1, 33, 105, 0.78) 100%),
    radial-gradient(ellipse at 75% 25%, rgba(239, 65, 56, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0a1628 0%, #000 100%);
}

.blog-featured-cover--network .blog-featured-badge {
  background: rgba(34, 197, 94, 0.9);
  color: #062016;
}

@media (max-width: 960px) {
  .network-map-page .network-map-layout {
    grid-template-columns: 1fr;
  }

  .network-map-sidebar {
    order: 2;
  }

  .network-globe-stage {
    height: min(58vh, 520px);
    min-height: 300px;
  }
}

.blog-featured--best-pilot .blog-featured-cover--best-pilot {
  background:
    linear-gradient(135deg, rgba(239, 65, 56, 0.28) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(1, 33, 105, 0.82) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(250, 204, 21, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #000 100%);
}

.blog-featured-cover--best-pilot .blog-featured-badge {
  background: rgba(250, 204, 21, 0.92);
  color: #1a1200;
}

.best-pilot-hero {
  margin-bottom: 0.5rem;
}

.best-pilot-hero .blog-meta {
  margin-bottom: 0.75rem;
}

.best-pilot-hero .blog-lead {
  margin-top: 0.85rem;
  max-width: 52rem;
}

.best-pilot-leaderboard {
  margin-top: 0.25rem;
}

.best-pilot-leaderboard-intro {
  margin: 0 0 1rem;
  max-width: 52rem;
}

.best-pilot-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.best-pilot-loading,
.best-pilot-empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.best-pilot-table-wrap {
  margin-top: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.best-pilot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.best-pilot-table th,
.best-pilot-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.best-pilot-table th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.best-pilot-table tbody tr:last-child td {
  border-bottom: none;
}

.best-pilot-row--top1 {
  background: rgba(250, 204, 21, 0.08);
}

.best-pilot-row--top2 {
  background: rgba(203, 213, 225, 0.06);
}

.best-pilot-row--top3 {
  background: rgba(217, 119, 6, 0.08);
}

.best-pilot-rank {
  width: 3rem;
  font-size: 1.1rem;
  text-align: center;
}

.best-pilot-id {
  display: block;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.best-pilot-name {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.best-pilot-hours {
  font-weight: 700;
  color: var(--jet-red);
}

.best-pilot-page .blog-title,
.best-pilot-page .best-pilot-title-glow {
  text-wrap: balance;
}

.best-pilot-page .best-pilot-title-glow {
  color: #facc15;
  -webkit-text-fill-color: #facc15;
  text-shadow:
    0 0 10px rgba(250, 204, 21, 0.95),
    0 0 22px rgba(250, 204, 21, 0.72),
    0 0 42px rgba(250, 204, 21, 0.45),
    0 0 64px rgba(234, 179, 8, 0.28);
}

.best-pilot-grade {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.best-pilot-airport {
  min-width: 11rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.best-pilot-flights,
.best-pilot-distance {
  font-weight: 600;
}

html[data-theme="light"] .best-pilot-table-wrap {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .best-pilot-table th {
  background: rgba(1, 33, 105, 0.05);
}

@media (max-width: 768px) {
  .best-pilot-aside {
    grid-template-columns: 1fr;
  }
}

.simbrief-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.simbrief-panel h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.simbrief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.simbrief-username-row {
  margin: 0.75rem 0;
}

.simbrief-username-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.simbrief-username-form input {
  flex: 1;
  min-width: 0;
}

.simbrief-summary-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.simbrief-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.simbrief-route {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  word-break: break-word;
}

#activeSimbriefPanel {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.metar-panel {
  margin-top: 1.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}

.metar-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.metar-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metar-panel-source {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.75;
}

.metar-stations {
  display: grid;
  gap: 0;
}

@media (min-width: 720px) {
  .metar-stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .metar-station + .metar-station {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
  }
}

.metar-station {
  padding: 0.65rem 0;
}

.metar-station + .metar-station {
  border-top: 1px solid var(--border);
}

@media (min-width: 720px) {
  .metar-station + .metar-station {
    border-top: none;
  }
}

.metar-station-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.metar-role {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.metar-icao {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.metar-name {
  font-size: 0.82rem;
  color: var(--muted);
}

.metar-cat {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.metar-cat-vfr {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.metar-cat-mvfr {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.metar-cat-ifr {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.metar-cat-lifr {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
}

.metar-cat-unknown {
  color: var(--muted);
  background: transparent;
}

.metar-raw {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.metar-summary {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.metar-empty,
.metar-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.metar-empty a {
  color: var(--jet-red);
  text-decoration: underline;
}

.metar-status--error {
  color: var(--jet-red);
}

.route-info-panel .metar-panel {
  margin-top: 1rem;
  padding-top: 1rem;
}

.simbrief-settings-form {
  max-width: 420px;
}

.simbrief-auth-panel,
.simbrief-auth-connected {
  margin-bottom: 1rem;
}

.simbrief-manual-label {
  margin-top: 1rem;
}

.simbrief-auth-inline {
  margin-bottom: 0.75rem;
}

.simbrief-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.route-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.route-info-schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.route-info-schedule__cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.route-info-schedule__cell--mid {
  align-items: center;
  text-align: center;
  padding: 0 0.35rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.route-info-schedule__zulu {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  font-variant-numeric: tabular-nums;
}

.route-info-schedule__duration {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--jet-red);
  font-variant-numeric: tabular-nums;
}

.route-info-schedule__distance,
.route-info-schedule__local {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.route-info-airports {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.route-info-airport {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.route-info-airport__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.route-info-airport--dep .route-info-airport__dot {
  background: #22c55e;
}

.route-info-airport--arr .route-info-airport__dot {
  background: var(--jet-red);
}

.route-info-airport__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.route-info-airport__name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.route-info-airport--dep .route-info-airport__name {
  color: var(--jet-red);
  text-decoration: none;
}

.route-info-airport--dep .route-info-airport__name:hover {
  text-decoration: underline;
}

.route-info-airport__codes {
  font-size: 0.72rem;
  color: var(--muted);
}

.route-info-airport__body .fleet-type-badge {
  align-self: flex-start;
  margin-top: 0.2rem;
}

.route-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.route-info-item--models {
  padding-top: 0.15rem;
}

.route-info-item .detail-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.route-info-item .detail-value {
  font-size: 0.9rem;
  line-height: 1.4;
}

.route-info-item .detail-value a,
.route-info-item .detail-value .hub-link {
  color: var(--jet-red);
  text-decoration: underline;
}

.route-info-models {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.route-info-model {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}

.route-info-model__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.aircraft-book-table .aircraft-name-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aircraft-book-table .aircraft-type-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.book-aircraft-wrap {
  margin-top: 0;
}

.book-aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.book-aircraft-grid--compact {
  grid-template-columns: minmax(0, 540px);
}

.book-aircraft-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    var(--surface-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.book-aircraft-card--horizontal {
  flex-direction: row;
  align-items: stretch;
  gap: 1.1rem;
  padding: 1rem 1.1rem;
}

.book-aircraft-card:hover {
  border-color: rgba(239, 65, 56, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.book-aircraft-card__photo {
  width: 100%;
  flex-shrink: 0;
}

.book-aircraft-card--horizontal .book-aircraft-card__photo {
  width: 42%;
  max-width: 220px;
  min-width: 140px;
}

.book-aircraft-card__photo .fleet-photo {
  max-width: none;
  height: 100%;
}

.book-aircraft-card__photo .fleet-photo__link,
.book-aircraft-card__photo .fleet-photo__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-aircraft-card__photo .fleet-photo__link img {
  max-height: none;
  min-height: 8.5rem;
  border-radius: 8px;
}

.book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo__link img {
  min-height: 9.5rem;
}

.book-aircraft-card__photo .fleet-photo--loading,
.book-aircraft-card__photo .fleet-photo--empty {
  width: 100%;
  height: 9rem;
  border-radius: 8px;
}

.book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--loading,
.book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--empty {
  height: 100%;
  min-height: 9.5rem;
}

.book-aircraft-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.book-aircraft-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.book-aircraft-card__type {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.book-aircraft-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.book-aircraft-card__reg {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.book-aircraft-card__reg strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, monospace);
}

.book-aircraft-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.book-aircraft-card--horizontal .book-aircraft-card__footer {
  padding-top: 0.65rem;
}

.book-aircraft-card .btn-book-route {
  min-width: 6.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.booking-modal.hidden {
  display: none;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.booking-modal-card {
  position: relative;
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.booking-modal-card h3 {
  margin: 0 0 0.25rem;
}

.booking-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.booking-modal-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.flight-card-number--button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.flight-booking-modal-card {
  width: min(96vw, 1120px);
  max-height: min(88vh, 920px);
  overflow: auto;
}

.flight-booking-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-modal-close {
  appearance: none;
  border: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.booking-modal-close:hover {
  background: rgba(239, 65, 56, 0.22);
}

.flight-booking-modal-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 65, 56, 0.14), rgba(24, 29, 42, 0.72));
}

.flight-booking-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flight-booking-summary-main strong {
  font-size: 1.05rem;
}

.flight-booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.flight-booking-summary-meta span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5rem;
  font-weight: 700;
}

.flight-booking-summary-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.flight-booking-modal-alert {
  margin-bottom: 1rem;
}

.flight-booking-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.flight-booking-modal-route {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.flight-booking-modal-route h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flight-booking-modal-route .route-globe-wrap {
  min-height: 220px;
  margin-bottom: 0.75rem;
}

.flight-booking-modal-route .route-info-list {
  gap: 0.75rem;
}

.flight-booking-modal-route .route-info-schedule {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.flight-booking-modal-route .route-info-schedule__cell {
  padding: 0.55rem 0.65rem;
}

.flight-booking-modal-route .route-info-airports,
.flight-booking-modal-route .route-info-item {
  padding: 0.65rem;
}

.flight-booking-modal-route .route-info-models {
  gap: 0.4rem;
}

.flight-booking-modal-route .metar-panel {
  margin-top: 0.85rem;
}

.flight-booking-modal-aircraft .book-aircraft-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.7rem;
}

.flight-booking-modal-aircraft .book-aircraft-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.flight-booking-modal-aircraft .book-aircraft-card,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal {
  padding: 0.7rem;
  gap: 0.55rem;
  flex-direction: column;
}

.flight-booking-modal-aircraft .book-aircraft-card__photo,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo__link img {
  min-height: 5.6rem;
  max-height: 6.4rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--empty,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--empty {
  height: 5.8rem;
  min-height: 5.8rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__type {
  font-size: 0.92rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__reg strong {
  font-size: 0.98rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__footer {
  padding-top: 0.35rem;
}

.flight-booking-modal-aircraft .book-aircraft-card .btn-book-route {
  min-width: 5.2rem;
  padding: 0.42rem 0.75rem;
}

@media (max-width: 900px) {
  .flight-booking-modal-body {
    grid-template-columns: 1fr;
  }
}

.flight-booking-modal-card {
  width: min(94vw, 1180px);
  max-height: min(90vh, 940px);
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 65, 56, 0.18), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(24, 29, 42, 0.98), rgba(12, 15, 22, 0.98));
}

.flight-booking-modal-head {
  margin: 0;
  padding: 1.35rem 1.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.flight-booking-modal-head h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.flight-booking-modal-head .subtitle {
  margin-top: 0.35rem;
  color: rgba(226, 232, 240, 0.76);
}

.flight-booking-modal-card .booking-modal-close {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.flight-booking-modal-summary {
  margin: 0;
  padding: 1.05rem 1.55rem;
  border-width: 0 0 1px;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(239, 65, 56, 0.18), rgba(15, 23, 42, 0.38) 42%, rgba(15, 23, 42, 0.1)),
    rgba(255, 255, 255, 0.025);
}

.flight-booking-summary-main .candidate-id {
  width: min(100%, 20rem);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.54), rgba(37, 99, 235, 0.08));
  color: #dbeafe;
}

.flight-booking-summary-main strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.flight-booking-summary-meta {
  align-items: stretch;
  gap: 0.55rem;
}

.flight-booking-summary-meta span {
  min-width: 5.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.flight-booking-summary-types {
  max-width: 20rem;
  justify-content: flex-end;
}

.flight-booking-modal-alert {
  margin: 1rem 1.55rem 0;
}

.flight-booking-modal-body {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: 1rem;
  padding: 1rem 1.55rem 1.4rem;
  max-height: calc(90vh - 13.8rem);
  overflow: hidden;
}

.flight-booking-modal-aircraft,
.flight-booking-modal-route {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.flight-booking-modal-route {
  padding: 1rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 12, 20, 0.42);
}

.flight-booking-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.flight-booking-section-head h4 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.flight-booking-section-count {
  flex: 0 0 auto;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flight-booking-section-head--route {
  margin-bottom: 0.75rem;
}

.flight-booking-modal-route > h4 {
  display: none;
}

.flight-booking-modal-route .route-globe-wrap {
  min-height: 245px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 16, 0.58);
}

.flight-booking-modal-route .route-info-schedule {
  grid-template-columns: 1fr;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.flight-booking-modal-route .route-info-schedule__cell {
  padding: 0.35rem 0.45rem;
}

.flight-booking-modal-route .route-info-schedule__zulu,
.flight-booking-modal-route .route-info-schedule__duration {
  font-size: 1.02rem;
}

.flight-booking-modal-route .route-info-airports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.flight-booking-modal-route .route-info-airport,
.flight-booking-modal-route .route-info-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.flight-booking-modal-route .route-info-airport {
  padding: 0.72rem;
}

.flight-booking-modal-route .route-info-item--models {
  padding: 0.8rem;
}

.flight-booking-modal-route .route-info-models {
  flex-direction: row;
  flex-wrap: wrap;
}

.flight-booking-modal-route .route-info-model {
  padding: 0;
  border: 0;
  background: transparent;
}

.flight-booking-modal-route .route-info-model__name {
  display: none;
}

.flight-booking-modal-aircraft .book-aircraft-grid,
.flight-booking-modal-aircraft .book-aircraft-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 0.72rem;
}

.flight-booking-modal-aircraft .book-aircraft-card,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal {
  position: relative;
  padding: 0.72rem;
  border-radius: 13px;
  gap: 0.55rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 18, 29, 0.78);
}

.flight-booking-modal-aircraft .book-aircraft-card:hover {
  border-color: rgba(239, 65, 56, 0.46);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--empty,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--empty {
  min-height: 5.1rem;
  height: 5.1rem;
  max-height: 5.1rem;
  border-radius: 10px;
}

.flight-booking-modal-aircraft .book-aircraft-card__body {
  gap: 0.48rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__head {
  gap: 0.28rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__type {
  font-size: 0.9rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__reg {
  gap: 0.08rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__reg strong {
  font-size: 1.02rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__footer {
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.flight-booking-modal-aircraft .book-aircraft-card .btn-book-route {
  min-width: auto;
  padding: 0.46rem 0.72rem;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .flight-booking-modal-body {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: auto;
  }

  .flight-booking-modal-card {
    overflow: auto;
  }

  .flight-booking-modal-route,
  .flight-booking-modal-aircraft {
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .flight-booking-modal-head,
  .flight-booking-modal-summary,
  .flight-booking-modal-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .flight-booking-summary-types {
    justify-content: flex-start;
  }

  .flight-booking-modal-route .route-info-airports,
  .flight-booking-modal-route .route-info-schedule {
    grid-template-columns: 1fr;
  }
}

body.booking-modal-open {
  overflow: hidden;
}

body.booking-modal-open .navbar {
  z-index: 10;
}

body.booking-modal-open .floating-privacy-link,
body.booking-modal-open .email-link,
body.booking-modal-open .discord-link {
  display: none;
}

/* Booking modal: large centered panel, content uses the whole popup */
.booking-modal {
  padding: 1.1rem;
  align-items: center;
  justify-content: center;
}

.booking-modal-backdrop {
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 65, 56, 0.18), transparent 34%),
    rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
}

.flight-booking-modal-card {
  width: min(94vw, 1360px);
  height: min(88dvh, 840px);
  max-width: 1360px;
  max-height: 840px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 13px;
  border-color: rgba(239, 65, 56, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.flight-booking-modal-head {
  flex: 0 0 auto;
  padding: 0.85rem 1.3rem 0.7rem;
  background:
    linear-gradient(90deg, rgba(239, 65, 56, 0.1), rgba(15, 23, 42, 0.04) 36%),
    rgba(255, 255, 255, 0.02);
}

.flight-booking-modal-head h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.flight-booking-modal-summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto minmax(12rem, 0.36fr);
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 1.3rem;
  min-height: 6.25rem;
}

.flight-booking-summary-main .candidate-id {
  width: min(100%, 22rem);
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
}

.flight-booking-summary-meta {
  justify-content: center;
}

.flight-booking-summary-meta span {
  min-width: 8.5rem;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(15, 23, 42, 0.44);
}

.flight-booking-summary-meta span > strong {
  margin-top: 0.15rem;
  font-size: 1.02rem;
}

.flight-booking-summary-types {
  justify-content: flex-end;
  max-width: none;
}

.flight-booking-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 1rem;
  padding: 1rem 1.45rem 1.2rem;
  overflow: hidden;
}

.flight-booking-modal-aircraft,
.flight-booking-modal-route {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.flight-booking-modal-aircraft {
  padding-right: 0.15rem;
}

.flight-booking-modal-aircraft .book-aircraft-grid,
.flight-booking-modal-aircraft .book-aircraft-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 0.72rem;
}

.flight-booking-modal-aircraft .book-aircraft-card,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal {
  min-height: 0;
  padding: 0.68rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--empty,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--empty {
  min-height: 4.85rem;
  height: 4.85rem;
  max-height: 4.85rem;
}

.flight-booking-modal-route {
  position: relative;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flight-booking-modal-route .route-globe-wrap {
  flex: 0 0 auto;
  min-height: 0;
  height: clamp(170px, 25vh, 250px);
  margin-bottom: 0.65rem;
}

.flight-booking-modal-route .route-info-airports {
  grid-template-columns: 1fr;
}

.flight-booking-modal-route .metar-panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 9.5rem;
  margin-top: 0.65rem;
  overflow: hidden;
}

.flight-booking-modal-route .route-info-list {
  flex: 0 0 auto;
  gap: 0.55rem;
}

.booking-route-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.booking-route-brief__metric {
  min-width: 0;
  padding: 0.58rem 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(2, 6, 23, 0.24);
}

.booking-route-brief__metric strong {
  display: block;
  margin-top: 0.12rem;
  color: #fff;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.booking-route-airports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.booking-route-airport {
  position: relative;
  min-width: 0;
  padding: 0.62rem 0.66rem 0.62rem 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.032);
}

.booking-route-airport::before {
  content: "";
  position: absolute;
  left: 0.52rem;
  top: 0.78rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.booking-route-airport--arr::before {
  background: var(--jet-red);
  box-shadow: 0 0 0 4px rgba(239, 65, 56, 0.13);
}

.booking-route-airport span,
.booking-route-airport strong,
.booking-route-airport small {
  display: block;
  padding-left: 0.62rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-route-airport span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-route-airport strong {
  margin-top: 0.1rem;
  color: #fff;
  font-size: 0.78rem;
}

.booking-route-airport small {
  margin-top: 0.08rem;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.66rem;
}

.booking-route-types {
  padding: 0.58rem 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.booking-route-types .route-info-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.38rem;
}

.flight-booking-modal-card .booking-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.45rem;
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* Jumpseat card polish */
.jumpseat-panel {
  padding: 1rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 12, 20, 0.48);
}

.jumpseat-header {
  gap: 0.55rem;
}

.jumpseat-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(239, 65, 56, 0.13);
  border: 1px solid rgba(239, 65, 56, 0.28);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ff5d68;
}

.jumpseat-panel select {
  min-height: 2.65rem;
}

@media (max-width: 1120px) {
  .flight-booking-modal-summary {
    grid-template-columns: 1fr auto;
  }

  .flight-booking-summary-types {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .flight-booking-modal-body {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  }
}

@media (max-width: 860px) {
  .booking-modal {
    padding: 0.75rem;
  }

  .flight-booking-modal-card {
    width: min(100%, 760px);
    height: min(92dvh, 860px);
    border-radius: 13px;
  }

  .flight-booking-modal-summary {
    grid-template-columns: 1fr;
  }

  .flight-booking-modal-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .flight-booking-modal-route,
  .flight-booking-modal-aircraft {
    height: auto;
    overflow: visible;
  }
}

.booking-type-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  resize: vertical;
  min-height: 80px;
}

textarea:focus {
  outline: none;
  border-color: var(--jet-red);
}

/* ── Liens flottants ── */
.email-link,
.discord-link,
.floating-privacy-link {
  position: fixed;
  right: 20px;
  z-index: 9999;
  border-radius: 6px;
  transition: transform 0.25s ease, opacity 0.25s ease, bottom 0.3s ease;
}

.email-link,
.discord-link {
  display: block;
  cursor: pointer;
}

.discord-link {
  bottom: 58px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.floating-privacy-link {
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  max-width: 9rem;
  min-height: 1.2rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: rgba(229, 25, 55, 0.48);
  text-underline-offset: 0.18rem;
  cursor: pointer;
}

.floating-privacy-link:hover {
  color: #fff;
  text-decoration-color: var(--jet-red);
}

.email-link {
  bottom: 100px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  cursor: default;
}

.email-contact-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.email-address {
  font-size: 9px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  transition: color 0.2s ease;
}

.email-address:hover {
  color: var(--jet-red);
}

.email-icon-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.email-icon-link:hover {
  transform: scale(1.08);
}

.discord-link:hover {
  transform: scale(1.08);
}

.email-logo,
.discord-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.email-logo {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ── RVA Aviation ── */
.rva-aviation-footer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  padding: 0;
  font-size: 10px;
  transition: transform 0.25s ease;
}

.rva-aviation-footer:hover {
  transform: scale(1.04);
}

.rva-logo {
  width: auto;
  height: 1em;
  object-fit: contain;
}

.rva-text {
  font-size: inherit;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

/* ── Dropdown nav ── */
.nav-dropdown {
  position: relative;
  z-index: 201;
}

.nav-dropdown-toggle.active {
  color: #fff;
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  position: static;
  transform: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: none;
}

.nav-dropdown-menu a.active {
  color: var(--jet-red);
}

@media (max-width: 900px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.35rem 0 0.5rem 0.75rem;
    min-width: 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    font-size: 15px;
  }
}

/* ── About sub-pages ── */
.about-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.about-subnav-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-subnav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.about-subnav-link.active {
  border-color: var(--jet-red);
  color: var(--jet-red);
  background: rgba(227, 6, 19, 0.08);
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-link-card:hover {
  border-color: var(--jet-red);
  transform: translateY(-2px);
}

.about-link-card h2 {
  margin-bottom: 0.5rem;
}

.about-link-card p {
  color: #9ca3af;
  margin: 0;
  padding-right: 1.5rem;
}

.about-link-arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  color: var(--jet-red);
  font-size: 1.25rem;
}

.about-privacy-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.about-privacy-content h2:first-of-type {
  margin-top: 0.75rem;
}

/* ── About team / founders ── */
.about-team {
  width: 100%;
  margin-bottom: 2.5rem;
}

.about-team-row,
.about-team-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: stretch;
}

.about-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.about-founder--flag {
  align-self: flex-start;
  width: auto;
  max-width: none;
  padding: 1rem;
  justify-content: center;
}

.about-founder--flag .about-founder-photo--flag img {
  object-position: center center;
}

.about-founder {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}

.about-founder--left,
.about-founder--right {
  align-self: stretch;
}

.about-founder--reverse {
  flex-direction: row-reverse;
}

.about-founder--reverse .about-founder-intro {
  text-align: right;
}

.about-founder-photo--cockpit img {
  object-position: center 45%;
}

.about-founder-photo {
  flex-shrink: 0;
  position: relative;
}

.about-founder-role {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--jet-gold);
  border-radius: 4px;
  color: var(--jet-gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(212, 175, 55, 0.95),
    0 0 14px rgba(212, 175, 55, 0.65),
    0 0 22px rgba(255, 215, 0, 0.35);
  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.45),
    inset 0 0 8px rgba(212, 175, 55, 0.12);
}

.about-founder-role--br {
  left: auto;
  right: 8px;
}

.about-founder-role--dev {
  border-color: #4da3ff;
  color: #6bb8ff;
  text-shadow:
    0 0 6px rgba(77, 163, 255, 0.95),
    0 0 14px rgba(77, 163, 255, 0.7),
    0 0 22px rgba(107, 184, 255, 0.45);
  box-shadow:
    0 0 10px rgba(77, 163, 255, 0.5),
    inset 0 0 8px rgba(77, 163, 255, 0.15);
}

.about-founder-photo img {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--jet-red);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.about-founder-content {
  flex: 1;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  padding-bottom: 0;
}

.about-founder-name {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 0.35rem;
  white-space: normal;
}

.about-founder-name--alex {
  color: #ffe566;
  text-shadow:
    0 0 8px rgba(255, 230, 100, 1),
    0 0 16px rgba(255, 215, 0, 0.9),
    0 0 28px rgba(255, 200, 0, 0.75),
    0 0 42px rgba(212, 175, 55, 0.55);
}

.about-founder-name--tom {
  color: #ffe566;
  text-shadow:
    0 0 8px rgba(255, 230, 100, 1),
    0 0 16px rgba(255, 215, 0, 0.9),
    0 0 28px rgba(255, 200, 0, 0.75),
    0 0 42px rgba(212, 175, 55, 0.55);
}

.about-founder-name--madi {
  color: #ffe566;
  text-shadow:
    0 0 6px rgba(255, 230, 100, 0.95),
    0 0 14px rgba(255, 215, 0, 0.75),
    0 0 22px rgba(212, 175, 55, 0.55);
}

.about-founder-intro {
  display: inline;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d1d5db;
  margin: 0;
  white-space: nowrap;
}

.about-founder-sentence {
  display: inline;
  white-space: nowrap;
}

.about-founder-sentence + .about-founder-sentence::before {
  content: ' ';
}

@media (max-width: 900px) {
  .about-founder--left,
  .about-founder--right,
  .about-founder--flag {
    align-self: stretch;
    max-width: 100%;
  }

  .about-founder--reverse .about-founder-intro {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .about-founder {
    flex-direction: row;
    align-items: center;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .about-founder--reverse {
    flex-direction: row-reverse;
  }

  .about-founder-photo img {
    width: 90px;
    height: 90px;
  }

  .about-founder-name {
    font-size: 0.9rem;
  }

  .about-founder-intro,
  .about-founder-sentence {
    font-size: 0.8rem;
  }
}

/* ── Blog (Who we are) ── */
.blog-page {
  padding-top: 1.5rem;
}

.blog-page .about-subnav {
  margin-bottom: 2rem;
}

.blog-featured {
  margin-bottom: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.blog-featured-cover {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(1, 33, 105, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(239, 65, 56, 0.35) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(239, 65, 56, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #000 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.blog-featured-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(239, 65, 56, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-featured-content {
  padding: 2rem 2rem 2.25rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-meta-sep {
  opacity: 0.5;
}

.blog-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #fff 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-lead {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #d1d5db;
  max-width: 42rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-article {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 2rem 2.25rem;
}

.blog-section {
  margin-bottom: 2rem;
}

.blog-section:last-of-type {
  margin-bottom: 1.5rem;
}

.blog-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jet-red);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-prose {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
  max-width: 65ch;
}

.blog-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
}

/* Fondateurs — style blog auteur, photos rondes conservées */
.blog-team-section {
  padding-bottom: 0.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.blog-authors {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-page .blog-author.about-founder {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
}

.blog-page .about-founder-content {
  flex: 1;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  padding-bottom: 0;
}

.blog-page .about-founder-name {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  white-space: normal;
}

.blog-page .about-founder-intro {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #d1d5db;
  margin: 0;
  white-space: normal;
}

.blog-page .about-founder-photo img {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--jet-red);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.blog-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--jet-red);
  background: rgba(239, 65, 56, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-quote p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.blog-quote cite {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  font-style: normal;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.blog-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.blog-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.blog-sidebar-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-sidebar-origin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2rem 1.75rem;
}

.blog-sidebar-origin-body {
  width: 100%;
}

.blog-sidebar-origin .about-founder-name--maxence {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: #ffe566;
  text-shadow:
    0 0 8px rgba(255, 230, 100, 0.95),
    0 0 18px rgba(255, 215, 0, 0.75),
    0 0 32px rgba(212, 175, 55, 0.55);
}

.blog-sidebar-origin .about-founder-photo--flag img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--jet-red);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.blog-sidebar-origin .about-founder-role {
  bottom: 8px;
  right: 8px;
  left: auto;
  font-size: 0.58rem;
  padding: 4px 7px;
  letter-spacing: 0.12em;
}

.blog-sidebar-origin-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
  margin: 0;
  text-align: center;
}

.blog-facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-fact dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.blog-fact dd {
  font-size: 0.9rem;
  color: #e5e7eb;
  line-height: 1.4;
}

.blog-sidebar-cta p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.blog-sidebar-cta .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-sidebar-card {
    flex: 1 1 240px;
  }

  .blog-article {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .blog-featured-content {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .blog-featured-cover {
    min-height: 160px;
  }

  .blog-lead {
    font-size: 1rem;
  }

  .blog-page .blog-author.about-founder {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-page .about-founder-photo img {
    width: 100px;
    height: 100px;
  }
}

/* ── Support us & Who we are — titres jaunes ── */
.support-page .blog-title,
.who-page .blog-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffe566;
  color: #ffe566;
  text-shadow:
    0 0 10px rgba(255, 230, 100, 1),
    0 0 22px rgba(255, 215, 0, 0.95),
    0 0 38px rgba(212, 175, 55, 0.85),
    0 0 56px rgba(255, 200, 50, 0.65),
    0 0 80px rgba(255, 180, 0, 0.45),
    0 0 110px rgba(255, 160, 0, 0.25);
  animation: supportTitleGlow 2.8s ease-in-out infinite alternate;
}

@keyframes supportTitleGlow {
  from {
    text-shadow:
      0 0 10px rgba(255, 230, 100, 1),
      0 0 22px rgba(255, 215, 0, 0.95),
      0 0 38px rgba(212, 175, 55, 0.85),
      0 0 56px rgba(255, 200, 50, 0.65),
      0 0 80px rgba(255, 180, 0, 0.45),
      0 0 110px rgba(255, 160, 0, 0.25);
  }
  to {
    text-shadow:
      0 0 14px rgba(255, 240, 130, 1),
      0 0 28px rgba(255, 225, 80, 1),
      0 0 48px rgba(255, 215, 0, 0.95),
      0 0 72px rgba(255, 200, 50, 0.8),
      0 0 100px rgba(255, 180, 0, 0.55),
      0 0 130px rgba(255, 160, 0, 0.35);
  }
}

.support-page .blog-section h2.support-heading,
.who-page .blog-section h2.support-heading {
  color: var(--jet-gold);
  border-bottom-color: rgba(212, 175, 55, 0.35);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.btn-glow-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: 1px solid rgba(74, 222, 128, 0.65);
  color: #fff !important;
  box-shadow:
    0 0 12px rgba(34, 197, 94, 0.55),
    0 0 28px rgba(34, 197, 94, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.25);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-glow-green:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow:
    0 0 16px rgba(74, 222, 128, 0.85),
    0 0 36px rgba(34, 197, 94, 0.55),
    0 0 56px rgba(34, 197, 94, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.who-page .who-signup-btn {
  width: 100%;
  text-align: center;
}

.blog-featured-cover--support {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(1, 33, 105, 0.75) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(239, 65, 56, 0.2) 0%, transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #000 100%);
}

.blog-featured-cover--support .blog-featured-badge {
  background: rgba(212, 175, 55, 0.92);
  color: #111;
}

.support-funds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.support-funds-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.support-funds-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.14);
  animation: supportFundsBounce 0.55s ease;
}

@keyframes supportFundsBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  45% { transform: translateY(-4px); }
  65% { transform: translateY(-7px); }
  85% { transform: translateY(-2px); }
}

.support-funds-icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.support-funds-item strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.support-funds-item p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.support-pay-card {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(239, 65, 56, 0.35);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(145deg, rgba(239, 65, 56, 0.08) 0%, rgba(1, 33, 105, 0.12) 100%);
  text-align: center;
}

.support-pay-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.support-pay-card > p:first-of-type {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.support-pay-btn {
  display: inline-block;
  min-width: 200px;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
}

.support-sidebar-card p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 600px) {
  .support-funds-item {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .support-pay-card {
    padding: 1.25rem 1rem;
  }

  .support-pay-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-page .blog-title,
  .who-page .blog-title {
    animation: none;
  }

  .support-funds-item:hover {
    animation: none;
    transform: translateY(-2px);
  }
}

/* ── Cookies ── */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--border);
}

.cookie-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.cookie-consent-text p:last-child {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 720px;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  width: auto;
  min-width: 120px;
}

/* ── Privacy policy modal ── */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.privacy-modal.hidden {
  display: none;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.privacy-modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.privacy-modal-card h3 {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.25rem;
}

.privacy-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.privacy-modal-body {
  overflow-y: auto;
  padding-right: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

.privacy-modal-body h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jet-orange);
}

.privacy-modal-body p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.privacy-modal-body a {
  color: var(--jet-blue);
  text-decoration: underline;
}

.privacy-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

body.privacy-modal-open {
  overflow: hidden;
}

.lang-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-option {
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  font-style: italic;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-option:hover {
  border-color: var(--jet-red);
}

.lang-option.active {
  border-color: var(--jet-red);
  background: rgba(239, 65, 56, 0.12);
}

.theme-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  font-style: italic;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-option-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text);
  flex-shrink: 0;
}

.theme-option-icon svg {
  width: 100%;
  height: 100%;
}

.theme-option--dark {
  background: rgba(8, 14, 28, 0.88);
  border-color: rgba(100, 116, 139, 0.4);
  color: #e2e8f0;
}

html[data-theme="light"] .theme-option--dark {
  color: #e2e8f0;
}

.theme-option-icon--moon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.theme-option-icon--sun {
  color: #f59e0b;
}

.theme-option:hover {
  border-color: var(--jet-red);
}

.theme-option:hover .theme-option-icon--sun {
  color: var(--jet-red);
}

.theme-option.active {
  border-color: var(--jet-red);
  background: rgba(239, 65, 56, 0.12);
}

.theme-option.active .theme-option-icon--sun {
  color: var(--jet-red);
}

.theme-option.active .theme-option-icon--moon {
  color: #fff;
}

body.cookie-banner-open .email-link,
body.cookie-banner-open .discord-link,
body.cookie-banner-open .rva-aviation-footer {
  bottom: 110px;
  transition: bottom 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --nav-sticky-offset: 7.75rem;
  }

  .navbar-inner {
    padding: 16px 20px;
    flex-wrap: wrap;
  }

  .navbar-left {
    gap: 1rem;
  }

  .nav-pilot-id {
    font-size: 17px;
  }

  .nav-zulu-clock {
    min-width: 4.75rem;
    padding: 0.3rem 0.5rem;
  }

  .nav-zulu-time {
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .ressources-panel {
    padding: 0 20px;
  }

  .ressources-panel.open {
    padding: 0 20px 14px;
  }

  .hero-footer,
  .site-footer-inner {
    padding: 0 20px 24px;
  }

  .hero-content h1 {
    font-size: clamp(26px, 8vw, 40px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid,
  .candidate-details,
  .form-row {
    grid-template-columns: 1fr;
  }

  .fleet-stats {
    grid-template-columns: 1fr;
  }

  .fleet-filter-bar {
    grid-template-columns: 1fr;
  }

  .fleet-base-group-header {
    flex-direction: column;
    align-items: stretch;
  }

  .fleet-aircraft-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent-actions {
    justify-content: center;
  }

  body.cookie-banner-open .email-link,
  body.cookie-banner-open .discord-link {
    bottom: 180px;
  }

  .checklist-viewer__frame {
    min-height: 320px;
    height: 55vh;
  }
}

/* ── Checklists ── */
.page-shell--checklists .page-main {
  padding-bottom: 2.5rem;
}

.checklist-hero {
  margin-bottom: 1.25rem;
  background:
    linear-gradient(135deg, rgba(1, 33, 105, 0.28) 0%, rgba(239, 65, 56, 0.1) 100%),
    var(--surface);
  border-color: rgba(239, 65, 56, 0.22);
}

.checklist-hero__layout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.checklist-hero__icon {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, #012169 0%, #1a3a7a 55%, #012169 100%);
  border: 1px solid rgba(158, 197, 255, 0.35);
  color: #dbeafe;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.checklist-hero__icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

.checklist-hero__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checklist-hero__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 52rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.checklist-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%),
    var(--surface-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checklist-card:hover {
  border-color: rgba(239, 65, 56, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.checklist-card--airbus {
  border-top: 3px solid rgba(59, 130, 246, 0.85);
}

.checklist-card--boeing {
  border-top: 3px solid rgba(251, 191, 36, 0.85);
}

.checklist-card.is-active {
  border-color: rgba(239, 65, 56, 0.55);
  box-shadow:
    0 0 0 1px rgba(239, 65, 56, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.24);
  background:
    linear-gradient(135deg, rgba(239, 65, 56, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--surface-2);
}

.checklist-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.checklist-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checklist-card__badge--airbus {
  color: #93c5fd;
  background: rgba(1, 33, 105, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.checklist-card__badge--boeing {
  color: #fcd34d;
  background: rgba(120, 53, 15, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.checklist-card__format {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono, ui-monospace, monospace);
}

.checklist-card__body {
  flex: 1;
  margin-bottom: 1rem;
}

.checklist-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1.15;
  color: var(--text);
}

.checklist-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.checklist-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.checklist-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.checklist-card__btn--ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.checklist-card__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.checklist-card__btn--primary {
  border: 1px solid rgba(239, 65, 56, 0.55);
  background: linear-gradient(180deg, rgba(239, 65, 56, 0.95) 0%, rgba(200, 45, 38, 0.95) 100%);
  color: #fff;
}

.checklist-card__btn--primary:hover {
  filter: brightness(1.08);
}

.checklist-viewer {
  margin-bottom: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(1, 33, 105, 0.12) 0%, rgba(239, 65, 56, 0.05) 100%),
    var(--surface);
  border-color: rgba(239, 65, 56, 0.2);
}

.checklist-viewer.is-open {
  animation: checklistViewerIn 0.28s ease;
}

@keyframes checklistViewerIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checklist-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.checklist-viewer__kicker {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checklist-viewer__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  font-style: normal;
  color: var(--jet-red);
  line-height: 1.2;
}

.checklist-viewer__close {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.checklist-viewer__close:hover {
  border-color: rgba(239, 65, 56, 0.4);
  background: rgba(239, 65, 56, 0.08);
}

.checklist-viewer__frame-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1117;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checklist-viewer__frame {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 420px;
  border: none;
  background: #111;
}

.checklist-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

html[data-theme="light"] .checklist-hero {
  background:
    linear-gradient(135deg, rgba(1, 33, 105, 0.08) 0%, rgba(239, 65, 56, 0.05) 100%),
    var(--surface-2);
}

html[data-theme="light"] .checklist-hero__text,
html[data-theme="light"] .checklist-card__title {
  color: #000;
}

html[data-theme="light"] .checklist-card {
  background:
    linear-gradient(135deg, rgba(1, 33, 105, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%),
    var(--surface-2);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .checklist-card__btn--ghost {
  background: #fff;
  color: #000;
}

html[data-theme="light"] .checklist-viewer {
  background:
    linear-gradient(135deg, rgba(1, 33, 105, 0.05) 0%, rgba(239, 65, 56, 0.03) 100%),
    var(--surface-2);
}

@media (max-width: 768px) {
  .checklist-hero__layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .checklist-card__foot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .checklist-viewer__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .checklist-viewer__close {
    width: 100%;
  }

  .checklist-viewer__frame {
    min-height: 360px;
  }
}

/* Mode clair — texte noir & composants */
html[data-theme="light"].page-fx-boot-cover {
  background: var(--page-fx-boot-bg, var(--bg));
}

html[data-theme="light"] body {
  color: #000;
}

html[data-theme="light"] .page-main,
html[data-theme="light"] .card,
html[data-theme="light"] .profile-item .value,
html[data-theme="light"] .form-group label,
html[data-theme="light"] .checkbox-label,
html[data-theme="light"] .dashboard-header h2,
html[data-theme="light"] .candidate-name,
html[data-theme="light"] .candidate-detail span:last-child,
html[data-theme="light"] .flight-list-header,
html[data-theme="light"] .flight-card-dest-name,
html[data-theme="light"] .flight-card-time,
html[data-theme="light"] .flight-card-date,
html[data-theme="light"] .routes-hub-name,
html[data-theme="light"] .blog-lead,
html[data-theme="light"] .blog-sidebar-card,
html[data-theme="light"] .footer-center,
html[data-theme="light"] .main-desc,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .lang-option,
html[data-theme="light"] .theme-option,
html[data-theme="light"] .nav-dropdown-menu a {
  color: #000;
}

html[data-theme="light"] .theme-option.theme-option--dark,
html[data-theme="light"] .theme-option.theme-option--dark.active {
  color: #e2e8f0;
}

html[data-theme="light"] .page-header p,
html[data-theme="light"] .card .subtitle,
html[data-theme="light"] .profile-item .label,
html[data-theme="light"] .detail-label,
html[data-theme="light"] .routes-hub-label,
html[data-theme="light"] .routes-result-count,
html[data-theme="light"] .flight-card-dest-codes,
html[data-theme="light"] .flight-card-leg-distance,
html[data-theme="light"] .flight-card-time-label,
html[data-theme="light"] .blog-meta-item,
html[data-theme="light"] .disclaimer,
html[data-theme="light"] .pilot-location-hint,
html[data-theme="light"] .jumpseat-hint {
  color: var(--muted);
}

html[data-theme="light"] .page-header h1,
html[data-theme="light"] .blog-title {
  background: none;
  -webkit-text-fill-color: #000;
  color: #000;
}

html[data-theme="light"] .network-map-page .network-title-glow {
  -webkit-text-fill-color: #16a34a;
  color: #16a34a;
  text-shadow:
    0 0 10px rgba(34, 197, 94, 0.85),
    0 0 22px rgba(34, 197, 94, 0.55),
    0 0 42px rgba(22, 163, 74, 0.35);
}

html[data-theme="light"] .navbar-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.9) 100%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 20px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .site-progress-banner {
  color: #7f1d1d;
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.76), rgba(255, 255, 255, 0.92), rgba(254, 226, 226, 0.76));
  border-bottom-color: rgba(239, 68, 68, 0.24);
}

html[data-theme="light"] .logo-main {
  color: #000;
}

html[data-theme="light"] .logo-sub,
html[data-theme="light"] body.user-logged-in .logo-sub {
  color: var(--muted);
}

html[data-theme="light"] .nav-links > li > a,
html[data-theme="light"] body.user-logged-in .nav-links > li > a,
html[data-theme="light"] .ressources-btn,
html[data-theme="light"] body.user-logged-in .ressources-btn,
html[data-theme="light"] .nav-dropdown-toggle,
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .nav-links .nav-settings,
html[data-theme="light"] .nav-lang-toggle {
  color: #000;
}

html[data-theme="light"] .nav-lang-toggle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .nav-links > li > a:hover,
html[data-theme="light"] .nav-links > li > a.active,
html[data-theme="light"] body.user-logged-in .nav-links > li > a:hover,
html[data-theme="light"] body.user-logged-in .nav-links > li > a.active,
html[data-theme="light"] .ressources-btn:hover,
html[data-theme="light"] .ressources-btn.active,
html[data-theme="light"] body.user-logged-in .ressources-btn:hover,
html[data-theme="light"] body.user-logged-in .ressources-btn.active,
html[data-theme="light"] .nav-dropdown-toggle:hover,
html[data-theme="light"] .nav-dropdown-toggle.active {
  color: #000;
}

html[data-theme="light"] .nav-zulu-clock {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .nav-zulu-label {
  color: var(--muted);
}

html[data-theme="light"] .nav-zulu-time {
  color: #000;
}

html[data-theme="light"] .ressources-panel-inner {
  background: var(--surface-2);
  border-color: var(--border);
}

html[data-theme="light"] .nav-dropdown-menu {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .flight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .flight-card:hover {
  border-color: rgba(239, 65, 56, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(254, 242, 242, 0.6) 100%);
}

html[data-theme="light"] .flight-card-iata {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #000;
}

html[data-theme="light"] .flight-card-times {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .routes-table-panel,
html[data-theme="light"] .routes-filter-panel,
html[data-theme="light"] .routes-hub-banner {
  background: var(--surface-2);
}

html[data-theme="light"] .admin-tab {
  color: var(--muted);
}

html[data-theme="light"] .admin-tab.active {
  color: var(--jet-red);
}

html[data-theme="light"] .flight-list-header {
  color: var(--muted);
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  color: #000;
  background: #fff;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-danger,
html[data-theme="light"] .flight-card-book-btn,
html[data-theme="light"] .routes-hub-tag {
  color: #fff;
}

.acars-auth-card {
  text-align: center;
}

.acars-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.acars-auth-intro,
.acars-auth-site-hint,
.acars-auth-close-hint {
  max-width: 28rem;
  margin-inline: auto;
}

.acars-pilot-name-display {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
}

.acars-auth-id-label {
  margin-bottom: 0.35rem;
}

.acars-pilot-id-display {
  margin: 1rem 0 1.5rem;
}

.acars-pilot-id-display code {
  display: inline-block;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface-2);
  color: var(--jet-red);
}

.acars-auth-linked {
  padding: 0.5rem 0 1rem;
}

/* Final hybrid overrides: old vJet2 layout + modern Jet2/ACARS color tuning. */
.cursor-dot,
.navbar-inner::before {
  display: none !important;
}

:root {
  --jet-red: #e51937;
  --jet-blue: #4b5563;
  --jet-white-red: #e51937;
  --jet-red-soft: rgba(229, 25, 55, 0.14);
  --bg: #0d1118;
  --surface: rgba(18, 21, 29, 0.94);
  --surface-2: rgba(27, 31, 41, 0.96);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f7f8fb;
  --muted: #a9b0bf;
  --radius: 8px;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(229, 25, 55, 0.14), transparent 32rem),
    linear-gradient(180deg, #121722 0%, #0d1118 54%, #080b10 100%) !important;
  color: var(--text);
}

.page-shell::after {
  background:
    linear-gradient(180deg, rgba(13, 17, 24, 0.7), rgba(13, 17, 24, 0.86) 42%, rgba(8, 11, 16, 0.92)),
    rgba(0, 0, 0, 0.42) !important;
}

.navbar-inner {
  min-height: auto !important;
  padding: 20px 50px !important;
  background: linear-gradient(180deg, rgba(19, 23, 32, 0.92), rgba(13, 16, 23, 0.78)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 28px rgba(0, 0, 0, 0.22) !important;
}

.nav-links {
  gap: 30px !important;
}

.nav-links > li > a,
.nav-dropdown-toggle,
.ressources-btn,
.nav-links .nav-settings {
  min-height: auto !important;
  padding: 0 0 4px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #e5e7eb !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.nav-links > li > a::after,
.nav-dropdown-toggle::after,
.ressources-btn::after {
  display: block !important;
  content: '' !important;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--jet-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.ressources-btn:hover,
.ressources-btn.active {
  color: #fff !important;
  transform: scale(1.04) !important;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.ressources-btn:hover::after,
.ressources-btn.active::after {
  transform: scaleX(1) !important;
}

.page-header h1::after,
.blog-title::after,
.routes-page__title::after,
.card h2::after {
  display: none !important;
}

.card,
.dashboard-profile-card,
.routes-page,
.routes-table-panel,
.routes-filter-panel,
.routes-search,
.routes-add,
.routes-empty,
.routes-table,
.blog-article,
.blog-sidebar-card,
.fleet-base-card,
.fleet-aircraft-card,
.live-flights-panel,
.live-map-panel,
.admin-add-panel,
.admin-manage-row,
.admin-route-edit-card,
.admin-pirep-card,
.booking-modal-card,
.network-map-panel {
  border-radius: var(--radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
}

.routes-search,
.routes-add,
.admin-form-section,
.routes-services,
.routes-types,
.pilot-location-card,
.jumpseat-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(17, 20, 28, 0.82) !important;
  border-color: var(--border) !important;
}

.form-group input,
.form-group select,
.form-group textarea,
.routes-field input,
.routes-field select,
.admin-add-form input,
.admin-add-form select,
.admin-route-search input,
.admin-route-search select,
.admin-route-path-field input,
.pilot-search-bar__input,
.pilot-search-bar__select {
  background: rgba(8, 11, 16, 0.58) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.routes-field input:focus,
.routes-field select:focus,
.admin-add-form input:focus,
.admin-add-form select:focus,
.admin-route-search input:focus,
.admin-route-search select:focus,
.admin-route-path-field input:focus,
.pilot-search-bar__input:focus,
.pilot-search-bar__select:focus {
  border-color: rgba(229, 25, 55, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(229, 25, 55, 0.24) !important;
}

.btn,
.routes-btn,
.flight-sort-btn,
.fleet-remove-btn,
.fleet-relocate-btn,
.btn-book-route,
.flight-card-book-btn,
.flight-card-allocate-btn {
  border-radius: 6px !important;
  font-style: italic !important;
}

.btn-primary,
.routes-btn--primary,
.btn-book-route,
.flight-card-book-btn,
.btn-save,
.btn-glow-green {
  background: linear-gradient(180deg, #f01f3f, var(--jet-red)) !important;
  color: #fff !important;
  border-color: rgba(229, 25, 55, 0.45) !important;
  box-shadow: 0 10px 22px rgba(229, 25, 55, 0.2) !important;
}

.btn-primary:hover,
.routes-btn--primary:hover,
.btn-book-route:hover,
.flight-card-book-btn:hover,
.btn-save:hover,
.btn-glow-green:hover {
  background: linear-gradient(180deg, #ff3855, #c9142e) !important;
}

.card h2,
.routes-page__title,
.blog-title,
.page-header h1 {
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.card .subtitle,
.page-header p,
.routes-page__desc,
.blog-lead {
  color: var(--muted) !important;
}

.status-active,
.routes-status--on,
.fleet-availability--free,
.fleet-pill--ok {
  background: rgba(47, 179, 109, 0.13) !important;
  color: #8df0b4 !important;
  border-color: rgba(47, 179, 109, 0.32) !important;
}

.status-pending,
.status-maintenance {
  background: rgba(255, 184, 77, 0.13) !important;
  color: #ffd58a !important;
  border-color: rgba(255, 184, 77, 0.32) !important;
}

.status-stored,
.status-suspended,
.status-rejected,
.fleet-availability--booked {
  background: rgba(229, 25, 55, 0.13) !important;
  color: #ffb8c2 !important;
  border-color: rgba(229, 25, 55, 0.32) !important;
}

.network-title-glow,
.network-map-page .network-title-glow,
.network-map-page .blog-sidebar-card h3.network-title-glow {
  color: var(--jet-red) !important;
  -webkit-text-fill-color: var(--jet-red) !important;
  text-shadow: 0 0 16px rgba(229, 25, 55, 0.28) !important;
}

.logo-dot,
.intro-brand-dot {
  color: var(--jet-red) !important;
  font-size: 1em !important;
}

.navbar .logo-main {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.navbar .logo-sub {
  font-size: 0.48rem !important;
  letter-spacing: 0.1em !important;
  white-space: nowrap;
}

.navbar-left {
  gap: clamp(0.75rem, 1.8vw, 1.35rem) !important;
  min-width: 0;
}

.logo-container {
  flex: 0 1 auto;
  min-width: 0;
}

/* Faster opening intro. */
.intro-runway-pad {
  animation-duration: 1.05s !important;
  animation-delay: 0.02s !important;
}

.intro-plane {
  animation-duration: 1.2s !important;
  animation-delay: 0.04s !important;
}

.intro-brand {
  animation-duration: 0.85s !important;
}

.intro-tagline {
  animation-duration: 0.85s !important;
  animation-delay: 0.06s !important;
}

.intro-splash.is-leaving {
  animation-duration: 0.26s !important;
}

.intro-splash.is-leaving .intro-brand,
.intro-splash.is-leaving .intro-tagline,
.intro-splash.is-leaving .intro-aviation {
  transition-duration: 0.16s !important;
}

@media (max-width: 980px) {
  .navbar-inner {
    padding: 16px 18px !important;
  }

  .nav-links {
    gap: 0.5rem !important;
    background: rgba(10, 12, 18, 0.96) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
  }

  .nav-links > li > a,
  .nav-dropdown-toggle,
  .ressources-btn,
  .nav-links .nav-settings {
    width: 100%;
    padding: 0.65rem 0.75rem !important;
    border-radius: 6px !important;
  }

  .nav-lang-item {
    justify-content: flex-start;
    padding: 0.15rem 0.75rem;
  }

  .nav-lang-toggle {
    width: auto;
    height: auto;
  }
}

/* Dynamic UI polish: motion stays subtle and operational. */
.ui-dynamics-ready .page-shell::before {
  animation: jet2AmbientPan 18s ease-in-out infinite alternate;
}

.home-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-section {
  overflow: visible;
}

.hero-section .hero-media {
  position: fixed !important;
  inset: 0 !important;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
}

.hero-section .hero-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
  width: 100%;
  padding: 0 clamp(1rem, 3vw, 3rem) clamp(1rem, 3vh, 2rem) !important;
}

.hero-section .footer-center {
  justify-self: center;
  max-width: 820px;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(4.9rem, 12vh, 7.2rem);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.hero-scroll-hint:hover {
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}

.hero-scroll-hint.is-hidden,
.page-scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.hero-scroll-hint i {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-right: 2px solid var(--jet-red);
  border-bottom: 2px solid var(--jet-red);
  transform: rotate(45deg);
  animation: jet2ScrollHint 1.25s ease-in-out infinite;
}

@keyframes jet2ScrollHint {
  0%, 100% {
    opacity: 0.45;
    transform: translateY(-2px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(5px) rotate(45deg);
  }
}

.hero-section #hero-mount,
.hero-section .hero-footer,
.home-scroll {
  position: relative;
  z-index: 2;
}

.home-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(42rem, 88vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(229, 25, 55, 0.58), rgba(255, 255, 255, 0.25), transparent);
}

.home-scroll-section,
.home-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.home-scroll-section {
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.home-scroll-section--intro {
  max-width: 780px;
}

.home-scroll-section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  border-left: 4px solid var(--jet-red);
}

.home-kicker {
  margin: 0 0 0.45rem;
  color: var(--jet-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-scroll h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-scroll h3 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 1.05rem;
}

.home-scroll p {
  color: var(--muted);
  line-height: 1.65;
}

.home-scroll-section > p:last-child {
  max-width: 44rem;
  margin: 0.85rem 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.home-info-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.25rem;
}

.home-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(229, 25, 55, 0.18), transparent 15rem);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.home-info-card:hover::before {
  opacity: 1;
}

.home-info-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 7px;
  color: #fff;
  background: var(--jet-red);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-info-card p {
  position: relative;
  margin: 0;
  font-size: 0.92rem;
}

/* Home section refresh: sharper Jet2/ACARS argument cards. */
.home-scroll {
  width: min(1180px, calc(100% - 2rem));
  gap: clamp(1.15rem, 2.5vw, 1.85rem);
}

.home-scroll-section--intro {
  position: relative;
  max-width: 860px;
  overflow: hidden;
  padding: clamp(1.7rem, 3.8vw, 2.6rem) !important;
  background:
    linear-gradient(135deg, rgba(229, 25, 55, 0.12), transparent 44%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.08), transparent 18rem),
    rgba(19, 22, 30, 0.94) !important;
}

.home-scroll-section--intro::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--jet-red), rgba(229, 25, 55, 0.08));
}

.home-scroll-section--intro::after {
  content: 'VJT2 OPS';
  position: absolute;
  right: 1.35rem;
  top: 1.15rem;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.home-scroll-section--intro > * {
  position: relative;
  z-index: 1;
}

.home-scroll-section--intro .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(229, 25, 55, 0.38);
  border-radius: 999px;
  background: rgba(229, 25, 55, 0.12);
}

.home-scroll-section--intro .home-kicker::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--jet-red);
  box-shadow: 0 0 14px rgba(229, 25, 55, 0.75);
}

.home-scroll-section--intro h2 {
  max-width: 13ch;
  margin-top: 0.8rem;
  font-size: clamp(2.15rem, 4.9vw, 4rem);
}

.home-scroll-section--intro p:last-child {
  max-width: 45rem;
  color: #c6ccd8;
}

.home-info-grid {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.home-info-card {
  min-height: 172px;
  padding: 1.35rem 1.35rem 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(18, 21, 29, 0.9) !important;
}

.home-info-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--jet-red), transparent);
  opacity: 0.75;
}

.home-info-card:nth-child(2)::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent);
}

.home-info-card:nth-child(3)::after {
  background: linear-gradient(90deg, #7d8798, transparent);
}

.home-info-card__code {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 1.05rem;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(229, 25, 55, 0.24);
}

.home-info-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}

.home-info-card p {
  color: #b7becd;
}

.home-scroll-section--split {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.75fr);
  padding: clamp(1.6rem, 3.4vw, 2.55rem) !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(229, 25, 55, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(17, 20, 28, 0.92) !important;
}

.home-scroll-section--split::after {
  content: '';
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(229, 25, 55, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2rem rgba(229, 25, 55, 0.035);
  pointer-events: none;
}

.home-scroll-section--split h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

.home-scroll-section--split > p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 11, 16, 0.32);
  color: #d7dce7;
}

/* Home information layout: calmer hierarchy and cleaner spacing. */
.home-scroll {
  width: min(1120px, calc(100% - 3rem));
  gap: clamp(1rem, 2vw, 1.45rem);
  padding-top: clamp(1.8rem, 4.5vw, 3.2rem);
}

.home-scroll-section--intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(14rem, 0.38fr);
  column-gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  max-width: 860px;
  min-height: 0;
  padding: clamp(1.45rem, 3vw, 2rem) !important;
}

.home-scroll-section--intro::after {
  content: 'OPS';
  right: 1.2rem;
  top: auto;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(3rem, 8vw, 5.2rem);
}

.home-scroll-section--intro .home-kicker,
.home-scroll-section--intro h2 {
  grid-column: 1;
}

.home-scroll-section--intro h2 {
  max-width: 11.5ch;
  margin-top: 0.65rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.home-scroll-section--intro p:last-child {
  grid-column: 2;
  align-self: end;
  max-width: 18rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border-left: 2px solid rgba(229, 25, 55, 0.75);
  background: rgba(8, 11, 16, 0.24);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.96rem;
}

.home-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.95rem, 2vw, 1.25rem);
}

.home-info-card {
  min-height: 150px;
  padding: 1.25rem 1.25rem 1.3rem;
}

.home-info-card__code {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.95rem;
}

.home-info-card h3 {
  margin-bottom: 0.45rem;
}

.home-info-card p {
  font-size: 0.92rem;
  line-height: 1.58;
}

.home-scroll-section--split {
  grid-template-columns: minmax(0, 0.74fr) minmax(17rem, 0.54fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.45rem, 3vw, 2.2rem) !important;
}

.home-scroll-section--split h2 {
  max-width: 14ch;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.05;
}

.home-scroll-section--split > p {
  max-width: 29rem;
  padding: 1rem 1.1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  justify-self: end;
}

.who-page .blog-authors {
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
}

.who-page .blog-page .blog-author.about-founder,
.who-page .blog-author.about-founder {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 1.25rem;
  width: 100%;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.who-page .blog-author.about-founder--left,
.who-page .blog-author.about-founder--right {
  align-self: stretch;
}

.who-page .blog-author.about-founder:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.who-page .about-founder-content {
  max-width: 100%;
}

.who-page .about-founder-intro {
  font-size: 0.96rem;
  line-height: 1.72;
}

.who-page .about-founder.ui-reveal,
.who-page .blog-author.ui-reveal {
  opacity: 1;
  transform: none;
}

.who-page .blog-sidebar {
  position: static;
  top: auto;
}

@keyframes jet2AmbientPan {
  from {
    transform: scale(1);
    filter: saturate(0.9) contrast(1);
  }

  to {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.04);
  }
}

.ui-dynamics-ready .navbar-inner {
  transition:
    padding 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

#navbar.is-scrolled .navbar-inner {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.97), rgba(11, 14, 20, 0.9)) !important;
  border-bottom-color: rgba(229, 25, 55, 0.26) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34) !important;
}

.ui-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition:
    opacity 0.58s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  transition-delay: calc(var(--reveal-index, 0) * 42ms);
}

.ui-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card,
.dashboard-profile-card,
.routes-page,
.routes-table-panel,
.routes-filter-panel,
.routes-search,
.routes-add,
.blog-featured,
.blog-article,
.blog-sidebar-card,
.fleet-base-card,
.fleet-aircraft-card,
.live-flights-panel,
.live-map-panel,
.admin-manage-row,
.admin-pirep-card,
.flight-card,
.fleet-row {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.card:hover,
.dashboard-profile-card:hover,
.routes-table-panel:hover,
.routes-filter-panel:hover,
.routes-search:hover,
.blog-featured:hover,
.blog-article:hover,
.blog-sidebar-card:hover,
.fleet-base-card:hover,
.fleet-aircraft-card:hover,
.admin-manage-row:hover,
.admin-pirep-card:hover,
.flight-card:hover,
.fleet-row:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 25, 55, 0.3) !important;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(229, 25, 55, 0.06) inset !important;
}

.blog-section.ui-reveal,
.about-founder.ui-reveal,
.blog-author.ui-reveal {
  transform: translateX(-18px);
}

.blog-section.ui-reveal:nth-of-type(even),
.about-founder.ui-reveal:nth-of-type(even),
.blog-author.ui-reveal:nth-of-type(even) {
  transform: translateX(18px);
}

.blog-section.ui-reveal.is-visible,
.about-founder.ui-reveal.is-visible,
.blog-author.ui-reveal.is-visible {
  transform: translateX(0);
}

.btn,
.routes-btn,
.flight-sort-btn,
.fleet-remove-btn,
.fleet-relocate-btn,
.btn-book-route,
.flight-card-book-btn,
.flight-card-allocate-btn {
  position: relative;
  overflow: hidden;
}

.btn::before,
.routes-btn::before,
.flight-sort-btn::before,
.fleet-remove-btn::before,
.fleet-relocate-btn::before,
.btn-book-route::before,
.flight-card-book-btn::before,
.flight-card-allocate-btn::before {
  content: '';
  position: absolute;
  inset: -20% auto -20% -45%;
  width: 38%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::before,
.routes-btn:hover::before,
.flight-sort-btn:hover::before,
.fleet-remove-btn:hover::before,
.fleet-relocate-btn:hover::before,
.btn-book-route:hover::before,
.flight-card-book-btn:hover::before,
.flight-card-allocate-btn:hover::before {
  opacity: 1;
  animation: jet2ButtonSweep 0.62s ease forwards;
}

@keyframes jet2ButtonSweep {
  from {
    left: -45%;
  }

  to {
    left: 115%;
  }
}

.form-group input,
.form-group select,
.form-group textarea,
.routes-field input,
.routes-field select,
.admin-add-form input,
.admin-add-form select,
.admin-route-search input,
.admin-route-search select,
.admin-route-path-field input,
.pilot-search-bar__input,
.pilot-search-bar__select {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.routes-field input:focus,
.routes-field select:focus,
.admin-add-form input:focus,
.admin-add-form select:focus,
.admin-route-search input:focus,
.admin-route-search select:focus,
.admin-route-path-field input:focus,
.pilot-search-bar__input:focus,
.pilot-search-bar__select:focus {
  transform: translateY(-1px);
}

.status-badge,
.routes-status,
.fleet-availability,
.routes-tag,
.fleet-type-badge,
.fleet-pill,
.hub-fleet-chip,
.routes-hub-tag {
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.status-badge:hover,
.routes-status:hover,
.fleet-availability:hover,
.routes-tag:hover,
.fleet-type-badge:hover,
.fleet-pill:hover,
.hub-fleet-chip:hover,
.routes-hub-tag:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@media (max-width: 820px) {
  .home-scroll {
    width: min(100% - 2rem, 38rem);
  }

  .home-scroll-section--intro {
    grid-template-columns: 1fr;
  }

  .home-scroll-section--intro .home-kicker,
  .home-scroll-section--intro h2,
  .home-scroll-section--intro p:last-child {
    grid-column: 1;
  }

  .home-scroll-section--intro p:last-child {
    max-width: none;
    margin-top: 0.9rem;
  }

  .home-info-grid,
  .home-scroll-section--split {
    grid-template-columns: 1fr;
  }

  .home-scroll-section--split > p {
    justify-self: stretch;
    max-width: none;
  }

  .who-page .blog-page .blog-author.about-founder,
  .who-page .blog-author.about-founder {
    flex-direction: row;
  }
}

@media (max-width: 560px) {
  .who-page .blog-page .blog-author.about-founder,
  .who-page .blog-author.about-founder {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-dynamics-ready .page-shell::before,
  .btn:hover::before,
  .routes-btn:hover::before,
  .flight-sort-btn:hover::before,
  .fleet-remove-btn:hover::before,
  .fleet-relocate-btn:hover::before,
  .btn-book-route:hover::before,
  .flight-card-book-btn:hover::before {
    animation: none !important;
  }

  .ui-reveal,
  .card,
  .dashboard-profile-card,
  .routes-page,
  .routes-table-panel,
  .routes-filter-panel,
  .routes-search,
  .routes-add,
  .blog-featured,
  .blog-article,
  .blog-sidebar-card,
  .fleet-base-card,
  .fleet-aircraft-card,
  .live-flights-panel,
  .live-map-panel,
  .home-scroll-section,
  .home-info-card,
  .blog-section,
  .blog-author,
  .about-founder,
  .admin-manage-row,
  .admin-pirep-card,
  .flight-card,
  .fleet-row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


.intro-runway-id--dep {
  left: calc(clamp(4px, 0.6vw, 8px) + var(--piano-zone-dep) + clamp(10px, 1.15vw, 16px));
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

.intro-runway-id--far {
  right: calc(clamp(4px, 0.6vw, 8px) + var(--piano-zone-far) + clamp(10px, 1.15vw, 16px));
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.intro-plane {
  position: absolute;
  left: 0;
  bottom: clamp(10px, 2.2vh, 22px);
  z-index: 4;
  width: clamp(180px, 26vw, 340px);
  height: auto;
  object-fit: contain;
  transform-origin: 50% 88%;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  opacity: 0;
  will-change: transform, opacity;
  animation: planeTakeoff 2.2s linear 0.15s forwards;
}

@keyframes runwayFade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes planeTakeoff {
  0% {
    opacity: 0;
    transform: translate(-20vw, 4px) rotate(2deg) scale(0.76);
  }
  6% {
    opacity: 0.9;
    transform: translate(-14vw, 3px) rotate(1.5deg) scale(0.78);
  }
  12% {
    opacity: 1;
    transform: translate(-6vw, 2px) rotate(1deg) scale(0.8);
  }
  22% {
    transform: translate(6vw, 1px) rotate(0.5deg) scale(0.82);
  }
  34% {
    transform: translate(18vw, 0) rotate(0deg) scale(0.84);
  }
  46% {
    transform: translate(30vw, -1px) rotate(-0.5deg) scale(0.86);
  }
  56% {
    transform: translate(40vw, -2px) rotate(-1deg) scale(0.88);
  }
  66% {
    transform: translate(48vw, -4px) rotate(-3deg) scale(0.9);
  }
  76% {
    transform: translate(56vw, -10px) rotate(-8deg) scale(0.92);
  }
  86% {
    opacity: 1;
    transform: translate(66vw, -24px) rotate(-14deg) scale(0.94);
  }
  94% {
    opacity: 0.5;
    transform: translate(78vw, -48px) rotate(-20deg) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translate(92vw, -72px) rotate(-26deg) scale(0.98);
  }
}

.intro-splash.is-leaving {
  animation: introLeave 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-splash.is-leaving .intro-brand,
.intro-splash.is-leaving .intro-tagline,
.intro-splash.is-leaving .intro-aviation {
  animation: none !important;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.intro-brand {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  color: #fff;
  opacity: 0;
  animation: introBrandIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-brand-dot {
  color: var(--jet-blue);
}

.intro-tagline {
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transform: rotate(-5deg);
  opacity: 0;
  animation: introTaglineIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
}

@keyframes introBrandIn {
  0% { opacity: 0; transform: scale(0.96); }
  18% { opacity: 1; transform: scale(1); }
  72% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes introTaglineIn {
  0% { opacity: 0; transform: rotate(-5deg) translateY(10px); }
  22% { opacity: 1; transform: rotate(-5deg) translateY(0); }
  72% { opacity: 1; transform: rotate(-5deg) translateY(0); }
  100% { opacity: 1; transform: rotate(-5deg) translateY(0); }
}

@keyframes introLeave {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash,
  .intro-brand,
  .intro-tagline,
  .intro-runway-pad,
  .intro-plane,
  body.page-revealing > :not(.intro-splash) {
    animation: none !important;
  }

  body.page-revealing > :not(.intro-splash) {
    opacity: 1;
    transform: none;
  }

  .intro-plane {
    opacity: 0;
  }
}

.float-enter {
  opacity: 1;
  animation: none;
}

@keyframes floatEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Final booking popup layout override */
.flight-booking-modal-card {
  width: min(92vw, 1180px);
  height: min(84dvh, 760px);
  max-width: 1180px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flight-booking-modal-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.58rem 1rem 0.5rem;
  background:
    linear-gradient(90deg, rgba(239, 65, 56, 0.12), rgba(15, 23, 42, 0.02) 46%),
    rgba(255, 255, 255, 0.02);
}

.flight-booking-modal-head h3 {
  margin: 0.08rem 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.38rem);
  line-height: 1.08;
}

.flight-booking-modal-head .subtitle {
  margin: 0.22rem 0 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: rgba(226, 232, 240, 0.66);
}

.flight-booking-modal-card .booking-modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
}

.flight-booking-modal-summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto minmax(5rem, max-content);
  align-items: center;
  gap: 0.85rem;
  min-height: 3.7rem;
  padding: 0.52rem 1rem;
  background:
    linear-gradient(90deg, rgba(239, 65, 56, 0.16), rgba(30, 41, 59, 0.28) 42%, rgba(15, 23, 42, 0.12)),
    rgba(255, 255, 255, 0.024);
}

.flight-booking-summary-main .candidate-id {
  width: min(100%, 15.5rem);
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  border-radius: 5px;
}

.flight-booking-summary-main strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.98rem;
  line-height: 1.12;
}

.flight-booking-summary-main > span:last-child {
  display: block;
  margin-top: 0.16rem;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.74rem;
  line-height: 1.25;
}

.flight-booking-summary-meta {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.flight-booking-summary-meta span {
  min-width: 5.9rem;
  padding: 0.34rem 0.48rem;
  border-radius: 8px;
}

.flight-booking-summary-meta .detail-label {
  font-size: 0.62rem;
  line-height: 1;
}

.flight-booking-summary-meta span > strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.78rem;
  line-height: 1;
}

.flight-booking-summary-types {
  justify-content: flex-end;
  max-width: none;
  font-size: 0.86rem;
}

.flight-booking-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 0.34fr);
  gap: 0.78rem;
  padding: 0.66rem 1rem 0.62rem;
  overflow: hidden;
}

.flight-booking-modal-aircraft,
.flight-booking-modal-route {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.flight-booking-modal-aircraft {
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

.flight-booking-aircraft-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
  scrollbar-width: thin;
}

.flight-booking-modal-aircraft .book-aircraft-grid,
.flight-booking-modal-aircraft .book-aircraft-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 0.65rem;
}

.flight-booking-modal-aircraft .book-aircraft-card,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal {
  border-radius: 10px;
}

.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo__link img,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card__photo .fleet-photo--empty,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--loading,
.flight-booking-modal-aircraft .book-aircraft-card--horizontal .book-aircraft-card__photo .fleet-photo--empty {
  min-height: 76px;
  max-height: 96px;
}

.flight-booking-modal-aircraft .book-aircraft-card__body {
  padding: 0.58rem 0.62rem 0.62rem;
  gap: 0.42rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__head {
  gap: 0.4rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__type {
  font-size: 0.78rem;
  line-height: 1.15;
}

.flight-booking-modal-aircraft .book-aircraft-card__reg {
  font-size: 0.72rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__reg strong {
  font-size: 0.92rem;
}

.flight-booking-modal-aircraft .book-aircraft-card__footer {
  gap: 0.45rem;
}

.flight-booking-modal-aircraft .book-aircraft-card .btn-book-route {
  min-height: 2rem;
  padding: 0.42rem 0.58rem;
  font-size: 0.74rem;
}

.flight-booking-modal-route .booking-route-brief {
  gap: 0.42rem;
}

.flight-booking-modal-route .booking-route-brief__metric {
  padding: 0.48rem 0.56rem;
  border-radius: 8px;
}

.flight-booking-modal-route .booking-route-brief__metric strong {
  font-size: 0.82rem;
}

.flight-booking-modal-route .booking-route-airports {
  gap: 0.42rem;
}

.flight-booking-modal-route .booking-route-airport {
  padding: 0.5rem 0.58rem 0.5rem 0.72rem;
  border-radius: 8px;
}

.flight-booking-modal-route .booking-route-airport span {
  font-size: 0.76rem;
}

.flight-booking-modal-route .booking-route-airport strong {
  margin-top: 0.14rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.flight-booking-modal-route .booking-route-airport small {
  margin-top: 0.12rem;
  font-size: 0.65rem;
}

.flight-booking-modal-route .booking-route-types {
  padding: 0.48rem 0.56rem;
  border-radius: 8px;
}

.flight-booking-modal-route {
  display: flex;
  flex-direction: column;
  padding: 0.68rem;
  overflow: hidden;
}

.flight-booking-section-head {
  margin-bottom: 0.55rem;
}

.flight-booking-section-head h4 {
  font-size: 0.92rem;
}

.flight-booking-section-head .detail-label {
  font-size: 0.62rem;
}

.flight-booking-modal-route .route-globe-wrap {
  flex: 0 0 auto;
  min-height: 0;
  height: clamp(132px, 19vh, 205px);
  margin-bottom: 0.5rem;
}

.flight-booking-modal-route .route-info-list {
  flex: 0 0 auto;
  gap: 0.42rem;
}

.flight-booking-modal-metar {
  flex: 0 0 auto;
  padding: 0 1rem 0.8rem;
}

.flight-booking-modal-metar .metar-panel {
  margin: 0;
  max-height: 6.9rem;
  overflow: hidden;
  border-radius: 10px;
}

.flight-booking-modal-metar .metar-panel.hidden {
  display: none;
}

@media (max-width: 860px) {
  .flight-booking-modal-card {
    height: min(92dvh, 860px);
  }

  .flight-booking-modal-summary {
    grid-template-columns: 1fr;
  }

  .flight-booking-modal-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .flight-booking-modal-route,
  .flight-booking-modal-aircraft {
    height: auto;
    overflow: visible;
  }
}
