:root {
  --bg: #070a12;
  --bg-card: #0d1526;
  --bg-card-hover: #141f36;
  --border: rgba(6, 182, 212, 0.25);
  --border-glow: rgba(6, 182, 212, 0.5);
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.2);
  --glow-blue: 0 0 20px rgba(56, 189, 248, 0.2);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 1.1rem;
  color: var(--text);
}
.logo-icon { font-size: 1.4rem; }
.logo-text { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text-sub); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover { background: var(--bg-card); color: var(--text); }
.nav-link.active { background: rgba(59,130,246,0.15); color: var(--accent); }

/* ── Runtime Environment Indicator Blurb ── */
.runtime-env-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}
.env-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.env-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.env-icon { font-size: 1rem; }
.env-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.env-docker {
  background: rgba(6, 182, 212, 0.06);
  border-bottom-color: rgba(6, 182, 212, 0.3);
}
.env-badge-docker {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.env-local {
  background: rgba(139, 92, 246, 0.06);
  border-bottom-color: rgba(139, 92, 246, 0.3);
}
.env-badge-local {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.env-banner-details {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
}
.env-banner-details code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(255,255,255,0.05);
  padding: 1px 4px;
  border-radius: 4px;
}
.env-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, #0d1526 0%, var(--bg) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute; background: white; border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}
.star-1 { width:2px;height:2px; top:15%;left:10%; animation-delay:0s; }
.star-2 { width:3px;height:3px; top:25%;left:80%; animation-delay:0.5s; }
.star-3 { width:1px;height:1px; top:60%;left:20%; animation-delay:1s; }
.star-4 { width:2px;height:2px; top:10%;left:55%; animation-delay:1.5s; }
.star-5 { width:3px;height:3px; top:70%;left:85%; animation-delay:0.3s; }
.star-6 { width:1px;height:1px; top:40%;left:5%; animation-delay:0.8s; }
.star-7 { width:2px;height:2px; top:80%;left:45%; animation-delay:1.2s; }
.star-8 { width:2px;height:2px; top:5%;left:35%; animation-delay:0.6s; }
@keyframes twinkle { from{opacity:0.3} to{opacity:1} }

.orbit-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.12);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: spin 30s linear infinite;
}
.orbit-ring-1 { width:400px; height:200px; }
.orbit-ring-2 { width:600px; height:300px; animation-duration:50s; animation-direction:reverse; }
@keyframes spin { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }

.sat-dot {
  position: absolute; width:8px; height:8px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.sat-dot-1 { top:20%; left:30%; animation: orbit1 8s linear infinite; }
.sat-dot-2 { top:60%; right:25%; animation: orbit2 12s linear infinite; }
@keyframes orbit1 { 0%{transform:rotate(0deg) translateX(80px)} 100%{transform:rotate(360deg) translateX(80px)} }
@keyframes orbit2 { 0%{transform:rotate(0deg) translateX(60px)} 100%{transform:rotate(360deg) translateX(60px)} }

.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2rem,5vw,3.5rem); font-weight: 800;
  background: linear-gradient(135deg,#fff 30%,var(--accent) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.hero-subtitle { color: var(--text-sub); font-size: 1.1rem; max-width: 600px; margin: 0 auto 28px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
}
.badge--blue { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge--purple { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge--teal { background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }

/* ── Layout ── */
.section { padding: 48px 24px; }
.section--dimmed { background: rgba(255,255,255,0.02); }
.container { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 780px; margin: 0 auto; }
.main-content { flex: 1; }

/* ── Upload Card ── */
.upload-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.12);
  margin-bottom: 32px;
}
.drop-zone {
  border: 2px dashed rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-sm);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(6, 182, 212, 0.03);
  transition: all 0.25s ease;
  outline: none;
}
.drop-zone:hover, .drop-zone:focus, .drop-zone.drag-over {
  border-color: #38bdf8;
  background: rgba(6, 182, 212, 0.09);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}
.drop-zone__icon { margin-bottom: 16px; }
.upload-icon { color: #38bdf8; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.drop-zone:hover .upload-icon { opacity: 1; transform: scale(1.1); }
.drop-zone__title { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.drop-zone__subtitle { color: var(--text-sub); margin-bottom: 8px; }
.drop-zone__hint { color: var(--text-muted); font-size: 0.82rem; }
.file-label { color: #38bdf8; cursor: pointer; text-decoration: underline; font-weight: 600; }
.file-input { display: none; }

.file-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}
.file-preview__icon { font-size: 1.8rem; }
.file-preview__info { flex: 1; }
.file-preview__name { display: block; font-weight: 600; font-size: 0.95rem; }
.file-preview__size { display: block; color: var(--text-muted); font-size: 0.8rem; }
.file-preview__remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 4px; }
.file-preview__remove:hover { color: var(--error); }

/* ── Ingest Mode Tabs & Preset Chips ── */
.ingest-tabs {
  display: flex;
  gap: 8px;
  background: rgba(10, 14, 26, 0.7);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.ingest-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-sub);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ingest-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.ingest-tab.active {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-chip:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--text);
}
.preset-chip.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}
.btn--primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.4); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--secondary {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid transparent; }
.btn--ghost:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }
.btn--sm { padding: 5px 12px; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ── Info Card (TLE explainer) ── */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.info-card__icon { font-size: 1.4rem; }
.info-card__title { font-size: 1.15rem; font-weight: 700; }
.info-card__body { color: var(--text-sub); line-height: 1.8; margin-bottom: 20px; }
.tle-example { background: #0d1526; border-radius: var(--radius-sm); overflow: hidden; }
.tle-example__label { padding: 8px 16px; font-size: 0.75rem; color: var(--text-muted); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.tle-example__code { padding: 16px; font-family: var(--mono); font-size: 0.8rem; color: #a5f3fc; overflow-x: auto; white-space: pre; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead { background: rgba(255,255,255,0.04); }
.data-table th {
  padding: 12px 16px; text-align: left;
  color: var(--text-muted); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.th-label { cursor: help; border-bottom: 1px dashed var(--text-muted); }
.text-right { text-align: right; }
.text--success { color: var(--success); }
.text--warning { color: var(--warning); }
.text--muted { color: var(--text-muted); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.small { font-size: 0.78rem; }

/* ── Section titles ── */
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.section-title--sub { font-size: 1.2rem; font-weight: 700; margin: 32px 0 16px; }
.hobby-disclaimer {
  max-width: 720px;
  margin: 16px 0 0;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
}
.hero .hobby-disclaimer {
  margin: 18px auto 0;
}
.hobby-disclaimer strong {
  display: block;
  margin-bottom: 4px;
  color: #fbbf24;
}

.page-header { margin-bottom: 32px; }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--text-sub); }

/* ── Upload Result ── */
.result-header { text-align: center; margin-bottom: 40px; }
.result-header__icon { font-size: 3rem; margin-bottom: 12px; }
.result-header__title { font-size: 2rem; font-weight: 800; }
.result-header__file { display: block; color: var(--text-muted); margin-top: 6px; font-size: 0.9rem; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
  animation: fadeUp 0.5s ease both;
}
.summary-card:nth-child(2) { animation-delay: 0.1s; }
.summary-card:nth-child(3) { animation-delay: 0.2s; }
.summary-card:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.summary-card--total { border-top: 3px solid var(--accent); }
.summary-card--new { border-top: 3px solid var(--success); }
.summary-card--updated { border-top: 3px solid var(--warning); }
.summary-card--dupe { border-top: 3px solid var(--text-muted); }
.summary-card--error { border-top: 3px solid var(--error); }
.summary-card__value { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.summary-card--total .summary-card__value { color: var(--accent); }
.summary-card--new .summary-card__value { color: var(--success); }
.summary-card--updated .summary-card__value { color: var(--warning); }
.summary-card--dupe .summary-card__value { color: var(--text-muted); }
.summary-card--error .summary-card__value { color: var(--error); }
.summary-card__label { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.summary-card__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.upload-breakdown { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.upload-breakdown__title { font-weight: 700; margin-bottom: 16px; }
.breakdown-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--border); margin-bottom: 12px; }
.breakdown-bar__seg--new { background: var(--success); }
.breakdown-bar__seg--dup { background: var(--text-muted); }
.breakdown-bar__seg--err { background: var(--error); }
.breakdown-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-sub); }
.legend-item::before { content:''; width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.legend-item--new::before { background: var(--success); }
.legend-item--dup::before { background: var(--text-muted); }
.legend-item--err::before { background: var(--error); }

.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── Search ── */
.search-form { margin-bottom: 28px; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar__icon { color: var(--text-muted); flex-shrink: 0; }
.search-bar__input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 1rem;
}
.search-bar__input::placeholder { color: var(--text-muted); }

.results-meta { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 16px; }

/* ── Satellite in results ── */
.sat-link { color: var(--text); text-decoration: none; font-weight: 600; }
.sat-link:hover { color: var(--accent); }
.sat-name { min-width: 180px; }

.badge-class {
  position: relative; display: inline-block;
  padding: 2px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; cursor: help;
}
.badge-class--u { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-class--c { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-class--s { background: rgba(239,68,68,0.15); color: var(--error); }
.badge-class__tip {
  display: none; position: absolute; bottom: 125%; left: 50%;
  transform: translateX(-50%);
  background: #1e2d45; color: var(--text);
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; white-space: nowrap;
  pointer-events: none;
}
.badge-class:hover .badge-class__tip { display: block; }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination__btn, .pagination__page {
  padding: 6px 14px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  color: var(--text-sub); background: var(--bg-card);
  border: 1px solid var(--border); transition: all 0.2s;
}
.pagination__btn:hover, .pagination__page:hover { border-color: var(--accent); color: var(--accent); }
.pagination__btn--disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.pagination__page--active { background: var(--accent); color: white; border-color: var(--accent); }
.pagination__ellipsis { color: var(--text-muted); padding: 6px 4px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state__icon { font-size: 3.5rem; margin-bottom: 20px; }
.empty-state__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.empty-state__body { color: var(--text-sub); max-width: 500px; margin: 0 auto 28px; }
.search-tips { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 24px; }
.search-tip { font-size: 0.875rem; color: var(--text-muted); }
.search-tip code { background: var(--bg-card); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; font-family: var(--mono); color: var(--accent); }

/* ── Sat Detail ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 0.875rem; color: var(--text-muted); }
.breadcrumb__link { color: var(--accent); text-decoration: none; }
.breadcrumb__link:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--text-muted); }

.sat-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.sat-header__icon { font-size: 2.5rem; flex-shrink: 0; }
.sat-header__name { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.sat-header__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-tag { padding: 4px 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem; color: var(--text-sub); }
.meta-tag strong { color: var(--text); }

/* Glossary */
.glossary-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.glossary-card__toggle { padding: 16px 20px; font-weight: 600; cursor: pointer; color: var(--text-sub); list-style: none; transition: color 0.2s; }
.glossary-card__toggle:hover { color: var(--text); }
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.glossary-item { background: var(--bg); padding: 16px 20px; }
.glossary-item__name { display: block; font-weight: 600; font-size: 0.875rem; color: var(--accent); margin-bottom: 4px; }
.glossary-item__desc { font-size: 0.82rem; color: var(--text-sub); line-height: 1.6; }

/* Raw TLE toggle */
.tle-raw { margin-top: 8px; }
.tle-raw__pre { font-family: var(--mono); font-size: 0.72rem; color: #a5f3fc; background: #0d1526; padding: 12px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: border-color 0.2s, transform 0.2s; }
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-card__icon { font-size: 2rem; margin-bottom: 12px; }
.stat-card__value { font-size: 2.8rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-card__label { color: var(--text-sub); font-size: 0.9rem; font-weight: 500; }

/* ── Flash ── */
.flash-container { position: fixed; top: 70px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; max-width: 400px; animation: slideIn 0.3s ease; }
@keyframes slideIn { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }
.flash--error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.flash--warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4); color: #fcd34d; }
.flash--success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }
.flash-close { background: none; border: none; cursor: pointer; color: inherit; opacity: 0.7; }
.flash-close:hover { opacity: 1; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 20px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 8px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 48px 16px 40px; }
  .nav-links .nav-link span:not(.logo-icon):not(.logo-text) { display: none; }
  .sat-header { flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .action-row { flex-direction: column; }
  .search-bar { flex-wrap: wrap; }
  .search-bar .btn { width: 100%; justify-content: center; }
}

/* ── Admin Page ── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.session-source--seed {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3);
}
.session-source--demo {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35);
}
.session-source--user {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3);
}

.danger-zone {
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: var(--radius);
  padding: 24px;
}
.danger-zone__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: var(--error);
  margin-bottom: 6px;
}
.danger-zone__desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.danger-zone__divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.btn--danger {
  background: rgba(239,68,68,0.12); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.35);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; width: 100%; justify-content: center;
  transition: all 0.2s; margin-bottom: 10px;
}
.btn--danger:hover { background: rgba(239,68,68,0.22); border-color: var(--error); color: white; }
.btn--warn {
  background: rgba(245,158,11,0.12); color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.35);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; width: 100%; justify-content: center;
  transition: all 0.2s;
}
.btn--warn:hover { background: rgba(245,158,11,0.22); border-color: var(--warning); color: white; }

.db-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.db-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  flex: 1; min-width: 140px; text-align: center;
}
.db-stat__value { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.db-stat__label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; max-width: 440px; width: 90%;
  box-shadow: var(--shadow-lg); animation: fadeUp 0.25s ease;
}
.modal__icon { font-size: 2.5rem; text-align: center; margin-bottom: 12px; }
.modal__title { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.modal__body { color: var(--text-sub); text-align: center; margin-bottom: 24px; font-size: 0.9rem; line-height: 1.7; }
.modal__actions { display: flex; gap: 12px; }
.modal__actions .btn { flex: 1; justify-content: center; }
.flash--info { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.4); color: #93c5fd; }

/* Sticky tracking bar */
.sticky-track-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 500px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  opacity: 0;
}
.sticky-track-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.sticky-track-bar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.sticky-track-bar__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Selected row highlight style */
tr.satellite-row.selected {
  background-color: rgba(59, 130, 246, 0.04);
}

/* Spinner animation for loading indicators */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tab button active state override */
.tab-btn.active {
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--accent) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}
.tab-btn:hover:not(.active) {
  background: rgba(255,255,255,0.04) !important;
  color: var(--text) !important;
}

/* ══════════════════════════════════════════════════════════
   Debug Panel
   ══════════════════════════════════════════════════════════ */

#sat-debug-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 480px;
  height: 420px;
  min-width: 300px;
  min-height: 180px;
  max-width: 90vw;
  max-height: 80vh;
  background: rgba(8, 12, 22, 0.97);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.08);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  backdrop-filter: blur(16px);
  animation: dbgSlideIn 0.2s cubic-bezier(0.16,1,0.3,1);
}

@keyframes dbgSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Header / drag handle */
#sat-debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  user-select: none;
}

/* Metrics row */
#sat-debug-metrics {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.dbg-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-right: 1px solid rgba(255,255,255,0.05);
  gap: 2px;
  min-width: 0;
}
.dbg-metric:last-child { border-right: none; }

.dbg-metric-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #60a5fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dbg-metric-lbl {
  font-size: 0.62rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Filter tabs */
#sat-debug-tabs {
  display: flex;
  gap: 2px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.dbg-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #475569;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.dbg-tab:hover {
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
}
.dbg-tab.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: #60a5fa;
}

/* Log area */
#sat-debug-log {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  scroll-behavior: smooth;
}

#sat-debug-log::-webkit-scrollbar { width: 4px; }
#sat-debug-log::-webkit-scrollbar-track { background: transparent; }
#sat-debug-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
#sat-debug-log::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Log entries */
.dbg-entry {
  padding: 5px 10px 5px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-left-width: 2px;
  border-left-style: solid;
  transition: background 0.1s;
}
.dbg-entry:hover { background: rgba(255,255,255,0.025); }

.dbg-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.dbg-time {
  color: #334155;
  font-size: 0.65rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.dbg-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 36px;
}

.dbg-msg {
  color: #94a3b8;
  font-size: 0.72rem;
  word-break: break-all;
  line-height: 1.4;
}

.dbg-detail {
  color: #475569;
  font-size: 0.67rem;
  margin-top: 2px;
  padding-left: 48px;
  word-break: break-all;
  line-height: 1.4;
}

.dbg-extra {
  color: #334155;
  font-size: 0.64rem;
  margin-top: 1px;
  padding-left: 48px;
  word-break: break-all;
}

/* Resize handle */
#sat-debug-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: se-resize;
  opacity: 0.3;
  transition: opacity 0.2s;
  background:
    linear-gradient(135deg,
      transparent 30%,
      rgba(100,116,139,0.8) 30%,
      rgba(100,116,139,0.8) 40%,
      transparent 40%,
      transparent 55%,
      rgba(100,116,139,0.8) 55%,
      rgba(100,116,139,0.8) 65%,
      transparent 65%,
      transparent 80%,
      rgba(100,116,139,0.8) 80%,
      rgba(100,116,139,0.8) 90%,
      transparent 90%
    );
  border-bottom-right-radius: 12px;
}
#sat-debug-resize:hover { opacity: 0.7; }

/* Debug nav button active state */
#debug-toggle-btn[aria-pressed="true"] {
  background: rgba(59,130,246,0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(59,130,246,0.3) !important;
}
#debug-toggle-btn:hover {
  background: rgba(255,255,255,0.05) !important;
  color: var(--text) !important;
}

/* ══════════════════════════════════════════════════════════
   AI Chat UI
   ══════════════════════════════════════════════════════════ */

/* Chat history scroll area */
#ai-chat-history {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
#ai-chat-history::-webkit-scrollbar { width: 4px; }
#ai-chat-history::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Message row */
.ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeUp 0.18s ease both;
}

/* User messages sit on the right */
.ai-msg--user {
  flex-direction: row-reverse;
}

/* Avatar circle */
.ai-msg__avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Bubble */
.ai-msg__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.ai-msg--assistant .ai-msg__bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.ai-msg--user .ai-msg__bubble {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  border-bottom-right-radius: 4px;
  color: var(--text);
  text-align: left;
}

/* Suggestion chips */
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-suggestion {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ai-suggestion:hover {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.45);
}

/* Composer focus ring */
#ai-composer:focus-within {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

/* Typing indicator dots */
.ai-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}
.ai-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ── Sortable columns ── */
.data-table th.sortable:hover {
  background: rgba(59,130,246,0.1);
  color: var(--accent);
}
.data-table th.sortable::after {
  content: ' ↕';
  font-size: 0.65rem;
  opacity: 0.4;
}
.data-table th.sortable.sorted-asc::after {
  content: ' ↑';
  opacity: 1;
  color: var(--accent);
}
.data-table th.sortable.sorted-desc::after {
  content: ' ↓';
  opacity: 1;
  color: var(--accent);
}

/* ── Datastore setup / admin settings ── */
.ds-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.ds-engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.ds-engine-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}
.ds-engine-card.is-selected,
.ds-engine-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(56,189,248,0.08);
}
.ds-engine-card input { accent-color: var(--accent); }
.ds-engine-card__title { font-weight: 700; }
.ds-engine-card__desc { font-size: 0.82rem; color: var(--text-sub); line-height: 1.45; }
.ds-fields { margin-bottom: 16px; }
.ds-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  margin: 12px 0 6px;
}
.ds-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.ds-input:focus {
  outline: none;
  border-color: var(--accent);
}
.ds-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ds-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.ds-hint-inline { font-weight: 400; color: var(--text-muted); }
.ds-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-sub);
  margin: 8px 0 4px;
}
.ds-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.ds-status { min-height: 1.4em; font-size: 0.85rem; margin-top: 10px; }
.ds-status--ok { color: var(--success); }
.ds-status--err { color: var(--error); }
.ds-engine-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,0.35);
  color: var(--accent);
  background: rgba(56,189,248,0.1);
  font-family: var(--mono);
}
@media (max-width: 640px) {
  .ds-engine-grid, .ds-grid-2 { grid-template-columns: 1fr; }
}

/* ── Global Long-Running Operation Splash & Progress Modal ─────────────────── */
.sat-splash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sat-splash-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sat-splash-overlay[hidden] {
  display: none !important;
}

.sat-splash-card {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.15);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sat-splash-overlay.is-active .sat-splash-card {
  transform: scale(1) translateY(0);
}

.sat-splash-icon-box {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sat-splash-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  animation: spin 16s linear infinite;
}

.sat-splash-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.5));
  animation: pulse 2.4s infinite ease-in-out;
}

.sat-splash-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.015em;
}

.sat-splash-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.sat-splash-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.sat-splash-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  border-radius: 9999px;
  position: relative;
  transition: width 0.4s ease;
}

.sat-splash-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: satShimmer 1.5s infinite ease-in-out;
}

.sat-splash-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 500;
  min-height: 24px;
}

.sat-splash-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.sat-splash-status-text {
  color: #38bdf8;
  font-size: 0.825rem;
  transition: opacity 0.25s ease;
}

.sat-splash-fallback-box {
  margin-top: 1.25rem;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  animation: satFadeIn 0.4s ease forwards;
}

.sat-splash-fallback-icon {
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 1px;
}

.sat-splash-fallback-text {
  font-size: 0.775rem;
  line-height: 1.45;
  color: #94a3b8;
}

@keyframes satShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes satFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Dedicated CelesTrak Ingestion Progress Card ───────────────────────────── */
.celestrak-progress-card {
  margin-top: 20px;
  padding: 20px 22px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(12px);
  animation: satFadeIn 0.35s ease forwards;
}

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

.cp-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-radar-icon {
  font-size: 1.5rem;
  line-height: 1;
  animation: pulse 2s infinite ease-in-out;
}

.cp-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px 0;
  letter-spacing: -0.015em;
}

.cp-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--mono);
  display: block;
}

.cp-timer {
  font-size: 0.8rem;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
}

.cp-track {
  height: 6px;
  width: 100%;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.cp-bar {
  height: 100%;
  width: 18%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
  position: relative;
}

.cp-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: satShimmer 1.5s infinite ease-in-out;
}

.cp-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.cp-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.cp-step.is-pending {
  opacity: 0.42;
}

.cp-step.is-active {
  opacity: 1;
}

.cp-step.is-active .cp-step-name {
  color: var(--accent);
  font-weight: 700;
}

.cp-step.is-done {
  opacity: 0.95;
}

.cp-step.is-done .cp-step-name {
  color: var(--success);
  font-weight: 600;
}

.cp-step-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.65rem;
}

.cp-step.is-active .cp-step-bullet {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.cp-step.is-active .cp-step-bullet .bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  animation: pulse 1.2s infinite ease-in-out;
}

.cp-step.is-done .cp-step-bullet {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.cp-step.is-done .cp-step-bullet::after {
  content: "✓";
  font-weight: 700;
}

.cp-step.is-done .cp-step-bullet .bullet-dot {
  display: none;
}

.cp-step-body {
  flex: 1;
}

.cp-step-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.82rem;
  margin-bottom: 1px;
}

.cp-step-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cp-fallback-note {
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
}

.cp-fallback-icon {
  font-size: 0.95rem;
  margin-top: 1px;
}

.cp-fallback-text {
  flex: 1;
}

.cp-result-banner {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  text-align: left;
  animation: satFadeIn 0.35s ease forwards;
}

.cp-result-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 4px;
}

.cp-result-details {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.45;
}



