/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #06060d;
  --card: rgba(255,255,255,0.028);
  --border: rgba(255,255,255,0.055);
  --accent: #00e5ff;
  --accent2: #b388ff;
  --text: #f0f0fa;
  --dim: #5a5a7a;
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.055);
  --radius: 20px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

#starfield {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== FLOATING PILL NAVBAR ===== */
.navbar {
  position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.6rem 1.4rem;
  background: rgba(6,6,13,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.nav-logo {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text); flex-shrink: 0;
}
.logo-star { color: var(--accent); margin-right: 4px; font-style: normal; }

.nav-links { display: flex; gap: 0.2rem; list-style: none; }
.nav-links a {
  color: var(--dim); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.85rem; border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--accent); background: rgba(0,229,255,0.08); }

/* ===== SECTION TAG ===== */
.section-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  display: inline-block; margin-bottom: 0.8rem;
}

/* ===== HERO (index only) ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8rem 5rem 5rem;
  position: relative; z-index: 1; overflow: hidden;
  gap: 3rem;
}
.hero-content { max-width: 520px; }
.hero-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2rem; display: block;
}
.hero-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #d0d0ff 40%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}
.hero-desc {
  color: var(--dim); font-size: 1rem; line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #06060d;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.3px;
  padding: 0.65rem 1.6rem; border-radius: 100px;
  text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.hero-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Solar animation */
.solar-anim {
  position: relative; width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sun-glow {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, #fffde7, #ffd740 40%, #ff6d00 80%);
  box-shadow: 0 0 40px rgba(255,200,0,0.6), 0 0 80px rgba(255,110,0,0.3);
  position: absolute;
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  animation: orbit-spin linear infinite;
  display: flex; align-items: flex-start; justify-content: center;
}
.orbit-1 { width: 120px; height: 120px; animation-duration: 4s; }
.orbit-2 { width: 185px; height: 185px; animation-duration: 7s; }
.orbit-3 { width: 265px; height: 265px; animation-duration: 12s; }
.orbit-4 { width: 345px; height: 345px; animation-duration: 20s; }
.planet { width: 11px; height: 11px; border-radius: 50%; margin-top: -5.5px; }
.p1 { background: #aaa; }
.p2 { background: #e8cda0; width: 15px; height: 15px; margin-top: -7.5px; }
.p3 { background: linear-gradient(135deg, #1976d2, #43a047); width: 15px; height: 15px; margin-top: -7.5px; }
.p4 { background: #e53935; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== BENTO GRID (hub / index) ===== */
.hub-section {
  position: relative; z-index: 1;
  padding: 0 5rem 7rem;
}
.hub-section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 2rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
  max-width: 1100px; margin: 0 auto;
}
.hub-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.hub-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 60%);
  pointer-events: none;
}
.hub-card:hover {
  background: rgba(255,255,255,0.042);
  box-shadow: var(--shadow-card), 0 16px 48px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}
.hub-card.large {
  grid-column: span 2;
}
.hub-card-tag {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.3rem;
}
.hub-card h2 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.3px;
}
.hub-card.large h2 { font-size: 1.6rem; }
.hub-card p { color: var(--dim); font-size: 0.85rem; line-height: 1.65; flex: 1; }
.hub-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  margin-top: 0.5rem;
}
.hub-card-icon {
  font-size: 2rem; margin-bottom: 0.4rem;
}
.hub-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1px;
  color: #ff4455; margin-bottom: 0.3rem;
}
.hub-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ff4455;
  box-shadow: 0 0 6px #ff4455; animation: pulse 1.5s infinite;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative; z-index: 1;
  padding: 8rem 5rem 3rem;
  max-width: 900px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -1px;
  color: var(--text); margin-bottom: 0.8rem;
}
.page-hero p { color: var(--dim); font-size: 1rem; }

/* ===== TRACKER LAYOUT ===== */
.tracker-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 310px 1fr;
  height: calc(100vh - 230px);
  gap: 1rem; padding: 0 1.5rem 1.5rem;
}

.tracker-sidebar {
  display: flex; flex-direction: column; gap: 0.9rem;
  overflow-y: auto; padding-right: 4px;
}
.tracker-sidebar::-webkit-scrollbar { width: 3px; }
.tracker-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 4px;
}

/* Sidebar cards */
.sidebar-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.2rem;
}
.sidebar-card-title {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 0.9rem;
}

/* ISS stats */
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .stat-label { color: var(--dim); }
.stat-row .stat-val {
  color: var(--accent); font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem; font-weight: 500;
}

/* Starlink section */
.starlink-section .starlink-count {
  font-size: 2rem; font-weight: 700; color: var(--accent);
  line-height: 1; margin-bottom: 0.3rem;
}
.starlink-section .starlink-label { font-size: 0.75rem; color: var(--dim); margin-bottom: 0.8rem; }
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(0,229,255,0.1); color: var(--accent);
  margin-bottom: 0.9rem;
}
.status-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; }
.toggle-btn {
  width: 100%; padding: 0.5rem; border-radius: 100px;
  border: 1px solid var(--border); background: none;
  color: var(--dim); font-size: 0.78rem; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
}
.toggle-btn:hover, .toggle-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0,229,255,0.07);
}

/* Crew */
.crew-member {
  font-size: 0.8rem; color: var(--dim); padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.crew-member:last-child { border-bottom: none; }

/* Map area */
.tracker-main { display: flex; flex-direction: column; gap: 0.8rem; }
#tracker-map {
  flex: 1; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-card); min-height: 300px;
}
.map-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.map-btn {
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--dim); padding: 0.45rem 1.1rem;
  border-radius: 100px; border: none;
  font-size: 0.78rem; font-family: inherit; cursor: pointer;
  transition: all 0.2s;
}
.map-btn:hover, .map-btn.active {
  background: rgba(0,229,255,0.1); color: var(--accent);
}

/* ===== LIVE CAMS ===== */
.cams-layout {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 3rem 6rem;
  display: flex; flex-direction: column; gap: 1.8rem;
}

.cam-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  color: var(--dim); text-transform: uppercase; margin-bottom: 0.9rem;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff4455; box-shadow: 0 0 7px #ff4455;
  animation: pulse 1.5s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.cam-featured {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.5rem;
}
.cam-frame-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius-sm); overflow: hidden; background: #000;
}
.cam-frame-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.cam-info { margin-top: 1rem; font-size: 0.82rem; color: var(--dim); line-height: 1.7; }
.cam-fallback {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 0.8rem;
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(0,229,255,0.25);
  padding: 0.35rem 1rem; border-radius: 100px;
  transition: background 0.2s;
}
.cam-fallback:hover { background: rgba(0,229,255,0.08); }

.cam-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.cam-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.2rem;
  transition: transform 0.2s;
}
.cam-card:hover { transform: translateY(-3px); }

.stream-note {
  background: rgba(0,229,255,0.04);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.4rem;
  font-size: 0.82rem; color: var(--dim); line-height: 1.7;
}

/* ===== PAGE CONTENT WRAPPER ===== */
.page-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 3rem 6rem;
}

/* ===== ECLIPSE FILTER ===== */
.eclipse-filter-row {
  display: flex; gap: 0.5rem; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.4rem 1.1rem; border-radius: 100px;
  border: 1px solid var(--border); background: none;
  color: var(--dim); font-size: 0.8rem; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.filter-btn.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3);
  color: var(--accent);
}

/* ===== ECLIPSE CARDS ===== */
.eclipse-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
}
.eclipse-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.8rem;
  transition: transform 0.2s, background 0.2s;
}
.eclipse-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.038); }

.eclipse-type { display: flex; align-items: center; gap: 10px; margin-bottom: 1.1rem; }
.eclipse-icon { font-size: 1.6rem; }
.eclipse-badge {
  font-size: 0.62rem; letter-spacing: 2.5px; padding: 3px 9px;
  border-radius: 100px; font-weight: 700; text-transform: uppercase;
}
.badge-solar { color: #ffb300; background: rgba(255,179,0,0.1); }
.badge-lunar { color: var(--accent2); background: rgba(179,136,255,0.1); }

.eclipse-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.eclipse-date { color: var(--accent); font-size: 0.82rem; margin-bottom: 0.6rem; font-variant-numeric: tabular-nums; }
.eclipse-card p { color: var(--dim); font-size: 0.82rem; line-height: 1.65; }
.eclipse-regions { font-size: 0.78rem; color: var(--dim); margin-top: 0.5rem; }
.eclipse-regions b { color: rgba(255,255,255,0.5); }
.eclipse-countdown {
  margin-top: 1.1rem;
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ===== SATELLITE LIST ===== */
.satellite-list {
  display: flex; flex-direction: column;
}
.sat-item {
  display: flex; gap: 1.4rem; align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
.sat-item:first-child { border-top: 1px solid var(--border); }
.sat-item-icon { font-size: 1.8rem; flex-shrink: 0; padding-top: 2px; }
.sat-item-body { flex: 1; }
.sat-item-header { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.sat-item-name { font-size: 0.95rem; font-weight: 700; }
.sat-item-norad { font-size: 0.68rem; color: var(--dim); }
.sat-item-status {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 100px;
}
.status-active { color: var(--accent); background: rgba(0,229,255,0.1); }
.status-defunct { color: #ff6677; background: rgba(255,102,119,0.1); }
.sat-item-desc { color: var(--dim); font-size: 0.83rem; line-height: 1.65; margin-bottom: 0.8rem; }
.sat-item-stats { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sat-stat-pill {
  font-size: 0.72rem; color: var(--dim);
  padding: 3px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.055);
}
.sat-stat-pill span { color: var(--text); font-weight: 500; }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 2.5rem;
  color: var(--dim); font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .hero { padding: 8rem 2.5rem 4rem; }
  .hub-section { padding: 0 2.5rem 5rem; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .hub-card.large { grid-column: span 2; }
  .page-hero { padding: 7rem 2.5rem 2.5rem; }
  .cams-layout, .page-content { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 768px) {
  .navbar {
    top: 0.8rem; gap: 0.8rem; padding: 0.5rem 1rem;
    max-width: calc(100vw - 2rem);
  }
  .nav-logo { display: none; }
  .nav-links a { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .hero { flex-direction: column; padding: 7rem 1.5rem 3rem; }
  .solar-anim { width: 240px; height: 240px; }
  .orbit-3, .orbit-4 { display: none; }
  .hub-section { padding: 0 1.5rem 4rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .hub-card.large { grid-column: span 1; }
  .page-hero { padding: 6.5rem 1.5rem 2rem; }
  .tracker-layout { grid-template-columns: 1fr; height: auto; padding: 0 1rem 2rem; }
  .tracker-sidebar { max-height: 280px; }
  #tracker-map { height: 380px; }
  .cams-layout, .page-content { padding-left: 1.2rem; padding-right: 1.2rem; }
  .cam-grid { grid-template-columns: 1fr; }
  .eclipse-grid { grid-template-columns: 1fr; }
}

/* ===== GLOBE CONTAINER ===== */
#globe-container {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 400px;
  background: #000008;
}

/* ISS pulse animation */
@keyframes iss-glow {
  0%,100% { box-shadow: 0 0 20px rgba(0,229,255,0.8), 0 0 50px rgba(0,229,255,0.3); }
  50%      { box-shadow: 0 0 35px rgba(0,229,255,1),   0 0 80px rgba(0,229,255,0.5); }
}

/* Starlink tooltip */
.starlink-tooltip { background: rgba(6,6,13,0.9); color: #00e5ff; border: 1px solid rgba(0,229,255,0.2); font-size: 0.7rem; }

/* ===== NIGHT SKY PAGE ===== */
.sky-search-bar {
  margin-bottom: 1.5rem;
}
.sky-search-wrap {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.3rem 0.3rem 1.1rem;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.sky-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.sky-search-icon { font-size: 1rem; flex-shrink: 0; }
.sky-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  min-width: 0;
}
.sky-search-input::placeholder { color: rgba(255,255,255,0.25); }
.sky-search-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sky-search-btn:hover { opacity: 0.85; }
.sky-location-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.1rem 0;
  font-size: 0.8rem;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sky-location-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.2rem;
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem; color: var(--dim);
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.sky-legend { font-size: 0.75rem; color: var(--dim); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sky-error { background: rgba(255,100,100,0.08); border-radius: var(--radius-sm); padding: 0.8rem 1.2rem; font-size: 0.82rem; color: #ff9999; margin-bottom: 1rem; }
.sky-summary { font-size: 0.85rem; color: var(--dim); margin-bottom: 1.5rem; }
.sky-summary b { color: var(--accent); }

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.constellation-card {
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); padding: 1.2rem;
  transition: transform 0.2s, background 0.2s;
}
.constellation-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.04); }
.constellation-card.visible { box-shadow: 0 0 0 1px rgba(0,229,255,0.2); }
.constellation-card.hidden-constellation { opacity: 0.45; }
.const-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.const-emoji { font-size: 1.6rem; flex-shrink: 0; }
.const-title-group { flex: 1; min-width: 0; }
.const-name { font-size: 0.9rem; font-weight: 700; display: block; }
.const-alt { font-size: 0.72rem; font-family: monospace; }
.alt-visible { color: var(--accent); }
.alt-hidden { color: var(--dim); }
.const-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); background: rgba(0,229,255,0.1); padding: 2px 7px; border-radius: 100px; white-space: nowrap; }
.const-stars { font-size: 0.75rem; color: var(--accent2); margin-bottom: 0.4rem; }
.const-myth { font-size: 0.78rem; color: var(--dim); line-height: 1.5; }

/* ===== EVENTS PAGE ===== */
.events-section-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 1.4rem;
}

/* APOD */
.apod-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.apod-loading { padding: 3rem; text-align: center; color: var(--dim); font-size: 0.85rem; }
.apod-media { width: 100%; max-height: 500px; overflow: hidden; }
.apod-img { width: 100%; height: 500px; object-fit: cover; display: block; }
.apod-iframe { width: 100%; height: 400px; border: none; display: block; }
.apod-body { padding: 1.8rem; }
.apod-date { font-size: 0.72rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 0.5rem; }
.apod-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.apod-text { font-size: 0.85rem; color: var(--dim); line-height: 1.75; }
.apod-credit { font-size: 0.72rem; color: var(--dim); margin-top: 0.8rem; opacity: 0.6; }

/* Meteor Showers */
.meteor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.meteor-card { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); padding: 1.4rem; transition: transform 0.2s; }
.meteor-card:hover { transform: translateY(-2px); }
.meteor-card.meteor-tonight { box-shadow: 0 0 0 1px rgba(0,229,255,0.3), 0 0 20px rgba(0,229,255,0.08); }
.meteor-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.meteor-icon { font-size: 1.6rem; flex-shrink: 0; }
.meteor-name { font-size: 0.9rem; font-weight: 700; }
.meteor-radiant { font-size: 0.72rem; color: var(--dim); }
.meteor-rate { margin-left: auto; font-size: 1.4rem; font-weight: 700; color: var(--accent); line-height: 1; white-space: nowrap; }
.meteor-rate span { font-size: 0.65rem; color: var(--dim); font-weight: 400; }
.meteor-date { font-size: 0.78rem; color: var(--dim); margin-bottom: 0.6rem; }
.meteor-details { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.meteor-details span { font-size: 0.72rem; color: var(--dim); background: rgba(255,255,255,0.04); padding: 2px 8px; border-radius: 100px; box-shadow: var(--shadow-card); }
.meteor-countdown { font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.tonight-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; color: #ffb300; background: rgba(255,179,0,0.12); padding: 2px 6px; border-radius: 100px; margin-left: 4px; }

/* MW Events */
.mw-events { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.mw-event-card { background: var(--bg); padding: 1.6rem; transition: background 0.2s; }
.mw-event-card:hover { background: rgba(255,255,255,0.02); }
.mw-event-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.7rem; }
.mw-event-icon { font-size: 1.8rem; flex-shrink: 0; }
.mw-event-title-group { flex: 1; }
.mw-event-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.mw-event-status { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.mw-event-desc { font-size: 0.83rem; color: var(--dim); line-height: 1.7; margin-bottom: 0.6rem; }
.mw-event-detail { font-size: 0.72rem; color: var(--dim); opacity: 0.6; font-family: monospace; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { display: flex; align-items: center; margin-left: 1rem; }
.lang-select {
  background: rgba(6,6,13,0.8);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}
.lang-select:focus, .lang-select:hover { border-color: var(--accent); }
.lang-select option { background: #06060d; color: #fff; }
