/* ==========================================================================
   Apollo Guidance Computer (AGC) DSKY Theme
   Authentic Apollo 11 Command & Lunar Module DSKY (Display & Keyboard)
   Cast anodized aluminum chassis, hex fasteners, electroluminescent (EL)
   phosphor green 7-segment digits, backlit yellow/green annunciator matrix,
   and tactile chunky black push-keys with large [PROCEED] key.
   ========================================================================== */

:root {
  --bg-space: #0c0f12;
  --bg-surface: #1e2329;
  --bg-surface-elevated: #282f37;
  --bg-panel-dark: #121518;
  --bg-control: #1a1e24;
  --bg-control-active: #232830;

  /* Apollo Cast Aluminum Chassis */
  --dsky-chassis-light: #525a66;
  --dsky-chassis-mid: #383f47;
  --dsky-chassis-dark: #23272d;
  --dsky-border-bevel-top: #697380;
  --dsky-border-bevel-bottom: #121518;

  /* Apollo EL Display (Phosphor Green Digits) */
  --el-green: #22c55e;
  --el-green-bright: #4ade80;
  --el-green-dim: #15803d;
  --el-bg: #07120a;
  --el-border: #132a1b;

  /* Apollo Backlit Yellow Annunciator Matrix Tiles */
  --dsky-yellow: #facc15;
  --dsky-yellow-text: #050600;
  --dsky-yellow-border: #eab308;
  --dsky-yellow-dim: #2e2808;
  --dsky-yellow-dim-text: #99831a;

  /* Apollo Chunky Black Keys */
  --dsky-key-bg: #15181c;
  --dsky-key-hover: #1f2329;
  --dsky-key-active: #0c0e10;
  --dsky-key-border-top: #38404a;
  --dsky-key-border-bottom: #08090b;
  --dsky-key-text: #f1f5f9;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --font-system: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', 'SF Mono', Menlo, Consolas, monospace;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 3px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-space);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

.hidden {
  display: none !important;
}

/* Base App Shell */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-space);
}

/* ==========================================================================
   Apollo AGC Panel Header (Cast Aluminum Chassis)
   ========================================================================== */
/* ==========================================================================
   Modern Frosted Glass Header (SF Pro Unified Typography)
   ========================================================================== */
.app-header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(14, 18, 25, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand .arnova-logo-mark {
  filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.5));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand:hover .arnova-logo-mark {
  transform: scale(1.06) rotate(4deg);
}

.brand-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

/* Modern Segmented Capsule Nav */
.app-top-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-nav-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  padding: 6px 18px;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.top-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Active Nav Capsule: Spotlight Glass Pill */
.top-nav-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Header Actions (Location Pill) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn.location-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  user-select: none;
}

.action-btn.location-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.action-btn.location-btn svg {
  color: #38bdf8;
}


/* ==========================================================================
   Multi-Page Viewport Architecture (Zero Overlap)
   ========================================================================== */
.pages-viewport {
  flex: 1;
  height: calc(100vh - 56px);
  position: relative;
  overflow: hidden;
  background: #000000;
}

.app-page {
  display: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.app-page.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 20px;
  height: 100%;
  overflow: hidden;
  animation: pageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.995);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-stage-main {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #080c10;
  border: 2px solid #161e27;
  border-top: 2px solid #283747;
  border-radius: 3px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  max-height: 100%;
  overflow: hidden !important;
  padding-right: 0;
  box-sizing: border-box;
}

.page-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Page 1: Dark Sky Haven Map Container */
.map-stage-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
}

/* ==========================================================================
   TI-81 Dot-Matrix LCD Sky Preview Control (Top-Right on Map)
   Authentic retro calculator chassis, matte dot-matrix LCD badge, zero glow
   ========================================================================== */
.map-sky-floating-container {
  display: none !important;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.map-sky-floating-container.hidden {
  display: none !important;
}

/* Apollo AGC DSKY Complication Bezel Button */
.ti81-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 5px 8px;
  background: linear-gradient(180deg, #3d444e 0%, #282e36 100%);
  border: 1.5px solid #48525f;
  border-top: 1.5px solid #637082;
  border-bottom: 2.5px solid #101317;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

.ti81-map-btn:hover {
  background: linear-gradient(180deg, #444c57 0%, #2d343d 100%);
  border-top-color: #728196;
  transform: translateY(-0.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.85);
}

.ti81-map-btn:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Apollo EL Phosphor Green Readout Badge */
.ti81-screen-badge {
  display: inline-block;
  background: #07120a;
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1.5px solid #14381e;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.15;
  white-space: nowrap;
}

/* Apollo AGC DSKY Cast Aluminum Placard */
.ti81-map-placard {
  position: relative;
  margin-top: 8px;
  width: 280px;
  background: linear-gradient(180deg, #383f47 0%, #24292f 100%);
  border: 1.5px solid #4a535f;
  border-top: 2px solid #667283;
  border-bottom: 3.5px solid #111417;
  border-radius: 5px;
  padding: 9px 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
  font-family: var(--font-system);
}

.ti81-map-placard.popup-hidden {
  display: none !important;
}

.ti81-placard-arrow {
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  background: #383f47;
  border-top: 2px solid #667283;
  border-left: 2px solid #667283;
  transform: rotate(45deg);
}

.ti81-placard-inner {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ti81-placard-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 2px 4px 2px;
  border-bottom: 1px solid #1a1e23;
}

/* Apollo Backlit Yellow Annunciator Tile */
.ti81-placard-tag {
  font-family: var(--font-system);
  font-size: 9.5px;
  font-weight: 800;
  color: #000000;
  background: #facc15;
  border: 1px solid #eab308;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 6px rgba(250, 204, 21, 0.3);
}

.ti81-close-btn {
  background: #191c21;
  border: 1px solid #333a44;
  color: #94a3b8;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.2;
}

.ti81-close-btn:hover {
  background: #252b33;
  color: #f87171;
  border-color: #556070;
}

/* Apollo EL Phosphor Green Screen Aperture */
.ti81-lcd-frame {
  background: #07120a;
  color: #cbd5e1;
  border: 1.5px solid #132a1b;
  border-radius: 3px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85);
}

.ti81-lcd-frame .ti81-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ti81-lcd-frame strong {
  color: #ffffff;
  font-weight: 700;
}

.ti81-lcd-frame span {
  color: #4ade80;
  font-weight: 700;
}

/* Apollo Chunky Black Push Key */
.ti81-key-row {
  margin-top: 2px;
}

.ti81-calc-btn {
  width: 100%;
  background: linear-gradient(180deg, #242930 0%, #121518 100%);
  color: #ffffff;
  border: 1px solid #2e343d;
  border-top: 1.5px solid #4f5865;
  border-bottom: 3px solid #060709;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 0;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.ti81-calc-btn:hover {
  background: linear-gradient(180deg, #2c323b 0%, #181c20 100%);
  border-top-color: #636f80;
  color: #ffffff;
}

.ti81-calc-btn:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Page 2: Sky Radar Stage */
.radar-page-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
}

.radar-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

#radarCanvasWrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

/* ==========================================================================
   Interactive Zoomable Dark Sky Map
   ========================================================================== */
#darkSkyMapContainer {
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
  overflow: hidden;
  position: relative;
}

.leaflet-tile {
  opacity: 1 !important;
}

.map-floating-card {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 330px;
  max-width: calc(100% - 32px);
  background: rgba(22, 22, 26, 0.90);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 400;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.map-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-card-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-card-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-blue);
}

.map-card-title-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.map-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.map-metric {
  display: flex;
  flex-direction: column;
}

.m-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.map-metric strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.text-green {
  color: var(--apple-green) !important;
}

.map-spot-unlocks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.map-card-actions .apple-button {
  font-size: 11.5px;
  padding: 8px 12px;
  white-space: nowrap;
}

.map-hint {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 400;
  white-space: nowrap;
}

/* Custom Map Marker Styling (Apple Pulsing Location Puck) */
.user-gps-pulse-marker {
  position: relative;
  width: 24px;
  height: 24px;
  cursor: grab;
}

.user-gps-pulse-marker:active {
  cursor: grabbing;
}

.gps-pulse-core {
  width: 15px;
  height: 15px;
  background: #007aff;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4.5px;
  left: 4.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

.user-gps-pulse-marker:hover .gps-pulse-core {
  transform: scale(1.18);
}

.gps-pulse-wave {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 122, 255, 0.5);
  background: rgba(0, 122, 255, 0.1);
  position: absolute;
  top: -7px;
  left: -7px;
  animation: pulseGps 2.2s infinite ease-out;
  pointer-events: none;
}

.gps-pulse-core {
  width: 14px;
  height: 14px;
  background: #0a84ff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.gps-pulse-wave {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(10, 132, 255, 0.4);
  background: transparent;
  position: absolute;
  top: -6px;
  left: -6px;
  animation: pulseGps 2s infinite ease-out;
}

@keyframes pulseGps {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.dark-beacon-marker {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 209, 88, 0.2);
  border: 1.5px solid #30d158;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 12px;
}

/* Leaflet Custom Overrides */
.leaflet-control-zoom {
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-zoom a {
  background: rgba(28, 28, 30, 0.85) !important;
  color: #fff !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(44, 44, 46, 0.95) !important;
}

.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.5) !important;
  color: var(--text-tertiary) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--text-secondary) !important;
}

/* Tactical Map HUD Tooltip */
.apple-map-tooltip {
  background: #0f141a !important;
  color: #8fa89b !important;
  border: 1.5px solid #1e2836 !important;
  border-top: 1.5px solid #2a3746 !important;
  border-radius: 2px !important;
  padding: 5px 9px !important;
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85) !important;
}

.apple-map-tooltip::before {
  border-top-color: #0f141a !important;
}

#skyRadarCanvas {
  max-width: 90vh;
  max-height: 70vh;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}

#skyRadarCanvas:active {
  cursor: grabbing;
}

#skyRadarCanvas.horizon-mode {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: unset !important;
  border-radius: 18px;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Full Max Screen Immersive Cosmic Sky Styles
   ========================================================================== */
.radar-page-container.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  background: #000000 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.radar-page-container.is-fullscreen .radar-toolbar {
  display: none !important;
}

.radar-page-container.is-fullscreen .radar-hero-focus-banner {
  display: none !important;
}

.radar-page-container.is-fullscreen .radar-hint {
  display: none !important;
}

/* ==========================================================================
   Hero Focus Banner: Apple Weather App & Big Earliest Stargazing Window
   ========================================================================== */
.radar-hero-focus-banner {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  background: rgba(10, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.focus-left {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.focus-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--apple-amber);
}

.focus-stargazing-time {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.focus-countdown-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

.focus-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.apple-button.hero-preview-btn {
  background: #ffcc00;
  color: #000000;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.apple-button.hero-preview-btn:hover {
  background: #ffe066;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.focus-weather-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 240px;
}

.weather-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.weather-temp-display {
  display: flex;
  align-items: flex-start;
}

.weather-temp-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #ffffff;
  line-height: 1;
}

.weather-temp-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.weather-condition-group {
  display: flex;
  flex-direction: column;
}

.weather-condition-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.weather-cloud-val {
  font-size: 12px;
  color: var(--text-secondary);
}

.weather-card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 8px;
}

.weather-detail-item {
  display: flex;
  flex-direction: column;
}

.weather-detail-item .detail-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-detail-item .detail-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .radar-hero-focus-banner {
    flex-direction: column;
    padding: 14px;
  }

  .focus-stargazing-time {
    font-size: 24px;
  }
}

.radar-page-container.is-fullscreen #radarCanvasWrapper {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.radar-page-container.is-fullscreen #skyRadarCanvas {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  aspect-ratio: unset !important;
}

/* ==========================================================================
   PAGE 2: LIVE SKY RADAR (RETRO AVIONICS FLIGHT CONSOLE - CONSISTENT WITH PAGE 1)
   ========================================================================== */
.fullscreen-top-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  z-index: 50;
  pointer-events: none;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-top-bar>* {
  pointer-events: auto;
}

/* ==========================================================================
   PAGE 2: LIVE SKY RADAR (APOLLO AGC DSKY AVIONICS HUD)
   ========================================================================== */
.fullscreen-top-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  z-index: 50;
  pointer-events: none;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-top-bar>* {
  pointer-events: auto;
}

/* ================= PAGE 3: CELESTIAL SKY DOME (APPLE SF PRO / VISIONOS GLASS) ================= */

/* Top-Left Location & Sky Mode Glass HUD Card */
.radar-hud-telemetry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(14, 18, 25, 0.90);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  min-width: 220px;
  max-width: 480px;
  user-select: none;
  box-sizing: border-box;
}

.radar-hud-title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Status Indicator: Pure Flat Colored Typography, Zero Box/Pill */
.radar-status-lamp {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none !important;
}

.radar-status-lamp.live {
  color: #94a3b8 !important;
}

.radar-status-lamp.preview {
  color: #fbbf24 !important;
  font-weight: 600 !important;
}

/* Top-Right Control Deck: Segmented Capsule Banks */
.radar-control-deck {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.radar-deck-bank {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 18, 25, 0.90);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  padding: 4px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.radar-bank-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  padding-left: 6px;
  text-transform: uppercase;
}

.radar-key-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Modern Segmented Control Pills */
.radar-deck-key {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 5px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: all 0.15s ease;
  user-select: none;
}

.radar-deck-key:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.radar-deck-key:active {
  transform: scale(0.97);
}

.radar-deck-key.active {
  background: #0a84ff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
}

.radar-deck-key .rdk-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  white-space: nowrap;
}

.radar-deck-key.active .rdk-label {
  color: #ffffff;
  font-weight: 600;
}

/* Return / Back to Map Key */
.radar-deck-key.return-key {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.radar-deck-key.return-key:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.radar-deck-key.return-key .rdk-label {
  color: #38bdf8;
  font-weight: 600;
  font-size: 10.5px;
}

/* Bottom Target Keypad Tray: Floating Apple Glass Dock */
.fullscreen-bottom-pills.radar-keypad-tray {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 50;
  background: rgba(14, 18, 25, 0.90);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  padding: 5px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.fullscreen-bottom-pills.radar-keypad-tray::-webkit-scrollbar {
  display: none;
}

.radar-keypad-bank {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rkb-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-right: 6px;
  margin-left: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rkp-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0 6px;
  flex-shrink: 0;
}

/* Smooth Segmented Pushers */
.rkp-btn {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 5px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rkp-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rkp-btn:active {
  transform: scale(0.97);
}

.rkp-btn.active {
  background: #0a84ff;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
}

.rkp-btn .rkp-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  text-transform: none;
}

.rkp-btn.active .rkp-text {
  color: #ffffff;
  font-weight: 600;
}

.cardinal-btn.highlight {
  background: rgba(191, 90, 242, 0.22);
  color: #d084f7;
  border-color: rgba(191, 90, 242, 0.45);
}

.cardinal-btn.highlight:hover {
  background: rgba(191, 90, 242, 0.35);
  color: #ffffff;
}

.radar-legend {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 22, 26, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-color.horizon {
  background: rgba(255, 255, 255, 0.4);
}

.legend-color.mid {
  background: rgba(255, 255, 255, 0.2);
}

.legend-color.zenith {
  background: var(--apple-blue);
}

.legend-color.milkyway {
  background: #ffd60a;
}

.legend-color.pass {
  background: var(--apple-green);
}

/* Radar Toolbar & Perspective Controls */
.radar-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px;
  z-index: 20;
}

.segmented-control.mini {
  padding: 3px;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-pill);
}

.segmented-control.mini .seg-btn {
  padding: 5px 12px;
  font-size: 11px;
}

.horizon-cardinals {
  display: flex;
  gap: 4px;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.horizon-cardinals::-webkit-scrollbar {
  display: none;
}

#radarFullscreenBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  height: 32px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
}

.cardinal-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.cardinal-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cardinal-btn.active {
  color: #fff;
  background: var(--apple-blue);
}

/* Dedicated Live Sky Overhead Inventory Card (Page 2 Sidebar) */
.radar-inventory-hero-card {
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.78) 0%, rgba(18, 18, 22, 0.82) 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
}

.radar-inventory-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-tertiary);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--apple-blue);
}

.hud-title-wrap h5 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.hud-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hud-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hud-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-primary);
}

.hud-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hud-pill .pill-dot.green {
  background: var(--apple-green);
  box-shadow: 0 0 6px var(--apple-green);
}

.hud-pill .pill-dot.amber {
  background: var(--apple-amber);
  box-shadow: 0 0 6px var(--apple-amber);
}

.hud-pill .pill-dot.blue {
  background: var(--apple-blue);
  box-shadow: 0 0 6px var(--apple-blue);
}

.hud-stargazing-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 6px 0 10px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hud-stargazing-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-window-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 214, 10, 0.18);
  color: var(--apple-amber);
  border: 1px solid rgba(255, 214, 10, 0.40);
  white-space: nowrap;
}

.hud-window-badge.active-darkness {
  background: rgba(50, 215, 75, 0.18);
  color: var(--apple-green);
  border-color: rgba(50, 215, 75, 0.40);
}

.hud-timing-text {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

.hud-twilight-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.twilight-step-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: 3px 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

.twilight-step-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.twilight-step-btn.active {
  background: rgba(10, 132, 255, 0.22);
  border-color: rgba(10, 132, 255, 0.60);
}

.twilight-step-btn.target-window {
  border-color: rgba(255, 214, 10, 0.35);
  background: rgba(255, 214, 10, 0.08);
}

.twilight-step-btn.target-window.active {
  background: rgba(255, 214, 10, 0.25);
  border-color: var(--apple-amber);
}

.twilight-step-btn .step-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.twilight-step-btn.active .step-label {
  color: var(--apple-blue);
}

.twilight-step-btn.target-window .step-label {
  color: var(--apple-amber);
}

.twilight-step-btn .step-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.twilight-step-arrow {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.hud-stargazing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.apple-button.mini-pill {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(10, 132, 255, 0.18);
  color: var(--apple-blue);
  border: 1px solid rgba(10, 132, 255, 0.4);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.apple-button.mini-pill.primary {
  background: rgba(255, 214, 10, 0.20);
  color: var(--apple-amber);
  border-color: rgba(255, 214, 10, 0.50);
}

.apple-button.mini-pill.primary:hover {
  background: var(--apple-amber);
  color: #000;
}

.apple-button.mini-pill:hover {
  background: var(--apple-blue);
  color: #fff;
}

.hud-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hud-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.hud-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.hud-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.hud-item:active {
  transform: scale(0.98);
}

.hud-item.selected {
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.4);
}

.hud-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.hud-item-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.hud-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.hud-item-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-item-sub {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-item-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 2px;
  flex-shrink: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.hud-item-badge.success {
  background: #0d2417;
  color: #10b981;
  border: 1px solid #065f46;
}

.hud-item-badge.bright {
  background: #241c0a;
  color: #f59e0b;
  border: 1px solid #78350f;
}

.hud-item-badge.warning {
  background: #24130a;
  color: #f97316;
  border: 1px solid #7c2d12;
}

.hud-item-badge.star {
  background: #102030;
  color: #60a5fa;
  border: 1px solid #1e3a5f;
}

.hud-item-badge.faint {
  background: #141b24;
  color: #8fa89b;
  border: 1px solid #1e2836;
}

.hud-item-badge.sun {
  background: #241c0a;
  color: #f59e0b;
  border: 1px solid #78350f;
}

.hud-item-badge.daylight-hidden {
  background: #0a0e13;
  color: #526375;
  border: 1px solid #161f28;
}

.hud-item-badge.pale-moon {
  background: #102030;
  color: #cbd5e1;
  border: 1px solid #1e3a5f;
}

/* ==========================================================================
   Sidebar: Predictions & Sighting Intelligence (Hardware Console Bay)
   ========================================================================== */
.sidebar-panel {
  background: #0f141a;
  border-left: 1.5px solid #1a222c;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  overflow-y: auto;
}

.quality-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quality-badge.high {
  background: #0d2417;
  color: #10b981;
  border: 1px solid #065f46;
}

.quality-badge.medium {
  background: #241c0a;
  color: #f59e0b;
  border: 1px solid #78350f;
}

/* NASA Control Room Push-Keys */
.apple-button {
  border: none;
  font-family: var(--font-system);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.1s ease;
  user-select: none;
}

.apple-button.primary {
  background: linear-gradient(180deg, #1e2c3f 0%, #0f1622 100%);
  color: #f8fafc;
  border: 1px solid #293d59;
  border-top: 1.5px solid #4a6791;
  border-bottom: 2.5px solid #05080e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.apple-button.primary:hover {
  background: linear-gradient(180deg, #263852 0%, #151e2c 100%);
  border-top-color: #6386b8;
  color: #ffffff;
  transform: translateY(-0.5px);
}

.apple-button.primary:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.apple-button.secondary {
  background: linear-gradient(180deg, #182333 0%, #0f1622 100%);
  color: #cbd5e1;
  border: 1px solid #24354c;
  border-top: 1.5px solid #364e70;
  border-bottom: 2.5px solid #05080e;
}

.apple-button.secondary:hover {
  background: linear-gradient(180deg, #202d40 0%, #131c2a 100%);
  color: #ffffff;
  border-top-color: #4b6a94;
}

.apple-button.secondary:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
}

.w-100 {
  width: 100%;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

/* Loading & Empty States */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 10px;
  color: #8fa89b;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #1e2836;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Modals (Apollo AGC DSKY Cast Aluminum Housing)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: opacity 0.2s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  width: 440px;
  max-width: 90vw;
  background: linear-gradient(180deg, #383f47 0%, #24292f 100%);
  border: 1.5px solid #4a535f;
  border-top: 2px solid #667283;
  border-bottom: 3.5px solid #111417;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  font-family: var(--font-system);
}

.modal-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #191d22;
  background: linear-gradient(180deg, #323942 0%, #22272d 100%);
}

.modal-header h3 {
  font-family: var(--font-system);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.close-btn {
  background: #191c21;
  border: 1px solid #333a44;
  border-top: 1.5px solid #485361;
  border-bottom: 2px solid #0d0f12;
  border-radius: 3px;
  color: #cbd5e1;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  transition: all 0.1s ease;
}

.close-btn:hover {
  background: #252b33;
  color: #f87171;
  border-color: #556070;
}

.modal-body {
  padding: 18px;
  background: #121518;
}

.modal-divider {
  display: flex;
  align-items: center;
  margin: 14px 0;
  text-align: center;
  color: #64748b;
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #232830;
}

.modal-divider span {
  padding: 0 8px;
}

.city-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.city-chip {
  background: linear-gradient(180deg, #242930 0%, #15181c 100%);
  border: 1px solid #2e343d;
  border-top: 1.5px solid #4a5462;
  border-bottom: 2.5px solid #08090b;
  color: #ffffff;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  user-select: none;
}

.city-chip:hover {
  background: linear-gradient(180deg, #2c323b 0%, #1c2025 100%);
  border-top-color: #5d697a;
  color: #ffffff;
  transform: translateY(-0.5px);
}

.city-chip:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
}

.coords-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.input-group input {
  background: #07120a;
  border: 1.5px solid #132a1b;
  border-radius: 3px;
  padding: 6px 8px;
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.input-group input:focus {
  border-color: #22c55e;
}

.input-group input:focus {
  border-color: #10b981;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .app-page.active {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow-y: auto;
    padding: 12px;
  }

  .page-stage-main {
    min-height: 480px;
    height: 480px;
  }

  .page-sidebar {
    height: auto;
    overflow-y: visible;
  }

  .map-floating-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 12px;
  }

  .top-nav-tab span {
    display: none;
    /* Icon-only on mobile */
  }

  .top-nav-tab {
    padding: 6px 10px;
  }

  .page-stage-main {
    min-height: 380px;
    height: 380px;
  }
}

/* ==========================================================================
   Apollo DSKY Astrometric Inspector & Spot Selector Chassis
   ========================================================================== */
.clarity-selector-card {
  background: linear-gradient(180deg, #383f47 0%, #24292f 100%);
  border: 1.5px solid #4a535f;
  border-top: 2px solid #667283;
  border-bottom: 3.5px solid #111417;
  border-radius: 5px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Spot Type Segmented Control (Open Country Spot vs Scenic Landmark) */
.spot-type-segment-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #191d22;
}

.spot-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.spot-type-eyebrow {
  font-family: var(--font-system);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #000000;
  background: #facc15;
  border: 1px solid #eab308;
  padding: 2px 6px;
  border-radius: 2px;
}

.spot-type-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.spot-type-hint.warning {
  color: #facc15;
}

.spot-type-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #14171b;
  border-radius: 4px;
  padding: 3px;
  border: 1.5px solid #23272d;
}

.spot-seg-btn {
  background: linear-gradient(180deg, #242930 0%, #15181c 100%);
  border: 1px solid #2e343d;
  border-top: 1.5px solid #4a5462;
  border-bottom: 2.5px solid #08090b;
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-family: var(--font-system);
  text-align: left;
  transition: all 0.1s ease;
  user-select: none;
}

.spot-seg-btn:hover {
  background: linear-gradient(180deg, #2c323b 0%, #1c2025 100%);
  border-top-color: #5d697a;
  color: #ffffff;
}

/* Active Segment: Backlit Apollo Yellow Annunciator Tile */
.spot-seg-btn.active {
  background: #facc15;
  border: 1px solid #eab308;
  color: #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 8px rgba(250, 204, 21, 0.4);
}

.spot-seg-btn.active svg {
  color: #000000 !important;
}

.spot-seg-btn svg {
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.1s ease;
}

.spot-seg-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.spot-seg-title {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-seg-sub {
  font-size: 9.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-seg-btn.active .spot-seg-sub {
  color: #2b2608;
  font-weight: 700;
}

.clarity-target-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  background: #07120a;
  color: #4ade80;
  border: 1px solid #14381e;
  white-space: nowrap;
}

/* Accessibility Status Badges */
.access-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.access-badge.badge-open {
  background: rgba(48, 209, 88, 0.14);
  color: var(--apple-green);
  border: 0.5px solid rgba(48, 209, 88, 0.32);
}

.access-badge.badge-landmark {
  background: rgba(255, 214, 10, 0.14);
  color: var(--apple-amber);
  border: 0.5px solid rgba(255, 214, 10, 0.32);
}

.access-badge.mini {
  font-size: 9px;
  padding: 1.5px 6px;
}

.dh-header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.clarity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.clarity-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-tertiary);
}

.clarity-target-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(10, 132, 255, 0.12);
  color: var(--apple-blue);
  border: 0.5px solid rgba(10, 132, 255, 0.3);
  white-space: nowrap;
}

.clarity-slider-container {
  display: flex;
  flex-direction: column;
  padding: 4px 0 2px 0;
}

.apple-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.6) 0%, rgba(48, 209, 88, 0.6) 50%, rgba(191, 90, 242, 0.7) 100%);
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.apple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.apple-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.apple-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.apple-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

/* ==========================================================================
   Apollo Guidance Computer (AGC) DSKY Haven Telemetry Chassis
   ========================================================================== */
.dark-haven-hero-card {
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #383f47 0%, #24292f 100%);
  border: 1.5px solid #4a535f;
  border-top: 2px solid #667283;
  border-bottom: 3.5px solid #111417;
  border-radius: 5px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  overflow: hidden !important;
  box-sizing: border-box;
}

.dh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #1a1e23;
  padding-bottom: 5px;
}

/* Apollo Yellow Backlit Annunciator Tile */
.dh-eyebrow {
  font-family: var(--font-system);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #facc15;
  color: #000000;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid #eab308;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 6px rgba(250, 204, 21, 0.3);
}

.access-badge {
  font-family: var(--font-system);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
  background: #4ade80;
  color: #052e16;
  border: 1px solid #22c55e;
  text-transform: uppercase;
}

.dh-title-group h3 {
  font-family: var(--font-system);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Recessed Apollo EL Display Pocket */
.dh-distance-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: #07120a;
  border: 1.5px solid #132a1b;
  border-radius: 3px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.dh-distance-row .dh-lbl {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.dh-dot {
  color: #1a4228;
}

.dh-gain-val {
  color: #4ade80;
  font-weight: 800;
}

/* Master Primary CTA (Iconic Apollo AGC DSKY [PROCEED] Key) */
.dh-actions-prominent {
  display: flex;
  align-items: center;
  width: 100%;
}

.haven-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 35px;
  border-radius: 4px;
  font-family: var(--font-system);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  box-sizing: border-box;
}

.haven-cta-btn.primary-cta {
  flex: 1;
  width: 100%;
  background: linear-gradient(180deg, #242930 0%, #121518 100%);
  color: #ffffff;
  border: 1px solid #2e343d;
  border-top: 1.5px solid #5a6677;
  border-bottom: 3.5px solid #060709;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.haven-cta-btn.primary-cta:hover {
  background: linear-gradient(180deg, #2c323b 0%, #181c20 100%);
  border-top-color: #717f94;
  color: #ffffff;
  transform: translateY(-0.5px);
}

.haven-cta-btn.primary-cta:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   Apollo DSKY Radius Push-Keys
   ========================================================================== */
.dh-range-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 8px;
}

.range-cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 36px;
  border-radius: 4px;
  font-family: var(--font-system);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #242930 0%, #15181c 100%);
  color: #cbd5e1;
  border: 1px solid #2e343d;
  border-top: 1.5px solid #4a5462;
  border-bottom: 2.5px solid #08090b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  box-sizing: border-box;
  padding: 0 4px;
  white-space: nowrap;
}

.range-cta-btn:hover {
  background: linear-gradient(180deg, #2c323b 0%, #1c2025 100%);
  border-top-color: #5d697a;
  color: #ffffff;
  transform: translateY(-0.5px);
}

.range-cta-btn:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.range-cta-btn.active {
  background: #07120a;
  color: #4ade80;
  border: 1.5px solid #22c55e;
  border-top: 2px solid #4ade80;
  border-bottom: 2.5px solid #14532d;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(34, 197, 94, 0.35);
  transform: translateY(1px);
}

/* ==========================================================================
   Apollo AGC DSKY Guidance Console (Cast Aluminum Chassis)
   ========================================================================== */
.ti81-calc-console {
  margin-top: 8px;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #383f47 0%, #24292f 100%);
  border: 1.5px solid #4a535f;
  border-top: 2px solid #667283;
  border-bottom: 3.5px solid #111417;
  border-radius: 5px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  user-select: none;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.ti81-bezel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 5px;
  background: linear-gradient(180deg, #323942 0%, #22272d 100%);
  border-bottom: 1px solid #191d22;
}

.ti81-brand-text {
  font-family: var(--font-system);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

/* Apollo EL Phosphor Green Screen Window */
.ti81-lcd-screen {
  margin: 7px 10px;
  background: #07120a;
  border: 1.5px solid #132a1b;
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ti81-screen-grid {
  display: none;
}

.ti81-screen-glare {
  display: none;
}

/* In-Screen Digital Readout Lines */
.ti81-lcd-line {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.ti81-prompt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  width: 48px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Line 1 Selected Range Badge */
.ti81-lcd-selected-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #0d2114;
  color: #4ade80;
  border: 1px solid #1f5930;
  padding: 2px 8px;
  border-radius: 2px;
  line-height: 1.2;
}

/* In-Screen Annunciator Mode Pushers */
.ti81-lcd-btn {
  font-family: var(--font-system);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #121519;
  border: 1px solid #232830;
  border-radius: 3px;
  padding: 2.5px 8px;
  cursor: pointer;
  transition: all 0.1s ease;
  line-height: 1.2;
}

.ti81-lcd-btn:hover {
  background: #1c2128;
  color: #ffffff;
}

/* Active Mode: Backlit Apollo Yellow Annunciator Tile */
.ti81-lcd-btn.active {
  background: #facc15;
  color: #000000;
  border: 1px solid #eab308;
  font-weight: 800;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.4);
}

/* Line 3: Ground Route Details */
.ti81-route-line {
  align-items: flex-start;
  padding: 1px 0;
}

.ti81-lcd-route-desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Line 4: Destination & Real Road Distance / Time */
.ti81-site-line {
  padding-top: 4px;
  border-top: 1px solid #142a1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ti81-lcd-site-name {
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ti81-lcd-site-dist {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  background: #0d2114;
  border: 1px solid #1f5930;
  padding: 2px 8px;
  border-radius: 2px;
}

/* Apollo DSKY Chunky Black Push-Key Bay */
.ti81-keypad-row {
  display: flex;
  gap: 7px;
  background: #14171b;
  border-top: 1.5px solid #23272d;
  padding: 7px 10px;
  box-sizing: border-box;
}

.ti81-calc-key {
  flex: 1;
  height: 36px;
  background: linear-gradient(180deg, #242930 0%, #15181c 100%);
  color: #cbd5e1;
  border: 1px solid #2e343d;
  border-top: 1.5px solid #4a5462;
  border-bottom: 2.5px solid #08090b;
  border-radius: 4px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  box-sizing: border-box;
  font-family: var(--font-system);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ti81-calc-key:hover {
  background: linear-gradient(180deg, #2c323b 0%, #1c2025 100%);
  border-top-color: #5d697a;
  color: #ffffff;
  transform: translateY(-0.5px);
}

.ti81-calc-key:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Active Key: Apollo EL Phosphor Green Backlit */
.ti81-calc-key.active {
  background: #07120a;
  color: #4ade80;
  border: 1.5px solid #22c55e;
  border-top: 2px solid #4ade80;
  border-bottom: 2.5px solid #14532d;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(34, 197, 94, 0.35);
  transform: translateY(1px);
}

.ti81-key-txt {
  font-family: 'Share Tech Mono', -apple-system, BlinkMacSystemFont, monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.15;
}

/* ==========================================================================
   Live Stargazing Conditions Header & Telemetry Grid (Uncluttered 2-Column Dashboard)
   ========================================================================== */
.factors-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  margin-top: 4px;
}

.fsh-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.fsh-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1.5px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.1;
}

.fsh-badge.go {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.fsh-badge.hold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.fsh-badge.nogo {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* Informative Context Reason & Timeline Bar */
.fsh-reason-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  margin-top: 1px;
  margin-bottom: 2px;
}

.fsh-reason-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  flex: 1;
}

.fsh-countdown {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

/* ==========================================================================
   Apollo AGC DSKY Annunciator Matrix & Telemetry Grid
   ========================================================================== */
.retro-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 8px;
  background: linear-gradient(180deg, #323942 0%, #20252b 100%);
  border: 1.5px solid #454f5c;
  border-top: 1.5px solid #5d6a7b;
  border-bottom: 2.5px solid #0f1215;
  border-radius: 5px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  margin-top: 8px;
}

.telemetry-tile {
  background: linear-gradient(180deg, #272d34 0%, #1a1e23 100%);
  border: 1px solid #363e48;
  border-top: 1px solid #4a5563;
  border-bottom: 2px solid #0c0e11;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
  transition: all 0.12s ease;
  user-select: none;
}

.telemetry-tile:hover {
  background: linear-gradient(180deg, #2e353e 0%, #1e2329 100%);
  border-top-color: #5b6879;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tile-label {
  font-family: var(--font-system);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Apollo Annunciator Tile Status Lamps */
.tile-status {
  font-family: var(--font-system);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1.5px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1.1;
  box-sizing: border-box;
}

.tile-status.go {
  background: #4ade80;
  color: #052e16;
  border: 1px solid #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
}

.tile-status.hold {
  background: #facc15;
  color: #000000;
  border: 1px solid #eab308;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.4);
}

.tile-status.nogo {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #b91c1c;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* Apollo EL Phosphor Green Subdial Window */
.tile-calc-screen {
  background: #07120a;
  border: 1.5px solid #132a1b;
  border-radius: 3px;
  padding: 2px 8px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.tile-calc-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4ade80;
  text-shadow: none !important;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}

/* Sky Brightness Contrast Card */
.comparison-card {
  background: rgba(24, 24, 28, 0.65);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comp-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-tertiary);
}

.comp-gain-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--apple-green);
  background: rgba(48, 209, 88, 0.12);
  border: 0.5px solid rgba(48, 209, 88, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comp-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comp-col.city {
  border-right: 0.5px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
}

.comp-col.city strong {
  font-size: 12px;
  color: #ff453a;
  font-weight: 600;
}

.comp-col.haven strong {
  font-size: 12px;
  color: var(--apple-green);
  font-weight: 600;
}

.comp-col small {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.comp-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Tip Icon Wrap */
.tip-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Header badge icon wrapper */
.badge-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dark-sky-icon {
  stroke-width: 1.8;
}

/* ==========================================================================
   Precision Location & Search Bar (50-100m Accuracy System)
   ========================================================================== */
.location-modal-card {
  width: 500px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-subtitle {
  font-size: 11px;
  color: var(--apple-blue);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gps-status-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: -4px;
  margin-bottom: 12px;
}

/* Modal Search Bar */
.modal-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: all 0.2s ease;
}

.modal-search-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.modal-search-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-system);
  font-size: 13px;
  padding: 10px 8px;
  width: 100%;
  outline: none;
}

.modal-search-wrap .search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Apollo AGC DSKY Sidebar Search & GPS Module */
.map-search-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  top: auto;
  left: auto;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #383f47 0%, #24292f 100%);
  border: 1.5px solid #4a535f;
  border-top: 2px solid #667283;
  border-bottom: 2.5px solid #111417;
  border-radius: 5px;
  padding: 3px 5px 3px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 6px;
  height: 38px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.map-search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px;
  background: #07120a;
  border: 1.5px solid #132a1b;
  border-radius: 3px;
  padding: 0 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.search-prompt-prefix {
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  user-select: none;
}

.map-search-input-wrap input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 0;
  width: 100%;
  outline: none;
  text-transform: uppercase;
}

.map-search-input-wrap input::placeholder {
  color: #4b6353;
  text-transform: uppercase;
  font-family: var(--font-system);
}

.sidebar-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #242930 0%, #15181c 100%);
  border: 1px solid #2e343d;
  border-top: 1.5px solid #4a5462;
  border-bottom: 2.5px solid #08090b;
  color: #ffffff;
  border-radius: 4px;
  padding: 5px 11px;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.1s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar-locate-btn:hover {
  background: linear-gradient(180deg, #25364d 0%, #141f2e 100%);
  border-top-color: #6085b8;
  color: #7dd3fc;
  transform: translateY(-0.5px);
}

.sidebar-locate-btn:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.sidebar-locate-btn .btn-pip {
  font-size: 7px;
  color: #38bdf8;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.search-clear-btn:hover {
  color: #ef4444;
}

.search-clear-btn:hover {
  color: #fff;
}

.search-gps-btn {
  background: transparent;
  border: none;
  color: var(--apple-blue);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-gps-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.search-gps-btn.spinning svg {
  animation: spin 0.8s linear infinite;
}

.map-location-toast {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  background: rgba(14, 18, 25, 0.94);
  border: 1px solid rgba(10, 132, 255, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(10, 132, 255, 0.25);
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 18px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.map-location-toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
}

/* 3-Line Sleek Stargazing Board (Same Size for All Spots, Zero Yellow) */
/* ==========================================================================
   Telescope Vector Destination Pin & Offset Sleek Cards (Zero Yellow, Zero Glow)
   ========================================================================== */
.destination-pin-wrapper {
  position: relative;
  width: 32px;
  height: 42px;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.destination-pin-body {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #1976d2;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.destination-pin-wrapper.active .destination-pin-body {
  background: #0284c7;
  transform: rotate(-45deg) scale(1.08);
}

.destination-pin-wrapper:hover .destination-pin-body {
  transform: rotate(-45deg) scale(1.15);
}

.destination-pin-icon {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.destination-pin-icon svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.destination-pin-shadow {
  width: 14px;
  height: 5px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  margin-top: 3px;
}

/* Offset Floating Sleek Board (Side by side with pin, fully off the route) */
.offset-spot-board {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  pointer-events: auto;
}

.offset-spot-board.side-right {
  left: 36px;
}

.offset-spot-board.side-left {
  right: 36px;
}

.offset-spot-board.side-top-left {
  bottom: 24px;
  right: 28px;
  top: auto;
  transform: none;
}

.stargaze-board-3line,
.sleek-board-3line {
  width: 188px;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 9px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  transition: transform 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.destination-pin-wrapper.active .sleek-board-3line {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

.destination-pin-wrapper:hover .sleek-board-3line {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Line 1: Score & Travel Time */
.sg-line-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sg-score {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sg-score-lbl {
  font-size: 9px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sg-time {
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  font-size: 10.5px;
}

.sg-dist {
  font-size: 10px;
  color: #64748b;
}

/* Line 2: Place Name (Wrapped naturally, no ellipsis) */
.sg-line-2-place {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.25;
}

/* Line 3: Actions */
.sg-line-3-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5px;
  margin-top: 1px;
}

.btn-stargaze-now {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 6px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease;
  pointer-events: auto;
}

.btn-stargaze-now:hover {
  background: #1d4ed8;
}

.destination-pin-wrapper:not(.active) .btn-stargaze-now {
  background: rgba(37, 99, 235, 0.78);
}

.btn-google-maps {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 5px 4px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  pointer-events: auto;
}

.btn-google-maps:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

/* Board Stem & Ground Pin */
.sg-board-stem {
  width: 1.5px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.sg-ground-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.75);
}

.stargaze-board-marker:not(.active-board) .sg-ground-dot {
  background: #64748b;
  box-shadow: none;
}

/* Autocomplete Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(26, 26, 30, 0.96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.search-dropdown.hidden {
  display: none;
}

.search-result-item {
  padding: 10px 14px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  transition: background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(10, 132, 255, 0.18);
}

.search-result-item strong {
  font-size: 12.5px;
  color: #fff;
  font-weight: 500;
}

.search-result-item small {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Map Rooftop Pin Tip */
.map-pin-tip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  background: rgba(20, 20, 24, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.map-pin-tip svg {
  color: var(--apple-blue);
  flex-shrink: 0;
}

/* Hyderabad Chips styling */
.hyderabad-chips .city-chip {
  background: rgba(10, 132, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.22);
}

.hyderabad-chips .city-chip:hover {
  background: rgba(10, 132, 255, 0.2);
  border-color: var(--apple-blue);
}

/* ============================================================
   ORBITAL 3D GLOBE LANDING PAGE & CINEMATIC DIVE
   ============================================================ */
.landing-globe-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #000000 url('assets/interstellar_dawn_horizon_clean.jpg') no-repeat center bottom;
  background-size: cover;
  z-index: 1200;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease-out;
}

.landing-globe-container.fading {
  opacity: 0;
  pointer-events: none;
}

.landing-globe-container.swoosh-hidden {
  display: none !important;
}

#globeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#globeCanvas:active {
  cursor: grabbing;
}

/* Atmospheric Swoosh Airglow Veil (Whisper-thin, natural atmospheric condensation veil) */
.atmosphere-swoosh-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.40) 0%, rgba(200, 225, 255, 0.16) 45%, rgba(10, 14, 22, 0.25) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease-out;
  z-index: 518;
}

.atmosphere-swoosh-flash.active {
  opacity: 0.50;
}

/* Top-Left Brand Anchor: ARNOVA */
.globe-top-left-brand {
  position: absolute;
  top: 36px;
  left: 44px;
  z-index: 520;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  user-select: none;
  transition: opacity 0.4s ease;
}

.globe-top-left-brand.fading-out {
  opacity: 0;
  pointer-events: none;
}

.globe-brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
  line-height: 1;
  text-shadow: none !important;
}

/* Floating Apple Spotlight Interface */
.globe-hero-card {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 640px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  z-index: 510;
  box-shadow: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-hero-card.fading-out {
  opacity: 0;
  transform: translate(-50%, -24px);
  pointer-events: none;
}

.globe-lead-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #60a5fa;
  letter-spacing: 0.01em;
  margin: 0 0 8px 0;
  text-shadow: none !important;
}

.globe-lead-header {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

/* Floating Apple Frosted Spotlight Capsule */
.globe-search-box {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
}

.globe-search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 5px 6px 5px 18px;
  height: 54px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-search-input-wrap:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.globe-search-input-wrap:focus-within {
  background: rgba(20, 24, 32, 0.88);
  border-color: rgba(10, 132, 255, 0.65);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 3.5px rgba(10, 132, 255, 0.25);
}

.globe-search-icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-right: 12px;
  transition: color 0.2s ease;
}

.globe-search-input-wrap:focus-within .globe-search-icon {
  color: #0a84ff;
}

.globe-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.globe-search-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Apple Native Pill Button */
.globe-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0a84ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0 18px;
  height: 42px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.globe-gps-btn:hover {
  background: #0077ed;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-0.5px);
}

.globe-gps-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.globe-gps-btn.locating {
  opacity: 0.7;
  pointer-events: none;
}

/* Globe Search Dropdown (Apple Frosted Glass Menu) */
.globe-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(25, 30, 40, 0.82);
  backdrop-filter: blur(45px) saturate(200%);
  -webkit-backdrop-filter: blur(45px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 550;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.globe-search-item {
  padding: 11px 16px;
  text-align: left;
  border-radius: 12px;
  border-bottom: none;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.globe-search-item:last-child {
  margin-bottom: 0;
}

.globe-search-item:hover {
  background: rgba(10, 132, 255, 0.22);
}

.globe-search-item strong {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.globe-search-item small {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* Floating Glass Quick Jump Chips */
.globe-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.globe-chip {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-apple);
}

.globe-chip:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.globe-skip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: color var(--duration-fast) var(--ease-apple);
}

.globe-skip-link:hover {
  color: #ffffff;
}

/* Drag to rotate hint */
.globe-drag-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 505;
}

.globe-drag-hint svg {
  color: var(--apple-blue);
}

/* Poetic Atmospheric Descent Telemetry HUD (Zero Glow) */
.globe-descent-hud {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 525;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 44px;
  background: rgba(14, 18, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none !important;
  border-radius: 28px;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-descent-hud.hidden {
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.96);
  pointer-events: none;
}

.descent-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-pill);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  box-shadow: none !important;
  text-shadow: none !important;
  margin-bottom: 16px;
}

.descent-hierarchy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none !important;
}

.descent-hierarchy-breadcrumbs .crumb {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
}

.descent-hierarchy-breadcrumbs .crumb.active {
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: none !important;
  border-bottom: 2px solid #FFFFFF;
}

.descent-hierarchy-breadcrumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}

.descent-location-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", -apple-system, sans-serif;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: none !important;
  /* Zero glow */
  line-height: 1.1;
  margin-bottom: 10px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.descent-location-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  text-shadow: none !important;
  /* Zero glow */
  transition: opacity 0.35s ease;
}

/* Return to Orbit Button in Dark Sky Map Search Bar */
.search-globe-btn {
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-apple);
  margin-left: 2px;
}

.search-globe-btn:hover {
  color: var(--apple-blue);
  background: rgba(10, 132, 255, 0.12);
}

/* ==========================================================================
   Page 2 Floating Compact Sidebar (Thin 280px Column, Zero Emojis, Map Below)
   ========================================================================== */
#pageDarkSky.app-page.active {
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#pageDarkSky .page-stage-main {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#pageDarkSky .map-stage-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#pageDarkSky .page-sidebar {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 365px;
  max-width: calc(100vw - 32px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: auto;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  pointer-events: auto;
  box-sizing: border-box;
}

.sidebar-search-box {
  position: relative;
  width: 100%;
  margin-bottom: 0px;
  flex-shrink: 0;
}

.sidebar-search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(14, 18, 25, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 3px 4px 3px 12px;
  height: 38px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.sidebar-search-input-wrap:focus-within {
  background: rgba(18, 22, 28, 0.98);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.sidebar-search-icon {
  color: #64748b;
  flex-shrink: 0;
  margin-right: 8px;
}

.sidebar-search-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12.5px;
  color: #f1f5f9;
  padding: 0 2px;
}

.sidebar-search-input-wrap input::placeholder {
  color: #64748b;
  font-size: 12px;
}

.sidebar-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0 10px;
  height: 30px;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.sidebar-gps-btn:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Stargazing Conditions & Decision Card Container (Floating Matte Console) */
.stargazing-conditions-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: rgba(14, 18, 25, 0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  color: #cbd5e1;
  box-sizing: border-box;
}

/* Section 1: Optimal Stargazing Window Card (Clean Borderless Section) */
.optimal-window-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.optimal-window-card.unfavorable {
  background: transparent;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.ow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ow-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ow-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  flex-shrink: 0;
}

.ow-status-dot.active {
  background: #10b981;
}

.ow-status-dot.unfavorable {
  background: #ef4444;
}

.ow-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.ow-badge {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0;
  background: transparent;
  border: none;
  color: #94a3b8;
  line-height: 1;
  flex-shrink: 0;
}

.ow-badge.active,
.ow-badge.optimal {
  background: transparent;
  border: none;
  color: #34d399;
}

.ow-badge.unfavorable,
.ow-badge.poor {
  background: transparent;
  border: none;
  color: #f87171;
}

.ow-badge.moderate,
.ow-badge.hold {
  background: transparent;
  border: none;
  color: #fbbf24;
}

.ow-time-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
}

.ow-primary-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ow-condition-inline {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
}

.ow-condition-inline::before {
  content: "·";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.ow-timeline-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.ow-bar-fill {
  height: 100%;
  background: #38bdf8;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.ow-bar-fill.unfavorable {
  background: #ef4444;
}

.ow-meta-note {
  font-size: 10px;
  line-height: 1.4;
  color: #94a3b8;
  font-weight: 400;
}

.ow-next-opening {
  margin-top: 4px;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.ow-next-label {
  color: #94a3b8;
  font-weight: 500;
}

.ow-next-val {
  color: #38bdf8;
  font-weight: 600;
}

/* Section 2: Composite Score Header */
.score-parameters-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 0 4px 0;
  gap: 8px;
}

.sp-header-left {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

.sp-calc-note {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.25;
}

.sp-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.sp-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: 1;
  flex-shrink: 0;
}

.sp-sub.unfavorable,
.sp-sub.poor,
.sp-sub.caution {
  color: #f87171 !important;
  background: transparent !important;
  border: none !important;
}

.sp-sub.optimal,
.sp-sub.go {
  color: #34d399 !important;
  background: transparent !important;
  border: none !important;
}

.sp-sub.moderate,
.sp-sub.hold {
  color: #fbbf24 !important;
  background: transparent !important;
  border: none !important;
}

/* Factors Data Table - Clean Apple SF Pro Table Format (Single Status, Balanced) */
.factors-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  margin-top: 4px;
  table-layout: fixed;
}

.factors-table thead th {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
  padding: 4px 6px 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.factors-table thead th.th-factor {
  width: 28%;
}

.factors-table thead th.th-detail {
  width: 32%;
}

.factors-table thead th.th-val {
  width: 22%;
  text-align: right;
  padding-right: 8px;
}

.factors-table thead th.th-rating {
  width: 18%;
  text-align: right;
  padding-right: 2px;
}

.factor-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.12s ease;
}

.factor-row:last-child {
  border-bottom: none;
}

.factor-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.factors-table td {
  padding: 7px 6px 7px 2px;
  vertical-align: middle;
}

/* Col 1: Factor */
.td-factor {
  width: 25%;
  vertical-align: middle;
}

.factor-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 10.5px;
  white-space: nowrap;
}

.factor-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Col 2: Status / Sub-detail (Natural Text Wrap, No Truncation, No Ellipses) */
.td-detail {
  width: 42%;
  vertical-align: middle;
}

.param-sub-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  color: #94a3b8;
  white-space: normal;
  line-height: 1.35;
  display: block;
}

/* Col 3: Numerical Value & Meter Bar */
.td-val {
  width: 17%;
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
  vertical-align: middle;
}

.param-main-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.1;
}

.param-meter {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 3px;
}

.param-meter-bar {
  height: 100%;
  background: #38bdf8;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.param-meter-bar.unfavorable {
  background: #ef4444;
}

/* Col 4: Flat Rating */
.td-rating {
  width: 16%;
  text-align: right;
  padding-right: 2px;
  white-space: nowrap;
  vertical-align: middle;
}

.param-grade {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8;
  display: inline-block;
  line-height: 1;
}

.param-grade.go,
.param-grade.optimal {
  color: #34d399 !important;
  background: transparent !important;
  border: none !important;
}

.param-grade.hold,
.param-grade.moderate {
  color: #fbbf24 !important;
  background: transparent !important;
  border: none !important;
}

.param-grade.caution,
.param-grade.poor,
.param-grade.unfavorable {
  color: #f87171 !important;
  background: transparent !important;
  border: none !important;
}

/* Severe Weather & Unfavorable Stargazing Banner on Map Stage */
.weather-alert-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(20, 14, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 7px 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  max-width: 80%;
  box-sizing: border-box;
}

.weather-alert-banner.hidden {
  display: none !important;
}

.wab-icon-wrap {
  color: #f87171;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.wab-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wab-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fca5a5;
  letter-spacing: -0.01em;
}

.wab-sub {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.3;
}
/* Center Daytime Floating Prompt (VisionOS Translucent Glass Pill) */
.radar-daytime-center-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  pointer-events: auto;
  animation: modalEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-daytime-center-prompt.hidden {
  display: none !important;
}

.radar-daytime-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 18, 25, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 14px 28px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(10, 132, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.radar-daytime-center-btn svg {
  color: #38bdf8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.radar-daytime-center-btn:hover {
  background: rgba(22, 28, 38, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75), 0 0 32px rgba(56, 189, 248, 0.4);
  transform: scale(1.03);
}

.radar-daytime-center-btn:hover svg {
  transform: rotate(-10deg) scale(1.1);
  color: #60a5fa;
}

.radar-daytime-center-btn:active {
  transform: scale(0.97);
}

/* Star Acoustics HUD & Sound Controls */
.radar-deck-key.sound-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 36, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(235, 245, 255, 0.90);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-deck-key.sound-key:hover {
  background: rgba(45, 55, 75, 0.85);
  border-color: rgba(100, 210, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(100, 210, 255, 0.20);
}

.radar-deck-key.sound-key.active {
  background: rgba(10, 132, 255, 0.25);
  border-color: rgba(100, 210, 255, 0.60);
  color: #64d2ff;
  box-shadow: 0 0 16px rgba(100, 210, 255, 0.28);
}

.radar-deck-key.sound-key.muted {
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.radar-deck-key.sound-key.active .sound-wave-1 {
  animation: soundPulse 1.2s ease-in-out infinite alternate;
}

.radar-deck-key.sound-key.active .sound-wave-2 {
  animation: soundPulse 1.2s ease-in-out infinite 0.3s alternate;
}

@keyframes soundPulse {
  0% { opacity: 0.3; stroke: rgba(100, 210, 255, 0.4); }
  100% { opacity: 1.0; stroke: #64d2ff; }
}

/* Audio Wave Visualizer Indicator in HUD */
.acoustic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(100, 210, 255, 0.90);
  text-transform: uppercase;
}
