/* ============================================================
   KARMAN CROSSING — Space Dashboard Styles (v3.0)
   Dark Titanium Glassmorphic UI
   Curated by Dr. Moulay Anwar Sounny-Slitine
   ============================================================ */

/* ============================================================
   0. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg-deep:        #050814;
  --bg-card:        rgba(12, 18, 36, 0.78);
  --bg-card-solid:  #0b1124;
  --bg-surface:     rgba(15, 23, 42, 0.65);

  --accent-cyan:    #00f2fe;
  --accent-blue:    #38bdf8;
  --accent-purple:  #7f00ff;
  --accent-purple2: #b94aff;
  --accent-pink:    #ff2d78;
  --accent-teal:    #00d4aa;
  --accent-gold:    #fbbf24;
  --accent-green:   #22c55e;

  --text-primary:   #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #94a3b8;
  --text-subtle:    #64748b;

  --border-default: rgba(56, 189, 248, 0.14);
  --border-hover:   rgba(0, 242, 254, 0.34);
  --border-active:  rgba(0, 242, 254, 0.55);

  --font-heading:   'Space Grotesk', system-ui, sans-serif;
  --font-body:      'Outfit', system-ui, sans-serif;

  --radius-card:    16px;
  --radius-input:   12px;
  --radius-sm:      8px;
  --radius-pill:    100px;

  --sidebar-w:      72px;
  --topbar-h:       64px;
  --content-max:    1440px;
  --drawer-w:       500px;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s var(--ease-out-expo);
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent-cyan);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   2. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 8, 20, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.35);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.75);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.35) rgba(5, 8, 20, 0.5);
}

/* ============================================================
   3. STARFIELD CANVAS
   ============================================================ */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   4. SIDEBAR NAVIGATION
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background: rgba(8, 12, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-default);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.45));
  transition: filter var(--transition-base), transform var(--transition-base);
}

.sidebar-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.8));
}

.sidebar-nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sidebar-nav li {
  width: 100%;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color var(--transition-base), background var(--transition-base);
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 242, 254, 0.06);
}

.nav-link.active {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: -2px 0 20px -4px rgba(0, 242, 254, 0.35);
}

.nav-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 12px;
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-link[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   5. TOP BAR & QUICK SEARCH DROPDOWN
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(8, 12, 26, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-default);
}

.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.brand-accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.brand-icon {
  font-size: 1.35rem;
  color: var(--accent-cyan);
}

.boundary-pill {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
}

.top-bar-search {
  flex: 0 1 420px;
  position: relative;
}

.top-bar-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.top-bar-search input::placeholder {
  color: var(--text-subtle);
}

.top-bar-search input:focus {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.14);
}

.top-bar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.quick-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 15, 32, 0.98);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-input);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 1200;
}

.quick-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.quick-search-item:hover {
  background: rgba(0, 242, 254, 0.1);
}

.quick-search-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.quick-search-avatar,
.quick-search-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1.5px solid var(--border-hover);
  flex-shrink: 0;
}

.quick-search-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.quick-search-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.quick-search-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.quick-search-footer {
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}

.quick-search-footer:hover {
  background: rgba(0, 242, 254, 0.12);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.live-orbit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.live-orbit-pill:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--accent-green);
  transform: translateY(-1px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}

.utc-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  padding: 5px 10px;
  background: rgba(0, 242, 254, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.18);
}

.clock-icon {
  font-size: 1rem;
}

/* ============================================================
   6. MAIN CONTENT AREA
   ============================================================ */
.main-content {
  position: relative;
  z-index: 1;
  margin-top: var(--topbar-h);
  max-width: var(--content-max);
  margin-left: max(var(--sidebar-w), calc((100vw - var(--content-max)) / 2 + var(--sidebar-w) / 2));
  margin-right: auto;
  padding: 32px 32px 64px;
}

/* ============================================================
   7. HERO BANNER & TELEMETRY STRIP
   ============================================================ */
.hero-banner {
  text-align: center;
  padding: 36px 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 55% at 50% 45%,
    rgba(0, 242, 254, 0.09) 0%,
    rgba(56, 189, 248, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.24);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.hero-number {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 7.5vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #ffffff;
  text-shadow: 0 0 42px rgba(0, 242, 254, 0.35);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hero-karman {
  color: var(--accent-cyan);
}

.hero-sublabel {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-telemetry-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  padding: 12px 26px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.telemetry-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.telemetry-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.telemetry-divider {
  width: 1px;
  height: 28px;
  background: var(--border-default);
}

/* ============================================================
   8. STAT RINGS & WORLD RECORDS STRIP
   ============================================================ */
.stat-rings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.stat-ring:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 242, 254, 0.1);
}

.stat-ring svg {
  width: 86px;
  height: 86px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
}

.ring-progress.cyan { stroke: var(--accent-cyan); }
.ring-progress.teal { stroke: var(--accent-teal); }
.ring-progress.magenta { stroke: var(--accent-pink); }
.ring-progress.purple { stroke: var(--accent-purple2); }

.ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.ring-value {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ring-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ring-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Records Strip */
.records-strip {
  margin-bottom: 24px;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.record-tile {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
}

.record-tile:hover {
  border-color: var(--border-hover);
  background: rgba(0, 242, 254, 0.06);
  transform: translateY(-2px);
}

.record-tile-body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.record-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.record-avatar,
.record-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid rgba(0, 242, 254, 0.35);
  flex-shrink: 0;
}

.record-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.record-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.record-kicker .material-symbols-outlined {
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.record-metric {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.record-holder {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   9. QUICK FILTER CHIPS
   ============================================================ */
.quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-default);
  font-family: var(--font-heading);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.chip-icon {
  font-size: 1rem;
  color: var(--accent-blue);
}

.chip:hover {
  color: #ffffff;
  border-color: var(--border-hover);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

.chip.active {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.2);
}

.chip.active .chip-icon {
  color: var(--accent-cyan);
}

/* ============================================================
   10. CARDS, MAP & ANALYTICS GRID
   ============================================================ */
.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-header.space-between {
  justify-content: space-between;
  flex-wrap: wrap;
}

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

.card-icon {
  font-size: 1.45rem;
  color: var(--accent-cyan);
}

.card-header h2,
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-section-wrap {
  margin-bottom: 24px;
}

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

#map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-input);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #070b18;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-subtle .material-symbols-outlined {
  font-size: 1rem;
}

.btn-subtle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
}

/* 2x2 Analytics Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
}

/* ============================================================
   11. DATA TABLE
   ============================================================ */
.table-card {
  margin-bottom: 36px;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table thead {
  background: rgba(0, 242, 254, 0.04);
}

.data-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}

.data-table tbody tr:hover {
  background: rgba(0, 242, 254, 0.07);
}

.karman-num-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

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

.table-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
}

.avatar-placeholder,
.popup-avatar-placeholder,
.roster-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.traveler-name-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.name-text {
  font-weight: 600;
  color: #ffffff;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.type-pill {
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.28);
  width: fit-content;
}

.type-pill.pill-commercial {
  background: rgba(255, 45, 120, 0.12);
  color: #ff6ea1;
  border-color: rgba(255, 45, 120, 0.3);
}

.type-pill.pill-mixed {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.3);
}

.type-pill.pill-live {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.38);
}

.iso-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-right: 4px;
}

.flag-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

.mission-info {
  display: flex;
  flex-direction: column;
}

.mission-name {
  font-weight: 600;
  color: var(--accent-cyan);
}

.mission-operator {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.year-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.days-pill {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.22);
  color: var(--accent-cyan);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.badge-subtle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================================
   12. SPACEFLIGHT TIMELINE
   ============================================================ */
.timeline-section {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.timeline-horizontal-wrapper {
  overflow-x: auto;
  padding: 20px 0 28px;
}

.timeline-track {
  display: flex;
  gap: 22px;
  position: relative;
  min-width: 1950px;
  padding: 0 16px;
}

.timeline-line {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple2), var(--accent-pink));
  opacity: 0.45;
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  flex: 1 1 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
  transition: transform var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.timeline-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.timeline-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.timeline-clickable {
  cursor: pointer;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.12);
  border-color: #ffffff;
}

.dot-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.timeline-event {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ============================================================
   13. EXPLORER DIRECTORY & ROSTER GRID
   ============================================================ */
.explorer-card {
  margin-bottom: 32px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1 1 260px;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 0.86rem;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.search-box input:focus {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.14);
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.dropdowns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dropdowns select {
  height: 42px;
  padding: 0 34px 0 13px;
  background-color: rgba(12, 18, 36, 0.9);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 0.83rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition-base);
}

.dropdowns select::-ms-expand {
  display: none;
}

.dropdowns select option {
  background-color: #0b1124;
  color: #f8fafc;
}

.dropdowns select:hover {
  border-color: var(--border-hover);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.roster-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px;
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 242, 254, 0.12);
}

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

.roster-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--border-default);
}

.roster-placeholder {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.roster-badges-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.roster-karman-id {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.roster-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.roster-type-badge .material-symbols-outlined {
  font-size: 0.85rem;
}

.roster-type-badge.badge-commercial {
  background: rgba(255, 45, 120, 0.12);
  color: #ff6ea1;
  border-color: rgba(255, 45, 120, 0.28);
}

.roster-type-badge.badge-mixed {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.28);
}

.roster-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.roster-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.roster-flag {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.roster-origin {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-meta-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.15fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: auto;
}

.roster-meta-item {
  display: flex;
  flex-direction: column;
}

.roster-meta-label {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roster-meta-val {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.roster-meta-val.highlight-val {
  color: var(--accent-cyan);
}

.roster-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.roster-footer {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--bg-deep);
  background: var(--accent-cyan);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  background: #67f8ff;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.26);
}

.badge-pink {
  background: rgba(255, 45, 120, 0.14);
  color: #ff6ea1;
  border-color: rgba(255, 45, 120, 0.3);
}

.badge-purple {
  background: rgba(185, 74, 255, 0.14);
  color: #d896ff;
  border-color: rgba(185, 74, 255, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.badge-gold {
  background: rgba(251, 191, 36, 0.14);
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.3);
}

/* Methodology Card */
.methodology-card {
  margin-bottom: 24px;
}

.methodology-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.methodology-text a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   14. DETAIL DRAWER (Dossier Side Panel)
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-w);
  max-width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(8, 12, 26, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--border-default);
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  gap: 14px;
}

.drawer-title-area {
  flex: 1;
}

.drawer-karman-tag {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.drawer-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.drawer-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

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

.drawer-content {
  flex: 1;
  padding: 24px 26px;
  overflow-y: auto;
}

.drawer-main-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.drawer-image-container {
  width: 112px;
  height: 144px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

.drawer-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 2.5rem;
}

.drawer-meta-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.highlight-meta .meta-value {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.drawer-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.drawer-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.drawer-ext-link:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
}

.drawer-ext-link .material-symbols-outlined {
  font-size: 0.95rem;
}

.drawer-section {
  margin-bottom: 22px;
}

.drawer-section h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-default);
}

.drawer-education-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.drawer-education-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-icon {
  font-size: 1rem;
  color: var(--accent-cyan);
}

.edu-none,
.no-flight-data {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.drawer-flights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-flight-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.flight-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.flight-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.flight-name-title {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
  flex: 1;
}

.flight-badge-priv,
.flight-badge-gov,
.flight-badge-active {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.flight-badge-priv {
  background: rgba(255, 45, 120, 0.14);
  color: #ff6ea1;
  border: 1px solid rgba(255, 45, 120, 0.3);
}

.flight-badge-gov {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.flight-badge-active {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.flight-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flight-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-icon {
  font-size: 0.92rem;
  color: var(--text-subtle);
}

/* ============================================================
   15. MAP CUSTOM MARKERS, CLUSTERS & POPUPS
   ============================================================ */
.map-custom-marker {
  background: transparent;
}

.map-core-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid #050814;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.75);
}

.map-core-pin.pin-live {
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(0, 242, 254, 0.22) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(11, 17, 36, 0.92) !important;
  color: #00f2fe !important;
  border: 1.5px solid #00f2fe;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}

.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 15, 32, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid var(--border-hover) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65) !important;
  padding: 0 !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
  background: rgba(10, 15, 32, 0.96) !important;
}

.custom-leaflet-popup .leaflet-popup-content {
  margin: 14px !important;
  line-height: 1.4 !important;
}

.map-popup-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 195px;
}

.popup-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--accent-cyan);
}

.popup-top h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.popup-origin {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.popup-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.popup-btn {
  padding: 6px 10px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  margin-top: 2px;
}

.popup-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep);
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.app-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border-default);
  padding: 32px 0 12px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent-cyan);
}

.app-footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 680px;
}

.footer-subtle {
  font-size: 0.76rem !important;
  color: var(--text-subtle) !important;
}

/* ============================================================
   17. ANIMATIONS & REDUCED MOTION
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
  transition-delay: var(--delay, 0s);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   18. RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1180px) {
  .records-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .top-bar {
    left: 0;
    padding: 0 16px;
  }
  .main-content {
    margin-left: 0;
    padding: 20px 16px 48px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .records-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .utc-clock {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-bar-search,
  .boundary-pill {
    display: none;
  }
  .records-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-divider {
    display: none;
  }
  .drawer-main-info {
    flex-direction: column;
    align-items: flex-start;
  }
  :root {
    --drawer-w: 100vw;
  }
}
