/* ─── FONTS ─── */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,600,700,800&f[]=zodiak@400,700&display=swap');

/* ─── TOKENS ─── */
:root {
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:   clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg:   clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --text-xl:   clamp(1.2rem, 1rem + 1vw, 1.75rem);
  --text-2xl:  clamp(1.6rem, 1rem + 2vw, 2.5rem);
  --text-hero: clamp(2rem, 0.5rem + 4vw, 4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Deep space palette */
  --bg:           #06070f;
  --surface:      #0c0e1a;
  --surface-2:    #111326;
  --surface-3:    #171930;
  --border:       #1e2140;
  --border-bright:#2d3260;
  --text:         #e4e6f5;
  --text-muted:   #7a7e9a;
  --text-faint:   #3d4060;
  --accent:       #c5a352;
  --accent-dim:   #c5a35230;

  /* Data colors */
  --blue:    #4a8fd4;
  --blue-glow: #4a8fd420;
  --red:     #e05555;
  --red-glow: #e0555520;
  --green:   #4ec994;
  --green-glow: #4ec99420;
  --purple:  #9b6cf0;
  --purple-glow: #9b6cf020;
  --orange:  #f0934a;
  --orange-glow: #f0934a20;
  --teal:    #4acfc9;
  --teal-glow: #4acfc920;
  --yellow:  #f0d44a;
  --yellow-glow: #f0d44a20;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --tx: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--accent-dim); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ─── STAR CANVAS ─── */
#star-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.6;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-6);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 700; letter-spacing: -0.02em;
}
.logo-mark { width: 32px; height: 32px; }
.logo em { color: var(--accent); font-style: normal; }

.back-home-link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.back-home-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.header-right {
  display: flex; align-items: center; gap: var(--space-5);
}
.live-badge {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; color: var(--green);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.last-updated {
  font-size: var(--text-xs); color: var(--text-faint);
  font-family: var(--font-mono);
}
.refresh-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color var(--tx), border-color var(--tx), transform 0.3s;
}
.refresh-btn:hover { color: var(--text); border-color: var(--border-bright); }
.refresh-btn.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── NAV TABS ─── */
.nav-tabs {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
  background: var(--surface);
  position: sticky; top: 56px; z-index: 100;
  overflow-x: auto;
}
.nav-tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--tx), border-color var(--tx);
  display: flex; align-items: center; gap: var(--space-2);
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-tab-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ─── MAIN CONTENT ─── */
.main-content {
  padding-top: 56px;
  position: relative; z-index: 1;
}
.section-panel {
  display: none; padding: var(--space-6);
  animation: fade-up 0.3s ease both;
}
.section-panel.active { display: block; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-icon {
  width: 40px; height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.section-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.section-badge {
  margin-left: auto;
  font-size: var(--text-xs); font-weight: 700;
  padding: 3px 10px; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-live { background: #4ec99420; color: var(--green); border: 1px solid #4ec99440; }
.badge-nasa { background: #4a8fd420; color: var(--blue); border: 1px solid #4a8fd440; }
.badge-spacex { background: #e0555520; color: var(--red); border: 1px solid #e0555540; }
.badge-exo { background: #9b6cf020; color: var(--purple); border: 1px solid #9b6cf040; }

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--tx), box-shadow var(--tx);
}
.card:hover { border-color: var(--border-bright); }
.card-title {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: var(--space-3);
}
.card-value {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1;
}
.card-sub {
  font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2);
}
.card.accent-blue { border-left: 3px solid var(--blue); }
.card.accent-red { border-left: 3px solid var(--red); }
.card.accent-green { border-left: 3px solid var(--green); }
.card.accent-purple { border-left: 3px solid var(--purple); }
.card.accent-orange { border-left: 3px solid var(--orange); }
.card.accent-teal { border-left: 3px solid var(--teal); }
.card.accent-yellow { border-left: 3px solid var(--yellow); }
.card.accent-accent { border-left: 3px solid var(--accent); }

/* ─── LOADING SKELETON ─── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-text { height: 1em; margin-bottom: 0.4em; }
.skel-text.wide { width: 80%; }
.skel-text.short { width: 40%; }
.skel-block { height: 120px; }

/* ─── APOD PANEL ─── */
.apod-grid { display: grid; grid-template-columns: 1fr 420px; gap: var(--space-6); align-items: start; }
.apod-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  aspect-ratio: 16/9;
}
.apod-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.apod-image-wrap:hover img { transform: scale(1.02); }
.apod-image-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, #00000090);
}
.apod-date-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: #00000080; border: 1px solid #ffffff20;
  border-radius: 9999px; font-size: var(--text-xs);
  font-family: var(--font-mono);
  backdrop-filter: blur(8px);
}
.apod-info { display: flex; flex-direction: column; gap: var(--space-4); }
.apod-source-tag {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
}
.apod-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.2; }
.apod-explanation {
  font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7;
  max-height: 240px; overflow-y: auto;
}
.apod-explanation::-webkit-scrollbar { width: 3px; }
.apod-credit { font-size: var(--text-xs); color: var(--text-faint); font-style: italic; }

/* ─── ISS PANEL ─── */
.iss-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-6); align-items: start; }
.iss-map-wrap {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  height: 420px;
}
#iss-map { width: 100%; height: 100%; }
.iss-map-overlay {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: #00000090; backdrop-filter: blur(8px);
  border: 1px solid #ffffff15; border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.iss-coords {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--green);
  line-height: 1.8;
}
.iss-info { display: flex; flex-direction: column; gap: var(--space-4); }
.crew-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.crew-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
}
.crew-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-3); display: flex; align-items: center;
  justify-content: center; font-size: 14px; flex-shrink: 0;
}
.crew-name { font-weight: 600; }
.crew-craft {
  margin-left: auto; font-size: var(--text-xs); font-weight: 700;
  padding: 2px 8px; border-radius: 9999px;
}
.craft-iss { background: #4a8fd420; color: var(--blue); border: 1px solid #4a8fd440; }
.craft-tiangong { background: #e0555520; color: var(--red); border: 1px solid #e0555540; }

/* ─── SPACEX PANEL ─── */
.launch-list { display: flex; flex-direction: column; gap: var(--space-3); }
.launch-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: var(--space-4); align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--tx);
}
.launch-item:hover { border-color: var(--border-bright); }
.launch-num {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-faint); text-align: center;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.launch-fn { font-size: var(--text-lg); font-weight: 700; }
.launch-sn { font-size: var(--text-xs); font-weight: 700; color: var(--accent); display: block; }
.launch-name { font-weight: 700; font-size: var(--text-base); }
.launch-date { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }
.launch-details { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); max-width: 520px; }
.launch-status {
  font-size: var(--text-xs); font-weight: 700;
  padding: 4px 10px; border-radius: 9999px;
  white-space: nowrap;
}
.status-success { background: #4ec99420; color: var(--green); border: 1px solid #4ec99440; }
.status-failure { background: #e0555520; color: var(--red); border: 1px solid #e0555540; }
.status-upcoming { background: #f0934a20; color: var(--orange); border: 1px solid #f0934a40; }
.status-unknown { background: #3d406020; color: var(--text-faint); border: 1px solid var(--border); }

/* Rocket cards */
.rocket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--tx), transform var(--tx);
}
.rocket-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.rocket-card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.rocket-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.rocket-body { padding: var(--space-4) var(--space-5); }
.rocket-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.rocket-stat-row:last-child { border-bottom: none; }
.rocket-stat-label { color: var(--text-muted); }
.rocket-stat-val { font-weight: 700; font-family: var(--font-mono); }

/* Success rate bar */
.success-bar-wrap { margin-top: var(--space-4); }
.success-bar-label { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-1); }
.success-bar-track { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.success-bar-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }

/* Landpad grid */
.landpad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); }
.landpad-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
  transition: border-color var(--tx);
}
.landpad-card:hover { border-color: var(--border-bright); }
.landpad-name { font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.landpad-full { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-3); }
.landpad-stats { display: flex; gap: var(--space-3); }
.landpad-stat { text-align: center; }
.landpad-stat-val { font-size: var(--text-lg); font-weight: 700; font-family: var(--font-mono); }
.landpad-stat-label { font-size: 10px; color: var(--text-faint); }
.landpad-bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: var(--space-3); overflow: hidden; }
.landpad-bar-fill { height: 100%; background: var(--green); border-radius: 2px; }

/* ─── ASTEROIDS PANEL ─── */
.neo-radar-wrap {
  position: relative; display: flex; justify-content: center;
  align-items: center;
}
#neo-canvas { display: block; }
.neo-list { display: flex; flex-direction: column; gap: var(--space-2); }
.neo-item {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: var(--space-3); align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  transition: border-color var(--tx);
}
.neo-item:hover { border-color: var(--border-bright); }
.neo-item.hazardous { border-left: 3px solid var(--red); }
.neo-name { font-weight: 600; }
.neo-size { font-size: var(--text-xs); color: var(--text-muted); }
.neo-miss { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--teal); text-align: right; }
.neo-vel { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); text-align: right; }
.neo-hazard {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 9999px; white-space: nowrap;
}
.hazard-yes { background: #e0555520; color: var(--red); border: 1px solid #e0555540; }
.hazard-no  { background: #4ec99420; color: var(--green); border: 1px solid #4ec99440; }

/* ─── EXOPLANETS PANEL ─── */
.exo-counter-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-12) 0;
}
.exo-counter {
  text-align: center;
  position: relative;
}
.exo-count-value {
  font-family: var(--font-display); font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.exo-count-label {
  font-size: var(--text-xl); color: var(--text-muted); margin-top: var(--space-3);
}
.exo-count-sub { font-size: var(--text-sm); color: var(--text-faint); margin-top: var(--space-2); }
.exo-table {
  width: 100%; border-collapse: collapse; font-size: var(--text-sm);
}
.exo-table th {
  text-align: left; padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.exo-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: var(--text-xs);
  vertical-align: middle;
}
.exo-table tr:hover td { background: var(--surface-2); }
.exo-table td:first-child { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); }
.method-badge {
  padding: 2px 8px; border-radius: 9999px;
  font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.method-transit { background: #4a8fd420; color: var(--blue); }
.method-rv { background: #9b6cf020; color: var(--purple); }
.method-imaging { background: #f0934a20; color: var(--orange); }
.method-other { background: #3d406030; color: var(--text-muted); }

/* ─── HUBBLE/JWST GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.gallery-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--tx), transform var(--tx);
  cursor: pointer;
}
.gallery-item:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.gallery-img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); position: relative; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-item-body { padding: var(--space-3) var(--space-4); }
.gallery-item-source {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: var(--space-1);
}
.gallery-item-title { font-weight: 600; font-size: var(--text-sm); line-height: 1.3; }
.gallery-item-date { font-size: 10px; color: var(--text-faint); margin-top: var(--space-1); font-family: var(--font-mono); }
.gallery-no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

/* ─── STAT TICKER ─── */
.stat-ticker {
  display: flex; gap: var(--space-1);
  overflow: hidden; background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
}
.ticker-inner {
  display: flex; gap: var(--space-6);
  animation: ticker 40s linear infinite;
  white-space: nowrap; padding: var(--space-2) 0;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--text-muted);
}
.ticker-item strong { color: var(--text); }
.ticker-sep { color: var(--text-faint); }

/* ─── CHART CONTAINER ─── */
.chart-wrap {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.chart-title {
  font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-4);
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

/* Launches-per-year bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: var(--space-2); height: 120px; }
.bar-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); flex: 1; }
.bar {
  width: 100%; border-radius: 3px 3px 0 0;
  background: var(--blue); transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; min-height: 4px;
}
.bar:hover { background: var(--accent); }
.bar-count { font-size: 9px; color: var(--text-faint); }
.bar-year { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }

/* ─── DIVIDER ─── */
.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

/* ─── DATA SOURCE FOOTER ─── */
.data-sources {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-xs); color: var(--text-faint);
}
.data-source-tag {
  display: flex; align-items: center; gap: var(--space-1);
  padding: 3px 10px; border-radius: 9999px;
  background: var(--surface-2); border: 1px solid var(--border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .apod-grid, .iss-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-panel { padding: var(--space-4); }
  .site-header { padding: 0 var(--space-4); }
  .back-home-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
