:root {
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --bg: #e8eef6;
  --bg-deep: #dce6f4;
  --surface: #f6f9fc;
  --text: #0c1628;
  --muted: #4a5f78;
  --accent: #2dd4bf;
  --accent-bright: #5eead4;
  --accent-d: #0d9488;
  --line: rgba(12, 40, 80, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.86);
}

[data-theme="dark"] {
  --bg: #070d18;
  --bg-deep: #050a12;
  --surface: #0e1624;
  --text: #e8f0fa;
  --muted: #8fa4bd;
  --line: rgba(100, 160, 220, 0.14);
  --nav-bg: rgba(6, 12, 24, 0.72);
}

[data-theme="dark"] .brand-logo-img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

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

html, body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  scroll-behavior: auto;
}

body {
  display: flex;
  flex-direction: column;
}

/* hide scrollbar cross-browser */
html { scrollbar-width: none; }
body { -ms-overflow-style: none; }
body::-webkit-scrollbar,
html::-webkit-scrollbar,
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ——— Splash / loading ——— */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(45, 212, 191, 0.18), transparent 60%),
    linear-gradient(180deg, #020510, #050a14);
  color: #e8f0fa;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
[data-theme="light"] .app-splash {
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(45, 212, 191, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  color: var(--text);
}
.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.app-splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem;
  text-align: center;
}
.app-splash__logo {
  width: auto;
  height: 72px;
  max-height: 72px;
  object-fit: contain;
  opacity: 0.95;
}
[data-theme="dark"] .app-splash__logo {
  filter: brightness(0) invert(1);
}
.app-splash__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent-bright);
  animation: app-splash-spin 0.9s linear infinite;
}
[data-theme="light"] .app-splash__spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-d);
}
.app-splash__text {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.75;
  letter-spacing: 0.01em;
}
@keyframes app-splash-spin {
  to { transform: rotate(360deg); }
}

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--accent-d);
  color: #fff;
  padding: 0.45rem 0.9rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Nav bar ——— */
.nav-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  flex-shrink: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
[data-theme="light"] .nav-bar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.nav-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand--logo-only .brand-logo-img {
  width: auto;
  height: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.nav-link {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link-btn { font-family: inherit; }
.nav-link--muted { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
[data-theme="light"] .nav-link { color: var(--text); }
[data-theme="light"] .nav-link:hover { background: rgba(0,0,0,0.06); }
[data-theme="light"] .nav-link--muted { color: var(--muted); }

.nav-social {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
}
.nav-social svg { width: 15px; height: 15px; }
.nav-social:hover { background: rgba(255,255,255,0.08); color: #fff; }
[data-theme="light"] .nav-social { color: var(--muted); }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
}
[data-theme="light"] .theme-toggle { background: var(--surface); color: var(--text); }
.ic { width: 18px; height: 18px; }
[data-theme="dark"] .ic-moon { display: none; }
[data-theme="light"] .ic-sun { display: none; }

/* ——— Tracker (globo em ecrã cheio) ——— */
.tracker-section {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #020510;
  overflow: hidden;
}
[data-theme="light"] .tracker-section {
  background: var(--bg-deep);
}
.tracker-toolbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: none;
}
.tracker-toolbar > * { pointer-events: auto; }
.map-controls {
  width: auto;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(2, 8, 20, 0.7);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .map-controls {
  background: rgba(255, 255, 255, 0.9);
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
}
.map-mode-picker {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.map-mode-btn {
  border: 1px solid rgba(120, 180, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #e8f0fa;
  border-radius: 12px;
  padding: 0.62rem 0.88rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  min-width: 8.9rem;
  text-align: left;
}
.map-mode-btn:hover {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.35);
}
.map-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.28), rgba(59, 130, 246, 0.22));
  border-color: rgba(94, 234, 212, 0.5);
  color: #fff;
}
[data-theme="light"] .map-mode-btn {
  background: rgba(12, 22, 40, 0.04);
  color: var(--text);
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
}
[data-theme="light"] .map-mode-btn.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.24), rgba(59, 130, 246, 0.16));
}
.globe-zoom-controls {
  position: absolute;
  right: 1rem;
  bottom: 1.4rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.globe-zoom-btn {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(120, 180, 255, 0.24);
  border-radius: 16px;
  background: rgba(2, 8, 20, 0.74);
  color: #f8fafc;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.26);
}
.globe-zoom-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(94, 234, 212, 0.38);
}
[data-theme="light"] .globe-zoom-btn {
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
}

.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;
}

.flight-search {
  position: relative;
  flex: 1;
  max-width: 22rem;
  min-width: 0;
}
.flight-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 255, 0.28);
  background: rgba(2, 8, 20, 0.72);
  color: #f1f5f9;
  backdrop-filter: blur(10px);
  outline: none;
}
.flight-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.flight-search__input:focus {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.15);
}
[data-theme="light"] .flight-search__input {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
}
[data-theme="light"] .flight-search__input::placeholder {
  color: var(--muted);
}

.flight-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(8, 14, 28, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 50;
}
[data-theme="light"] .flight-search__results {
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(0, 25, 60, 0.12);
}
.flight-search__results[hidden] { display: none !important; }
.flight-search__hit {
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.84rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
}
[data-theme="light"] .flight-search__hit {
  color: var(--text);
}
.flight-search__hit:hover,
.flight-search__hit[aria-selected="true"] {
  background: rgba(45, 212, 191, 0.18);
}
.flight-search__hit-meta {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}
[data-theme="light"] .flight-search__hit-meta {
  color: var(--muted);
}

.flight-search__error {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.85);
  border-radius: 10px;
  z-index: 49;
}
[data-theme="light"] .flight-search__error {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
}
.flight-search__error[hidden] { display: none !important; }

.globe-fullscreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.globe-fullscreen canvas { display: block; }

.globe-copyright {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  z-index: 30;
  max-width: calc(100% - 2rem);
  text-align: center;
}
[data-theme="light"] .globe-copyright {
  color: rgba(12, 22, 40, 0.42);
}

/* ——— Hover tooltip ——— */
.hover-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  background: rgba(10, 14, 30, .88);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transform: translate(12px, -100%);
  transition: opacity .12s ease;
}
.hover-tooltip[hidden] { display: none; }
[data-theme="light"] .hover-tooltip {
  background: rgba(255,255,255,.92);
  color: #0a1628;
  border-color: rgba(0,0,0,.10);
}

/* ——— Flight detail modal ——— */
.flight-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  pointer-events: none;
}
.flight-modal[hidden] { display: none; }
.flight-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.flight-modal__panel {
  position: relative;
  width: min(32rem, calc(100vw - 1.25rem));
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px 0 0 22px;
  box-shadow: -24px 0 60px rgba(0,0,0,0.34);
  pointer-events: auto;
}
.flight-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.flight-modal__title { margin: 0; font-size: 1.05rem; }
.flight-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.08);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}
[data-theme="dark"] .flight-modal__close { background: rgba(255,255,255,0.08); }
.flight-modal__body { padding: 1rem 1.2rem; font-size: 0.92rem; line-height: 1.55; }
.flight-modal__body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 1rem 0 0;
}
.flight-modal__body dt { color: var(--muted); font-size: 0.8rem; }
.flight-modal__body dd { margin: 0; font-family: var(--mono); font-size: 0.85rem; }
.flight-modal__og {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.flight-modal__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.flight-modal__sub {
  margin: 1rem 0 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.flight-modal__fa-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-d);
  text-decoration: none;
}
[data-theme="dark"] .flight-modal__fa-link { color: var(--accent-bright); }
.flight-modal__fa-link:hover { text-decoration: underline; }
.flight-modal__pre {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 14rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 92%, var(--line));
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
}
.flight-modal__details { margin-top: 0.75rem; }
.flight-modal__details summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.flight-modal__loading { color: var(--muted); font-style: italic; }
.flight-modal__error { color: #ef4444; }
.flight-route-card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--bg)), color-mix(in srgb, var(--bg) 94%, transparent));
}
.flight-route-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.flight-route-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.flight-route-card__status {
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  white-space: nowrap;
}
.flight-route-card__airports {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) minmax(0, 8.5rem);
  gap: 1.35rem;
  align-items: start;
}
.flight-airport {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.flight-airport--destination { text-align: right; }
.flight-airport__code {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.flight-airport__city {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  min-height: 2.8em;
}
.flight-airport__meta {
  min-height: 2.4em;
  font-size: 0.77rem;
  line-height: 1.45;
  color: var(--muted);
}
.flight-airpath {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0.45rem;
}
.flight-airpath__bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 76%, transparent);
  overflow: visible;
}
.flight-airpath__progress {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #2dd4bf);
}
.flight-airpath__plane {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff, #facc15 55%, #f59e0b 100%);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.16), 0 10px 18px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}
.flight-airpath__plane::before {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: polygon(50% 0, 72% 56%, 50% 100%, 28% 56%);
  background: #111827;
  opacity: 0.7;
}
.flight-airpath__labels {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.flight-airpath__labels span:nth-child(2) {
  color: var(--text);
  font-family: var(--mono);
  text-align: center;
  flex: 1 1 auto;
}
.flight-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.flight-chip {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.flight-chip__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.flight-chip__value {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}
.flight-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 12, 0.68);
  backdrop-filter: blur(10px);
}
.flight-loading-screen[hidden] { display: none; }
.flight-loading-screen__inner {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.flight-loading-screen__spinner {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-top-color: #facc15;
  border-right-color: #2dd4bf;
  animation: flight-loading-spin 0.9s linear infinite;
}
.globe-route-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  will-change: transform;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  perspective: 220px;
  transform-style: preserve-3d;
}
.globe-route-arrow__inner {
  width: 20px;
  height: 20px;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  border-radius: 999px;
  background: radial-gradient(circle at 34% 34%, #fff 0, #fde68a 28%, #facc15 62%, #f59e0b 100%);
  clip-path: polygon(50% 0, 88% 54%, 63% 54%, 63% 100%, 37% 100%, 37% 54%, 12% 54%);
}

@keyframes flight-loading-spin {
  to { transform: rotate(360deg); }
}

/* ——— Suggestion modal (shared) ——— */
.fmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.fmodal-overlay.open { display: flex; }
.fmodal {
  width: min(100%, 34rem);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.fmodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.fmodal-tabs { display: flex; gap: 0.5rem; }
.fmodal-tab {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.fmodal-tab.active {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #041018;
}
.fmodal-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
}
.fmodal-body { padding: 1rem; }
.fform-group { margin-bottom: 1rem; }
.fform-label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.fform-input, .fform-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
.fform-textarea { min-height: 6.5rem; }
.fform-hint { font-size: 0.85rem; color: var(--muted); }
.fform-submit {
  width: 100%;
  padding: 0.85rem;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #041018;
}
.fmodal-success-view { text-align: center; padding: 1.5rem; }
.fmodal-success-icon svg { width: 2.5rem; height: 2.5rem; stroke: #22c55e; fill: none; stroke-width: 2; }
.fmodal-success-title { font-weight: 800; margin-top: 0.5rem; }

@media (max-width: 820px) {
  .nav-shell { flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { justify-content: flex-end; width: 100%; }
  .nav-link--muted { display: none; }
  .tracker-toolbar { flex-direction: column; align-items: stretch; }
  .flight-search { max-width: none; }
  .map-controls { width: fit-content; }
  .flight-route-card__airports {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .flight-airport--destination { text-align: left; }
  .flight-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-airport__city,
  .flight-airport__meta { min-height: 0; }
}

@media (max-width: 560px) {
  .tracker-toolbar {
    left: 0.75rem;
    top: 0.75rem;
    right: 0.75rem;
  }
  .globe-zoom-controls {
    right: 0.75rem;
    bottom: 1rem;
  }
  .globe-zoom-btn {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 14px;
  }
  .flight-modal__panel {
    width: 100vw;
    border-radius: 0;
  }
  .flight-modal__head,
  .flight-modal__body { padding-left: 1rem; padding-right: 1rem; }
  .flight-chip-grid { grid-template-columns: 1fr; }
}
