:root {
  --bg0: #01040c;
  --bg1: #050b1a;
  --cyan: #00f6ff;
  --cyan2: #5cf7ff;
  --magenta: #ff2ee6;
  --violet: #8b5cff;
  --lime: #b8ff3c;
  --amber: #ffc14a;
  --text: #eaf6ff;
  --muted: #6f8bab;
  --panel: rgba(4, 12, 28, 0.78);
  --panel2: rgba(6, 16, 36, 0.92);
  --border: rgba(0, 246, 255, 0.32);
  --border2: rgba(255, 46, 230, 0.28);
  --glow: 0 0 30px rgba(0, 246, 255, 0.35);
  --glow-m: 0 0 28px rgba(255, 46, 230, 0.3);
  --font: "Orbitron", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --body: "Rajdhani", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--body);
}

.mono { font-family: var(--mono); }
.dim { color: var(--muted); opacity: 0.85; }
.neon-lime { color: var(--lime); text-shadow: 0 0 12px rgba(184, 255, 60, 0.55); }

/* ——— background layers ——— */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 70% 30%, rgba(180,240,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(900px 600px at 75% 15%, rgba(20, 40, 110, 0.45), transparent 70%),
    radial-gradient(700px 500px at 15% 80%, rgba(90, 20, 90, 0.25), transparent 70%),
    linear-gradient(180deg, #020617 0%, #01040c 100%);
  animation: starDrift 120s linear infinite;
}

@keyframes starDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-2%, -1%, 0); }
}

.bg-grid {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center 80%;
  mask-image: linear-gradient(to top, rgba 10%, black 55%);
  animation: gridMove 20s linear infinite;
  opacity: 0.55;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 0 60px; }
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(0, 246, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 25% at 80% 60%, rgba(255, 46, 230, 0.08), transparent 70%);
  animation: aurora 8s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { opacity: 0.7; filter: hue-rotate(0deg); }
  to { opacity: 1; filter: hue-rotate(20deg); }
}

#globeViz {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fx-scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 246, 255, 0.018) 3px
  );
  mix-blend-mode: screen;
}

.fx-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,246,255,0.04), transparent 18%, transparent 82%, rgba(255,46,230,0.05));
}

.fx-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 7;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ——— frame ——— */
.frame-edge {
  position: fixed;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,246,255,0.45), transparent);
}
.frame-edge.top, .frame-edge.bottom {
  left: 8%; right: 8%; height: 1px;
}
.frame-edge.top { top: 8px; }
.frame-edge.bottom { bottom: 8px; background: linear-gradient(90deg, transparent, rgba(255,46,230,0.4), transparent); }
.frame-edge.left, .frame-edge.right {
  top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,246,255,0.35), transparent);
}
.frame-edge.left { left: 8px; }
.frame-edge.right { right: 8px; }

.hud-corner {
  position: fixed;
  width: 56px;
  height: 56px;
  z-index: 16;
  pointer-events: none;
}
.hud-corner i {
  position: absolute;
  inset: 0;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(0,246,255,0.5));
}
.hud-corner.tl { top: 16px; left: 16px; }
.hud-corner.tl i { border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 16px; right: 16px; }
.hud-corner.tr i { border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 16px; left: 16px; }
.hud-corner.bl i { border-width: 0 0 2px 2px; border-color: var(--magenta); }
.hud-corner.br { bottom: 16px; right: 16px; }
.hud-corner.br i { border-width: 0 2px 2px 0; border-color: var(--magenta); }

.crosshair {
  position: fixed;
  left: 50%;
  top: 52%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  z-index: 8;
  pointer-events: none;
  opacity: 0.22;
}
.ch-h, .ch-v {
  position: absolute;
  background: rgba(0,246,255,0.55);
}
.ch-h { left: 0; right: 0; top: 50%; height: 1px; }
.ch-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.ch-ring {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(0,246,255,0.35);
  border-radius: 50%;
  animation: ringPulse 3.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ——— boot ——— */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at center, #071228 0%, #01040c 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-inner { width: min(420px, 86vw); text-align: center; }
.boot-logo {
  font-family: var(--font);
  font-size: 28px;
  letter-spacing: 0.35em;
  color: var(--cyan);
  text-shadow: var(--glow);
  margin-bottom: 28px;
}
.boot-logo span { color: var(--magenta); margin: 0 6px; }
.boot-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  min-height: 1.4em;
}
.boot-bar {
  height: 3px;
  background: rgba(0,246,255,0.12);
  border: 1px solid rgba(0,246,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.boot-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.15s linear;
}
.boot-meta {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* ——— topbar ——— */
.topbar {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(720px, calc(100vw - 40px));
  text-align: center;
  pointer-events: none;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.brand {
  font-family: var(--font);
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 0.28em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-glow {
  color: var(--cyan);
  text-shadow: var(--glow);
  font-weight: 700;
}
.brand-sep { color: var(--magenta); text-shadow: var(--glow-m); }
.brand-sub {
  color: rgba(234, 246, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.92em;
}
.subbrand {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.chip-mini {
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(0, 20, 40, 0.5);
  backdrop-filter: blur(8px);
}
.chip-mini.live {
  color: var(--lime);
  border-color: rgba(184, 255, 60, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip-mini.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.top-ticker {
  margin-top: 10px;
  height: 22px;
  overflow: hidden;
  border-top: 1px solid rgba(0,246,255,0.12);
  border-bottom: 1px solid rgba(0,246,255,0.12);
  background: linear-gradient(90deg, transparent, rgba(0,20,40,0.55), transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding: 3px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(20%); }
  to { transform: translateX(-100%); }
}

/* ——— search ——— */
.search-dock {
  position: fixed;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 32;
  width: min(460px, calc(100vw - 28px));
  pointer-events: auto;
}
.search-shell {
  position: relative;
  display: flex;
  align-items: center;
}
.search-shell input {
  width: 100%;
  background: linear-gradient(180deg, rgba(8,18,40,0.9), rgba(4,10,24,0.88));
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 18px 13px 44px;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(16px);
  box-shadow: var(--glow), inset 0 0 30px rgba(0,246,255,0.04);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-shell input:focus {
  border-color: var(--magenta);
  box-shadow: var(--glow-m), inset 0 0 30px rgba(255,46,230,0.06);
}
.search-shell .icon {
  position: absolute;
  left: 16px;
  color: var(--cyan);
  font-size: 14px;
  z-index: 1;
  text-shadow: var(--glow);
}
.search-deco {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.5;
}
.search-deco.l { left: -14px; }
.search-deco.r { right: -14px; border-color: var(--magenta); }

.search-results {
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
  display: none;
  background: var(--panel2);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--glow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.search-results.open { display: block; }
.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--body);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, padding-left 0.15s;
}
.search-results button:hover {
  background: linear-gradient(90deg, rgba(0,246,255,0.12), transparent);
  color: var(--cyan);
  padding-left: 18px;
}

/* ——— side stats ——— */
.side-stats {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 148px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 12px 10px;
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: inset 0 0 20px rgba(0,246,255,0.04);
}
.stat-h {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.stat-v {
  font-family: var(--font);
  font-size: 20px;
  color: var(--cyan);
  margin: 4px 0 8px;
  text-shadow: 0 0 14px rgba(0,246,255,0.35);
}
.stat-bar {
  height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 8px var(--cyan);
}
.stat-bar i.pulse-w { animation: barPulse 2s ease-in-out infinite; }
@keyframes barPulse {
  0%, 100% { width: 35% !important; }
  50% { width: 72% !important; }
}

.radar-box {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.radar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(0,246,255,0.3);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle, transparent 30%, rgba(0,246,255,0.05) 31%, transparent 32%),
    radial-gradient(circle, transparent 55%, rgba(0,246,255,0.05) 56%, transparent 57%),
    radial-gradient(circle at center, rgba(0,40,60,0.4), transparent 70%);
  box-shadow: inset 0 0 20px rgba(0,246,255,0.15), var(--glow);
}
.radar::before, .radar::after {
  content: "";
  position: absolute;
  background: rgba(0,246,255,0.15);
}
.radar::before { left: 0; right: 0; top: 50%; height: 1px; }
.radar::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba 280deg, rgba(0,246,255,0.35) 360deg);
  animation: sweep 3s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--magenta);
  border-radius: 50%;
  top: 28%;
  left: 62%;
  box-shadow: 0 0 8px var(--magenta);
  animation: blink 1.2s infinite;
}
.radar-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--cyan);
  opacity: 0.7;
}

.side-right {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  line-height: 1.9;
  background: var(--panel);
  border: 1px solid rgba(0,246,255,0.18);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.side-right span { color: var(--cyan); }
.sr-line {
  height: 1px;
  margin: 6px 0;
  background: linear-gradient(90deg, transparent, rgba(0,246,255,0.35));
}

/* ——— legend / origin ——— */
.legend {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 25;
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  max-width: 280px;
  line-height: 1.55;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.legend-title {
  color: var(--cyan);
  letter-spacing: 0.2em;
  font-size: 11px;
  margin-bottom: 6px;
}

.origin-bar {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 25;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 10px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  box-shadow: var(--glow);
}
.origin-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--magenta);
}
.origin-bar select {
  background: rgba(0,0,0,0.4);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 8px;
  font-family: var(--body);
  font-size: 14px;
  max-width: 150px;
  outline: none;
}
.origin-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 2s infinite;
}

/* ——— panel ——— */
.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100%;
  z-index: 40;
  background:
    linear-gradient(165deg, rgba(8, 18, 42, 0.97) 0%, rgba(2, 6, 16, 0.98) 100%);
  border-left: 1px solid var(--border);
  box-shadow:
    -24px 0 80px rgba(0, 0, 0, 0.55),
    inset 1px 0 0 rgba(255, 46, 230, 0.12),
    inset 0 0 60px rgba(0, 246, 255, 0.03);
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel.open { transform: translateX(0); }

.panel-scanline {
  pointer-events: none;
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(0,246,255,0.06), transparent);
  animation: panelScan 4.5s linear infinite;
  z-index: 1;
}
@keyframes panelScan {
  from { top: -120px; }
  to { top: 100%; }
}

.panel-header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(0, 246, 255, 0.12);
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,246,255,0.06), transparent);
}
.ph-top {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: blink 1.5s infinite;
}
.panel-header h2 {
  font-family: var(--font);
  font-size: 24px;
  letter-spacing: 0.08em;
  margin: 12px 0 4px;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0,246,255,0.25);
}
.panel-header .country {
  color: var(--magenta);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(255,46,230,0.25);
}
.coords {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.hex-row {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.hex-row i {
  width: 10px;
  height: 10px;
  background: rgba(0,246,255,0.15);
  border: 1px solid rgba(0,246,255,0.35);
  transform: rotate(45deg);
}
.hex-row i:nth-child(odd) {
  border-color: rgba(255,46,230,0.4);
  background: rgba(255,46,230,0.1);
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.close-btn span {
  position: absolute;
  left: 8px; right: 8px;
  top: 50%;
  height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.close-btn span:first-child { transform: rotate(45deg); }
.close-btn span:last-child { transform: rotate(-45deg); }
.close-btn:hover {
  border-color: var(--magenta);
}
.close-btn:hover span {
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 24px;
  position: relative;
  z-index: 2;
}
.panel-body::-webkit-scrollbar { width: 5px; }
.panel-body::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--magenta));
  border-radius: 3px;
}

.section {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 246, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(0, 30, 55, 0.45), rgba(10, 5, 30, 0.35));
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), transparent 70%);
}
.section h3 {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-num {
  color: var(--magenta);
  font-size: 10px;
  border: 1px solid rgba(255,46,230,0.35);
  padding: 2px 6px;
  letter-spacing: 0.1em;
}

.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.weather-main {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.temp {
  font-family: var(--font);
  font-size: 44px;
  color: var(--lime);
  line-height: 1;
  text-shadow: 0 0 20px rgba(184, 255, 60, 0.4);
}
.weather-desc { font-size: 16px; }

.chip {
  background: rgba(0, 246, 255, 0.05);
  border: 1px solid rgba(0, 246, 255, 0.16);
  padding: 10px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.chip .k {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.chip .v {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 46, 230, 0.4);
  color: var(--magenta);
  background: rgba(255, 46, 230, 0.08);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.tips { list-style: none; }
.tips li {
  position: relative;
  padding: 6px 0 6px 16px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tips li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.flight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 10px;
}
.flight-row:last-child { border-bottom: 0; }
.flight-route { font-size: 13px; color: var(--muted); }
.flight-price {
  font-family: var(--font);
  color: var(--lime);
  font-size: 15px;
  text-shadow: 0 0 12px rgba(184, 255, 60, 0.35);
  white-space: nowrap;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  color: #021018;
  background: linear-gradient(100deg, var(--cyan), #7af8ff 50%, #c4a0ff);
  border: 0;
  padding: 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 20px rgba(0,246,255,0.25);
  transition: filter 0.15s, transform 0.15s;
}
.btn.secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border);
  box-shadow: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.loading {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.loading::after {
  content: " ▌";
  animation: blink 0.8s infinite;
  color: var(--cyan);
}
.error { color: #ff6b9a; font-size: 14px; }

.panel-footer {
  padding: 10px 18px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  border-top: 1px solid rgba(0,246,255,0.1);
  text-align: center;
  opacity: 0.7;
  z-index: 2;
}

@media (max-width: 860px) {
  .side-stats, .side-right, .legend, .crosshair { display: none; }
  .origin-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
  }
  .panel { width: 100%; }
  .topbar { top: 16px; }
  .search-dock { top: 100px; }
}
