/* =========================================================
   Global Conflict Monitor — Dashboard Stylesheet
   ========================================================= */

/* ── VIEW TABS (header) ─────────────────────────────────── */
.view-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
}

.view-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  letter-spacing: 0.03em;
}

.view-tab:hover { color: var(--text); }

.view-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.35);
}

/* ── GLOBE SECTION ──────────────────────────────────────── */
.globe-section {
  position: relative;
  width: 100%;
  height: calc(100dvh - 57px);
  min-height: 460px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #080d1c 0%, #03030a 100%);
}

#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── GLOBE HUD ──────────────────────────────────────────── */
.globe-hud {
  position: absolute;
  left: 28px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.globe-hud-stats {
  display: flex;
  gap: 20px;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.hud-critical .hud-val { color: var(--critical); }

.hud-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.globe-legend {
  display: flex;
  gap: 14px;
}

.gl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.gl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.globe-hint {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  margin-top: -4px;
}

.globe-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  color: var(--accent);
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  pointer-events: all;
  transition: background 0.18s, border-color 0.18s;
  letter-spacing: 0.02em;
}

.globe-cta:hover {
  background: rgba(108,99,255,0.28);
  border-color: rgba(108,99,255,0.6);
}

/* ── GLOBE TOOLTIP ──────────────────────────────────────── */
.globe-tooltip {
  position: absolute;
  background: rgba(10, 10, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  width: 260px;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 10;
  transition: opacity 0.1s;
}

.tt-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.tt-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid;
}

.tt-breaking {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--critical);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  animation: blink-badge 1.5s ease-in-out infinite;
}

.tt-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.tt-region {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.tt-update {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.tt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-muted);
}

.tt-deaths {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--critical);
}

.tt-cta {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

/* ── BACK TO GLOBE ──────────────────────────────────────── */
.back-globe-row {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 16px;
}

.back-globe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.back-globe-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── CARD FLASH (globe click target) ────────────────────── */
@keyframes card-flash {
  0%   { box-shadow: 0 0 0 0 rgba(108,99,255,0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(108,99,255,0.2); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(108,99,255,0); }
}

.card-flash {
  animation: card-flash 1.8s ease-out forwards;
}

@media (max-width: 768px) {
  .globe-section { height: calc(100svh - 90px); }
  .globe-hud { left: 16px; bottom: 20px; gap: 12px; }
  .hud-val   { font-size: 20px; }
  .view-tabs { display: none; } /* tabs redundant on mobile */
}

:root {
  --bg:          #06060e;
  --bg-surface:  #0c0c18;
  --bg-card:     #10101e;
  --bg-card-hover: #131325;
  --border:      #1c1c2e;
  --border-muted: #141420;

  --text:        #dde1f0;
  --text-muted:  #6b7094;
  --text-faint:  #3a3d56;

  --critical:    #f44;
  --critical-dim: rgba(255, 68, 68, 0.12);
  --high:        #f97316;
  --high-dim:    rgba(249, 115, 22, 0.12);
  --medium:      #eab308;
  --medium-dim:  rgba(234, 179, 8, 0.12);
  --low:         #22c55e;
  --low-dim:     rgba(34, 197, 94, 0.12);

  --accent:      #6c63ff;
  --accent-dim:  rgba(108, 99, 255, 0.15);

  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'SF Mono', 'Cascadia Code', 'Fira Mono', 'Courier New', monospace;

  --radius:      6px;
  --radius-lg:   10px;
  --shadow:      0 2px 12px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--critical);
  position: relative;
}

.pulse-ring,
.pulse-dot {
  position: absolute;
  border-radius: 50%;
}

.pulse-ring {
  width: 16px;
  height: 16px;
  background: rgba(255, 68, 68, 0.3);
  animation: pulse-ring 2s ease-out infinite;
  left: -3px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--critical);
  left: 0;
}

.live-badge span:last-child {
  margin-left: 18px;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.update-row {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.update-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update-value {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.update-value.countdown {
  color: var(--accent);
}

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 36px;
  gap: 3px;
}

.critical-stat .stat-value {
  color: var(--critical);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── CONTROLS BAR ───────────────────────────────────────── */
.controls-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  overflow: hidden;
}

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.search-wrap {
  position: relative;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px 7px 32px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  width: 260px;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-faint);
}

/* ── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* ── BREAKING BANNER ────────────────────────────────────── */
.breaking-banner {
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.breaking-banner .banner-tag {
  background: var(--critical);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
  animation: blink-badge 2s ease-in-out infinite;
}

@keyframes blink-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.breaking-banner .banner-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.breaking-banner .banner-item {
  font-size: 12px;
  color: var(--text);
}

.breaking-banner .banner-item strong {
  color: var(--critical);
}

/* ── LOADING STATE ──────────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── CONFLICTS GRID ─────────────────────────────────────── */
.conflicts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) { .conflicts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .conflicts-grid { grid-template-columns: 1fr; } }

/* ── CONFLICT CARD ──────────────────────────────────────── */
.conflict-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.conflict-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

.conflict-card.sev-critical::before { background: var(--critical); }
.conflict-card.sev-high::before     { background: var(--high); }
.conflict-card.sev-medium::before   { background: var(--medium); }
.conflict-card.sev-low::before      { background: var(--low); }

.conflict-card:hover {
  border-color: var(--border-muted);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}

/* Card header */
.card-header {
  padding: 14px 16px 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-muted);
}

.sev-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.sev-badge.critical { background: var(--critical-dim); color: var(--critical); border: 1px solid rgba(255,68,68,0.25); }
.sev-badge.high     { background: var(--high-dim);     color: var(--high);     border: 1px solid rgba(249,115,22,0.25); }
.sev-badge.medium   { background: var(--medium-dim);   color: var(--medium);   border: 1px solid rgba(234,179,8,0.25); }
.sev-badge.low      { background: var(--low-dim);      color: var(--low);      border: 1px solid rgba(34,197,94,0.25); }

.status-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: var(--low);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-badge.active::before {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.region-tag {
  font-size: 10px;
  color: var(--text-faint);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breaking-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--critical);
  color: #fff;
  animation: blink-badge 1.5s ease-in-out infinite;
}

/* Card body */
.card-body {
  padding: 14px 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.conflict-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.parties {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.side {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.3;
}

.vs-divider {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Latest update block */
.latest-update {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

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

.update-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.update-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-faint);
}

.update-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
}

/* Casualties & stats row */
.card-stats {
  display: flex;
  gap: 16px;
}

.cs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.cs-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cs-value.deaths {
  color: var(--critical);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-header {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.timeline-item {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  position: relative;
}

.timeline-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  position: absolute;
  left: -3px;
  top: 9px;
}

.timeline-item:first-of-type::before {
  background: var(--accent);
}

.tl-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
}

.tl-event {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sources */
.card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.source-link {
  font-size: 10px;
  color: var(--text-faint);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 7px;
  transition: color 0.15s, border-color 0.15s;
}

.source-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Card footer */
.card-footer {
  padding: 10px 16px 12px 20px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.start-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-faint);
}

/* ── NO RESULTS ─────────────────────────────────────────── */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 12px;
  color: var(--text-muted);
}

.no-results-icon {
  font-size: 40px;
  color: var(--text-faint);
  line-height: 1;
}

.reset-btn {
  background: var(--accent-dim);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 8px;
}

.reset-btn:hover {
  background: rgba(108, 99, 255, 0.25);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.footer-col strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.footer-col p {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.7;
}

.footer-ts {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px !important;
}

/* ── DONATE BUTTON ─────────────────────────────────────── */
.donate-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 22px;
  background: var(--critical);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.18s, box-shadow 0.18s;
}

.donate-btn:hover {
  background: #e03030;
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.35);
}

/* ── NEWSLETTER FORM ───────────────────────────────────── */
.newsletter-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-input::placeholder {
  color: var(--text-faint);
}

.newsletter-btn {
  background: var(--accent-dim);
  border: 1px solid rgba(108, 99, 255, 0.4);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}

.newsletter-btn:hover {
  background: rgba(108, 99, 255, 0.28);
  border-color: rgba(108, 99, 255, 0.6);
}

/* ── HELPERS ────────────────────────────────────────────── */
.hidden { display: none !important; }

@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-meta  { width: 100%; justify-content: space-between; }
  .update-info  { text-align: left; }
  .update-row   { justify-content: flex-start; }
  .controls-bar { flex-direction: column; align-items: flex-start; }
  .search-input { width: 100%; }
  .search-wrap  { width: 100%; }
  .stats-bar    { flex-wrap: wrap; justify-content: center; }
  .stat-divider { display: none; }
  .stat-item    { padding: 12px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .newsletter-form { flex-direction: column; }
}
