/* ============================================================
   FROST PREDICTION ALTIPLANO — Minimal Theme
   IJACSA Vol. 16, No. 9, 2025
   ============================================================ */

:root {
  --navy:       #0f2444;
  --navy-mid:   #1a3a5c;
  --blue:       #1d4ed8;
  --blue-faint: #eff6ff;
  --surface:    #f7f8fa;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --muted:      #64748b;
  --green:      #15803d;
  --green-bg:   #f0fdf4;
  --green-bd:   #bbf7d0;
  --amber:      #b45309;
  --amber-bg:   #fffbeb;
  --amber-bd:   #fde68a;
  --orange:     #c2410c;
  --orange-bg:  #fff7ed;
  --orange-bd:  #fed7aa;
  --red:        #b91c1c;
  --red-bg:     #fef2f2;
  --red-bd:     #fecaca;
  --radius:     6px;
  --radius-lg:  10px;
  --tr:         0.15s ease;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 2px 8px rgba(0,0,0,.09);
  --shadow-lg:  0 6px 20px rgba(0,0,0,.11);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

a { color: var(--blue); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--navy); }
p { margin-bottom: 0; }

/* ---- Navbar ---- */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  will-change: box-shadow;
  transform: translateZ(0); /* GPU layer — evita reflow en scroll mobile */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.navbar-brand:hover .brand-logo { transform: scale(1.08) rotate(-3deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Bottom nav (mobile) ---- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  height: 60px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color var(--tr), background var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--navy);
}

.bottom-nav-item.active i {
  transform: translateY(-2px);
}

/* Empujar contenido para que no quede bajo el bottom nav */
@media (max-width: 991px) {
  body { padding-bottom: 60px; }
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted) !important;
  padding: 14px 10px !important;
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
  white-space: nowrap;
}

.nav-link:hover  { color: var(--text) !important; }
.nav-link.active { color: var(--navy) !important; border-bottom-color: var(--navy); }
.navbar-toggler  { border: 1px solid var(--border); padding: 4px 8px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  font-size: 0.82rem;
  padding: 44px 0 20px;
  margin-top: 80px;
}

.site-footer h6 {
  color: rgba(255,255,255,.85);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}

.site-footer a { color: rgba(255,255,255,.5); }
.site-footer a:hover { color: white; }

.footer-divider { border-color: rgba(255,255,255,.1); margin: 24px 0 16px; }

.footer-bottom {
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Page Header ---- */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 36px;
}

.page-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.page-header .lead {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: white;
  padding: 72px 0 64px;
}

.hero h1 {
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero .subtitle {
  color: rgba(255,255,255,.6);
  font-size: 0.97rem;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 22px;
}

.hero-metrics {
  display: flex;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-metric {
  flex: 1;
  padding: 15px 14px;
  border-right: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.hero-metric:last-child { border-right: none; }

.hero-metric .val {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-metric .lbl {
  font-size: 0.66rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 5px;
}

/* ---- Sections ---- */
.section    { padding: 60px 0; }
.section-sm { padding: 36px 0; }
.section-header { margin-bottom: 28px; }

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.section-header p { color: var(--muted); font-size: 0.88rem; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--tr);
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 0.84rem;
  font-weight: 600;
}

.card-body { padding: 18px; }

/* ---- Metric Cards ---- */
.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}

.metric-card .m-value {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.metric-card .m-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 7px;
}

/* ---- Info rows ---- */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  gap: 12px;
}

.info-row:last-child { border-bottom: none; }
.info-label  { color: var(--muted); flex-shrink: 0; }
.info-value  { font-weight: 600; text-align: right; }

/* ---- Tables ---- */
.table { font-size: 0.845rem; color: var(--text); margin: 0; }

.table thead th {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .055em;
  padding: 10px 13px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.table tbody td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--blue-faint); }
.table tbody tr.row-best td { background: var(--green-bg); font-weight: 600; }

/* ---- Category badges ---- */
.cat-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 4px;
}

.cat-statistical { background: #eff6ff; color: #1d4ed8; }
.cat-ml          { background: #f0fdf4; color: #15803d; }
.cat-dl          { background: #fdf4ff; color: #7c3aed; }
.cat-hybrid      { background: #fff7ed; color: #c2410c; }

/* ---- Buttons ---- */
.btn {
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 8px 18px;
  transition: all var(--tr);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary         { background: var(--navy); border-color: var(--navy); color: white; }
.btn-primary:hover   { background: var(--navy-mid); border-color: var(--navy-mid); color: white; }

.btn-outline-primary         { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-primary:hover   { background: var(--navy); color: white; }

.btn-light       { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: white; }
.btn-light:hover { background: rgba(255,255,255,.2); color: white; }

.btn-sm { font-size: 0.8rem; padding: 5px 12px; }
.btn-lg { font-size: 0.95rem; padding: 11px 24px; }

/* ---- Forms ---- */
.form-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
  display: block;
}

.form-control, .form-select {
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
  outline: none;
}

.form-text { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.form-range { accent-color: var(--navy); width: 100%; }

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 56px;
  text-align: right;
}

/* ---- Alerts ---- */
.alert {
  font-size: 0.875rem;
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid transparent;
}

.alert-info    { background: var(--blue-faint); border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: var(--green-bg);   border-color: var(--green-bd); color: var(--green); }
.alert-warning { background: var(--amber-bg);   border-color: var(--amber-bd); color: var(--amber); }
.alert-danger  { background: var(--red-bg);     border-color: var(--red-bd);   color: var(--red); }

/* ---- Map ---- */
#map {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  z-index: 1;
}

/* ---- Pipeline ---- */
.pipeline { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pipeline-steps-4 { grid-template-columns: repeat(4, 1fr); }
.pipeline-steps-5 { grid-template-columns: repeat(5, 1fr); }

.pipe-step {
  background: var(--white);
  padding: 20px 16px;
  text-align: center;
}

.pipe-num {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 auto 10px;
}

.pipe-name { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.pipe-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.4; }

/* ---- Chart boxes ---- */
.chart-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.chart-box h5 {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

/* ---- Demo panels ---- */
.demo-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--muted);
  text-align: center;
  gap: 10px;
}

.result-placeholder .icon {
  font-size: 2rem;
  opacity: .25;
}

.temp-display {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
}

.temp-unit { font-size: 1.3rem; font-weight: 400; color: var(--muted); }

.frost-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
}

.frost-none     { background: var(--green-bg);  color: var(--green); }
.frost-light    { background: var(--amber-bg);  color: var(--amber); }
.frost-moderate { background: var(--orange-bg); color: var(--orange); }
.frost-severe   { background: var(--red-bg);    color: var(--red); }

.prob-track {
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.prob-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--navy);
  transition: width .4s ease;
}

/* ---- Author ---- */
.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.pub-block {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.pub-block h4, .pub-block h5 { color: white; }
.pub-block p, .pub-block small { color: rgba(255,255,255,.6); }

/* ---- Utilities ---- */
.text-navy  { color: var(--navy) !important; }
.text-muted { color: var(--muted) !important; }
.bg-surface { background: var(--surface) !important; }
.divider    { border-color: var(--border); }

/* ---- Responsive ---- */

/* Evitar scroll horizontal en toda la app */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* Lag labels del demo (override inline style via clase) */
.lag-label {
  min-width: 170px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.82rem;
}

@media (max-width: 991px) {
  .pipeline-steps-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline-steps-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.65rem; }
  .hero-metrics { flex-wrap: wrap; max-width: 100%; }
  .hero-metric { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.1); }

  /* Sections */
  .section { padding: 36px 0; }
  .page-header { padding: 28px 0 20px; }
  .page-header h1 { font-size: 1.35rem; }
  #map { height: 280px; }
  .pipeline-steps-4, .pipeline-steps-5 { grid-template-columns: 1fr 1fr; }

  /* Demo: resultado temp + prob en columna */
  #result-content > div:first-child {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  #result-content > div:first-child > div.flex-fill {
    width: 100%;
  }

  /* Demo: lag labels más cortos */
  .lag-label { min-width: 110px; font-size: 0.78rem; }

  /* Footer */
  .site-footer { margin-top: 40px; }

  /* No hover-lift en touch */
  .metric-card:hover { transform: none; box-shadow: var(--shadow); }
  .demo-panel:hover  { box-shadow: var(--shadow); }
}

@media (max-width: 480px) {
  /* Navbar brand */
  .brand-logo  { height: 32px; }
  .brand-title { font-size: 0.82rem; }
  .brand-sub   { font-size: 0.64rem; }

  /* Hero */
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 1.35rem; }
  .hero .subtitle { font-size: 0.85rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.63rem; }
  .hero-metric .val { font-size: 1.2rem; }
  .hero-metric .lbl { font-size: 0.6rem; }
  .hero-metric { padding: 12px 8px; }

  /* Hero metrics: grid 2x2 */
  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
  .hero-metric:nth-child(2) { border-right: none; }
  .hero-metric:nth-child(3) { border-bottom: none; }
  .hero-metric:nth-child(4) { border-bottom: none; border-right: none; }

  /* Botones hero: full width en mobile */
  .hero .d-flex.gap-3.flex-wrap { flex-direction: column; gap: 10px !important; }
  .hero .d-flex.gap-3.flex-wrap .btn { width: 100%; justify-content: center; }

  /* Bottom nav: texto más pequeño */
  .bottom-nav-item       { font-size: 0.52rem; padding: 4px 2px; }
  .bottom-nav-item i     { font-size: 1.05rem; }

  /* Demo lag labels */
  .lag-label { min-width: 80px; font-size: 0.72rem; }
  .range-val { min-width: 38px !important; font-size: 0.78rem; }

  /* Demo panel: padding reducido */
  .demo-panel { padding: 16px; }

  /* Temp display más pequeña */
  .temp-display { font-size: 2.8rem; }

  /* Page header */
  .page-header h1 { font-size: 1.15rem; }
  .page-header .lead { font-size: 0.83rem; }

  /* Section header */
  .section-header h2 { font-size: 1.15rem; }

  /* Cards no overflow */
  .card-body { padding: 14px; }
  .metric-card { padding: 14px 12px; }
}

@media (max-width: 360px) {
  .lag-label { display: none; }  /* pantallas muy pequeñas: ocultar label, queda el slider solo */
  .bottom-nav-item span { display: none; }  /* solo iconos en pantallas muy pequeñas */
  .bottom-nav { height: 52px; }
  body { padding-bottom: 52px; }
}

/* ============================================================
   ANIMACIONES Y FLUIDEZ
   ============================================================ */

/* Entrada suave de página */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(15,36,68,.25); }
  70%  { box-shadow: 0 0 0 10px rgba(15,36,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,36,68,0); }
}

main { animation: fadeIn 0.3s ease; }

.hero { animation: fadeInUp 0.45s ease both; }

/* Cards y secciones aparecen al hacer scroll */
.metric-card, .demo-panel, .chart-box, .model-row, .pipe-step {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.demo-panel:hover {
  box-shadow: var(--shadow-lg);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Temperatura: animación de aparición del resultado */
@keyframes tempPop {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.temp-display.animate { animation: tempPop 0.4s cubic-bezier(.34,1.56,.64,1) both; }

/* Frost pill pulse cuando hay helada */
.frost-pill.frost-light,
.frost-pill.frost-moderate,
.frost-pill.frost-severe {
  animation: pulse-ring 1.8s ease infinite;
}

/* Barra de probabilidad con transición suave */
.prob-fill {
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}

/* Botón de predicción */
#predict-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#predict-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,36,68,.3);
}
#predict-btn:not(:disabled):active {
  transform: translateY(0);
}

/* Sliders más estilizados */
.form-range::-webkit-slider-thumb {
  background: var(--navy);
  transition: transform 0.15s ease;
}
.form-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.form-range::-webkit-slider-runnable-track { background: var(--border); height: 4px; border-radius: 2px; }

/* Valor del slider con transición de color */
.range-val {
  transition: color 0.2s ease;
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 52px;
  text-align: right;
  color: var(--navy);
}

/* Navbar scroll shadow */
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.12); }

/* Nav link hover con underline animado */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 1px;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active::after { transform: scaleX(1); }

/* Tooltip en métricas del hero */
[data-tooltip] { cursor: help; }

/* Live prediction badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
}
.live-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(0.7); }
}
