@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;700&family=JetBrains+Mono:wght@400;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ================================================================
   RESET & VARIABLES
   ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0b0c;
  --surface: #111214;
  --surface2: #181a1d;
  --surface3: #1e2023;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.1);
  --text: #e8e8ea;
  --text-dim: #6b7280;
  --text-mid: #9ca3af;
  --accent: #d4b33c;
  --accent-dim: rgba(212,179,60,0.1);
  --accent-glow: rgba(212,179,60,0.2);
  --red: #d43c3c;
  --red-dim: rgba(212,60,60,0.12);
  --orange: #d4883c;
  --orange-dim: rgba(212,136,60,0.12);
  --green: #3d8a3d;
  --green-bright: #52b852;
  --green-dim: rgba(61,138,61,0.12);
  --yellow: #d4c43c;
  --yellow-dim: rgba(212,196,60,0.1);
  --cedar: #2d6a1e;
  --purple: #8e44ad;
  --mono: 'JetBrains Mono', monospace;
  --card-radius: 12px;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

/* ================================================================
   BODY & GLOBALS
   ================================================================ */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  background: #0b0b0c;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(212,179,60,0.025) 0%, transparent 60%);
  color: #e8e8ea;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.35) 100%);
  z-index: 9998;
}

.ar { font-family: 'Noto Kufi Arabic', sans-serif; }
.mono { font-family: var(--mono); }
a { color: var(--accent); }

/* Hide deprecated elements */
.header, .hero, .hero-sub, .hero-label, .gold-rule, .meta, .war-clock,
.war-banner, .vs, .verdict, .insights-grid, .insight-card, .share-btn,
.empty-state, .kb-hint, .intro, .scanlines, .today-op, .today-ops-list,
.today-vs, .ticker-wrap { display: none; }

/* ================================================================
   LIVE DOT
   ================================================================ */
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 4px;
  animation: pulse 2s infinite;
}
.live-dot.connected {
  background: #52b852;
  box-shadow: 0 0 6px rgba(82,184,82,0.5);
}

/* ================================================================
   TOPBAR (sticky command bar)
   ================================================================ */
.topbar {
  background: rgba(11,11,12,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.6rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-brand { display: flex; flex-direction: column; }
.topbar-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #e8e8ea;
}
.topbar-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  direction: rtl;
}
.topbar-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: #9ca3af;
  align-items: center;
}
.topbar-meta span { white-space: nowrap; }
.topbar-meta a { color: var(--accent); text-decoration: none; }
.topbar-nav { display: flex; gap: 0.8rem; }
.topbar-nav a {
  font-size: 0.65rem;
  color: #6b7280;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.topbar-nav a:hover { color: #e8e8ea; }

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-strip {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 1rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.stat-primary { text-align: center; margin-right: 0.5rem; }
.stat-primary .hero-number {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(180deg, #e8d44d, #c8a832, #a08228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -2px;
  filter: drop-shadow(0 0 20px rgba(212,179,60,0.15));
  animation: heroGlow 3s ease infinite;
}
.stat-primary-label {
  font-size: 0.55rem;
  color: #9ca3af;
  letter-spacing: 2px;
  margin-top: 0.1rem;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  margin: 0 0.3rem;
}
.stat-item { text-align: center; min-width: 44px; }
.stat-val {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8e8ea;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.5rem;
  color: #9ca3af;
  letter-spacing: 1px;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

/* Secondary stats (items 3-6) — slightly muted */
.stats-strip-inner .stat-item:nth-child(3) .stat-val,
.stats-strip-inner .stat-item:nth-child(4) .stat-val,
.stats-strip-inner .stat-item:nth-child(5) .stat-val,
.stats-strip-inner .stat-item:nth-child(6) .stat-val {
  font-size: 1rem;
  color: #9ca3af;
}
/* Key metrics (items 8-11) — bright and prominent */
.stats-strip-inner .stat-item:nth-child(8) .stat-val,
.stats-strip-inner .stat-item:nth-child(9) .stat-val,
.stats-strip-inner .stat-item:nth-child(10) .stat-val,
.stats-strip-inner .stat-item:nth-child(11) .stat-val {
  font-size: 1.2rem;
}

.stat-tempo { font-size: 0.65rem; color: #9ca3af; }
.last-strike-line {
  font-size: 0.65rem;
  color: #9ca3af;
  padding: 0.5rem 0;
  margin-top: 0.6rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.day-badge {
  font-size: 0.55rem;
  padding: 3px 10px;
  border: 1px solid rgba(212,179,60,0.3);
  border-radius: 10px;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
  display: inline-block;
  text-transform: uppercase;
}

/* Sparkline in strip */
.stats-strip #heroSparkline { max-width: 200px; margin: 0.3rem auto 0; min-height: 24px; }
#heroSparkline { min-height: 44px; }
#heroSparkline svg { min-height: 40px; }

/* ================================================================
   TODAY SECTION
   ================================================================ */
.today-section {
  background: #111214;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 0.6rem;
  position: relative;
  overflow: hidden;
}
.today-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green), var(--accent), transparent);
  background-size: 200% 100%;
  animation: todayShimmer 4s ease infinite;
}
.today-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.today-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #52b852;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.today-date { font-size: 0.65rem; color: #6b7280; }
.today-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  margin-right: 4px;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px rgba(82,184,82,0.5);
}
.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  padding: 0.7rem;
  margin-bottom: 0.6rem;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
}
.today-stat { text-align: center; }
.today-stat-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.today-stat-label {
  font-size: 0.55rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Today stat colors per type */
.today-grid .today-stat:nth-child(1) .today-stat-num { color: var(--green-bright); }
.today-grid .today-stat:nth-child(2) .today-stat-num { color: var(--accent); }
.today-grid .today-stat:nth-child(3) .today-stat-num { color: var(--red); }
.today-grid .today-stat:nth-child(4) .today-stat-num { color: var(--green); }
.today-grid .today-stat:nth-child(5) .today-stat-num { color: var(--orange); }
.today-grid .today-stat:nth-child(6) .today-stat-num { color: #8e44ad; }

/* Highlights bar */
.today-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  margin-bottom: 0.5rem;
  background: rgba(212,179,60,0.06);
  border: 1px solid rgba(212,179,60,0.12);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
}
.th-item { font-family: var(--mono); color: inherit; }
.th-sep { color: rgba(255,255,255,0.15); margin: 0 2px; }

/* Today ops feed */
.today-ops-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,179,60,0.15) transparent;
  border-radius: 8px;
  padding-right: 4px;
}
.today-ops-feed::-webkit-scrollbar { width: 3px; }
.today-ops-feed::-webkit-scrollbar-thumb { background: rgba(212,179,60,0.2); border-radius: 3px; }

/* Default: hide rows after 8th */
.today-ops-feed .all-op-row:nth-child(n+9) { display: none; }
.today-ops-feed.today-expanded .all-op-row:nth-child(n+9) { display: grid; }

.today-ops-feed .all-op-row {
  background: transparent;
  border-color: transparent;
  padding: 5px 8px;
  gap: 5px;
}
.today-ops-feed .all-op-row:hover { background: rgba(255,255,255,0.02); }

/* Expanded today feed */
.today-ops-feed.today-expanded {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.today-ops-feed.today-expanded::-webkit-scrollbar { width: 4px; }
.today-ops-feed.today-expanded::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Armor ops in today feed */
.today-ops-feed .all-op-row.type-armor {
  border-left: 3px solid var(--accent);
  background: rgba(212,179,60,0.015);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section-wrap { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }
.section-wrap:first-of-type { margin-top: 0.3rem; }

.section-title {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.04);
}
.section-title.gold-accent { color: var(--accent); }
.section-title.gold-accent::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}
.section-title.gold-accent::after {
  background: linear-gradient(90deg, rgba(212,179,60,0.1), transparent);
}

/* ================================================================
   ALL OPERATIONS LOG
   ================================================================ */
.all-ops-log {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 420px;
  overflow-y: auto;
  position: relative;
  transition: max-height 0.4s ease;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.all-ops-log::-webkit-scrollbar { width: 3px; }
.all-ops-log::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.all-ops-log.expanded { max-height: none; }
.all-ops-log:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* Ops date headers */
.ops-date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(212,179,60,0.08);
  margin-top: 6px;
  background: linear-gradient(90deg, rgba(212,179,60,0.06), transparent);
  border-radius: 4px 4px 0 0;
}
.ops-date-count {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 400;
}

/* ================================================================
   ALL OP ROWS
   ================================================================ */
.all-op-row {
  display: grid;
  grid-template-columns: 42px 28px 20px 1fr auto;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-left: 2px solid transparent;
  border-radius: 0;
  font-size: 0.8rem;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
  min-height: 32px;
}
.all-op-row:hover { background: rgba(255,255,255,0.02); }

/* Type-based left borders */
.all-op-row.type-armor { border-left-color: var(--accent); }
.all-op-row.type-rockets { border-left-color: var(--red); }
.all-op-row.type-positions { border-left-color: var(--green); }
.all-op-row.type-drone { border-left-color: #8e44ad; }
.all-op-row.type-artillery { border-left-color: var(--orange); }
.all-op-row.type-clashes { border-left-color: #e74c3c; }
.all-op-row.type-air_defense { border-left-color: #6c5ce7; }

/* Expanded row */
.all-op-row.expanded {
  height: auto;
  min-height: auto;
  align-items: start;
  background: rgba(212,179,60,0.02);
  border-left-color: var(--accent);
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  margin: 2px 0;
}

/* Expand fix — works across today feed, all ops log, air defense */
.today-ops-feed .all-op-row.expanded,
.all-ops-log .all-op-row.expanded,
#airDefenseList .all-op-row.expanded {
  height: auto;
  min-height: auto;
  align-items: start;
}
.all-op-row.expanded .all-op-main { overflow: visible; }

/* Row elements */
.all-op-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
}
.all-op-stmt {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #6b7280;
}
.all-op-main { min-width: 0; }
.all-op-row:not(.expanded) .all-op-main { overflow: hidden; }
.all-op-loc {
  font-size: 0.8rem;
  color: #e8e8ea;
  font-weight: 600;
}
.all-op-desc {
  font-size: 0.7rem;
  color: #9ca3af;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  display: inline-block;
  vertical-align: middle;
}
.all-op-summary {
  display: block;
  font-size: 0.65rem;
  color: #9ca3af;
  opacity: 1;
  font-style: normal;
  margin-top: 3px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity 0.2s ease;
}
.all-op-row:hover .all-op-summary { opacity: 0.9; }
.all-op-row.expanded .all-op-summary {
  white-space: normal;
  overflow: visible;
  max-height: 200px;
  font-style: normal;
  color: var(--text-mid);
}
.all-op-row:not(.expanded) .all-op-summary { max-height: 18px; }
.all-op-ago {
  font-size: 0.6rem;
  color: #6b7280;
  font-family: var(--mono);
  margin-left: 6px;
  opacity: 1;
}

/* Type badge (small pill) */
.all-op-type-badge {
  font-size: 0.55rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.7;
}
.all-op-row:hover .all-op-type-badge { opacity: 1; }

/* Result tags */
.all-op-result-tag {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-left: 4px;
  opacity: 0.85;
}
.all-op-result-tag.destroyed { background: rgba(220,60,60,0.2); color: #f87171; animation: destroyPulse 3s ease infinite; }
.all-op-result-tag.confirmed_hit { background: rgba(220,136,60,0.15); color: #fb923c; }
.all-op-result-tag.targeted { background: rgba(220,196,60,0.12); color: #fbbf24; }
.all-op-result-tag.shootdown { background: rgba(212,60,60,0.15); color: var(--red); }
.all-op-result-tag.forced_retreat { background: rgba(212,136,60,0.15); color: var(--orange); }
.all-op-result-tag.engaged { background: rgba(212,196,60,0.1); color: var(--yellow); }

/* Source link */
.all-op-src {
  font-size: 0.65rem;
  color: var(--accent);
  text-decoration: none;
  display: none;
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(212,179,60,0.2);
  border-radius: 4px;
  background: rgba(212,179,60,0.05);
  transition: all 0.15s;
}
.all-op-row.expanded .all-op-src { display: inline-block; }
.all-op-src:hover { background: rgba(212,179,60,0.12); border-color: var(--accent); }

/* Detail panel (hidden by default) */
.all-op-detail {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0;
  border-top: none;
}
.all-op-row.expanded .all-op-detail {
  display: flex;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 6px;
}
.all-op-detail:empty { display: none; }

.detail-tag {
  font-size: 0.65rem;
  color: #9ca3af;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 3px 8px;
}
.detail-tag b { color: #e8e8ea; font-weight: 600; }
.detail-tag.ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  color: var(--accent);
  border-color: rgba(212,179,60,0.2);
}

/* ================================================================
   ANALYSIS CARDS
   ================================================================ */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.analysis-card {
  background: linear-gradient(160deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeUp 0.4s ease both;
}
.analysis-card:nth-child(1) { animation-delay: 0s; }
.analysis-card:nth-child(2) { animation-delay: 0.08s; }
.analysis-card:nth-child(3) { animation-delay: 0.16s; }
.analysis-card:nth-child(4) { animation-delay: 0.24s; }
.analysis-card:nth-child(5) { animation-delay: 0.32s; }
.analysis-card:nth-child(6) { animation-delay: 0.4s; }
.analysis-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.analysis-card h4 {
  font-size: 0.6rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}
.analysis-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.analysis-metric .am-val {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: #e8e8ea;
  line-height: 1;
}
.analysis-metric .am-unit { font-size: 0.7rem; color: var(--text-dim); }
.analysis-metric .am-trend {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}
.am-trend.up { color: var(--green-bright); background: var(--green-dim); }
.am-trend.down { color: var(--red); background: var(--red-dim); }
.am-trend.stable { color: var(--text-dim); background: var(--surface2); }
.analysis-sub {
  font-size: 0.65rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-top: 6px;
}
.analysis-sub strong, .analysis-card strong { color: #e8e8ea; }
.analysis-bar-mini {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface2);
  margin-top: 8px;
}
.analysis-bar-mini div { height: 100%; transition: width 0.6s ease; }

/* ================================================================
   OP TYPE GRID
   ================================================================ */
.op-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.op-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.op-type-card[data-cat] { cursor: pointer; }
.op-type-card[data-cat]:active { transform: scale(0.97); }
.op-type-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.op-type-card:hover .op-type-count { transform: scale(1.1); }
.op-type-count {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}
.op-type-dot {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  font-size: 16px;
}
.op-type-info { flex: 1; min-width: 0; }
.op-type-label { font-size: 0.6rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.3px; }
.op-type-pct { font-family: var(--mono); font-size: 0.6rem; color: #6b7280; }

/* ================================================================
   COUNTER CARDS
   ================================================================ */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  max-width: 960px;
  margin: 0.8rem auto;
  padding: 0 1rem;
}
.counter-card {
  background: linear-gradient(160deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 0.6rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}
.counter-card:nth-child(1) { animation-delay: 0.1s; }
.counter-card:nth-child(2) { animation-delay: 0.2s; }
.counter-card:nth-child(3) { animation-delay: 0.3s; }
.counter-card:nth-child(4) { animation-delay: 0.4s; }
.counter-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}
.counter-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 15px rgba(212,179,60,0.05); }
.counter-card.primary {
  border-color: rgba(212,179,60,0.3);
  box-shadow: 0 0 25px var(--accent-glow);
  background: linear-gradient(160deg, rgba(212,179,60,0.05), var(--surface), rgba(212,179,60,0.02));
  animation: fadeUp 0.5s ease both, borderGlow 3s ease infinite;
}
.counter-card.primary::after { background: linear-gradient(90deg, transparent, rgba(212,179,60,0.15), transparent); }
.counter-card .number {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.counter-card .label {
  font-size: 0.5rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ================================================================
   CHARTS
   ================================================================ */
.charts {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chart-card {
  background: linear-gradient(160deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  min-height: 240px;
  transition: all 0.3s ease;
}
.chart-card:hover { border-color: var(--border-hover); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.chart-card h3 {
  font-size: 0.6rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; }
.bar-label { width: 105px; text-align: right; color: var(--text-dim); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; }
.bar-track { flex: 1; height: 16px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cedar), var(--accent));
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s ease infinite;
}
.bar-value { width: 28px; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--accent); }

/* Donut chart */
.donut-container { display: flex; align-items: center; gap: 1rem; }
.donut { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 5px; font-size: 0.65rem; }
.donut-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Cumulative chart */
.cumulative-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 0.8rem;
}
.cumulative-chart svg { width: 100%; display: block; }
#cumulativeChart circle:last-of-type { filter: drop-shadow(0 0 8px rgba(212,179,60,0.5)); }

/* ================================================================
   INTENSITY TIMELINE
   ================================================================ */
.intensity-timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1rem;
  min-height: 100px;
  overflow-x: auto;
}
.intensity-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100px;
}
.intensity-bar {
  min-width: 24px;
  flex: 1;
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: all 0.3s;
  cursor: default;
  flex-shrink: 0;
}
.intensity-bar:hover { filter: brightness(1.3); transform: scaleY(1.05); transform-origin: bottom; }
.intensity-bar:hover .intensity-tooltip { display: block; }
.intensity-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface3);
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.65rem;
  color: #e8e8ea;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  font-family: var(--mono);
}
.intensity-labels {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}
.intensity-label {
  min-width: 24px;
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  color: #6b7280;
  font-family: var(--mono);
  flex-shrink: 0;
}

/* ================================================================
   DAILY OPS GRID
   ================================================================ */
.daily-ops-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 320px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
  font-size: 0.65rem;
  color: #9ca3af;
}
.daily-ops-grid.expanded { max-height: 3000px; }
.daily-ops-grid:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.daily-ops-row {
  display: grid;
  grid-template-columns: 85px 44px 1fr 55px;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.daily-ops-row:hover { border-color: var(--border-hover); background: var(--surface2); transform: translateX(3px); }
.daily-ops-row.today { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.daily-ops-date { color: var(--text-dim); font-size: 0.65rem; }
.daily-ops-total { font-family: var(--mono); font-weight: 800; color: var(--accent); text-align: center; font-size: 0.8rem; }
.daily-ops-bar-wrap { height: 18px; position: relative; border-radius: 3px; overflow: hidden; background: var(--surface2); }
.daily-ops-segment { position: absolute; top: 0; height: 100%; transition: width 0.5s ease; }
.daily-ops-tank-count { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; text-align: right; color: var(--text-dim); }
.daily-ops-tank-count strong { color: var(--orange); }
.daily-ops-legend { display: flex; gap: 8px; margin-top: 6px; font-size: 0.55rem; color: var(--text-dim); flex-wrap: wrap; }
.daily-ops-legend span { display: flex; align-items: center; gap: 3px; }
.legend-sq { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* ================================================================
   ARMOR CARDS
   ================================================================ */
.armor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.armor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.armor-card:hover { border-color: var(--border-hover); }
.armor-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.armor-card.merkava::before { background: linear-gradient(90deg, var(--accent), transparent); }
.armor-card.d9::before { background: linear-gradient(90deg, var(--orange), transparent); }
.armor-card-title { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.4rem; }
.armor-card-title .ar { color: var(--text-dim); font-size: 0.65rem; margin-left: 6px; }
.armor-card-num { font-family: var(--mono); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.armor-card-breakdown { display: flex; gap: 12px; margin-top: 0.5rem; }
.armor-card-breakdown .ab-item { display: flex; flex-direction: column; align-items: center; }
.armor-card-breakdown .ab-num { font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.armor-card-breakdown .ab-label { font-size: 0.5rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* ================================================================
   TIMELINE (Armor detail)
   ================================================================ */
.timeline { max-width: 960px; margin: 0.5rem auto 1.5rem; padding: 0 1rem; }
.timeline > div {
  max-height: 380px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}
.timeline > div.expanded { max-height: 20000px; }
.timeline > div:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.timeline-date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8e8ea;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}
.timeline-date-header:first-child { margin-top: 0; }
.timeline-date-stats { display: flex; gap: 6px; align-items: center; }
.timeline-date-stats .badge { font-size: 0.55rem; }

/* Incidents */
.incident {
  background: linear-gradient(170deg, rgba(17,18,20,0.9), rgba(11,11,12,0.95));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.incident:hover { border-color: rgba(212,179,60,0.15); transform: translateX(2px); }
.incident.new-incident { border-left: 3px solid var(--green-bright); }
.incident .date { font-family: var(--mono); font-size: 0.7rem; color: #6b7280; min-width: 38px; }
.incident .details { font-size: 0.75rem; }
.incident .location { color: #e8e8ea; font-weight: 600; font-size: 0.85rem; }
.incident .location-ar { font-family: 'Noto Kufi Arabic', sans-serif; color: var(--text-dim); font-size: 0.65rem; direction: rtl; display: inline; margin-left: 5px; }
.incident .method { color: #9ca3af; font-size: 0.7rem; margin-top: 2px; }
.incident .badges { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-direction: column; }

.source-link { font-size: 0.65rem; color: var(--accent); text-decoration: none; opacity: 0.6; }
.source-link:hover { opacity: 1; text-decoration: underline; }

/* ================================================================
   BADGES
   ================================================================ */
.badge {
  font-size: 0.55rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.badge.destroyed { background: rgba(220,60,60,0.2); color: #f87171; }
.badge.confirmed_hit { background: rgba(220,136,60,0.15); color: #fb923c; }
.badge.targeted { background: rgba(220,196,60,0.12); color: #fbbf24; }
.badge.damaged { background: var(--orange-dim); color: var(--orange); }
.badge.verified { background: rgba(82,184,82,0.15); color: #52b852; }
.badge.new-badge { background: var(--accent-dim); color: var(--accent); animation: pulse 2s infinite; }

/* ================================================================
   FILTERS
   ================================================================ */
.filters {
  max-width: 960px;
  margin: 0.8rem auto;
  padding: 0 1rem;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #6b7280;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.65rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.filter-count {
  font-family: var(--mono);
  font-size: 0.6rem;
  opacity: 0.6;
  margin-left: 2px;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ================================================================
   EXPAND BUTTON
   ================================================================ */
.expand-btn {
  background: rgba(17,18,20,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.65rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  margin: 0.3rem 0;
}
.expand-btn:hover {
  border-color: rgba(212,179,60,0.3);
  color: var(--accent);
  background: rgba(212,179,60,0.06);
}
.expand-btn:focus { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ================================================================
   TOOLTIP
   ================================================================ */
.tooltip {
  position: fixed;
  pointer-events: none;
  background: linear-gradient(160deg, var(--surface3), var(--surface));
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.7rem;
  color: var(--text);
  z-index: 9999;
  max-width: 260px;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.tooltip.visible { opacity: 1; }
.tooltip .tt-title { color: var(--accent); font-weight: 700; font-size: 0.75rem; margin-bottom: 3px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 12px; }
.tooltip .tt-val { font-family: var(--mono); font-weight: 700; color: var(--accent); }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(170deg, rgba(17,18,20,0.98), rgba(11,11,12,0.99));
  border: 1px solid rgba(212,179,60,0.3);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 0.8rem;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.65rem;
  line-height: 1.7;
  margin-top: 2.5rem;
  position: relative;
  background: rgba(11,11,12,0.8);
  border-top: 1px solid rgba(212,179,60,0.08);
}
.footer a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.footer a:hover { opacity: 0.8; }
.footer strong { color: #9ca3af; }
.footer-credit {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.55rem;
  color: var(--text-dim);
}
.footer-credit a { color: var(--accent); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.btt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btt.visible { opacity: 0.7; transform: translateY(0); }
.btt:hover { opacity: 1; border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ================================================================
   SCROLL FADE-IN
   ================================================================ */
.fade-in { opacity: 1; }
.fade-in.visible { opacity: 1; }

/* ================================================================
   MAP
   ================================================================ */
.map-pulse { animation: mapPulse 2s ease infinite; }
#tacticalMap circle { filter: drop-shadow(0 0 3px currentColor); }

/* ================================================================
   REPORT MODAL
   ================================================================ */
#reportModal { z-index: 9999; }
#reportModal select, #reportModal textarea { font-size: 0.8rem; }

/* ================================================================
   SCOPE INFO BOX (in armor section)
   ================================================================ */
.section-wrap > div[style*="background"] { color: #9ca3af; font-size: 0.65rem; line-height: 1.6; }

/* ================================================================
   WAR PHASES (tactics page)
   ================================================================ */
.phase .ph-title { font-size: 0.85rem; }
.phase .ph-body { font-size: 0.75rem; }
.phase .ph-date { font-size: 0.65rem; }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes heroGlow {
  0%, 100% { text-shadow: 0 0 40px rgba(212,179,60,0.2), 0 0 80px rgba(212,179,60,0.1); }
  50% { text-shadow: 0 0 60px rgba(212,179,60,0.4), 0 0 120px rgba(212,179,60,0.15); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(212,179,60,0.2); }
  50% { border-color: rgba(212,179,60,0.5); }
}
@keyframes destroyPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 6px rgba(212,60,60,0.3); }
}
@keyframes todayShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}
@keyframes mapPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes bannerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================================================
   MOBILE RESPONSIVE (768px)
   ================================================================ */
@media (max-width: 768px) {
  body { font-size: 14px; }

  /* Topbar */
  .topbar { padding: 0.4rem 0.8rem; }
  .topbar-inner { flex-wrap: wrap; gap: 0.3rem; }
  .topbar-title { font-size: 0.6rem; letter-spacing: 3px; }
  .topbar-ar { font-size: 0.65rem; }
  .topbar-meta { font-size: 0.6rem; gap: 0.5rem; flex-wrap: wrap; }
  .topbar-nav { gap: 0.5rem; }
  .topbar-nav a { font-size: 0.45rem; }

  /* Stats strip */
  .stats-strip { padding: 0.5rem 0.5rem 0.2rem; }
  .stats-strip-inner { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
  .stat-primary .hero-number { font-size: 2.5rem; }
  .stat-primary-label { font-size: 0.35rem; }
  .stat-divider { height: 24px; }
  .stat-val { font-size: 0.9rem; }
  .stat-lbl { font-size: 0.42rem; }
  .stat-item { min-width: 32px; }
  .stat-tempo { font-size: 0.42rem; }
  .last-strike-line { font-size: 0.45rem; }
  .day-badge { font-size: 0.35rem; padding: 1px 6px; }

  /* Today section */
  .today-section { padding: 0.5rem; border-radius: 8px; }
  .today-stat-num { font-size: 1.2rem; }
  .today-stat-label { font-size: 0.35rem; }
  .today-highlights { font-size: 0.45rem; padding: 3px 8px; }
  .today-ops-feed { max-height: 280px; }
  .today-ops-feed .all-op-row { font-size: 0.55rem; padding: 3px 4px; }

  /* Op rows */
  .all-op-row { font-size: 0.7rem; grid-template-columns: 36px 24px 16px 1fr auto; padding: 6px; }
  .all-op-time { font-size: 0.5rem; }
  .all-op-loc { font-size: 0.7rem; }
  .all-op-type-badge { font-size: 0.38rem; padding: 1px 4px; }

  /* Sections */
  .section-wrap { margin: 1rem auto; padding: 0 0.5rem; }
  .section-title { font-size: 0.6rem; }

  /* Analysis */
  .analysis-grid { grid-template-columns: 1fr; gap: 5px; }
  .analysis-card { padding: 0.6rem; }
  .analysis-card h4 { font-size: 0.55rem; }
  .am-val { font-size: 1.3rem; }

  /* Op type grid */
  .op-type-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .op-type-card { padding: 0.5rem; }
  .op-type-count { font-size: 0.85rem; }
  .op-type-label { font-size: 0.4rem; }

  /* Charts */
  .charts { grid-template-columns: 1fr; gap: 5px; }
  .chart-card { min-height: 180px; padding: 0.5rem; }

  /* Counters */
  .counters { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .counter-card { padding: 0.5rem; }
  .counter-card .number { font-size: 1.3rem; }
  .counter-card .label { font-size: 0.35rem; }

  /* Armor */
  .armor-split { grid-template-columns: 1fr; }
  .incident { padding: 6px 8px; flex-direction: column; gap: 0.3rem; }
  .incident .location { font-size: 0.65rem; }
  .incident .badges { flex-direction: row; flex-wrap: wrap; margin-left: 0; }

  /* Daily ops */
  .daily-ops-row { grid-template-columns: 70px 36px 1fr 45px; font-size: 0.6rem; }

  /* Footer */
  .footer { padding: 1rem 0.5rem; font-size: 0.45rem; }

  /* Expand / filter */
  .expand-btn { font-size: 0.45rem; padding: 3px 10px; }
  .filter-btn { padding: 0.25rem 0.6rem; font-size: 0.55rem; }
  .timeline-date-header { font-size: 0.65rem; }
  .bar-label { width: 60px; font-size: 0.6rem; }
}

/* ================================================================
   MOBILE RESPONSIVE (480px)
   ================================================================ */
@media (max-width: 480px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-brand { align-items: center; }
  .topbar-meta { justify-content: center; }
  .topbar-nav { justify-content: center; }
  .stats-strip-inner { gap: 0.4rem; }
  .stat-primary .hero-number { font-size: 2rem; }
  .stat-divider { display: none; }
  .stat-val { font-size: 0.75rem; }
  .op-type-grid { grid-template-columns: repeat(2, 1fr); }
  .all-op-row { grid-template-columns: 32px 22px 14px 1fr auto; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  .scanlines, .ticker-wrap, .intro, .kb-hint, .btt, .share-btn, .filters,
  .war-clock, .toast, .topbar { display: none; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
  * { box-shadow: none; text-shadow: none; animation: none; transition: none; }
  .counter-card, .chart-card, .armor-card, .insight-card, .op-type-card, .daily-ops-row,
  .incident, .intensity-timeline, .cumulative-chart, .war-banner, .section-wrap,
  .analysis-card, .today-section {
    background: #fff; border: 1px solid #ddd; color: #000;
  }
  .counter-card .number, .armor-card-num, .op-type-count, .hero-number, .insight-value,
  .daily-ops-total, .hs-val, .ab-num, .bar-value, .am-val {
    color: #000; -webkit-text-fill-color: #000; filter: none;
  }
  .header, .footer { border-color: #ddd; }
  .title-ar { color: #333; }
  .badge { border: 1px solid #999; background: #eee; color: #333; }
  .hero-number { font-size: 3.5rem; }
  .bar-fill { background: #666; }
  .bar-fill::after { display: none; }
  .section-title { color: #333; }
  .section-title::after { background: #ddd; }
  .label, .hero-label, .hs-lbl, .ab-label, .op-type-label, .op-type-pct, .insight-label,
  .daily-ops-date, .daily-ops-tank-count { color: #666; }
  a { color: #000; }
  .footer { page-break-before: always; }
}
