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

html,
body {
  height: 100%;
  background: #00060f;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  color: rgba(210, 230, 255, 0.85);
}

#orbitCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

#scene3d {
  display: none;
  position: fixed;
  inset: 0;
}

#scene3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* --- HUD --- */

.hud {
  position: fixed;
  z-index: 15;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: min(340px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(150deg, rgba(4, 10, 32, 0.88), rgba(2, 5, 20, 0.78)),
    radial-gradient(circle at 10% 20%, rgba(50, 100, 220, 0.1), transparent 45%);
  border: 0.5px solid rgba(90, 150, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    max-width 300ms ease,
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    padding 300ms ease;
}

.hud.is-collapsed {
  max-width: 240px;
  background: rgba(4, 10, 32, 0.55);
  border-color: rgba(90, 150, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
}

.hud-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hud-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.hud-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hud .title {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 240, 255, 0.97);
  white-space: nowrap;
}

.hud-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.hud-meta-sep {
  font-size: 11px;
  opacity: 0.5;
}

.data-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    background 400ms ease,
    box-shadow 400ms ease;
}

.data-status.is-live {
  background: #44dd88;
  box-shadow: 0 0 5px #44dd88;
}

.data-status.is-stale {
  background: #ff4444;
  box-shadow: 0 0 5px #ff4444;
}

.hud-toggle {
  border: 0;
  background: transparent;
  color: rgba(190, 215, 255, 0.75);
  border-radius: 6px;
  padding: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 150ms ease,
    transform 260ms ease;
}

.hud-toggle:hover {
  color: rgba(220, 240, 255, 0.98);
}
.hud-toggle.is-active {
  color: rgba(140, 200, 255, 1);
  background: rgba(20, 55, 130, 0.4);
  border-radius: 6px;
}

/* Toolbar boven zoekbalk */
.hud-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

/* Icon-wisseling expand/collapse */
.hud.is-collapsed .icon-collapse {
  display: none;
}
.hud.is-collapsed .icon-expand {
  display: block;
}
.hud:not(.is-collapsed) .icon-expand {
  display: none;
}
.hud:not(.is-collapsed) .icon-collapse {
  display: block;
}

/* --- body --- */

.hud-body {
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 280ms ease,
    opacity 200ms ease,
    margin-top 280ms ease;
}

.hud:not(.is-collapsed) .hud-body {
  flex: 1;
  min-height: 0;
  max-height: 2000px;
  overflow-y: auto;
  opacity: 1;
  margin-top: 12px;
  padding-top: 12px;
  padding-right: 8px;
  margin-right: -8px;
  border-top: 1px solid rgba(90, 150, 255, 0.15);
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 150, 255, 0.28) transparent;
}

.hud:not(.is-collapsed) .hud-body::-webkit-scrollbar {
  width: 3px;
}
.hud:not(.is-collapsed) .hud-body::-webkit-scrollbar-track {
  background: transparent;
}
.hud:not(.is-collapsed) .hud-body::-webkit-scrollbar-thumb {
  background: rgba(90, 150, 255, 0.28);
  border-radius: 2px;
}
.hud:not(.is-collapsed) .hud-body::-webkit-scrollbar-thumb:hover {
  background: rgba(90, 150, 255, 0.55);
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(140, 175, 230, 0.6);
}

/* --- landing --- */

.landing {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #00060f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 100%,
      rgba(30, 80, 200, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 15% 85%,
      rgba(20, 60, 180, 0.1) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.landing-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 24px;
  max-width: 560px;
}

.landing-eyebrow {
  font-size: 25px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(157, 214, 255, 0.45);
  margin: 0;
}

.landing-desc {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.75;
  color: rgba(190, 215, 255, 0.6);
  margin: 0;
}

.landing-btn {
  margin-top: 12px;
  padding: 11px 40px;
  background: transparent;
  border: 0.5px solid rgba(90, 150, 255, 0.35);
  border-radius: 3px;
  color: rgba(190, 215, 255, 0.65);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 250ms ease,
    color 250ms ease,
    background 250ms ease;
}

.landing-btn:hover {
  border-color: rgba(90, 150, 255, 0.7);
  color: rgba(220, 240, 255, 0.95);
  background: rgba(90, 150, 255, 0.08);
}

/* --- search --- */

.search-wrap {
  position: relative;
}

#satSearch {
  width: 100%;
  background: rgba(10, 25, 55, 0.7);
  border: 1px solid rgba(90, 150, 255, 0.2);
  border-radius: 8px;
  color: inherit;
  padding: 8px 10px;
  font: inherit;
  outline: none;
  transition: border-color 150ms ease;
}

#satSearch:focus {
  border-color: rgba(90, 150, 255, 0.5);
}

#satSearch::placeholder {
  color: rgba(140, 175, 230, 0.45);
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(4, 10, 32, 0.97);
  border: 0.5px solid rgba(90, 150, 255, 0.25);
  border-radius: 8px;
  list-style: none;
  max-height: 190px;
  overflow-y: auto;
  display: none;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.search-results.is-open {
  display: block;
}

.search-results li {
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  color: rgba(190, 215, 255, 0.8);
  border-bottom: 1px solid rgba(90, 150, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.search-results li:last-child {
  border-bottom: none;
}
.search-results li:hover {
  background: rgba(90, 150, 255, 0.12);
  color: rgba(220, 240, 255, 0.98);
}
.search-results li.is-selected {
  color: rgba(157, 214, 255, 1);
}

.search-group {
  font-size: 10px;
  opacity: 0.7;
  flex-shrink: 0;
}
.search-norad {
  margin-left: 5px;
  font-size: 9px;
  opacity: 0.4;
  font-family: monospace;
}

/* --- controls --- */

.controls {
  display: grid;
  gap: 10px;
}

.control {
  display: grid;
  gap: 6px;
}

.control label {
  color: rgba(160, 195, 240, 0.75);
}

select,
input[type="range"] {
  width: 100%;
}

input[type="range"] {
  appearance: none;
  height: 2px;
  background: rgba(90, 150, 255, 0.22);
  border-radius: 2px;
  outline: none;
  margin: 6px 0;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(157, 214, 255, 0.85);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(157, 214, 255, 0.85);
  cursor: pointer;
}

select {
  background: rgba(10, 25, 55, 0.7);
  border: 1px solid rgba(90, 150, 255, 0.2);
  border-radius: 8px;
  color: inherit;
  padding: 8px 10px;
  font: inherit;
}

.control-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(160, 195, 240, 0.75);
  cursor: pointer;
}

.btn {
  width: 100%;
  background: rgba(20, 50, 100, 0.55);
  border: 1px solid rgba(90, 150, 255, 0.2);
  border-radius: 8px;
  color: inherit;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  transition: background 150ms ease;
}

.btn:hover {
  background: rgba(30, 65, 120, 0.7);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 11px;
  color: rgba(140, 175, 230, 0.55);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover {
  color: rgba(180, 210, 255, 0.85);
}

/* --- time controls --- */

.time-controls {
  display: flex;
  gap: 4px;
}

.time-btn {
  flex: 1;
  background: rgba(10, 25, 55, 0.5);
  border: 1px solid rgba(90, 150, 255, 0.18);
  border-radius: 6px;
  color: rgba(150, 190, 240, 0.6);
  padding: 5px 2px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.time-btn:hover {
  color: rgba(210, 235, 255, 0.9);
  background: rgba(20, 50, 100, 0.55);
}

.time-btn.is-active {
  background: rgba(20, 55, 130, 0.55);
  border-color: rgba(90, 150, 255, 0.45);
  color: rgba(157, 214, 255, 1);
}

/* --- group chips --- */

.group-chip {
  display: inline;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 11px;
  color: rgba(210, 230, 255, 0.75);
  cursor: pointer;
  transition:
    color 120ms ease,
    opacity 120ms ease;
}

.group-chip:hover {
  opacity: 0.85 !important;
}

.chip-count {
  font-size: 10px;
  opacity: 0.6;
}

.chip-sep {
  color: rgba(140, 175, 230, 0.3);
  font-size: 11px;
  user-select: none;
  pointer-events: none;
}

/* --- legend --- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: rgba(140, 175, 230, 0.65);
  min-height: 16px;
}

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

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- stats & clock (in hud-head) --- */

#stats {
  font-size: 11px;
  line-height: 1.3;
}

#sim-clock {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.4;
  min-height: 1.4em;
}

.dim {
  color: rgba(140, 175, 230, 0.55);
}

/* --- sat-info card --- */

.sat-info {
  position: fixed;
  right: 10px;
  bottom: 14px;
  width: min(260px, calc(100vw - 20px));
  background: linear-gradient(
    150deg,
    rgba(4, 10, 32, 0.92),
    rgba(2, 5, 20, 0.82)
  );
  border: 0.5px solid rgba(157, 214, 255, 0.3);
  border-radius: 14px;
  padding: 9px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  font-size: 11.5px;
  color: rgba(210, 230, 255, 0.85);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  z-index: 10;
}

.sat-info.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sat-info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.sat-info-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sat-info-head strong {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(157, 214, 255, 1);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(90, 150, 255, 0.1);
}

.sat-stat:last-child {
  border-bottom: none;
}
.sat-stat span {
  color: rgba(140, 175, 230, 0.65);
}
.sat-stat strong {
  color: rgba(210, 230, 255, 0.75);
  font-weight: 300;
}

/* --- TLE stale warning --- */

#info-epoch.is-stale {
  color: #ffaa44;
}

#info-status.is-decayed {
  color: #ff7755;
}

/* --- crewed satellite marker --- */

#crewed-markers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.crewed-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 1.5px solid rgba(255, 220, 140, 0.85);
  border-radius: 50%;
  display: none;
  animation: crewed-pulse 2.4s ease-in-out infinite;
}

@keyframes crewed-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

/* --- 3D satelliet-labels --- */

#labels3d {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.sat-label-3d {
  position: absolute;
  font:
    11px/1 Inter,
    system-ui,
    sans-serif;
  color: rgba(210, 235, 255, 0.75);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: none;
  cursor: pointer;
}

.sat-label-3d:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* --- Fullscreen exit button --- */

#fs-exit {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  background: rgba(4, 10, 32, 0.72);
  border: 0.5px solid rgba(90, 150, 255, 0.22);
  border-radius: 9px;
  color: rgba(160, 200, 255, 0.6);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition:
    color 0.15s,
    border-color 0.15s;
}

#fs-exit:hover {
  color: rgba(160, 200, 255, 1);
  border-color: rgba(90, 150, 255, 0.55);
}

body.is-fullscreen #fs-exit {
  display: flex;
}

body.is-fullscreen .hud {
  opacity: 0.72;
}

body.is-fullscreen .hud:hover {
  opacity: 1;
}

/* --- hud sections --- */

.hud-section {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 150, 255, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(140, 175, 230, 0.5);
}

/* --- chip categories --- */

.group-chips {
  display: grid;
  gap: 3px;
}

.chip-category {
  margin-bottom: -2px;
}

.chip-category-header {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 2px 0;
  font: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(140, 175, 230, 0.45);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.chip-category-header::before {
  content: "▸";
  display: inline-block;
  font-size: 8px;
  transition: transform 150ms ease;
}

.chip-category.is-open .chip-category-header::before {
  transform: rotate(90deg);
}

.chip-category-header:hover {
  color: rgba(160, 195, 240, 0.75);
}

.chip-category-body {
  display: none;
  line-height: 1.65;
  padding-bottom: 1px;
}

.chip-category.is-open .chip-category-body {
  display: block;
}

/* ── Passes panel ─────────────────────────────────────────────────────────── */

.passes-panel {
  position: fixed;
  top: 52px;
  right: -290px;
  width: 260px;
  background: linear-gradient(
    150deg,
    rgba(4, 10, 32, 0.92),
    rgba(2, 5, 20, 0.82)
  );
  border: 0.5px solid rgba(157, 214, 255, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.passes-panel.is-open {
  right: 10px;
}

.passes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px 9px 13px;
  border-bottom: 0.5px solid rgba(157, 214, 255, 0.15);
  font-size: 11px;
  font-weight: 600;
  color: #c5d8f0;
  flex-shrink: 0;
}

.passes-sub {
  font-weight: normal;
  opacity: 0.45;
  margin-left: 5px;
}

.passes-body {
  overflow-y: auto;
  max-height: 260px;
  padding: 4px 0;
}

.passes-empty {
  padding: 18px 14px;
  font-size: 11px;
  color: rgba(180, 200, 230, 0.4);
  text-align: center;
}

.pass-row {
  padding: 7px 13px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(157, 214, 255, 0.07);
}

.pass-row:hover {
  background: rgba(100, 150, 220, 0.07);
}

.pass-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: rgba(180, 200, 230, 0.45);
  flex-wrap: wrap;
}

.pass-az {
  margin-left: auto;
}

.passes-manual {
  padding: 4px 0;
}

.passes-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 13px 13px;
}

.passes-form label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: rgba(180, 200, 230, 0.5);
}

.passes-form input[type="number"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(100, 150, 220, 0.2);
  border-radius: 4px;
  color: #c5d8f0;
  font-size: 11px;
  padding: 5px 8px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.passes-form input[type="number"]:focus {
  border-color: rgba(100, 150, 220, 0.5);
}

.passes-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-bottom: 0.5px solid rgba(157, 214, 255, 0.12);
  flex-shrink: 0;
}

.passes-filter-label {
  font-size: 9px;
  color: rgba(180, 200, 230, 0.4);
  margin-right: 4px;
  white-space: nowrap;
}

.passes-elev-btn {
  background: none;
  border: 1px solid rgba(100, 150, 220, 0.2);
  border-radius: 3px;
  color: rgba(180, 200, 230, 0.5);
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.passes-elev-btn:hover {
  border-color: rgba(100, 150, 220, 0.4);
  color: rgba(180, 200, 230, 0.8);
}

.passes-elev-btn.is-active {
  border-color: rgba(100, 150, 220, 0.6);
  color: #9dd6ff;
  background: rgba(100, 150, 220, 0.1);
}

/* Subtiele scrollbars */
.passes-body,
.launches-body,
.socrates-body,
.hud-body,
#searchResults {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 150, 220, 0.2) transparent;
}

.passes-body::-webkit-scrollbar,
.launches-body::-webkit-scrollbar,
.socrates-body::-webkit-scrollbar,
.hud-body::-webkit-scrollbar,
#searchResults::-webkit-scrollbar {
  width: 3px;
}

.passes-body::-webkit-scrollbar-track,
.launches-body::-webkit-scrollbar-track,
.socrates-body::-webkit-scrollbar-track,
.hud-body::-webkit-scrollbar-track,
#searchResults::-webkit-scrollbar-track {
  background: transparent;
}

.passes-body::-webkit-scrollbar-thumb,
.launches-body::-webkit-scrollbar-thumb,
.socrates-body::-webkit-scrollbar-thumb,
.hud-body::-webkit-scrollbar-thumb,
#searchResults::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 220, 0.2);
  border-radius: 2px;
}

.passes-body::-webkit-scrollbar-thumb:hover,
.launches-body::-webkit-scrollbar-thumb:hover,
.socrates-body::-webkit-scrollbar-thumb:hover,
.hud-body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 150, 220, 0.4);
}

.pass-now {
  background: rgba(100, 200, 120, 0.06);
  border-left: 2px solid rgba(100, 200, 120, 0.5);
}

.pass-now-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100, 220, 120, 0.9);
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.pass-row.is-selected {
  background: rgba(100, 150, 220, 0.12);
  border-left: 2px solid rgba(100, 150, 220, 0.5);
}

/* ── SOCRATES panel ──────────────────────────────────────────────────────────── */

.socrates-panel {
  position: fixed;
  top: 52px;
  right: -290px;
  width: 260px;
  background: linear-gradient(
    150deg,
    rgba(4, 10, 32, 0.92),
    rgba(2, 5, 20, 0.82)
  );
  border: 0.5px solid rgba(255, 160, 80, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.socrates-panel.is-open {
  right: 10px;
}

.socrates-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px 9px 13px;
  border-bottom: 0.5px solid rgba(255, 160, 80, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #f0c58a;
  flex-shrink: 0;
}

.socrates-body {
  overflow-y: auto;
  max-height: 340px;
  padding: 4px 0;
}

.conj-row {
  padding: 7px 13px;
  border-bottom: 0.5px solid rgba(157, 214, 255, 0.07);
  cursor: pointer;
}

.conj-row:hover {
  background: rgba(100, 150, 220, 0.07);
}

.conj-row.is-selected {
  background: rgba(100, 150, 220, 0.12);
  border-left: 2px solid rgba(100, 150, 220, 0.5);
}

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

.conj-pair {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.conj-sat {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
  flex-shrink: 1;
}

.conj-sat:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.conj-sep {
  opacity: 0.35;
  flex-shrink: 0;
  font-size: 10px;
}

.conj-prob-high {
  color: #ff5050;
}
.conj-prob-medium {
  color: #ff9040;
}
.conj-prob-low {
  color: #ffd060;
}
.conj-prob-minor {
  color: #aac8e0;
}

.conj-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: rgba(180, 200, 230, 0.45);
  flex-wrap: wrap;
}

.conj-prob-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 80, 80, 0.15);
  color: #ff5050;
}

.conj-prob-badge.medium {
  background: rgba(255, 144, 64, 0.15);
  color: #ff9040;
}
.conj-prob-badge.low {
  background: rgba(255, 208, 96, 0.15);
  color: #ffd060;
}
.conj-prob-badge.minor {
  background: rgba(160, 200, 230, 0.1);
  color: #aac8e0;
}

/* ── Info card extras ─────────────────────────────────────────────────────────── */

/* ── TLE age badge ────────────────────────────────────────────────────────────── */

.tle-age-badge {
  font-size: 10px;
  color: rgba(180, 200, 230, 0.4);
  margin-left: 6px;
  white-space: nowrap;
}

/* ── Launches panel ────────────────────────────────────────────────────────── */

.launches-panel {
  position: fixed;
  top: 52px;
  right: -290px;
  width: 260px;
  background: linear-gradient(
    150deg,
    rgba(4, 10, 32, 0.92),
    rgba(2, 5, 20, 0.82)
  );
  border: 0.5px solid rgba(157, 214, 255, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.launches-panel.is-open {
  right: 10px;
}

/* Beide panels tegelijk open: launches schuift 310px naar links (290px breedte + 10px gap + 10px marge) */
.socrates-panel.is-open ~ .launches-panel.is-open {
  right: 280px;
}

.launches-body {
  overflow-y: auto;
  max-height: 340px;
  padding: 4px 0;
}

.launch-row {
  padding: 8px 13px;
  border-bottom: 0.5px solid rgba(157, 214, 255, 0.07);
}

.launch-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c5d8f0;
}

.launch-meta {
  display: flex;
  gap: 7px;
  font-size: 10px;
  color: rgba(180, 200, 230, 0.45);
  flex-wrap: wrap;
  align-items: center;
}

.launch-status {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.launch-status.go {
  background: rgba(80, 200, 100, 0.15);
  color: #6fda8a;
}
.launch-status.tbd {
  background: rgba(180, 180, 60, 0.15);
  color: #d4c96a;
}
.launch-status.hold {
  background: rgba(220, 100, 60, 0.15);
  color: #e08060;
}
.launch-status.other {
  background: rgba(120, 140, 180, 0.12);
  color: rgba(180, 200, 230, 0.55);
}

.launch-net {
  font-variant-numeric: tabular-nums;
}
