/* ---------- Tokens: light by default, dark from the system or the toggle ---------- */
:root {
  --bg: #f6f5f1;
  --panel: #fbfbf9;
  --card: #ffffff;
  --card-hi: #f7f7fb;
  --line: rgba(20, 20, 30, 0.1);
  --line-hi: rgba(79, 70, 229, 0.45);
  --text: #16171b;
  --muted: #5b5f6b;
  --dim: #858995;
  --accent: #4f46e5;
  --green: #15803d;
  --amber: #b45309;
  --red: #dc2626;
  --header-bg: rgba(246, 245, 241, 0.92);
  --overlay: rgba(255, 255, 255, 0.9);
  --soft: rgba(20, 20, 30, 0.035);
  --chip: rgba(20, 20, 30, 0.06);
  --halo: #fff;
  --map-bg: #e8ebe8;
  --title-from: #16171b;
  --btn-a: rgba(79, 70, 229, 0.1);
  --btn-b: rgba(139, 92, 246, 0.1);
  --btn-a-hi: rgba(79, 70, 229, 0.18);
  --btn-b-hi: rgba(139, 92, 246, 0.18);
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px -12px rgba(20, 20, 30, 0.14);
  --banner-bg: rgba(217, 119, 6, 0.1);
  --banner-text: #92400e;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e12;
    --panel: #14161c;
    --card: #181b22;
    --card-hi: #1e222b;
    --line: rgba(255, 255, 255, 0.08);
    --line-hi: rgba(165, 180, 252, 0.45);
    --text: #f3f4f6;
    --muted: #9ca3af;
    --dim: #6b7280;
    --accent: #a5b4fc;
    --green: #4ade80;
    --amber: #fbbf24;
    --red: #f87171;
    --header-bg: rgba(13, 14, 18, 0.92);
    --overlay: rgba(13, 14, 18, 0.85);
    --soft: rgba(255, 255, 255, 0.03);
    --chip: rgba(255, 255, 255, 0.06);
    --halo: #000;
    --map-bg: #050807;
    --title-from: #fff;
    --btn-a: rgba(59, 130, 246, 0.25);
    --btn-b: rgba(139, 92, 246, 0.25);
    --btn-a-hi: rgba(59, 130, 246, 0.4);
    --btn-b-hi: rgba(139, 92, 246, 0.4);
    --shadow: none;
    --banner-bg: rgba(251, 191, 36, 0.12);
    --banner-text: #fde68a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e12;
  --panel: #14161c;
  --card: #181b22;
  --card-hi: #1e222b;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(165, 180, 252, 0.45);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #a5b4fc;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --header-bg: rgba(13, 14, 18, 0.92);
  --overlay: rgba(13, 14, 18, 0.85);
  --soft: rgba(255, 255, 255, 0.03);
  --chip: rgba(255, 255, 255, 0.06);
  --halo: #000;
  --map-bg: #050807;
  --title-from: #fff;
  --btn-a: rgba(59, 130, 246, 0.25);
  --btn-b: rgba(139, 92, 246, 0.25);
  --btn-a-hi: rgba(59, 130, 246, 0.4);
  --btn-b-hi: rgba(139, 92, 246, 0.4);
  --shadow: none;
  --banner-bg: rgba(251, 191, 36, 0.12);
  --banner-text: #fde68a;
  color-scheme: dark;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1100;
}

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

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; }

.top-actions { order: 2; display: flex; gap: 8px; flex: none; }

/* Theme toggle: sun in light mode, moon in dark */
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* Link home to meox.me: a black tile in both themes, as on the other meox.me apps */
.home-link {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  background: #0d0e12; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: #fff;
  transition: transform 0.2s ease, border-color 0.15s;
}
.home-link:hover { transform: scale(1.06); border-color: var(--accent); }
.home-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--title-from) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
h1 span { font-weight: 500; }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}
.status-dot.is-degraded { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.controls { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 1; justify-content: flex-end; }

.search { position: relative; display: flex; flex: 1 1 260px; max-width: 380px; }
.search input {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  padding: 8px 12px;
  outline: none;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--line-hi); }
.search .btn { border-radius: 0 10px 10px 0; }

.results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  list-style: none;
  background: var(--card-hi);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.results li.muted { padding: 10px 12px; }
.results button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.results button:hover, .results button:focus-visible { background: var(--btn-a); outline: none; }
.results b { display: block; }
.results span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: linear-gradient(135deg, var(--btn-a-hi), var(--btn-b-hi)); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.locate.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.radius { display: flex; align-items: center; gap: 8px; }
.radius label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.radius output { min-width: 52px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.radius select {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px;
}
input[type="range"] { accent-color: var(--accent); width: 130px; }

.toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); }

.banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 1px solid rgba(217, 119, 6, 0.3);
  padding: 8px 20px;
  font-weight: 500;
}

/* ---------- Layout ---------- */

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  min-height: 0;
}

.scope { position: relative; min-height: 420px; border-right: 1px solid var(--line); }
.map { position: absolute; inset: 0; background: var(--map-bg); }

.panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); }

@media (min-width: 981px) {
  body { height: 100vh; overflow: hidden; }
  .panel { overflow-y: auto; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  /* Short enough on a phone that the nearest flights show below the radar */
  .scope { height: min(52vh, 480px); min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  /* Logo and buttons share the first row; the controls wrap below */
  .brand-row { flex: 1; }
  .top-actions { order: 1; }
  .controls { order: 2; flex-basis: 100%; justify-content: flex-start; }
  .search { max-width: none; }
}

@media (max-width: 560px) {
  .top { padding: 10px 14px; }
  .locate span { display: none; }
  input[type="range"] { width: 100px; flex: 1; }
  .radius { flex: 1 1 100%; }
}

/* ---------- Map ---------- */

.radar-canvas { position: absolute; inset: 0; z-index: 450; pointer-events: none; }

/* Green phosphor look for the radar basemap (dark theme only) */
.tiles-radar { filter: sepia(1) hue-rotate(75deg) saturate(1.8) brightness(0.42) contrast(1.6); }
.tiles-radar-light { filter: sepia(0.35) hue-rotate(70deg) saturate(1.3) brightness(1.02); }
.tiles-sat { filter: brightness(0.7) saturate(0.8); }

.leaflet-container { font-family: inherit; background: var(--map-bg); }
.leaflet-control-attribution { background: var(--overlay) !important; color: var(--dim) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a, .leaflet-control-layers {
  background: var(--overlay) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.leaflet-control-layers { border-radius: 10px !important; border: 1px solid var(--line) !important; }
:root[data-theme="dark"] .leaflet-control-layers-toggle { filter: invert(1) brightness(0.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-control-layers-toggle { filter: invert(1) brightness(0.9); }
}
.leaflet-control-layers-expanded { padding: 8px 12px; }

.you-marker span {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: #3b82f6; border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: you 2s infinite;
}
@keyframes you {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.plane-marker { cursor: pointer; transition: opacity 1.4s; }
.plane-marker .rot { width: 22px; height: 22px; transition: transform 0.6s; }
.plane-marker svg { display: block; fill: var(--c); stroke: var(--halo); stroke-opacity: 0.75; stroke-width: 1; filter: drop-shadow(0 0 3px var(--c)); }
.plane-marker .tag {
  position: absolute; left: 22px; top: -2px;
  font: 600 10px/1.15 "JetBrains Mono", ui-monospace, monospace;
  color: var(--c);
  white-space: nowrap;
  text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo), 0 0 2px var(--halo);
  pointer-events: none;
}
.plane-marker .tag small { display: block; font-size: 9px; opacity: 0.85; }
.plane-marker.ground .tag { display: none; }
.plane-marker.selected .rot { transform-origin: center; }
.plane-marker.selected svg { fill: var(--text); filter: drop-shadow(0 0 6px var(--amber)) drop-shadow(0 0 2px var(--amber)); }
.plane-marker.selected .tag { color: var(--amber); font-size: 11px; }
.plane-marker.leaving { opacity: 0; }

.airport-marker span {
  position: absolute; left: 12px; top: -4px;
  font: 700 11px "JetBrains Mono", monospace;
  color: var(--amber);
  text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo);
}
.airport-marker::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--halo);
}
.airport-marker.from::before { background: var(--accent); }
.airport-marker.from span { color: var(--accent); }

.scope-hud {
  position: absolute; top: 12px; left: 12px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
}
.place-name {
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
  max-width: 50vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scope-hud .btn { background: var(--overlay); }

.legend {
  position: absolute; left: 12px; bottom: 22px; z-index: 900;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--muted);
  background: var(--overlay); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px;
}
.legend i {
  width: 120px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #8a8f98 0 6%, hsl(28 90% 55%) 6%, hsl(40 90% 55%), hsl(80 90% 50%), hsl(140 80% 45%), hsl(180 85% 45%), hsl(210 90% 55%), hsl(280 85% 60%));
}

/* ---------- Cards ---------- */

.panel-head {
  position: sticky; top: 0; z-index: 5;
  padding: 12px 16px 10px;
  background: linear-gradient(var(--panel) 80%, transparent);
}
.summary { font-size: 15px; color: var(--muted); }
.summary b { color: var(--text); }
.updated { font-size: 11px; color: var(--dim); margin-top: 2px; }

.list { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s, border-color 0.2s, background 0.2s,
    max-height 1s, padding 1s, margin 1s;
  max-height: 900px;
  overflow: hidden;
}
.card:hover { border-color: var(--line-hi); background: var(--card-hi); }
.card.selected { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 8px 30px rgba(217, 119, 6, 0.14); }
.card.nearest { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.card.nearest.selected { border-color: var(--amber); }
.card.entering { opacity: 0; transform: translateY(8px) scale(0.98); }
.card.leaving {
  opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -12px;
  transition: opacity 0.8s, max-height 1s 0.5s, padding 1s 0.5s, margin 1s 0.5s;
  pointer-events: none;
}

.card header { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: #fff; object-fit: contain; padding: 3px;
  border: 1px solid var(--line);
}
.logo.text {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4f6bdc, #7c5ce0);
  color: #fff; font: 700 12px "JetBrains Mono", monospace; padding: 0; border: 0;
}
.logo.text.mil { background: linear-gradient(135deg, #3f6212, #1a2e05); font-size: 18px; }
.ident { flex: 1; min-width: 0; }
.ident h3 { font: 700 17px "JetBrains Mono", ui-monospace, monospace; letter-spacing: -0.01em; }
.ident h3 small { font-size: 11px; color: var(--dim); font-weight: 500; }
.ident p { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where { text-align: right; flex: none; }
.dist { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nearest .dist { color: var(--green); }
.leaving .dist { color: var(--red); font-size: 14px; }
.dir { font-size: 12px; color: var(--muted); white-space: nowrap; }
.arrow { display: inline-block; color: var(--accent); font-weight: 800; transition: transform 0.8s; }

.route {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: 10px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 10px;
}
.route > p { grid-column: 1 / -1; font-size: 13px; }
.route .pending { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.45; } }
.ap { min-width: 0; }
.ap.to { text-align: right; }
.ap b { display: block; font: 700 20px "JetBrains Mono", monospace; letter-spacing: 0.02em; }
.ap span { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap small { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { text-align: center; }
.track small { font-size: 11px; color: var(--muted); }
.bar { position: relative; height: 3px; background: var(--line); border-radius: 2px; margin: 10px 4px 8px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius: 2px; }
.bar .pl { position: absolute; top: 50%; transform: translate(-50%, -52%) rotate(0deg); font-size: 15px; color: var(--amber); line-height: 1; }
.route.unconfirmed .bar i { background: var(--dim); }
.route.unconfirmed .track small { color: var(--amber); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats > div { min-width: 0; }
.stats label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.stats b { display: block; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats b.alert { color: var(--red); }
.stats small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up { color: var(--green); }
.down { color: #ea580c; }
.lvl { color: var(--muted); }

.aircraft { display: flex; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-start; flex-wrap: wrap; }
.photo { position: relative; flex: none; width: 150px; border-radius: 8px; overflow: hidden; display: block; background: #000; }
.photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo small {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9px; color: #e5e7eb; padding: 6px 5px 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aircraft dl { flex: 1; min-width: 160px; display: grid; gap: 4px; }
.aircraft dl > div { display: flex; gap: 8px; }
.aircraft dt { width: 82px; flex: none; color: var(--dim); font-size: 12px; }
.aircraft dd { font-weight: 500; min-width: 0; }
.aircraft dd small { color: var(--dim); font: 500 11px "JetBrains Mono", monospace; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.chip.mil { background: rgba(132, 204, 22, 0.15); color: #4d7c0f; }
.chip.alert { background: rgba(248, 113, 113, 0.18); color: var(--red); text-transform: capitalize; }
:root[data-theme="dark"] .chip.mil { color: #bef264; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip.mil { color: #bef264; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .photo { width: 100%; }
  .ap b { font-size: 17px; }
}

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty p + p { margin-top: 6px; font-size: 13px; }
.empty-radar {
  width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--green) 35%, transparent), transparent 60deg, transparent);
  animation: spin 4s linear infinite;
}

.credits { margin-top: auto; padding: 14px 16px 18px; font-size: 11px; color: var(--dim); border-top: 1px solid var(--line); }
.credits a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card, .plane-marker .rot, .arrow { transition: none; }
  .empty-radar, .status-dot, .you-marker span { animation: none; }
}

/* ---------- Modern look: layered over the base styles above ---------- */
:root { --blob-a: rgba(79, 70, 229, .18); --blob-b: rgba(6, 182, 212, .17); --glass: rgba(255, 255, 255, .76); --grad: linear-gradient(100deg, #4f46e5, #06b6d4 60%, #10b981); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --blob-a: rgba(99, 102, 241, .22); --blob-b: rgba(34, 211, 238, .13); --glass: rgba(18, 22, 36, .72); --grad: linear-gradient(100deg, #a5b4fc, #22d3ee 60%, #34d399); }
}
:root[data-theme="dark"] { --blob-a: rgba(99, 102, 241, .22); --blob-b: rgba(34, 211, 238, .13); --glass: rgba(18, 22, 36, .72); --grad: linear-gradient(100deg, #a5b4fc, #22d3ee 60%, #34d399); }
body { overflow-x: clip; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60vmax 40vmax at 6% -8%, var(--blob-a), transparent 70%), radial-gradient(52vmax 34vmax at 98% -6%, var(--blob-b), transparent 70%); }
.logo { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: -.035em; }
.logo * { color: transparent; }
.brand-mark { border-radius: 10px; }
.icon-btn, .home-link, .btn { border-radius: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.icon-btn:hover, .home-link:hover, .btn:hover { transform: translateY(-1px); }
.map { border-radius: 22px; overflow: hidden; box-shadow: 0 26px 54px -36px var(--accent); }
.aircraft { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.aircraft:hover { transform: translateY(-2px); border-color: var(--line-hi); box-shadow: 0 16px 32px -24px var(--accent); }
.dist { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.photo { border-radius: 12px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .aircraft, .icon-btn, .home-link, .btn { transition: none; } }
