/* Earth Hub Specific Styles */
:root {
  --earth-glass: rgba(255, 255, 255, 0.03);
  --earth-glass-border: rgba(255, 255, 255, 0.08);
  --earth-glow: rgba(36, 158, 242, 0.15);
  --teal: #2dd4c8;
  --teal-dim: rgba(45, 212, 200, 0.1);
  --blue: #3b9eff;
  --blue-dim: rgba(59, 158, 255, 0.1);
  --green: #35d47e;
  --green-dim: rgba(53, 212, 126, 0.1);
  --amber: #f0a832;
  --amber-dim: rgba(240, 168, 50, 0.1);
  --red: #f05060;
  --red-dim: rgba(240, 80, 96, 0.1);
  --accent: #2dd4c8;
  --deep: #030610;
  --surface: #0b1220;
  --surface-hi: #10192c;
  --border: rgba(255, 255, 255, 0.06);
  --border-hi: rgba(255, 255, 255, 0.11);
  --text: #edf2f8;
  --text-dim: #526070;
  --muted: #526070;
  --faint: #18243a;
}

.earth-hub-page {
  background: #020408;
  color: #fff;
  overflow-x: hidden;
}

.earth-hub-page .earth-hero {
  position: relative;
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--deep);
  padding-top: 56px;
  padding-bottom: 10px;
}

.earth-hub-page .hero-content { 
  position: relative; 
  z-index: 2; 
  padding: 32px 20px 40px; 
}

@media (min-width: 768px) {
  .hero-content { padding: 48px 40px 56px; }
  .wrap { padding: 80px 40px; }
  .wrap-sm { padding: 80px 40px; }
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 64px 20px; }
.wrap-sm { max-width: 760px; margin: 0 auto; padding: 64px 20px; }

.sec-label { font-family: var(--fn-mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); margin-bottom: 8px; }
.sec-title { font-family: var(--fn-display); font-size: clamp(24px, 5vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 6px; }
.sec-sub { font-size: 14px; color: var(--muted); font-weight: 300; }
.row-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 12px; }

.earth-hub-page .see-all {
  font-family: var(--fn-mono);
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(200, 240, 255, 0.05);
  border: 1px solid rgba(200, 240, 255, 0.1);
  transition: all 0.3s;
  white-space: nowrap;
}

.earth-hub-page .see-all:hover {
  background: rgba(200, 240, 255, 0.1);
  border-color: var(--accent);
  transform: translateX(4px);
}

.earth-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, #081830 0%, #03060e 60%, #020408 100%);
}

/* Stars background */
.earth-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 7% 9%, rgba(200, 240, 255, .55) 0%, transparent 100%),
    radial-gradient(1px 1px at 19% 24%, rgba(200, 240, 255, .3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 4%, rgba(200, 240, 255, .5) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 38%, rgba(200, 240, 255, .2) 0%, transparent 100%),
    radial-gradient(1px 1px at 61% 11%, rgba(200, 240, 255, .4) 0%, transparent 100%),
    radial-gradient(1px 1px at 76% 2%, rgba(200, 240, 255, .35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 17%, rgba(200, 240, 255, .5) 0%, transparent 100%),
    radial-gradient(1px 1px at 94% 45%, rgba(200, 240, 255, .2) 0%, transparent 100%),
    radial-gradient(1px 1px at 3% 52%, rgba(200, 240, 255, .25) 0%, transparent 100%),
    radial-gradient(1px 1px at 54% 62%, rgba(200, 240, 255, .2) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 78%, rgba(200, 240, 255, .15) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 55%, rgba(200, 240, 255, .3) 0%, transparent 100%);
}

/* Earth Visual Container */
.earth-visual-container {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: min(800px, 80dvh);
  height: min(800px, 80dvh);
  pointer-events: auto;
  z-index: 1;
  opacity: 0.8;
  filter: drop-shadow(0 0 100px rgba(59, 158, 255, 0.2));
}

@media (max-width: 768px) {
  .earth-visual-container {
    right: 50%;
    top: 35%;
    transform: translate(50%, -50%);
    width: 90vw;
    height: 90vw;
    opacity: 0.3;
  }
}

#earth-canvas-container canvas {
  mask-image: radial-gradient(circle, black 60%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 80%);
}

.earth-glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(58, 134, 255, 0.15) 0%, transparent 70%);
  animation: glowPulse 6s ease infinite;
  pointer-events: none;
}

/* PLANETARY MAP SECTION */
.mapping-section {
  margin-bottom: 120px;
}

.map-container {
  padding: 8px;
  overflow: hidden;
  position: relative;
}

.map-viewport {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 2/1;
}

.main-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.5s;
}

.map-container:hover .main-map-img {
  opacity: 1;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 10% 20%;
  pointer-events: none;
}

.map-labels-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-poi {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.poi-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.poi-label {
  font-family: var(--fn-mono);
  font-size: 9px;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Vignette overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(5, 8, 15, .1) 0%,
      rgba(5, 8, 15, 0) 15%,
      rgba(5, 8, 15, 0) 45%,
      rgba(5, 8, 15, .6) 68%,
      rgba(5, 8, 15, .98) 100%);
}

.glass-card {
  background: var(--earth-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--earth-glass-border);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-tag { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  font-family: var(--fn-mono); 
  font-size: 10px; 
  letter-spacing: 2.5px; 
  color: var(--accent); 
  margin-bottom: 14px; 
  opacity: 0;
  animation: up 0.5s ease 0.2s forwards;
}

.live-dot { 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: var(--green); 
  animation: blink 2s ease infinite; 
}

@keyframes blink { 
  0%,100%{opacity:1} 50%{opacity:0.25} 
}

.hero-title { 
  font-family: var(--fn-display); 
  font-size: clamp(36px,9vw,72px); 
  font-weight: 800; 
  line-height: 0.95; 
  letter-spacing: -0.02em; 
  color: var(--text); 
  margin-bottom: 16px; 
  opacity: 0;
  animation: up 0.6s ease 0.3s forwards;
}

.hero-title em { 
  display: block; 
  color: var(--accent); 
  font-style: normal; 
}

.hero-desc { 
  font-size: 15px; 
  color: var(--muted); 
  line-height: 1.7; 
  font-weight: 300; 
  max-width: 420px; 
  margin-bottom: 28px; 
  opacity: 0;
  animation: up 0.6s ease 0.45s forwards;
}

.hero-cta-hub {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  opacity: 0;
  animation: up 0.6s ease 0.55s forwards;
}

@media (max-width: 600px) {
  .hero-cta-hub { flex-direction: row; gap: 10px; }
  .hero-cta-hub .btn-tracker, .hero-cta-hub .btn-ghost {
    flex: 1; padding: 14px 10px; font-size: 10px; justify-content: center; text-align: center; white-space: nowrap;
  }
}

.earth-hub-page .btn-tracker {
  display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; padding: 14px 28px; border-radius: 40px; font-family: var(--fn-mono); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 10px 20px rgba(36, 158, 242, 0.2), inset 0 1px 1px rgba(255,255,255,0.2);
}

.earth-hub-page .btn-tracker:hover { transform: translateY(-3px) scale(1.02); background: #3ba7f5; box-shadow: 0 15px 30px rgba(36, 158, 242, 0.4), inset 0 1px 1px rgba(255,255,255,0.3); }

.earth-hub-page .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); color: #fff; padding: 14px 28px; border-radius: 40px; font-family: var(--fn-mono); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; border: 1px solid var(--border-hi); backdrop-filter: blur(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.earth-hub-page .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); transform: translateY(-2px); }

.hero-earth-visual {
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 70vh;
  height: 70vh;
  pointer-events: none;
  z-index: 1;
}

.earth-glow-sphere {
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle, var(--earth-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8;
}

.earth-atmosphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #369ef2, #1e3a8a 60%, #020617);
  box-shadow: inset -20px -20px 50px rgba(0, 0, 0, 0.8), inset 20px 20px 50px rgba(255, 255, 255, 0.1), 0 0 100px rgba(54, 158, 242, 0.2);
}

.earth-hero-stats {
  display: flex;
  gap: 20px;
}

.h-stat {
  padding: 16px 24px;
  min-width: 140px;
}

.h-stat-label {
  font-size: 9px;
  opacity: 0.5;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.h-stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.h-stat-val small {
  font-size: 12px;
  opacity: 0.6;
  margin-left: 4px;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.vital-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Bottom accent line */
.vital-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.vital-card.co2::after {
  background: linear-gradient(90deg, var(--amber), transparent)
}

.vital-card.temp::after {
  background: linear-gradient(90deg, var(--red), transparent)
}

.vital-card.sea::after {
  background: linear-gradient(90deg, var(--blue), transparent)
}

.vital-card.ice::after {
  background: linear-gradient(90deg, var(--teal), transparent)
}

.vital-icon {
  font-size: 40px;
  background: rgba(255, 255, 255, 0.03);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vital-label {
  font-family: var(--fn-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.vital-val {
  font-family: var(--fn-display);
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.vital-unit {
  font-family: var(--fn-mono);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.vital-context {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 8px;
}

.vital-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.03);
}

/* Trend classes */
.up-bad {
  background: var(--red-dim);
  color: var(--red)
}

.up-ok {
  background: var(--amber-dim);
  color: var(--amber)
}

.dn-bad {
  background: var(--red-dim);
  color: var(--red)
}

.dn-ok {
  background: var(--teal-dim);
  color: var(--teal)
}

/* Mini chart bars */
.vital-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  margin-top: 12px;
}

.vbar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vbar:hover {
  opacity: 1
}

.vital-card.co2 .vital-val {
  color: var(--amber);
}

.vital-card.sea .vital-val {
  color: var(--blue);
}

.vital-card.temp .vital-val {
  color: var(--red);
}

.vital-card.ice .vital-val {
  color: var(--teal);
}

.event-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-badge {
  padding: 8px 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.badge-fire {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.badge-storm {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-volcano {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.event-body {
  padding: 24px;
  flex-grow: 1;
}

.event-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.event-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.event-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--earth-glass-border);
  font-family: var(--fn-mono);
  font-size: 9px;
  color: var(--muted);
}

.source-tag {
  color: var(--accent);
}

.sat-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.sat-overlay {
  padding: 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.sat-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.sat-coords {
  font-family: var(--fn-mono);
  font-size: 10px;
  color: var(--accent);
  display: flex;
  gap: 12px;
  opacity: 0.8;
}

.sat-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0;
}

.sat-caption {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 300;
}

.sat-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sat-mini-card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
}

.sat-mini-thumb {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-right: 1px solid var(--earth-glass-border);
}

.sat-mini-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sat-mini-id {
  font-family: var(--fn-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.sat-mini-link {
  font-family: var(--fn-mono);
  font-size: 9px;
  color: var(--accent);
  margin-top: 8px;
  display: block;
  letter-spacing: 2px;
}

.sat-hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.sat-main-vessel {
  padding: 0;
  overflow: hidden;
}

.earth-quote-section {
  padding: 120px 0;
  text-align: center;
}

.earth-quote {
  font-family: var(--fn-display);
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 32px;
}

.earth-cite {
  font-family: var(--fn-mono);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  letter-spacing: 4px;
}

@media (max-width: 1200px) {
  .earth-visual-container {
    width: 50vh;
    height: 50vh;
  }
}

@media (max-width: 768px) {
  .hero-earth-visual {
    display: none;
  }

  .sat-grid {
    grid-template-columns: 1fr;
  }

  .earth-hero {
    min-height: auto;
    padding-bottom: 80px;
  }

  .sat-hero-img {
    height: 350px;
  }
}

.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

.skeleton-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-line.sm {
  width: 40%;
}

.skeleton-line.md {
  width: 70%;
}

.skeleton-line.lg {
  width: 90%;
}

.loading-full {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 4px;
  font-size: 12px;
}
/* DISCOVERY SECTION */
.discovery-section {
  margin-top: 60px;
  margin-bottom: 100px;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.disco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.disco-icon-wrap {
  font-size: 32px;
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.disco-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #fff;
}

.disco-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.disco-link {
  font-family: var(--fn-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 600;
}

.disco-bg-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 158, 255, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.disco-card:hover .disco-bg-shimmer {
  opacity: 1;
}

.disco-card:hover h3 {
  color: var(--blue);
}

@media (max-width: 900px) {
  .discovery-grid { grid-template-columns: 1fr; }
}

/* EVENTS GRID & CARDS */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.event-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-card:hover {
  transform: translateY(-8px);
}

.live-blink {
  color: #ff3e3e;
  margin-right: 6px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.event-icon-mini {
  font-size: 24px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.badge-ice { background: var(--teal-dim); color: var(--teal); }
.badge-flood { background: var(--blue-dim); color: var(--blue); }
.badge-quake { background: var(--amber-dim); color: var(--amber); }

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 10px;
  font-family: var(--fn-mono);
  border: 1px solid var(--blue-dim);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.event-link:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
}


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


/* SECTION WRAPPERS */
.vitals-section, .events-section, .discovery-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.events-section {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
}


/* STATUS STRIP (v2.7.8) */
.status-strip {
  background: #050810;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 10;
}

.status-strip::-webkit-scrollbar {
  display: none;
}

.status-inner {
  display: flex;
  min-width: max-content;
  padding: 0;
}

.stat-cell {
  padding: 18px 32px;
  border-right: 1px solid var(--border);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-label {
  font-family: var(--fn-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #5a6680;
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--fn-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.stat-val small {
  font-size: 11px;
  opacity: 0.4;
  margin-left: 4px;
  font-weight: 400;
}

.stat-val.amber { color: var(--amber); text-shadow: 0 0 15px rgba(240, 168, 50, 0.2); }
.stat-val.red { color: var(--red); text-shadow: 0 0 15px rgba(240, 80, 96, 0.2); }
.stat-val.blue { color: var(--blue); text-shadow: 0 0 15px rgba(59, 158, 255, 0.2); }
.stat-val.teal { color: var(--teal); text-shadow: 0 0 15px rgba(45, 212, 200, 0.2); }

@media (max-width: 768px) {
  .stat-cell { padding: 14px 20px; min-width: 140px; }
  .stat-val { font-size: 15px; }
}


/* EVENTS LIST VIEW (v2.7.9) */
.events-list-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.events-list-header {
  display: grid;
  grid-template-columns: 140px 120px 1fr 100px 100px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--fn-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.event-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr 100px 100px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}

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

.event-row:hover {
  background: rgba(255,255,255,0.03);
}

.col-date {
  font-family: var(--fn-mono);
  font-size: 12px;
  color: var(--muted);
}

.col-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 20px;
}

.col-source {
  font-family: var(--fn-mono);
  font-size: 10px;
  color: var(--accent);
  opacity: 0.8;
}

.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--fn-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bg-fire { background: rgba(240, 80, 96, 0.1); color: var(--red); border: 1px solid rgba(240, 80, 96, 0.2); }
.bg-storm { background: rgba(59, 158, 255, 0.1); color: var(--blue); border: 1px solid rgba(59, 158, 255, 0.2); }
.bg-volcano { background: rgba(240, 168, 50, 0.1); color: var(--amber); border: 1px solid rgba(240, 168, 50, 0.2); }
.bg-ice { background: rgba(45, 212, 200, 0.1); color: var(--teal); border: 1px solid rgba(45, 212, 200, 0.2); }
.bg-flood { background: rgba(53, 212, 126, 0.1); color: var(--green); border: 1px solid rgba(53, 212, 126, 0.2); }

.row-link {
  font-family: var(--fn-mono);
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(200, 240, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.row-link:hover {
  background: var(--accent);
  color: var(--deep);
}

.pagination-hub {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--fn-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
  color: var(--text);
}

.page-btn.active {
  background: var(--accent);
  color: var(--deep);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .events-list-header { display: none; }
  .event-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
  }
  .col-title { grid-column: span 2; white-space: normal; padding-right: 0; }
  .col-action { text-align: right; }
}


/* EVENT FILTERS (v2.8.0) */
.filter-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar { display: none; }

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--fn-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--deep);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(45, 212, 200, 0.2);
}

.animate-in {
  animation: rowFadeIn 0.3s ease forwards;
}

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


/* TIMELAPSE GALLERY (v2.8.2) */
.sat-timelapse-container {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}

.sat-main-vessel {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 800px;
  background: radial-gradient(circle at center, #051020 0%, #000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sat-img-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#active-sat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.sat-info-overlay {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 5;
  text-align: left;
}

.sat-tag {
  font-family: var(--fn-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

#sat-time-display {
  font-family: var(--fn-display);
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

.sat-coords-display {
  font-family: var(--fn-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.timelapse-bar-container {
  padding: 24px 32px;
  background: rgba(10, 15, 30, 0.9);
  border-top: 1px solid var(--border);
}

.sat-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  margin-bottom: 12px;
}

.sat-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(45, 212, 200, 0.5);
}

.seeker-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--fn-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}

.ctrl-btn.main-play {
  background: var(--accent);
  color: var(--deep);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--fn-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.ctrl-btn.main-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 212, 200, 0.3);
}

@media (max-width: 768px) {
  .sat-info-overlay { top: 16px; left: 16px; }
  #sat-time-display { font-size: 20px; }
  .timelapse-bar-container { padding: 16px; }
}


/* SMART PAGINATION & MOBILE COMPACT (v2.8.3) */
.pagination-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}

.nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--fn-mono);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover:not(.disabled) {
  border-color: var(--accent);
  color: var(--text);
}

.nav-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-dots {
  color: var(--muted);
  padding: 0 4px;
}

.row-meta-mobile {
  display: none;
}

@media (max-width: 900px) {
  .events-list-header { 
    display: none; 
  }
  
  .event-row {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 8px;
  }

  .col-type {
    margin-bottom: 2px;
  }

  .col-date, .col-source, .col-action {
    display: none;
  }

  .col-title {
    font-size: 15px;
    white-space: normal;
    line-height: 1.4;
    padding-right: 0;
  }

  .row-meta-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fn-mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
  }

  .m-sep {
    opacity: 0.3;
  }

  .m-source {
    color: var(--accent);
    opacity: 0.8;
  }

  .m-link {
    margin-left: auto;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 0;
  }

  .pagination-navbar {
    gap: 4px;
  }
  
  .page-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

