/* ============================================================
   END EPSTEIN — Stylesheet
   Mobile-first. Dark theme. Action-first design.
   ============================================================ */

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

:root {
  --bg:           #07091a;
  --surface:      #0e1328;
  --surface-2:    #141930;
  --surface-3:    #1c2340;
  --border:       #2a3050;
  --accent-red:   #e63946;
  --accent-red-d: #c1121f;
  --accent-blue:  #1a56db;
  --accent-gold:  #ffd60a;
  --text-primary: #f0f4ff;
  --text-muted:   #7a85a8;
  --text-dim:     #4a5070;
  --success:      #2dc653;
  --warning:      #ff9f1c;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.55;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NEWS TICKER ----------------------------------------- */
.news-ticker {
  background: #0a0b14;
  border-bottom: 1px solid rgba(230, 57, 70, 0.3);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  height: 34px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 1;
}
.ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
  height: 100%;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-decoration: none;
  padding: 0 6px;
  transition: color 0.15s;
  white-space: nowrap;
}
.ticker-item:hover { color: var(--text-primary); text-decoration: none; }
.ticker-source {
  color: var(--accent-red);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(230,57,70,0.4);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ticker-sep {
  color: var(--text-dim);
  font-size: 0.55rem;
  padding: 0 14px;
}
.news-freshness {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 6px 0 14px;
  text-align: right;
}

/* ---- SITE NAV -------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  max-width: 720px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent-red) !important;
}
.nav-logo:hover { color: #ff6b78 !important; text-decoration: none; }
/* has-ticker offset removed — nav is no longer sticky */
.nav-logo-img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.nav-links {
  display: flex;
  gap: 16px;
}
.nav-links a {
  color: rgba(240, 244, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* ---- LAYOUT ---------------------------------------------- */
#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 40px;
  min-height: 100vh;
  position: relative;
}

.screen {
  display: none;
  animation: fadeIn 0.3s ease;
  padding: 0 16px 40px;
}
.screen.active { display: block; }

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

/* ---- TOP BAR --------------------------------------------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  margin: 0 -16px 0;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar h1 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-red);
}
.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-btn:hover { color: var(--text-primary); }

/* ---- HOME SCREEN ----------------------------------------- */
.hero {
  text-align: center;
  padding: 28px 8px 20px;
}
.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 4px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(230,57,70,0.15);
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent-red); }
.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.hero-micro {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

/* ---- LIVE COUNTER HEADER --------------------------------- */
.counter-live-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.live-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--success);
}

/* ---- COUNTER ROW — 2×2 grid on home screen --------------- */
.counter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.counter-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px 10px;
  text-align: center;
  transition: border-color var(--transition);
}
/* "Today" pills get a subtle blue tint to distinguish from all-time */
.counter-pill--today {
  border-color: rgba(26, 86, 219, 0.35);
  background: rgba(26, 86, 219, 0.05);
}
.counter-pill .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-red);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter-pill--today .num {
  color: #74b0ff;
}
.counter-pill .lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 5px;
  display: block;
  white-space: nowrap;
}

/* ---- TRUST STRIP ----------------------------------------- */
.trust-strip {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 12px 0;
  padding: 8px;
}

/* ---- SOURCES STRIP --------------------------------------- */
.sources-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}
.sources-label {
  color: var(--text-dim);
  font-weight: 600;
}
.sources-strip a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-dim);
}
.sources-strip a:hover { color: var(--text-primary); text-decoration: none; }

/* ---- FORMS ----------------------------------------------- */
.input-group {
  margin-bottom: 16px;
}
.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.input-group input {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1.1rem;
  padding: 14px 16px;
  transition: border-color var(--transition);
  font-family: var(--font-sans);
  -webkit-appearance: none;
}
.input-group input::placeholder { color: var(--text-dim); }
.input-group input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.input-group input.error { border-color: var(--accent-red); }

.field-error {
  color: var(--accent-red);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.field-error.visible { display: block; }

.field-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 5px;
}

/* ---- BUTTONS --------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-red-d); }

.btn-call {
  background: linear-gradient(135deg, #1a7a1a, #2dc653);
  color: #fff;
  font-size: 1.05rem;
}
.btn-call:hover { filter: brightness(1.1); }

.btn-email {
  background: var(--accent-blue);
  color: #fff;
}
.btn-email:hover { filter: brightness(1.1); }

.btn-form {
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-form:hover { border-color: var(--accent-blue); }

.btn-rally {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-d));
  color: #fff;
  font-size: 1.05rem;
  padding: 18px 20px;
}
.btn-rally:hover { filter: brightness(1.1); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-primary); }

.btn-share {
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- LOADING STATE --------------------------------------- */
#screen-loading {
  text-align: center;
  padding: 80px 16px;
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- REP CARDS ------------------------------------------- */
.section-header {
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.rep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}

.rep-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.rep-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
}
.rep-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.rep-info { flex: 1; min-width: 0; }
.rep-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.party-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.party-R { background: rgba(230, 57, 70, 0.2); color: #ff6b6b; }
.party-D { background: rgba(58, 134, 255, 0.2); color: #74b0ff; }
.party-I { background: rgba(255, 214, 10, 0.2); color: var(--accent-gold); }

.action-count-badge {
  background: rgba(45, 198, 83, 0.15);
  border: 1px solid rgba(45, 198, 83, 0.3);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ALLY badge — shown on rep cards for allied representatives */
.ally-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 210, 150, 0.15);
  border: 1px solid rgba(0, 210, 150, 0.5);
  color: #00d296;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(0, 210, 150, 0.2);
}

.rep-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}
.action-btn:active { transform: scale(0.97); }
.action-btn .icon-label { display: flex; align-items: center; gap: 10px; }
.action-btn .arrow { font-size: 0.85rem; opacity: 0.6; }

.action-btn.call-btn {
  background: rgba(45, 198, 83, 0.12);
  border: 1px solid rgba(45, 198, 83, 0.3);
  color: var(--success);
}
.action-btn.call-btn:hover { background: rgba(45, 198, 83, 0.2); }

.action-btn.email-btn {
  background: rgba(58, 134, 255, 0.1);
  border: 1px solid rgba(58, 134, 255, 0.3);
  color: var(--accent-blue);
}
.action-btn.email-btn:hover { background: rgba(58, 134, 255, 0.18); }

.action-btn.form-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.action-btn.form-btn:hover { border-color: var(--accent-blue); color: var(--text-primary); }

.action-btn.done-btn {
  background: rgba(45, 198, 83, 0.08);
  border: 1px solid rgba(45, 198, 83, 0.2);
  color: var(--success);
  opacity: 0.7;
}

/* ---- SCRIPT PANEL ---------------------------------------- */
.script-panel {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 10px;
  animation: fadeIn 0.2s ease;
}
.script-panel.open { display: block; }

.script-panel .script-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.script-panel textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 12px;
  resize: vertical;
  font-family: var(--font-sans);
  min-height: 120px;
  transition: border-color var(--transition);
}
.script-panel textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.script-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.script-btns .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 11px 12px;
}

/* ---- CONFIRMATION PANEL ---------------------------------- */
.confirmation-panel {
  background: linear-gradient(135deg, rgba(45, 198, 83, 0.08), rgba(58, 134, 255, 0.08));
  border: 1px solid rgba(45, 198, 83, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.confirmation-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 4px;
}
.confirmation-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- RALLY SCREEN ---------------------------------------- */
.rally-hero {
  text-align: center;
  padding: 32px 0 24px;
}
.rally-hero h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.rally-hero p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.rally-map-stub {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}
.rally-map-stub h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.rally-map-stub p { color: var(--text-muted); font-size: 0.85rem; }

.nearby-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 8px 0 4px;
}

/* ---- INFO / MISC ----------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-top: 4px;
}

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.info-box strong { color: var(--text-primary); }

/* ---- TOAST ----------------------------------------------- */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.success { border-color: var(--success); color: var(--success); }
#toast.error   { border-color: var(--accent-red); color: var(--accent-red); }
#toast.warning { border-color: var(--warning); color: var(--warning); }

/* ---- ADMIN MODAL ----------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  padding: 20px;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.modal .close-btn {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  margin-top: -4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-box .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- DONATE BLOCK ---------------------------------------- */
.donate-block {
  margin: 22px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0,196,80,0.07) 0%, rgba(0,160,60,0.05) 100%);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}
.donate-block--compact {
  margin: 0 0 8px;
  padding: 14px 16px;
}
.btn-donate {
  display: inline-block;
  background: linear-gradient(135deg, #00c853 0%, #00a846 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(255,214,10,0.30);
  text-transform: uppercase;
  text-decoration: none;
}
.btn-donate:hover, .btn-donate:active {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  box-shadow: 0 6px 24px rgba(0,200,83,0.4);
  transform: translateY(-1px);
}
.donate-block--compact .btn-donate {
  font-size: 0.92rem;
  padding: 11px 20px;
}
.donate-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- SITE FOOTER ----------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 16px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 520px;
  margin: 0 auto;
}
.footer-paid {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---- SECONDARY PAGES ------------------------------------- */
.page-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.page-container h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-container h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--accent-red);
}
.page-container h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}
.page-container p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.page-container ul, .page-container ol {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  padding-left: 20px;
  margin-bottom: 12px;
}
.page-container li { margin-bottom: 6px; }

/* ---- INTEL PAGE ------------------------------------------ */
.intel-warning {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--accent-red);
  line-height: 1.6;
}

.intel-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.intel-link-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  transition: border-color var(--transition);
}
.intel-link-card:hover { border-color: var(--accent-blue); text-decoration: none; }
.intel-link-card strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.intel-link-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.intel-file-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.intel-file-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}
.intel-file-link strong { color: var(--accent-blue); }
.intel-file-dataset {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 8px;
}
.intel-file-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- NEWS PAGE ------------------------------------------- */
.news-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.news-item:hover {
  border-color: var(--accent-red);
  background: var(--surface-3);
}
/* Clickable overlay — entire card links to article */
.news-item-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--radius);
}
.news-item > * { position: relative; z-index: 1; }
.news-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.news-item h3 {
  margin-top: 0;
  margin-bottom: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.news-item h3 a {
  color: var(--text-primary);
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.news-item h3 a:hover { color: var(--accent-blue); }
.news-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.news-source {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.6rem; }
  .counter-row { flex-direction: column; align-items: center; }
}
@media (min-width: 520px) {
  .top-bar { padding: 16px 24px; margin: 0 -24px 0; }
  .screen { padding: 0 24px 40px; }
}

/* ============================================================
   NEW v1.1 — 3-Action Ladder + Join Page
   Append-only. No existing rules modified.
   ============================================================ */

/* ---- 3-ACTION LADDER (confirmation panel) ---------------- */
.ladder-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.ladder-step:last-child { border-bottom: none; padding-bottom: 0; }
.ladder-step:first-child { padding-top: 0; }

.ladder-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 2px;
}
.ladder-step--done .ladder-icon {
  background: rgba(45, 198, 83, 0.15);
  color: var(--success);
  border-color: rgba(45, 198, 83, 0.4);
}
.ladder-icon--num {
  background: rgba(58, 134, 255, 0.12);
  color: var(--accent-blue);
  border-color: rgba(58, 134, 255, 0.3);
}

.ladder-body {
  flex: 1;
  min-width: 0;
}
.ladder-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ladder-step--done .ladder-body strong { color: var(--success); }
.ladder-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.ladder-body .confirmation-actions { margin-top: 8px; }

/* ---- JOIN BUTTON (shared: confirmation panel + join page) - */
.btn-join {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter var(--transition);
}
.btn-join:hover { filter: brightness(1.1); }
.btn-join--large {
  padding: 15px 20px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ---- JOIN PAGE -------------------------------------------- */
.join-page { max-width: 560px; margin: 0 auto; padding-bottom: 48px; }

.join-header {
  margin: 32px 0 20px;
  text-align: center;
}
.join-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.join-subhead {
  color: var(--accent-red);
  font-size: 1rem;
  font-weight: 600;
}

.join-body {
  margin-bottom: 28px;
  line-height: 1.7;
}
.join-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.join-body strong { color: var(--text-primary); }

.join-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.join-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.join-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.join-required { color: var(--accent-red); }
.join-optional {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.join-field input,
.join-field select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-sans);
  -webkit-appearance: none;
}
.join-field input:focus,
.join-field select:focus {
  border-color: var(--accent-blue);
}
.join-field input.error { border-color: var(--accent-red); }
.join-field-error {
  color: var(--accent-red);
  font-size: 0.8rem;
  display: none;
}

.join-consent {
  background: var(--surface-3);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.join-consent p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}

.join-submit-error {
  color: var(--accent-red);
  font-size: 0.85rem;
  padding: 10px 14px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: var(--radius);
}

/* ---- JOIN SUCCESS STATE ----------------------------------- */
.join-success {
  text-align: center;
  padding: 40px 20px;
}
.join-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(45, 198, 83, 0.15);
  border: 2px solid rgba(45, 198, 83, 0.5);
  color: var(--success);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.join-success h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.join-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   v1.2 — Nav CTA + Footer Icons + PWA Install Bar
   Append-only. Zero existing rules modified.
   ============================================================ */

/* ---- NAV JOIN CTA ---------------------------------------- */
.nav-cta {
  color: var(--accent-red) !important;
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 6px;
  padding: 4px 10px !important;
  font-size: 0.8rem !important;
  transition: background var(--transition), border-color var(--transition);
}
.nav-cta:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: var(--accent-red);
  color: var(--accent-red) !important;
}

/* ---- FOOTER SOCIAL ICONS --------------------------------- */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.social-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}
.social-btn:hover {
  background: var(--accent, #e63946);
  border-color: var(--accent, #e63946);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.4);
}

/* ---- PWA INSTALL BAR ------------------------------------- */
.pwa-install-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
}
.pwa-install-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.pwa-install-btn:hover { filter: brightness(1.1); }
.pwa-install-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.pwa-install-dismiss:hover { color: var(--text-muted); }

/* ---- FLOATING ACTION BAR --------------------------------- */
/* Persistent Rally / Donate / Join bar — visible on every page */
.fab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(230, 57, 70, 0.3);
  background: rgba(7, 9, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 54px;
  max-width: 720px;
  margin: 0 auto;
}
.fab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.15s;
  padding: 6px 4px;
  border-right: 1px solid var(--border);
}
.fab-btn:last-child { border-right: none; }
.fab-btn:hover, .fab-btn:active { background: rgba(255,255,255,0.04); color: var(--text-primary); text-decoration: none; }
.fab-icon { font-size: 1.1rem; line-height: 1; }
.fab-btn--rally  { color: var(--accent-red); }
.fab-btn--donate { color: #00c853; }
.fab-btn--join   { color: var(--accent-blue); }
.fab-btn--rally:hover  { background: rgba(230,57,70,0.1); }
.fab-btn--donate:hover { background: rgba(0,200,83,0.1); }
.fab-btn--join:hover   { background: rgba(58,134,255,0.1); }

/* Push page content above the FAB bar */
body { padding-bottom: 54px; }

/* ---- QUICK NAV (home page — under counters) --------------- */
.quick-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.quick-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  min-width: 70px;
  transition: all 0.18s;
}
.quick-nav-btn:hover {
  background: var(--surface-3);
  border-color: var(--accent-red);
  color: var(--text-primary);
  text-decoration: none;
}
.quick-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Remove bottom padding added by FAB bar (no longer present) */
body { padding-bottom: 0; }

/* ============================================================
   v2.0 — Social Proof, Rally Goal, Script Preview, PWA, Push
   ============================================================ */

/* ---- LIVE DOT (used in counter-live-header) -------------- */
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(45, 198, 83, 0.6);
}
@keyframes pulse-dot {
  0%   { opacity: 1; box-shadow: 0 0 0 0 rgba(45, 198, 83, 0.6); }
  50%  { opacity: 0.7; box-shadow: 0 0 0 5px rgba(45, 198, 83, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45, 198, 83, 0); }
}

/* ---- STATE PROOF POPUP ----------------------------------- */
.state-proof-popup {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: var(--radius);
  padding: 11px 36px 11px 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
  z-index: 300;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  width: 320px;
  text-align: center;
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.state-proof-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}

/* ---- MATTERS NOW BLOCK ----------------------------------- */
.matters-now-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.matters-now-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 8px;
}
.matters-now-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.82rem;
}
.matters-now-links a { color: var(--accent-blue); font-weight: 600; }

/* ---- FIELD PRIVACY NOTE ---------------------------------- */
.field-privacy-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.field-privacy-note strong { color: var(--text-primary); }

/* ---- SCRIPT PREVIEW LINK --------------------------------- */
.script-preview-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: underline;
  padding: 0;
}
.script-preview-link:hover { color: var(--text-primary); }

/* ---- SCRIPT PREVIEW MODAL -------------------------------- */
.modal--preview {
  max-width: 540px;
}
.script-preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.script-tab {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.script-tab.active {
  background: var(--surface-3);
  border-color: var(--accent-red);
  color: var(--text-primary);
}
.script-preview-body { animation: fadeIn 0.2s ease; }
.script-preview-pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}
.script-preview-footer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}

/* ---- ACTION RANK TEXT ------------------------------------ */
.action-rank-text {
  font-size: 0.85rem;
  color: var(--success);
  margin-top: 4px;
  font-weight: 600;
}

/* ---- VICTIM PRIVACY BLOCK -------------------------------- */
.victim-privacy-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.victim-privacy-block strong { color: var(--text-primary); }

/* ---- RALLY GOAL PROGRESS BAR ----------------------------- */
.rally-goal-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.rally-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rally-goal-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.rally-goal-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.rally-goal-bar-track {
  width: 100%;
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.rally-goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
}
.rally-goal-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

/* ---- PWA INSTALL BAR ------------------------------------- */
.pwa-install-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid rgba(26, 86, 219, 0.4);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.pwa-install-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.pwa-install-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 2px 4px;
}

/* ---- PUSH SUBSCRIBE BUTTON (join page) ------------------- */
.push-subscribe-block {
  background: var(--surface-2);
  border: 1px solid rgba(26, 86, 219, 0.35);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}
.push-subscribe-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.btn-push-subscribe {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  transition: filter var(--transition);
}
.btn-push-subscribe:hover { filter: brightness(1.1); }
.btn-push-subscribe:disabled { opacity: 0.5; cursor: not-allowed; }
.push-status-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
}


/* ============================================================
   v2.1 — Visual Refinement Layer
   Surgical additions only. Existing rules untouched.
   ============================================================ */

/* ---- READABILITY: page body text -------------------------- */
/* Increase line-height and bottom spacing on secondary pages */
.page-container p {
  line-height: 1.72;
  margin-bottom: 14px;
}
.page-container h1 {
  margin-bottom: 14px;
  line-height: 1.15;
}
.page-container h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---- SPACING: hero section -------------------------------- */
.hero {
  padding-top: 36px;
  padding-bottom: 24px;
}

/* ---- FOOTER: graceful wrapping with more items ------------ */
.footer-links {
  gap: 12px 20px;
  row-gap: 10px;
}
.footer-links a {
  font-size: 0.8rem;
}

/* ---- TEXT HIERARCHY: ensure body copy is softer than headings */
/* Already uses --text-muted on body. This ensures headings pop. */
.page-container h1 {
  color: var(--text-primary);
  font-size: 1.75rem;
}

/* ---- BUTTON HIERARCHY: subdue secondary actions slightly -- */
/* Join button in ladder is already red. Outline buttons get slightly reduced opacity. */
.btn-outline {
  opacity: 0.88;
}
.btn-outline:hover {
  opacity: 1;
}

/* ---- MATTERS NOW BLOCK: slightly more breathing room ------- */
.matters-now-block {
  margin-bottom: 22px;
  padding: 16px;
}

/* ---- DONATE BLOCK: consistent vertical rhythm -------------- */
.donate-block {
  margin: 26px 0;
}

/* ---- VICTIM PRIVACY BLOCK: more air above ------------------ */
.victim-privacy-block {
  margin-top: 20px;
}

/* ---- SECTION DIVIDERS: consistent breathing room ---------- */
.divider {
  margin: 24px 0;
}

/* ---- SOURCES STRIP: slightly more top margin -------------- */
.sources-strip {
  margin-top: 20px;
}


/* =========================================================
   2026 aesthetic refactor
   quiet authority, controlled tension, low friction
   ========================================================= */
:root {
  --bg-primary: #f5f3ef;
  --bg-secondary: #f0ece6;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: rgba(255,255,255,0.9);
  --surface-dark: #222222;
  --text-primary: #1f1e1b;
  --text-muted: #5f6871;
  --text-dim: #7c8590;
  --accent-red: #8b1e1e;
  --accent-red-2: #a12a2a;
  --accent-blue: #6b7c8c;
  --accent-gold: #c2a96a;
  --border: rgba(31, 30, 27, 0.1);
  --shadow-soft: 0 10px 30px rgba(31, 30, 27, 0.08);
  --shadow-deep: 0 24px 60px rgba(31, 30, 27, 0.14);
}
html, body {
  background:
    radial-gradient(circle at top center, rgba(107,124,140,0.16), transparent 36%),
    linear-gradient(180deg, #faf8f4 0%, #f5f3ef 34%, #efeae2 100%);
  color: var(--text-primary);
}
body {
  font-family: Georgia, 'Times New Roman', serif;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(31,30,27,0.035) 0.6px, transparent 0.6px),
    radial-gradient(rgba(31,30,27,0.02) 0.7px, transparent 0.7px);
  background-size: 18px 18px, 27px 27px;
  background-position: 0 0, 9px 9px;
  opacity: 0.45;
  mix-blend-mode: multiply;
  z-index: 0;
}
a { color: var(--accent-red); }
a:hover { color: var(--accent-red-2); }
.site-nav, .top-bar {
  background: rgba(250,248,244,0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31,30,27,0.08);
  box-shadow: 0 8px 24px rgba(31,30,27,0.04);
}
.site-nav {
  max-width: 920px;
  padding: 16px 20px;
}
.nav-logo {
  color: var(--text-primary) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.nav-logo:hover { color: var(--accent-red) !important; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  border: 1px solid rgba(139,30,30,0.18);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
}
#app, .page-container {
  position: relative;
  z-index: 1;
}
#app {
  max-width: 760px;
  padding-bottom: 64px;
}
.page-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.screen { padding: 0 20px 40px; }
.hero {
  padding: 62px 8px 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 620px;
  margin: 0 auto 18px;
}
.hero h1 span {
  color: var(--text-primary);
  position: relative;
}
.hero h1 span::after {
  content: '';
  display: block;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, rgba(194,169,106,0.15), rgba(139,30,30,0.14));
  margin-top: -10px;
}
.hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}
.hero-micro {
  color: var(--accent-blue);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.counter-live-header, .counter-row, .matters-now-block, .donate-block, .victim-privacy-block, .sources-strip, .info-box, .rally-goal-box, .rally-map-stub, .rep-card, .stat-box, .intel-warning, .intel-link-card, #doj-files-container > *, .news-card, .content-card {
  background: var(--surface);
  border: 1px solid rgba(31,30,27,0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.counter-row {
  padding: 10px;
  border-radius: 24px;
  gap: 10px;
}
.counter-pill {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(31,30,27,0.06);
  border-radius: 18px;
  padding: 14px 12px;
}
.counter-pill .num, .stat-num, .nearby-count, .rally-goal-count {
  color: var(--text-primary);
}
.live-dot { background: var(--accent-red); box-shadow: 0 0 0 6px rgba(139,30,30,0.12); }
.live-label, .matters-now-label, .section-title, .section-header h2, .rally-goal-label {
  color: var(--accent-blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.matters-now-block {
  border-radius: 28px;
  padding: 24px;
  margin: 22px 0 26px;
}
.matters-now-block p { color: var(--text-muted); line-height: 1.75; }
.matters-now-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.inline-link-btn {
  border: 0;
  background: transparent;
  color: var(--accent-red);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
form {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(31,30,27,0.08);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.input-group label {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
input, textarea, select {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(31,30,27,0.12);
  color: var(--text-primary);
  border-radius: 18px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
input::placeholder, textarea::placeholder { color: #8d939a; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(107,124,140,0.55);
  box-shadow: 0 0 0 4px rgba(107,124,140,0.12);
}
.field-hint, .field-privacy-note, .field-error, .script-preview-footer, .footer-disclaimer, .footer-paid, .donate-note, .rally-goal-note, .hero-sub, .info-box p, .ladder-body p, .intel-link-card span, .page-container p {
  font-family: 'Segoe UI', Arial, sans-serif;
}
.btn, button, .btn-donate, .pwa-install-btn, .btn-rally, .btn-join, .btn-share, .nav-cta {
  font-family: 'Segoe UI', Arial, sans-serif;
}
.btn, .btn-donate, .btn-rally, .btn-join, .btn-share {
  border-radius: 999px !important;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover, .btn-donate:hover, .btn-rally:hover, .btn-join:hover, .btn-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31,30,27,0.1);
}
.btn-primary, .btn-rally, .btn-join, .pwa-install-btn {
  background: linear-gradient(180deg, var(--accent-red-2) 0%, var(--accent-red) 100%) !important;
  color: #fff !important;
}
.btn-outline, .btn-share {
  background: rgba(255,255,255,0.66) !important;
  color: var(--text-primary) !important;
  border-color: rgba(31,30,27,0.12) !important;
}
.btn-small { padding: 10px 16px !important; font-size: 0.9rem !important; }
.script-preview-link {
  color: var(--accent-red);
  background: transparent;
  border: 0;
  font-weight: 700;
}
.donate-block, .victim-privacy-block, .sources-strip, .info-box, .rep-card, .rally-goal-box, .rally-map-stub, .confirmation-panel, .intel-warning, .intel-link-card, .intel-how-card {
  border-radius: 24px;
}
.victim-privacy-block {
  border-left: 4px solid rgba(194,169,106,0.6);
}
.sources-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 16px 18px;
}
.sources-label { color: var(--accent-blue); }
.modal-overlay {
  background: rgba(32,27,24,0.45);
  backdrop-filter: blur(8px);
}
.modal-overlay--soft { z-index: 1200; }
.modal, .modal--welcome, .modal--preview {
  background: rgba(250,248,244,0.98);
  color: var(--text-primary);
  border: 1px solid rgba(31,30,27,0.08);
  box-shadow: var(--shadow-deep);
  border-radius: 28px;
}
.modal--welcome {
  width: min(560px, calc(100vw - 28px));
  padding: 28px;
}
.close-btn, .close-btn--soft {
  color: var(--text-muted);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(31,30,27,0.08);
}
.welcome-kicker {
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 700 0.75rem 'Segoe UI', Arial, sans-serif;
  margin-bottom: 12px;
}
.welcome-copy {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.welcome-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}
.welcome-step {
  display: none;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(31,30,27,0.08);
  border-radius: 18px;
  padding: 14px;
  font: 500 0.98rem/1.6 'Segoe UI', Arial, sans-serif;
  color: var(--text-primary);
}
.welcome-step.active { display: grid; }
.welcome-step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(139,30,30,0.1);
  color: var(--accent-red);
  font: 700 1rem 'Segoe UI', Arial, sans-serif;
}
.welcome-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.page-container h1, .page-container h2, .section-header h2, .section-title, .modal h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.page-container h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 0.98; margin-bottom: 10px; }
.page-container h2 { font-size: clamp(1.35rem, 4vw, 2rem); margin-top: 28px; }
.intel-links {
  display: grid;
  gap: 14px;
}
.intel-link-card {
  display: block;
  padding: 18px 18px 16px;
  text-decoration: none;
}
.intel-link-card strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}
.intel-how-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  margin: 18px 0 24px;
}
.intel-how-card p { margin: 6px 0 0; color: var(--text-muted); }
.site-footer {
  margin-top: 28px;
  background: rgba(250,248,244,0.88);
  border-top: 1px solid rgba(31,30,27,0.08);
}
.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 36px;
}
.footer-links a, .footer-social a { color: var(--text-muted); }
.footer-links a:hover, .footer-social a:hover { color: var(--accent-red); }
.social-btn {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,30,27,0.08);
}
.state-proof-popup {
  background: rgba(250,248,244,0.96) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(31,30,27,0.08) !important;
  box-shadow: var(--shadow-soft) !important;
}
@media (max-width: 680px) {
  .site-nav { padding: 14px 14px; }
  .nav-links { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .screen, .page-container { padding-left: 14px; padding-right: 14px; }
  .hero { padding-top: 42px; }
  .matters-now-block, form, .intel-how-card { padding: 18px; }
  .intel-how-card { flex-direction: column; align-items: stretch; }
  .welcome-actions { justify-content: stretch; }
  .welcome-actions .btn { width: 100%; }
}


/* =========================================================
   2026 polish pass 2
   paper aesthetic, no navy leaks, high contrast text
   ========================================================= */
:root {
  --bg-primary: #f5f3ef;
  --bg-secondary: #efe9df;
  --surface: rgba(255,255,255,0.78);
  --surface-2: rgba(255,255,255,0.88);
  --surface-3: rgba(248,244,236,0.96);
  --surface-strong: rgba(255,255,255,0.94);
  --surface-dark: #1f1e1b;
  --text-primary: #1f1e1b;
  --text-muted: #1f1e1b;
  --text-dim: #1f1e1b;
  --accent-blue: #1f1e1b;
  --border: rgba(31,30,27,0.10);
}

html, body {
  background:
    radial-gradient(circle at top center, rgba(107,124,140,0.08), transparent 34%),
    linear-gradient(180deg, #fbf9f5 0%, #f5f3ef 42%, #eee7dd 100%);
  color: var(--text-primary);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(90deg, transparent 0 9%, rgba(31,30,27,0.9) 9% 22%, transparent 22% 100%),
    linear-gradient(90deg, transparent 0 58%, rgba(31,30,27,0.9) 58% 76%, transparent 76% 100%),
    linear-gradient(90deg, transparent 0 24%, rgba(31,30,27,0.9) 24% 47%, transparent 47% 100%);
  background-size: 100% 220px, 100% 310px, 100% 390px;
  background-position: 0 90px, 0 46%, 0 calc(100% - 180px);
  background-repeat: no-repeat;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.55), rgba(0,0,0,0.12));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.55), rgba(0,0,0,0.12));
  z-index: 0;
}

body, p, li, span, small, label, .hero-sub, .hero-micro, .field-hint, .field-privacy-note,
.footer-disclaimer, .footer-paid, .news-freshness, .news-item p, .news-source, .news-date,
.intel-file-dataset, .intel-file-desc, .welcome-copy, .intel-how-card p, .matters-now-block p,
.page-container p, .rally-hero p, .rally-map-stub p, .nav-links a, .ticker-item, .ticker-sep,
.quick-nav-btn, .input-help, .script-preview-footer {
  color: var(--text-primary) !important;
}

.site-nav, .top-bar, .site-footer, .counter-live-header, .counter-row, .matters-now-block,
.donate-block, .victim-privacy-block, .sources-strip, .info-box, .rally-goal-box, .rally-map-stub,
.rep-card, .stat-box, .intel-warning, .intel-link-card, .intel-how-card, .news-item, .content-card,
#doj-files-container > *, .confirmation-panel, .modal, .modal--welcome, .modal--preview,
.state-proof-popup, form, .counter-pill, .script-tab, .quick-nav-btn, .social-btn {
  background: var(--surface-2) !important;
  border-color: rgba(31,30,27,0.10) !important;
  box-shadow: 0 10px 28px rgba(31,30,27,0.06) !important;
}

.news-item:hover, .intel-link-card:hover, .quick-nav-btn:hover, .social-btn:hover,
.script-tab.active, .btn-outline:hover, .btn-share:hover {
  background: var(--surface-3) !important;
  border-color: rgba(31,30,27,0.18) !important;
  color: var(--text-primary) !important;
}

.news-item h3 a, .intel-file-link strong, .sources-label, .live-label, .section-title,
.section-header h2, .rally-goal-label, .welcome-kicker, .hero-micro, .matters-now-label,
.script-preview-link, .matters-now-links a, .inline-link-btn, .ticker-source {
  color: var(--text-primary) !important;
}

.news-ticker {
  background: rgba(250,248,244,0.9) !important;
  border-bottom: 1px solid rgba(31,30,27,0.10) !important;
}
.ticker-label {
  background: var(--surface-3) !important;
  color: var(--text-primary) !important;
  border-right: 1px solid rgba(31,30,27,0.10);
}
.ticker-source {
  border-color: rgba(31,30,27,0.16) !important;
  background: rgba(255,255,255,0.55);
}

.nav-logo:hover, .footer-links a:hover, .footer-social a:hover,
.news-item h3 a:hover, .script-preview-link:hover, .matters-now-links a:hover,
.inline-link-btn:hover, .intel-link-card:hover strong {
  color: var(--text-primary) !important;
}

/* keep red only for real action controls */
.btn-primary, .btn-rally, .btn-join, .pwa-install-btn,
.call-btn, .email-btn, .action-btn.call-btn, .action-btn.email-btn,
button[data-action="call"], button[data-action="email"], a[href^="tel:"], a[href^="mailto:"] {
  background: linear-gradient(180deg, #a12a2a 0%, #8b1e1e 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.btn, .btn-donate, .btn-share, .btn-outline, .action-btn.form-btn,
.nav-cta, .pwa-install-dismiss, .close-btn, .close-btn--soft {
  color: var(--text-primary) !important;
}

.nav-cta, .btn-outline, .btn-share, .action-btn.form-btn {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(31,30,27,0.14) !important;
}

/* add subtle paper edge and redaction treatment to content canvases */
.page-container, #app {
  position: relative;
}
.page-container::before, #app::before {
  content: '';
  position: absolute;
  inset: 8px 10px auto 10px;
  height: calc(100% - 16px);
  pointer-events: none;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 16%),
    linear-gradient(0deg, rgba(31,30,27,0.03), rgba(31,30,27,0) 20%),
    repeating-linear-gradient(180deg, transparent 0 148px, rgba(31,30,27,0.025) 148px 149px, transparent 149px 298px);
  opacity: 0.65;
  z-index: -1;
}

.intel-file-dataset, .news-date, .news-source {
  background: rgba(255,255,255,0.65) !important;
  border-radius: 999px;
  padding: 4px 10px !important;
  display: inline-block;
  min-height: 0;
}

input, textarea, select {
  background: rgba(255,255,255,0.98) !important;
  color: var(--text-primary) !important;
  border-color: rgba(31,30,27,0.16) !important;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(31,30,27,0.32) !important;
  box-shadow: 0 0 0 4px rgba(31,30,27,0.08) !important;
}

/* ensure all generic links are black unless explicitly action-focused */
a:not(.btn):not(.btn-primary):not(.btn-rally):not(.btn-join):not(.btn-share):not([href^="tel:"]):not([href^="mailto:"]) {
  color: var(--text-primary) !important;
}

a:not(.btn):not(.btn-primary):not(.btn-rally):not(.btn-join):not(.btn-share):not([href^="tel:"]):not([href^="mailto:"]):hover {
  color: var(--text-primary) !important;
  text-decoration-color: rgba(31,30,27,0.35);
}


/* =========================================================
   2026 polish pass 3
   restrained dossier layer for Intel/Files + hard CTA contrast
   ========================================================= */

/* hard-ensure primary action text is white */
.btn.btn-primary,
.btn.btn-primary:visited,
button.btn.btn-primary,
form .btn.btn-primary,
button[type="submit"].btn-primary {
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

/* Intel / Files page gets the dossier accent layer, not the whole site */
body.intel-page .page-container {
  position: relative;
}

body.intel-page .page-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(31,30,27,0.9) 7% 20%, transparent 20% 100%),
    linear-gradient(90deg, transparent 0 56%, rgba(31,30,27,0.9) 56% 74%, transparent 74% 100%),
    linear-gradient(180deg, transparent 0 160px, rgba(31,30,27,0.18) 160px 162px, transparent 162px 340px);
  background-repeat: no-repeat, no-repeat, repeat-y;
  background-size: 100% 180px, 100% 220px, 100% 340px;
  background-position: 0 42px, 0 calc(100% - 140px), 0 0;
  border-radius: 28px;
  z-index: -1;
}

body.intel-page .intel-link-card,
body.intel-page .intel-file-item,
body.intel-page .intel-warning,
body.intel-page .intel-how-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,244,236,0.92)) !important;
}

body.intel-page .intel-link-card::before,
body.intel-page .intel-file-item::before,
body.intel-page .intel-warning::before,
body.intel-page .intel-how-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 118px;
  height: 16px;
  background: rgba(232, 223, 204, 0.96);
  border: 1px solid rgba(31,30,27,0.10);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 0 rgba(255,255,255,0.55) inset;
}

body.intel-page .intel-link-card::after,
body.intel-page .intel-file-item::after,
body.intel-page .intel-warning::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 110px;
  height: 10px;
  opacity: 0.07;
  background: linear-gradient(90deg,
    rgba(31,30,27,0.95) 0 30%,
    transparent 30% 36%,
    rgba(31,30,27,0.95) 36% 74%,
    transparent 74% 80%,
    rgba(31,30,27,0.95) 80% 100%);
}

body.intel-page .intel-file-dataset {
  background: #1f1e1b !important;
  color: #fff !important;
  border: none !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px !important;
}

body.intel-page .intel-warning strong {
  display: inline-block;
  background: #1f1e1b;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

body.intel-page #doj-files-container {
  display: grid;
  gap: 14px;
}

body.intel-page .intel-file-link strong,
body.intel-page .intel-link-card strong {
  letter-spacing: 0.01em;
}


/* =========================================================
   2026 polish pass 4
   persistent dark mode toggle
   ========================================================= */
html[data-theme="dark"] {
  --bg-primary: #151618;
  --bg-secondary: #1b1d21;
  --surface: rgba(29,31,35,0.82);
  --surface-2: rgba(24,26,30,0.90);
  --surface-3: rgba(34,36,41,0.96);
  --surface-strong: rgba(20,22,26,0.96);
  --surface-dark: #0f1012;
  --text-primary: #f3efe7;
  --text-muted: #f3efe7;
  --text-dim: #e8e0d4;
  --accent-blue: #f3efe7;
  --border: rgba(243,239,231,0.12);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top center, rgba(194,169,106,0.07), transparent 34%),
    linear-gradient(180deg, #181a1d 0%, #141518 42%, #0f1012 100%) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] body::after {
  opacity: 0.07;
  background-image:
    linear-gradient(90deg, transparent 0 11%, rgba(243,239,231,0.9) 11% 24%, transparent 24% 100%),
    linear-gradient(90deg, transparent 0 61%, rgba(243,239,231,0.9) 61% 77%, transparent 77% 100%),
    linear-gradient(90deg, transparent 0 29%, rgba(243,239,231,0.9) 29% 46%, transparent 46% 100%);
}

html[data-theme="dark"] body,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] span,
html[data-theme="dark"] small,
html[data-theme="dark"] label,
html[data-theme="dark"] .hero-sub,
html[data-theme="dark"] .hero-micro,
html[data-theme="dark"] .field-hint,
html[data-theme="dark"] .field-privacy-note,
html[data-theme="dark"] .footer-disclaimer,
html[data-theme="dark"] .footer-paid,
html[data-theme="dark"] .news-freshness,
html[data-theme="dark"] .news-item p,
html[data-theme="dark"] .news-source,
html[data-theme="dark"] .news-date,
html[data-theme="dark"] .intel-file-dataset,
html[data-theme="dark"] .intel-file-desc,
html[data-theme="dark"] .welcome-copy,
html[data-theme="dark"] .intel-how-card p,
html[data-theme="dark"] .matters-now-block p,
html[data-theme="dark"] .page-container p,
html[data-theme="dark"] .rally-hero p,
html[data-theme="dark"] .rally-map-stub p,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .ticker-item,
html[data-theme="dark"] .ticker-sep,
html[data-theme="dark"] .quick-nav-btn,
html[data-theme="dark"] .input-help,
html[data-theme="dark"] .script-preview-footer,
html[data-theme="dark"] a:not(.btn):not(.btn-primary):not(.btn-rally):not(.btn-join):not(.btn-share):not([href^="tel:"]):not([href^="mailto:"]) {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .top-bar,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .counter-live-header,
html[data-theme="dark"] .counter-row,
html[data-theme="dark"] .matters-now-block,
html[data-theme="dark"] .donate-block,
html[data-theme="dark"] .victim-privacy-block,
html[data-theme="dark"] .sources-strip,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .rally-goal-box,
html[data-theme="dark"] .rally-map-stub,
html[data-theme="dark"] .rep-card,
html[data-theme="dark"] .stat-box,
html[data-theme="dark"] .intel-warning,
html[data-theme="dark"] .intel-link-card,
html[data-theme="dark"] .intel-how-card,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] #doj-files-container > *,
html[data-theme="dark"] .confirmation-panel,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal--welcome,
html[data-theme="dark"] .modal--preview,
html[data-theme="dark"] .state-proof-popup,
html[data-theme="dark"] form,
html[data-theme="dark"] .counter-pill,
html[data-theme="dark"] .script-tab,
html[data-theme="dark"] .quick-nav-btn,
html[data-theme="dark"] .social-btn {
  background: var(--surface-2) !important;
  border-color: rgba(243,239,231,0.10) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28) !important;
}

html[data-theme="dark"] .news-item:hover,
html[data-theme="dark"] .intel-link-card:hover,
html[data-theme="dark"] .quick-nav-btn:hover,
html[data-theme="dark"] .social-btn:hover,
html[data-theme="dark"] .script-tab.active,
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .btn-share:hover {
  background: var(--surface-3) !important;
  border-color: rgba(243,239,231,0.18) !important;
}

html[data-theme="dark"] .news-ticker {
  background: rgba(18,19,22,0.92) !important;
  border-bottom: 1px solid rgba(243,239,231,0.08) !important;
}
html[data-theme="dark"] .ticker-label {
  background: rgba(32,34,38,0.95) !important;
  color: var(--text-primary) !important;
  border-right: 1px solid rgba(243,239,231,0.08);
}
html[data-theme="dark"] .ticker-source,
html[data-theme="dark"] .intel-file-dataset,
html[data-theme="dark"] .news-date,
html[data-theme="dark"] .news-source {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(243,239,231,0.12) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: rgba(14,15,17,0.98) !important;
  color: var(--text-primary) !important;
  border-color: rgba(243,239,231,0.16) !important;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  border-color: rgba(243,239,231,0.32) !important;
  box-shadow: 0 0 0 4px rgba(243,239,231,0.08) !important;
}

.theme-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,30,27,0.14);
  background: rgba(255,255,255,0.92);
  color: #1f1e1b;
  box-shadow: 0 12px 28px rgba(31,30,27,0.10);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid rgba(139,30,30,0.28); outline-offset: 2px; }
.theme-toggle__icon { font-size: 0.95rem; line-height: 1; }
.theme-toggle__label { line-height: 1; }
html[data-theme="dark"] .theme-toggle {
  background: rgba(20,22,26,0.92);
  color: #f3efe7;
  border-color: rgba(243,239,231,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

@media (max-width: 680px) {
  .theme-toggle { right: 12px; bottom: 12px; padding: 9px 11px; font-size: 0.78rem; }
}
