/* ============================================================
   GH-POLLS V2 — Visual overhaul layer
   Loaded AFTER gh-polls.css. Overrides legacy components with
   a refined, accessible, civic-grade design system.
   ============================================================ */

/* ----------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------- */
:root {
  /* Brand — Ghana flag spectrum, refined */
  --gh-green-50:  #e8f5ee;
  --gh-green-100: #c5e6d2;
  --gh-green-300: #5cb787;
  --gh-green-500: #0b6e3a;
  --gh-green-600: #095e30;
  --gh-green-700: #074a26;
  --gh-gold-300:  #ffd56b;
  --gh-gold-500:  #f5b820;
  --gh-gold-600:  #d99a06;
  --gh-red-500:   #d92828;
  --gh-red-600:   #b51e1e;
  --gh-black:     #0a0d0c;

  /* Surfaces */
  --v2-bg:           #f5f7f6;
  --v2-bg-alt:       #ffffff;
  --v2-bg-soft:      #eef2f0;
  --v2-bg-elev:      #ffffff;
  --v2-bg-deep:      #e6ece9;
  --v2-card:         #ffffff;
  --v2-overlay:      rgba(10,13,12,0.55);

  --v2-border:       #d9e0db;
  --v2-border-soft:  #e7ece9;
  --v2-border-strong:#b8c2bc;

  /* Text */
  --v2-text:         #0c1410;
  --v2-text-muted:   #4a5851;
  --v2-text-soft:    #6b7670;
  --v2-text-invert:  #ffffff;

  /* Semantic */
  --v2-yes:     #0b6e3a;
  --v2-yes-bg:  #d6efe0;
  --v2-no:      #c61c1c;
  --v2-no-bg:   #fadcdc;
  --v2-neutral: #c08a06;
  --v2-neutral-bg:#fdecc4;
  --v2-info:    #0a5f9c;
  --v2-info-bg: #def0fa;

  /* Sizing */
  --v2-radius-sm: 6px;
  --v2-radius:    12px;
  --v2-radius-lg: 18px;
  --v2-radius-xl: 28px;
  --v2-shadow-1:  0 1px 2px rgba(10,13,12,.06), 0 2px 6px rgba(10,13,12,.04);
  --v2-shadow-2:  0 4px 14px rgba(10,13,12,.08), 0 1px 3px rgba(10,13,12,.05);
  --v2-shadow-3:  0 18px 48px -12px rgba(10,13,12,.2), 0 4px 14px rgba(10,13,12,.06);

  --v2-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --v2-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --v2-step:  4px;
  --v2-tap:   44px;
  --v2-shell-max: 1240px;
  --v2-content-max: 1100px;
}

body.theme-dark {
  --v2-bg:           #0a1410;
  --v2-bg-alt:       #0f1c17;
  --v2-bg-soft:      #122019;
  --v2-bg-elev:      #14241d;
  --v2-bg-deep:      #06100c;
  --v2-card:         #122019;
  --v2-overlay:      rgba(0,0,0,.7);

  --v2-border:       #1f322a;
  --v2-border-soft:  #1a2922;
  --v2-border-strong:#2c443a;

  --v2-text:         #ecf3ef;
  --v2-text-muted:   #9aa9a3;
  --v2-text-soft:    #75847e;
  --v2-text-invert:  #0a1410;

  --v2-yes-bg:  rgba(11,110,58,.18);
  --v2-no-bg:   rgba(198,28,28,.18);
  --v2-neutral-bg:rgba(192,138,6,.18);
  --v2-info-bg: rgba(10,95,156,.18);
}

/* ----------------------------------------------------------
   2. Base resets layered on top of legacy CSS
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--v2-font-sans) !important;
  background: var(--v2-bg) !important;
  color: var(--v2-text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--gh-green-500); }
a:hover { color: var(--gh-green-700); }

h1, h2, h3, h4 {
  font-family: var(--v2-font-display);
  letter-spacing: -0.015em;
  color: var(--v2-text);
}

::selection { background: var(--gh-gold-300); color: var(--gh-black); }

:focus-visible {
  outline: 3px solid var(--gh-gold-500);
  outline-offset: 2px;
  border-radius: var(--v2-radius-sm);
}

.theme-dark ::selection { background: var(--gh-gold-500); color: var(--gh-black); }

/* ----------------------------------------------------------
   3. Topbar — bigger tap targets, mobile menu
   ---------------------------------------------------------- */
.topbar-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gh-red-500) 0% 33%, var(--gh-gold-500) 33% 66%, var(--gh-green-500) 66% 100%);
  position: sticky; top: 0; z-index: 60;
}

.topbar.topbar-v2 {
  background: var(--v2-bg-alt);
  border-bottom: 1px solid var(--v2-border-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  position: sticky;
  top: 4px;
  z-index: 50;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.theme-dark .topbar.topbar-v2 { background: rgba(15,28,23,.95); }

.topbar.topbar-v2 .topbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--v2-text);
}
.topbar.topbar-v2 .flag {
  width: 36px; height: 24px; object-fit: cover;
  border-radius: 4px; box-shadow: var(--v2-shadow-1);
}
.topbar.topbar-v2 .topbar-wordmark {
  font-family: var(--v2-font-display);
  font-weight: 800; font-size: 14px; line-height: 1.05; letter-spacing: 0.04em;
  display: flex; flex-direction: column;
}
.topbar.topbar-v2 .topbar-wordmark span {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--v2-text-muted);
}

.topbar.topbar-v2 .topbar-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px;
}
.topbar.topbar-v2 .topbar-link {
  font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--v2-text-muted);
  padding: 9px 14px; border-radius: 999px;
  transition: background .18s ease, color .18s ease;
  min-height: 36px; display: inline-flex; align-items: center;
}
.topbar.topbar-v2 .topbar-link:hover {
  color: var(--v2-text); background: var(--v2-bg-soft);
}
.topbar.topbar-v2 .topbar-link.active {
  color: var(--gh-green-600); background: var(--gh-green-50);
}
.theme-dark .topbar.topbar-v2 .topbar-link.active {
  color: var(--gh-gold-300); background: rgba(245,184,32,.12);
}

.topbar.topbar-v2 .topbar-spacer { flex: 1; }

.topbar.topbar-v2 .topbar-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--gh-green-50); color: var(--gh-green-700);
  border: 1px solid var(--gh-green-100);
}
.theme-dark .topbar.topbar-v2 .topbar-pill {
  background: rgba(11,110,58,.14); color: var(--gh-gold-300);
  border-color: rgba(11,110,58,.4);
}
.topbar.topbar-v2 .topbar-pill .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--v2-yes);
  box-shadow: 0 0 0 0 rgba(11,110,58,.5);
  animation: gh-pulse 1.6s infinite;
}
@keyframes gh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11,110,58,.45); }
  70% { box-shadow: 0 0 0 8px rgba(11,110,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,110,58,0); }
}

.topbar.topbar-v2 .topbar-disclaimer {
  font-size: 10px; line-height: 1.15;
  text-align: right; color: var(--v2-text-soft);
  border-left: 2px solid var(--gh-red-500);
  padding-left: 10px;
}
.topbar.topbar-v2 .topbar-disclaimer strong {
  display: block; font-weight: 800; color: var(--gh-red-600); letter-spacing: 0.05em;
}

.topbar.topbar-v2 .theme-toggle {
  width: 40px; height: 40px; min-width: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v2-bg-soft); color: var(--v2-text);
  border: 1px solid var(--v2-border); border-radius: 999px;
  cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.topbar.topbar-v2 .theme-toggle:hover { background: var(--v2-bg-deep); transform: rotate(-12deg); }
.topbar.topbar-v2 .theme-toggle svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--v2-text); margin: 3px auto;
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .topbar.topbar-v2 { padding: 10px 14px; flex-wrap: wrap; }
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .topbar.topbar-v2 .topbar-disclaimer { display: none; }
  .topbar.topbar-v2 .topbar-spacer { display: none; }
  .topbar.topbar-v2 .topbar-nav {
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--v2-border-soft);
    margin-top: 6px;
    display: none;
  }
  .topbar.topbar-v2 .topbar-nav.open { display: flex; }
  .topbar.topbar-v2 .topbar-link { padding: 12px 14px; border-radius: 10px; }
  .topbar.topbar-v2 .topbar-pill { order: 3; }
  .topbar.topbar-v2 .theme-toggle { order: 4; }
}

/* ----------------------------------------------------------
   4. News ticker (lowerthird)
   ---------------------------------------------------------- */
.news-ticker {
  display: flex; align-items: center;
  background: var(--gh-black); color: #fff;
  border-bottom: 2px solid var(--gh-gold-500);
  position: sticky; top: 68px; z-index: 40;
  font-size: 14px;
  overflow: hidden;
}
.news-ticker-label {
  flex-shrink: 0;
  background: var(--gh-red-500);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 10px 16px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  z-index: 2;
}
.news-ticker-label::after {
  content: ''; position: absolute; right: -10px; top: 0;
  width: 0; height: 0;
  border-top: 22px solid var(--gh-red-500);
  border-right: 10px solid transparent;
  border-bottom: 22px solid var(--gh-red-500);
}
.news-ticker-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #fff;
  animation: gh-blink 1s infinite;
}
@keyframes gh-blink {
  0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.2; }
}

.news-ticker-track {
  flex: 1; overflow: hidden;
  display: flex;
  position: relative;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 60px), transparent 100%);
}
.news-ticker-loop {
  flex: none; display: inline-flex; gap: 0; align-items: center;
  white-space: nowrap;
  padding: 10px 0;
  animation: ticker-scroll 60s linear infinite;
}
.news-ticker:hover .news-ticker-loop,
.news-ticker.is-paused .news-ticker-loop {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.news-ticker-item {
  margin: 0 24px;
  display: inline-flex; align-items: center; gap: 8px;
}
.news-ticker-item a { color: #fff; text-decoration: none; }
.news-ticker-item a:hover { color: var(--gh-gold-300); text-decoration: underline; }
.news-ticker-item.is-breaking { color: var(--gh-gold-300); font-weight: 700; }
.news-ticker-sep { color: var(--gh-gold-500); }
.ticker-tag {
  background: var(--gh-gold-500); color: var(--gh-black);
  font-weight: 800; font-size: 10px;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.1em;
}

.news-ticker-pause {
  flex-shrink: 0;
  background: rgba(255,255,255,.08); color: #fff;
  border: none; cursor: pointer;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255,255,255,.1);
}
.news-ticker-pause:hover { background: rgba(255,255,255,.15); }
.news-ticker-pause svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------
   5. Buttons (refined)
   ---------------------------------------------------------- */
.btn {
  font-family: var(--v2-font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em;
  border-radius: 999px !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 22px !important;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gh-green-500) !important;
  color: #fff !important;
  box-shadow: var(--v2-shadow-1);
}
.btn-primary:hover {
  background: var(--gh-green-600) !important;
  transform: translateY(-1px);
  box-shadow: var(--v2-shadow-2);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--v2-bg-alt) !important;
  color: var(--v2-text) !important;
  border-color: var(--v2-border) !important;
}
.btn-ghost:hover {
  background: var(--v2-bg-soft) !important;
  border-color: var(--v2-border-strong) !important;
}
.btn-lg { min-height: 52px; padding: 14px 28px !important; font-size: 16px !important; }
.btn-sm { min-height: 36px; padding: 6px 14px !important; font-size: 13px !important; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Ghana-flag accent button */
.btn-flag {
  background: linear-gradient(90deg, var(--gh-red-500) 0% 33%, var(--gh-gold-500) 33% 66%, var(--gh-green-500) 66% 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* ----------------------------------------------------------
   6. Flow nav (steps breadcrumb)
   ---------------------------------------------------------- */
.flow-nav {
  background: var(--v2-bg-alt);
  border-bottom: 1px solid var(--v2-border-soft);
  padding: 16px 24px;
}
.flow-nav-inner {
  max-width: var(--v2-shell-max);
  margin: 0 auto;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.flow-nav .flow-step {
  font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--v2-text-muted);
  padding: 6px 12px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.flow-nav .flow-step:hover { background: var(--v2-bg-soft); color: var(--v2-text); }
.flow-nav .flow-step.is-active {
  background: var(--gh-green-500); color: #fff;
}
.flow-nav .flow-step.is-done { color: var(--gh-green-600); }
.flow-nav .flow-step.is-done::before { content: '✓ '; }
.flow-nav .flow-step.is-disabled { opacity: .45; pointer-events: none; }
.flow-nav .flow-sep { color: var(--v2-border-strong); font-size: 14px; }
.flow-nav .flow-note {
  margin-top: 6px; font-size: 12px; color: var(--v2-text-muted);
  max-width: var(--v2-shell-max); margin-left: auto; margin-right: auto;
}
.flow-nav .flow-context {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  max-width: var(--v2-shell-max); margin: 6px auto 0;
}
.context-chip {
  background: var(--v2-bg-soft); color: var(--v2-text);
  border: 1px solid var(--v2-border);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.context-link {
  font-size: 12px; color: var(--gh-green-600); text-decoration: none; font-weight: 600;
}
.context-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   7. Home — hero, sections, CTA
   ---------------------------------------------------------- */
.home-shell {
  max-width: var(--v2-shell-max);
  margin: 0 auto;
  padding: 0 22px 64px;
}

.hero-pro {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-pro::before {
  content: '';
  position: absolute; inset: -40px -120px auto -120px; height: 580px;
  background:
    radial-gradient(circle at 20% 30%, rgba(11,110,58,.16), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(245,184,32,.18), transparent 55%);
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  font-size: 12px; font-weight: 700;
  color: var(--v2-text);
  box-shadow: var(--v2-shadow-1);
}
.hero-badge-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; }
.hero-badge-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--gh-gold-500); }

.hero-title {
  font-family: var(--v2-font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  color: var(--v2-text);
}
.typewriter-cursor {
  display: inline-block; width: 4px; height: 0.85em;
  background: var(--gh-gold-500); margin-left: 4px; vertical-align: -2px;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.hero-lead {
  font-size: 18px; line-height: 1.55;
  color: var(--v2-text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--v2-border-soft); padding-top: 24px;
}
.metric {}
.metric-num {
  font-family: var(--v2-font-display);
  font-size: 32px; font-weight: 800; color: var(--v2-text);
  line-height: 1;
}
.metric-label {
  font-size: 12px; font-weight: 600; color: var(--v2-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px;
}

.hero-panel { display: grid; gap: 16px; }
.hero-card-pro {
  background: linear-gradient(180deg, var(--v2-card) 0%, color-mix(in srgb, var(--v2-card) 86%, var(--gh-green-50)) 100%);
  border: 1px solid color-mix(in srgb, var(--gh-green-500) 34%, var(--v2-border));
  border-radius: var(--v2-radius-lg);
  padding: 24px;
  box-shadow: var(--v2-shadow-2);
  position: relative;
  overflow: hidden;
}
body.theme-dark .hero-card-pro {
  background: linear-gradient(180deg, #152820 0%, #102019 100%);
  border-color: color-mix(in srgb, var(--gh-green-300) 42%, var(--v2-border));
  box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 0 1px rgba(92,183,135,.08);
}
.hero-card-pro::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gh-red-500) 0% 33%, var(--gh-gold-500) 33% 66%, var(--gh-green-500) 66% 100%);
}
.hero-card-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gh-green-600); text-transform: uppercase;
}
.hero-question {
  font-family: var(--v2-font-display);
  font-size: 22px; font-weight: 700;
  line-height: 1.25; margin: 10px 0 22px;
  color: var(--v2-text);
}
.hero-bars { display: grid; gap: 14px; }
.hero-bar-label {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--v2-text-muted);
  margin-bottom: 4px;
}
.hero-bar-track {
  height: 10px; border-radius: 999px;
  background: var(--v2-bg-deep);
  overflow: hidden;
}
.hero-bar-fill {
  height: 100%; border-radius: 999px;
  transition: width .6s cubic-bezier(.4,.0,.2,1);
}
.fill-yes     { background: linear-gradient(90deg, var(--gh-green-500), var(--gh-green-300)); }
.fill-neutral { background: linear-gradient(90deg, var(--gh-gold-500), var(--gh-gold-300)); }
.fill-no      { background: linear-gradient(90deg, var(--gh-red-500), #f06262); }

.hero-brief {
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 18px 22px;
}
.hero-brief-title { font-weight: 700; margin-bottom: 8px; color: var(--v2-text); }
.hero-brief ul { margin: 0; padding-left: 18px; color: var(--v2-text-muted); font-size: 14px; line-height: 1.6; }
.hero-brief li::marker { color: var(--gh-green-500); }

@media (max-width: 880px) {
  .hero-pro { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric-num { font-size: 24px; }
}

/* Section slabs */
.section-slab {
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius-xl);
  padding: 56px 40px;
  margin-top: 40px;
  box-shadow: var(--v2-shadow-1);
}
.section-slab.slab-alt {
  background: linear-gradient(135deg, var(--gh-green-700) 0%, var(--gh-green-600) 54%, #06391f 100%);
  color: #fff;
  border-color: rgba(255,255,255,.16);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(7,74,38,.26);
}
.section-slab.slab-alt::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(245,184,32,.18), transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(217,40,40,.16), transparent 50%);
  pointer-events: none;
}
.section-slab.slab-alt .slab-title,
.section-slab.slab-alt .slab-sub { color: #fff; }
.section-slab.slab-alt .eyebrow { color: var(--gh-gold-300); }
.slab-head { text-align: center; max-width: 720px; margin: 0 auto 36px; position: relative; z-index: 1; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--gh-green-600); text-transform: uppercase;
}
.slab-title {
  font-family: var(--v2-font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800; line-height: 1.15;
  margin: 8px 0;
}
.slab-sub { color: var(--v2-text-muted); font-size: 16px; }
.slab-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative; z-index: 1;
}
.slab-card {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: var(--v2-radius);
  padding: 22px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.section-slab:not(.slab-alt) .slab-card {
  background: var(--v2-bg-soft);
  border-color: var(--v2-border-soft);
}
.section-slab.slab-alt .slab-card h4 { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.22); }
.section-slab.slab-alt .slab-card p { color: rgba(255,255,255,.94); opacity: 1; }
.slab-card h4 { margin: 0 0 8px; font-size: 18px; }
.slab-card p { margin: 0; font-size: 14px; line-height: 1.55; opacity: .9; }

.flow-steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}
.flow-steps .flow-step {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  padding: 22px;
}
.flow-step-num {
  font-family: var(--v2-font-display);
  font-size: 36px; font-weight: 800;
  color: var(--gh-green-500);
  line-height: 1;
}
.flow-steps .flow-step h3 { margin: 12px 0 6px; font-size: 18px; }
.flow-steps .flow-step p { margin: 0; color: var(--v2-text-muted); font-size: 14px; line-height: 1.55; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 40px;
  padding: 32px 40px;
  background: linear-gradient(120deg, var(--gh-green-700) 0%, var(--gh-green-500) 60%, #1a8a4d 100%);
  color: #fff;
  border-radius: var(--v2-radius-xl);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--gh-gold-500) 0%, transparent 70%);
  opacity: .4;
}
.cta-title { font-family: var(--v2-font-display); font-size: 28px; font-weight: 800; }
.cta-sub { color: rgba(255,255,255,.85); margin-top: 4px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-actions .btn-ghost { background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.3) !important; }
.cta-actions .btn-ghost:hover { background: rgba(255,255,255,.24) !important; }

/* Quick-gate inline form */
.quick-gate {
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 24px;
  margin: 24px 0 36px;
  box-shadow: var(--v2-shadow-2);
}
.quick-gate-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.quick-gate-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--gh-green-600); text-transform: uppercase; }
.quick-gate-title { font-family: var(--v2-font-display); font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.quick-gate-sub { color: var(--v2-text-muted); font-size: 14px; }
.quick-gate-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .quick-gate-grid { grid-template-columns: 1fr; } }
.quick-gate-block .form-label { font-weight: 700; margin-bottom: 8px; color: var(--v2-text); }
.quick-gate-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.quick-gate-hint { font-size: 12px; color: var(--v2-text-muted); margin-top: 8px; }

.seg {
  display: grid; gap: 6px;
  grid-template-columns: repeat(4, 1fr);
}
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 6px; border-radius: 10px;
  border: 1px solid var(--v2-border);
  background: var(--v2-bg-alt);
  font-size: 14px; font-weight: 600; color: var(--v2-text);
  transition: all .15s ease;
  min-height: 44px;
}
.seg-opt:hover span { border-color: var(--gh-green-300); }
.seg-opt input:checked + span {
  background: var(--gh-green-500); color: #fff; border-color: var(--gh-green-500);
}

.location-tabs { display: inline-flex; gap: 4px; background: var(--v2-bg-soft); padding: 4px; border-radius: 999px; margin-bottom: 12px; }
.loc-tab {
  padding: 8px 16px; border: none; background: transparent;
  font-weight: 600; font-size: 13px; color: var(--v2-text-muted);
  border-radius: 999px; cursor: pointer; transition: all .15s ease;
  min-height: 36px;
}
.loc-tab.active { background: var(--gh-green-500); color: #fff; }
.location-panel { display: none; }
.location-panel.active { display: block; animation: gh-fade .25s ease; }
@keyframes gh-fade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.form-input {
  width: 100%; padding: 12px 14px;
  background: var(--v2-bg-alt); color: var(--v2-text);
  border: 1px solid var(--v2-border); border-radius: 10px;
  font: inherit; font-size: 15px; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus { outline: none; border-color: var(--gh-green-500); box-shadow: 0 0 0 3px rgba(11,110,58,.15); }
.form-select-wrap { position: relative; }

.privacy-note {
  font-size: 12px; color: var(--v2-text-muted); margin-top: 14px;
}
.privacy-note a { color: var(--gh-green-600); }

/* ----------------------------------------------------------
   8. Gate page
   ---------------------------------------------------------- */
.gate-page {
  max-width: var(--v2-shell-max);
  margin: 0 auto;
  padding: 0 22px 64px;
}

/* Mobile: leave room for the floating Continue button */
@media (max-width: 720px) {
  .gate-page { padding-bottom: 120px; }
}

/* Gate floating action button (mobile) */
.gate-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, var(--gh-green-500), var(--gh-green-600));
  color: #fff;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gate-fab svg { width: 24px; height: 24px; }
.gate-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.gate-fab:hover { box-shadow: 0 18px 46px rgba(2, 6, 23, 0.42); }
.gate-fab:focus { outline: none; box-shadow: 0 0 0 4px rgba(11,110,58,.25), 0 18px 46px rgba(2, 6, 23, 0.42); }

@media (min-width: 721px) {
  .gate-fab { display: none; }
}
.gate-shell {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 32px;
  align-items: flex-start;
  padding-top: 32px;
}
@media (max-width: 960px) { .gate-shell { grid-template-columns: 1fr; } }

.gate-panel {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 36px;
  box-shadow: var(--v2-shadow-2);
}
.gate-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.gate-mini-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.gate-mini-step { width: 28px; height: 4px; background: var(--v2-border); border-radius: 999px; }
.gate-mini-step.is-done { background: var(--gh-green-500); }
.gate-mini-step.is-active { background: var(--gh-gold-500); }
.gate-mini-label { font-size: 11px; font-weight: 700; color: var(--v2-text-muted); margin-left: 8px; letter-spacing: 0.06em; }
.gate-stepper-title { font-family: var(--v2-font-display); font-size: 30px; font-weight: 800; margin: 0; }
.gate-stepper-sub { color: var(--v2-text-muted); margin-top: 4px; }
.gate-summary {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  padding: 12px 16px;
  min-width: 200px;
}
.gate-summary-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--v2-text-muted); text-transform: uppercase; }
.gate-summary-value { font-weight: 700; color: var(--v2-text); margin-top: 4px; }

.form-group { margin: 22px 0; }
.form-label { font-weight: 700; margin-bottom: 10px; color: var(--v2-text); }

.age-row {
  display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr);
}
.age-chip {
  padding: 14px 10px; min-height: 60px;
  background: var(--v2-bg-alt); color: var(--v2-text);
  border: 1.5px solid var(--v2-border); border-radius: 12px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: all .15s ease;
}
.age-chip:hover { border-color: var(--gh-green-300); transform: translateY(-1px); }
.age-chip.selected {
  background: var(--gh-green-500); color: #fff; border-color: var(--gh-green-500);
  box-shadow: var(--v2-shadow-2);
}

.gate-inline-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0; flex-wrap: wrap; }
.gate-inline-tools { flex: 1; max-width: 280px; }
.gate-search { font-size: 13px; }

.region-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 6px;
}
.region-chip {
  padding: 10px 12px; min-height: 44px;
  background: var(--v2-bg-alt); color: var(--v2-text);
  border: 1px solid var(--v2-border); border-radius: 10px;
  font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .15s ease;
  text-align: left;
}
.region-chip:hover { border-color: var(--gh-green-300); background: var(--v2-bg-soft); }
.region-chip.selected {
  background: var(--gh-green-500); color: #fff; border-color: var(--gh-green-500);
  box-shadow: var(--v2-shadow-2);
}

@media (max-width: 520px) {
  .age-row { grid-template-columns: repeat(2, 1fr); }
  .gate-inline-tools { max-width: none; width: 100%; }

  /* Keep region selection from feeling like a wall of chips */
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 240px;
    overflow: auto;
    padding-right: 6px;
  }
  .region-chip { font-size: 12px; padding: 9px 10px; min-height: 40px; }
}

.gate-hint { font-size: 12px; color: var(--v2-text-muted); margin-top: 8px; }
.error-msg {
  background: var(--v2-no-bg); color: var(--v2-no);
  border: 1px solid color-mix(in srgb, var(--v2-no) 30%, transparent);
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  margin: 12px 0;
}
.error-msg.hidden { display: none; }

.gate-aside { display: grid; gap: 16px; align-content: start; position: sticky; top: 130px; }
.gate-aside-card {
  background: var(--gh-green-500);
  color: #fff;
  border-radius: var(--v2-radius-lg);
  padding: 22px;
  box-shadow: var(--v2-shadow-2);
  position: relative; overflow: hidden;
}
.gate-aside-card::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--gh-gold-500); opacity: .25;
}
.gate-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--gh-gold-300); text-transform: uppercase; }
.gate-title { font-family: var(--v2-font-display); font-size: 22px; font-weight: 800; margin: 6px 0 8px; color: #fff; }
.gate-lead { color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.55; }
.gate-aside-links { display: flex; gap: 12px; margin-top: 14px; }
.gate-link { color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.gate-link:hover { background: rgba(255,255,255,.24); color: #fff; }

.gate-preview {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 18px;
}
.gate-preview-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--gh-green-600); text-transform: uppercase; }
.gate-preview-question { font-family: var(--v2-font-display); font-size: 17px; font-weight: 700; margin-top: 6px; line-height: 1.35; }
.gate-preview-options { display: flex; gap: 8px; margin-top: 12px; }
.gate-preview-options span {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--v2-bg-soft); color: var(--v2-text-muted); font-weight: 600;
}

.gate-highlights { display: grid; gap: 10px; }
.gate-highlight {
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  padding: 14px 16px;
  display: grid; gap: 4px;
}
.gate-highlight strong { font-size: 14px; }
.gate-highlight span { font-size: 13px; color: var(--v2-text-muted); }

/* ----------------------------------------------------------
   9. Vote page
   ---------------------------------------------------------- */
.vote-page {
  max-width: var(--v2-shell-max);
  margin: 0 auto;
  padding: 0 22px 64px;
}
.vote-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: flex-start;
  padding-top: 28px;
}
@media (max-width: 1000px) { .vote-shell { grid-template-columns: 1fr; } }

.vote-panel {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--v2-shadow-2);
}
.vote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.vote-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--gh-red-500); text-transform: uppercase; }
.vote-kicker .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gh-red-500); animation: gh-pulse 1.6s infinite; }
.vote-title { font-family: var(--v2-font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin: 8px 0 12px; line-height: 1.2; }
.poll-context { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.vote-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.vote-status-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
  color: var(--v2-text-muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.vote-choices { display: grid; gap: 12px; margin: 8px 0 16px; }

.vote-btn.pill {
  display: flex !important; align-items: center; gap: 16px;
  background: var(--v2-bg-alt); color: var(--v2-text);
  border: 1.5px solid var(--v2-border); border-radius: 14px;
  padding: 18px 20px; min-height: 78px;
  cursor: pointer; transition: all .18s ease;
  font-weight: 600; text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.vote-btn.pill::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  box-shadow: inset 4px 0 0 currentColor;
  transition: opacity .18s ease;
}
.vote-btn.pill:hover { transform: translateY(-1px); box-shadow: var(--v2-shadow-2); }
.vote-btn-icon {
  flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  font-family: var(--v2-font-display);
}
.icon-yes     { background: var(--v2-yes-bg); color: var(--v2-yes); }
.icon-neutral { background: var(--v2-neutral-bg); color: var(--v2-neutral); }
.icon-no      { background: var(--v2-no-bg); color: var(--v2-no); }
.vote-btn-text { display: flex; flex-direction: column; gap: 2px; }
.vote-btn-label { font-size: 18px; font-weight: 800; font-family: var(--v2-font-display); }
.vote-btn-sub { font-size: 13px; color: var(--v2-text-muted); font-weight: 500; }
.vote-btn.btn-yes:hover     { border-color: var(--v2-yes); background: var(--v2-yes-bg); }
.vote-btn.btn-neutral:hover { border-color: var(--v2-neutral); background: var(--v2-neutral-bg); }
.vote-btn.btn-no:hover      { border-color: var(--v2-no); background: var(--v2-no-bg); }
.vote-btn.is-selected {
  box-shadow: var(--v2-shadow-2), 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.vote-btn.is-selected::after { opacity: 1; }
.vote-btn.is-selected.btn-yes     { border-color: var(--v2-yes); background: var(--v2-yes-bg); color: var(--v2-yes); }
.vote-btn.is-selected.btn-neutral { border-color: var(--v2-neutral); background: var(--v2-neutral-bg); color: var(--v2-neutral); }
.vote-btn.is-selected.btn-no      { border-color: var(--v2-no); background: var(--v2-no-bg); color: var(--v2-no); }
.vote-btn.is-disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none !important;
}

.confirm-box {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border);
  color: var(--v2-text);
  padding: 16px;
  border-radius: 14px;
  font-weight: 600;
  margin: 12px 0;
  box-shadow: var(--v2-shadow-1);
}
.confirm-box.hidden { display: none; }
.confirm-header h3 { margin: 0 0 8px; font-size: 18px; }
.confirm-choice { color: var(--gh-green-600); }
.confirm-note { color: var(--v2-text-muted); font-size: 13px; margin-top: 4px; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.vote-ended {
  background: var(--v2-no-bg); color: var(--v2-no);
  padding: 16px; border-radius: 12px; text-align: center; font-weight: 700;
}

.vote-live { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--v2-border-soft); }
.vote-live-title { font-weight: 700; font-size: 14px; color: var(--v2-text-muted); margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.vote-live .results-area {
  display: grid;
  gap: 10px;
  margin-top: 0;
}
.vote-live .result-row {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--v2-border-soft);
  background: var(--v2-bg-alt);
}
.vote-live .result-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--v2-text);
}
.vote-live .result-meta .choice {
  font-size: 13px;
  font-weight: 800;
}
.vote-live .result-meta .stats {
  font-size: 12px;
  color: var(--v2-text-muted);
  font-weight: 700;
}
.vote-live .bar {
  height: 12px;
  background: var(--v2-bg-deep);
  border-radius: 999px;
  overflow: hidden;
}
.vote-live .bar-fill {
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  color: #fff;
  font-size: 10px;
  line-height: 12px;
  text-align: right;
  padding-right: 6px;
  font-weight: 800;
}
.vote-live .bar-fill.yes { background: linear-gradient(90deg, var(--gh-green-700), var(--gh-green-500)); }
.vote-live .bar-fill.neutral { background: linear-gradient(90deg, var(--gh-gold-600), var(--gh-gold-500)); color: var(--gh-black); }
.vote-live .bar-fill.no { background: linear-gradient(90deg, var(--gh-red-600), var(--gh-red-500)); }

.view-results-wrap.simple { text-align: center; margin-top: 16px; }
.view-results-btn-simple {
  display: inline-block; padding: 10px 18px;
  background: var(--v2-bg-soft); color: var(--v2-text);
  border: 1px solid var(--v2-border); border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 13px;
}
.view-results-btn-simple:hover { background: var(--v2-bg-deep); }

/* Comments panel */
.comments-section.vote-comments {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 20px;
  box-shadow: var(--v2-shadow-1);
  position: sticky; top: 130px;
  max-height: calc(100vh - 150px);
  display: flex; flex-direction: column;
}
.comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--v2-border-soft); }
.comments-header h3 { margin: 0; font-size: 18px; }
.comments-subtitle { margin: 3px 0 0; color: var(--v2-text-muted); font-size: 12px; font-weight: 600; }
.comment-count {
  font-size: 12px;
  color: var(--v2-text);
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 750;
  white-space: nowrap;
}
.comment-input-area {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  padding: 12px;
  margin-bottom: 14px;
}
.input-wrapper { display: flex; gap: 10px; align-items: flex-start; }
.user-avatar { flex-shrink: 0; }
.avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gh-green-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.input-wrapper textarea {
  flex: 1; min-height: 60px; resize: vertical;
  padding: 8px 10px; font: inherit; font-size: 14px;
  background: var(--v2-bg-alt); color: var(--v2-text);
  border: 1px solid var(--v2-border); border-radius: 10px;
}
.input-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.char-count { font-size: 11px; color: var(--v2-text-muted); }
.comments-canvas { flex: 1; overflow-y: auto; }

.comments-section.vote-comments .comment-list {
  display: grid;
  gap: 12px;
  padding-right: 4px;
}
.comments-section.vote-comments .comment-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border-soft);
  box-shadow: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.comments-section.vote-comments .comment-item:hover {
  background: var(--v2-bg-soft);
  border-color: var(--v2-border);
  transform: translateY(-1px);
}
.comments-section.vote-comments .comment-item.reply {
  margin: 10px 0 0;
  background: color-mix(in srgb, var(--v2-bg-soft) 72%, transparent);
  border-color: var(--v2-border-soft);
}
.comments-section.vote-comments .comment-depth-2,
.comments-section.vote-comments .comment-depth-3 {
  background: color-mix(in srgb, var(--v2-bg-soft) 84%, var(--v2-bg-alt));
}
.comments-section.vote-comments .comment-avatar .avatar-placeholder,
.comments-section.vote-comments .avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gh-green-600), var(--gh-green-500));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.comments-section.vote-comments .comment-content { min-width: 0; }
.comments-section.vote-comments .comment-header {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.comment-author-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.comments-section.vote-comments .comment-username {
  color: var(--v2-text);
  font-weight: 800;
  font-size: 13px;
}
.comment-thread-label {
  color: var(--gh-green-600);
  background: var(--v2-yes-bg);
  border: 1px solid color-mix(in srgb, var(--gh-green-500) 24%, transparent);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.comments-section.vote-comments .comment-time {
  color: var(--v2-text-soft);
  font-size: 12px;
  margin-left: auto;
}
.comment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comments-section.vote-comments .comment-badge,
.comments-section.vote-comments .comment-age {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
  color: var(--v2-text-muted);
  font-size: 11px;
  font-weight: 700;
}
.comments-section.vote-comments .comment-badge.diaspora {
  background: var(--v2-info-bg);
  color: var(--v2-info);
  border-color: color-mix(in srgb, var(--v2-info) 22%, transparent);
}
.comments-section.vote-comments .comment-text {
  margin: 0;
  color: var(--v2-text);
  font-size: 14px;
  line-height: 1.55;
}
.comments-section.vote-comments .comment-text p { margin: 0; overflow-wrap: anywhere; }
.comments-section.vote-comments .comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.comments-section.vote-comments .comment-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--v2-text-muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.comments-section.vote-comments .comment-action:hover {
  color: var(--v2-text);
  background: var(--v2-bg-soft);
  border-color: var(--v2-border-soft);
}
.comments-section.vote-comments .comment-action.liked {
  color: var(--gh-red-600);
  background: var(--v2-no-bg);
}
.comments-section.vote-comments .comment-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.comments-section.vote-comments .replies-container {
  margin-top: 10px;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--gh-green-500) 28%, var(--v2-border));
}
.comments-section.vote-comments .reply-form {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border-soft);
}
.comments-section.vote-comments .reply-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comments-section.vote-comments .reply-input-wrapper textarea,
.comments-section.vote-comments .input-wrapper textarea {
  min-height: 58px;
  resize: vertical;
  line-height: 1.45;
}
.comments-section.vote-comments .reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.comments-section.vote-comments .more-replies {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.comments-section.vote-comments .view-more,
.comments-section.vote-comments .view-replies {
  color: var(--gh-green-600);
}

@media (max-width: 680px) {
  .vote-status-strip { grid-template-columns: 1fr; }
  .vote-btn.pill { align-items: flex-start; padding: 16px; }
  .vote-btn-icon { width: 44px; height: 44px; }
  .comments-section.vote-comments { padding: 16px; max-height: none; }
  .comments-section.vote-comments .comment-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
  }
  .comments-section.vote-comments .comment-avatar .avatar-placeholder,
  .comments-section.vote-comments .avatar-placeholder {
    width: 34px;
    height: 34px;
  }
  .comments-section.vote-comments .comment-time {
    margin-left: 0;
    width: 100%;
  }
  .comments-section.vote-comments .replies-container {
    margin-left: 0;
    padding-left: 10px;
  }
}

/* ----------------------------------------------------------
   10. Results page
   ---------------------------------------------------------- */
.results {
  max-width: var(--v2-shell-max);
  margin: 0 auto;
  padding: 0 22px 64px;
}
.results-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  padding: 32px 0 24px;
}
.results-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gh-red-500); text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--gh-red-500);
  animation: gh-pulse 1.6s infinite;
}
.results-title { font-family: var(--v2-font-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin: 8px 0; }
.results-question { font-size: 18px; color: var(--v2-text-muted); max-width: 720px; line-height: 1.5; }
.results-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.results-meta-pill {
  background: var(--gh-green-500); color: #fff;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
}
.results-meta-pill strong { font-family: var(--v2-font-display); font-size: 18px; }
.results-refresh { font-size: 12px; color: var(--v2-text-muted); }

.summary-cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 28px;
}
@media (max-width: 720px) { .summary-cards { grid-template-columns: 1fr; } }
.summary-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 22px;
  position: relative; overflow: hidden;
  box-shadow: var(--v2-shadow-1);
}
.summary-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.ac-yes { background: var(--v2-yes); }
.ac-neutral { background: var(--v2-neutral); }
.ac-no  { background: var(--v2-no); }
.summary-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--v2-text-muted); text-transform: uppercase; }
.summary-pct { font-family: var(--v2-font-display); font-size: 44px; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.pct-yes { color: var(--v2-yes); } .pct-neutral { color: var(--v2-neutral); } .pct-no { color: var(--v2-no); }
.summary-votes { font-size: 13px; color: var(--v2-text-muted); }

.results-panel {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 24px 28px;
  box-shadow: var(--v2-shadow-1);
  margin-bottom: 18px;
}
.results-panel-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; color: var(--v2-text); }

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.bar-choice { font-weight: 700; }
.bar-votes { font-size: 12px; color: var(--v2-text-muted); }
.bar-track-lg {
  height: 28px; background: var(--v2-bg-deep); border-radius: 999px;
  overflow: hidden;
}
.bar-fill-lg {
  height: 100%; border-radius: 999px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  color: #fff; font-weight: 700; font-size: 12px;
  transition: width .8s cubic-bezier(.4,.0,.2,1);
}
.bar-fill-lg.yes { background: linear-gradient(90deg, var(--gh-green-700), var(--gh-green-500)); }
.bar-fill-lg.neutral { background: linear-gradient(90deg, var(--gh-gold-600), var(--gh-gold-500)); }
.bar-fill-lg.no  { background: linear-gradient(90deg, var(--gh-red-600), var(--gh-red-500)); }
.bar-pct { text-align: right; font-weight: 700; font-family: var(--v2-font-display); }

.stats-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  padding: 16px 18px;
  text-align: center;
}
.stat-num { font-family: var(--v2-font-display); font-size: 26px; font-weight: 800; color: var(--gh-green-600); }
.stat-label { font-size: 11px; font-weight: 700; color: var(--v2-text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

.breakdown-head-row, .breakdown-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 14px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--v2-border-soft);
}
.breakdown-head-cell { font-size: 11px; font-weight: 700; color: var(--v2-text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.breakdown-label { font-weight: 600; }
.mini-bar-track { height: 14px; background: var(--v2-bg-deep); border-radius: 999px; overflow: hidden; }
.mini-bar-fill {
  height: 100%; border-radius: 999px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6px; color: #fff; font-size: 10px; font-weight: 700;
  transition: width .6s cubic-bezier(.4,.0,.2,1);
}
.mini-yes { background: var(--v2-yes); }
.mini-neutral { background: var(--v2-neutral); }
.mini-no  { background: var(--v2-no); }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; justify-content: center; }

/* ----------------------------------------------------------
   11. Center card pages (contact / privacy / 404 etc.)
   ---------------------------------------------------------- */
.center-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 22px 64px;
}
.page-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--gh-green-600); text-transform: uppercase; }
.page-title { font-family: var(--v2-font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 8px 0 8px; }
.page-subtitle { font-size: 16px; color: var(--v2-text-muted); max-width: 640px; line-height: 1.55; }

.content-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}
.content-panel {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 22px;
  box-shadow: var(--v2-shadow-1);
}
.content-panel h3 { margin: 0 0 8px; font-family: var(--v2-font-display); font-size: 18px; }
.content-panel p { margin: 0; color: var(--v2-text-muted); font-size: 14px; line-height: 1.55; }
.content-panel a { color: var(--gh-green-600); }

.privacy-section .content-panel { margin-bottom: 14px; }
.privacy-section ul { margin: 8px 0; padding-left: 22px; color: var(--v2-text-muted); }
.privacy-section li { margin-bottom: 6px; line-height: 1.5; }

/* ----------------------------------------------------------
   12. Footer (v2)
   ---------------------------------------------------------- */
.site-footer.site-footer-v2 {
  background: var(--gh-black);
  color: #d8e0db;
  padding: 56px 32px 18px;
  margin-top: 64px;
  border-top: 4px solid var(--gh-gold-500);
}
.theme-light .site-footer.site-footer-v2 a { color: #ffe7a4; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  max-width: var(--v2-shell-max); margin: 0 auto;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand-row { display: flex; gap: 12px; align-items: center; }
.footer-flag { width: 36px; height: 24px; border-radius: 4px; object-fit: cover; }
.footer-name { font-family: var(--v2-font-display); font-size: 18px; font-weight: 800; color: #fff; }
.footer-tag { font-size: 12px; color: #9aa9a3; }
.footer-blurb { font-size: 13px; color: #b9c4be; line-height: 1.6; margin-top: 14px; max-width: 360px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--gh-gold-300); text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: #d8e0db; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--gh-gold-300); }
.footer-meta { font-size: 13px; color: #b9c4be; line-height: 1.55; margin: 0; }
.footer-badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.badge-mini {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--gh-gold-300);
  border: 1px solid rgba(255,255,255,.12);
}

.footer-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
  max-width: var(--v2-shell-max); margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: #9aa9a3;
}
.footer-bar-nav { display: flex; gap: 14px; }
.footer-bar-nav a { color: #b9c4be; font-size: 12px; text-decoration: none; }
.footer-bar-nav a:hover { color: var(--gh-gold-300); }

/* ----------------------------------------------------------
   13. Toasts
   ---------------------------------------------------------- */
.toast-container {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 240px; max-width: 360px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--gh-black); color: #fff;
  font-size: 14px; box-shadow: var(--v2-shadow-3);
  border-left: 4px solid var(--gh-gold-500);
  animation: toast-in .25s ease;
}
.toast.success { border-left-color: var(--v2-yes); }
.toast.error { border-left-color: var(--v2-no); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------
   14. Ad slots (public)
   ---------------------------------------------------------- */
.ad-slot {
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.ad-slot-tag {
  position: absolute; top: 8px; right: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--v2-text-soft); text-transform: uppercase;
  background: var(--v2-bg-soft); padding: 2px 6px; border-radius: 4px;
}
.ad-slot-link { display: block; color: inherit; text-decoration: none; }
.ad-slot-image { width: 100%; height: auto; border-radius: 8px; display: block; }
.ad-slot-body { padding: 6px 4px; font-size: 14px; color: var(--v2-text); }
.ad-slot-home_top, .ad-slot-results_top { margin: 14px auto; max-width: var(--v2-shell-max); }

/* ----------------------------------------------------------
   15. Admin shell
   ---------------------------------------------------------- */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--v2-bg);
}
@media (max-width: 880px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--gh-black);
  color: #d8e0db;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--v2-font-display); font-weight: 800;
  color: #fff; font-size: 16px; letter-spacing: 0.04em;
  padding-bottom: 18px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand img { width: 28px; height: 18px; border-radius: 3px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: #b9c4be; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all .12s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav a.active { background: var(--gh-green-500); color: #fff; }
.admin-nav .icon { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 12px 0; }
.admin-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-foot small { color: #6b7670; font-size: 11px; }

.admin-main { padding: 28px 32px; max-width: 1200px; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.admin-title { font-family: var(--v2-font-display); font-size: 26px; font-weight: 800; margin: 0; }
.admin-sub { color: var(--v2-text-muted); margin-top: 2px; font-size: 14px; }
.admin-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--v2-bg-alt); border: 1px solid var(--v2-border); border-radius: 999px;
}
.admin-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gh-green-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}
.admin-user-name { font-weight: 700; font-size: 13px; }
.admin-user a { font-size: 12px; color: var(--v2-text-muted); text-decoration: none; }
.admin-user a:hover { color: var(--v2-no); }

.admin-grid-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.admin-stat-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 18px;
  box-shadow: var(--v2-shadow-1);
}
.admin-stat-num { font-family: var(--v2-font-display); font-size: 32px; font-weight: 800; color: var(--gh-green-600); line-height: 1; }
.admin-stat-label { font-size: 12px; font-weight: 700; color: var(--v2-text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }

.admin-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 22px;
  box-shadow: var(--v2-shadow-1);
  margin-bottom: 18px;
}
.admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.admin-card-title { font-family: var(--v2-font-display); font-size: 18px; font-weight: 800; margin: 0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--v2-border-soft); }
.admin-table th { font-size: 11px; color: var(--v2-text-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.admin-table tr:hover td { background: var(--v2-bg-soft); }
.admin-table .row-actions { display: flex; gap: 6px; }
.admin-table .row-actions a, .admin-table .row-actions button {
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  background: var(--v2-bg-soft); border: 1px solid var(--v2-border);
  color: var(--v2-text); text-decoration: none; cursor: pointer;
}
.admin-table .row-actions .danger { color: var(--v2-no); border-color: color-mix(in srgb, var(--v2-no) 40%, var(--v2-border)); }
.admin-table .row-actions .danger:hover { background: var(--v2-no-bg); }

.status-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.status-active { background: var(--v2-yes-bg); color: var(--v2-yes); }
.status-draft { background: var(--v2-info-bg); color: var(--v2-info); }
.status-closed { background: var(--v2-no-bg); color: var(--v2-no); }

.admin-form { display: grid; gap: 16px; }
.admin-form .form-row { display: grid; gap: 6px; }
.admin-form .form-row.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .admin-form .form-row.cols-2 { grid-template-columns: 1fr; } }
.admin-form label { font-weight: 700; font-size: 13px; }
.admin-form .help { font-size: 12px; color: var(--v2-text-muted); }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form input[type="datetime-local"],
.admin-form input[type="number"], .admin-form input[type="email"], .admin-form input[type="password"],
.admin-form select, .admin-form textarea {
  padding: 10px 12px; font: inherit; font-size: 14px; min-height: 42px;
  background: var(--v2-bg-alt); color: var(--v2-text);
  border: 1px solid var(--v2-border); border-radius: 8px;
  width: 100%;
}
.admin-form textarea { min-height: 100px; resize: vertical; font-family: var(--v2-font-sans); }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  outline: none; border-color: var(--gh-green-500); box-shadow: 0 0 0 3px rgba(11,110,58,.15);
}
.admin-form .checkbox-row { display: flex; gap: 8px; align-items: center; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Admin login */
.admin-login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at top, rgba(11,110,58,.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(245,184,32,.15) 0%, transparent 50%),
    var(--v2-bg);
  padding: 32px 18px;
}
.admin-login-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 36px;
  box-shadow: var(--v2-shadow-3);
  width: 100%; max-width: 420px;
  position: relative; overflow: hidden;
}
.admin-login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gh-red-500) 0% 33%, var(--gh-gold-500) 33% 66%, var(--gh-green-500) 66% 100%);
}
.admin-login-card h1 { font-family: var(--v2-font-display); margin: 0 0 6px; font-size: 24px; }
.admin-login-card p.muted { color: var(--v2-text-muted); margin: 0 0 20px; font-size: 14px; }

/* Flash messages */
.flash {
  padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}
.flash-success { background: var(--v2-yes-bg); color: var(--v2-yes); border: 1px solid color-mix(in srgb, var(--v2-yes) 30%, transparent); }
.flash-error   { background: var(--v2-no-bg);  color: var(--v2-no);  border: 1px solid color-mix(in srgb, var(--v2-no) 30%, transparent); }
.flash-info    { background: var(--v2-info-bg);color: var(--v2-info);border: 1px solid color-mix(in srgb, var(--v2-info) 30%, transparent); }

/* ----------------------------------------------------------
   16. Charts, predictions, share-snapshot
   ---------------------------------------------------------- */
.insights-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 18px;
}

.chart-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 22px;
  box-shadow: var(--v2-shadow-1);
  position: relative;
}
.chart-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.chart-card-title {
  font-family: var(--v2-font-display);
  font-size: 16px; font-weight: 800; margin: 0;
}
.chart-card-sub { font-size: 12px; color: var(--v2-text-muted); margin-top: 2px; }
.chart-card-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--v2-bg-soft); color: var(--v2-text-muted);
  text-transform: uppercase;
}
.chart-card-canvas-wrap {
  position: relative; height: 240px;
}
.chart-card-canvas-wrap.is-tall  { height: 320px; }
.chart-card-canvas-wrap.is-short { height: 180px; }

/* Predictions */
.prediction-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--gh-green-700), var(--gh-green-500));
  color: #fff;
  border: none;
}
.prediction-card::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--gh-gold-500), transparent 65%);
  opacity: .35;
  pointer-events: none;
}
.prediction-card .chart-card-title,
.prediction-card .chart-card-sub { color: #fff; }
.prediction-card .chart-card-sub { color: rgba(255,255,255,.78); }

.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  position: relative; z-index: 1;
}
.proj-tile {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--v2-radius);
  padding: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.proj-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gh-gold-300);
}
.proj-pct {
  font-family: var(--v2-font-display);
  font-size: 30px; font-weight: 800; line-height: 1;
  margin-top: 6px;
}
.proj-votes { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 4px; }

.proj-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 14px; font-size: 12px;
  position: relative; z-index: 1;
}
.proj-chip {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-weight: 600;
}
.proj-chip strong { font-weight: 800; color: var(--gh-gold-300); }
.proj-conf-high   { background: rgba(255,255,255,.22); }
.proj-conf-medium { background: rgba(245,184,32,.28); color: var(--gh-black); }
.proj-conf-low    { background: rgba(217,40,40,.28); }

/* Insight pills row */
.insight-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}
.insight-pill {
  display: inline-flex; gap: 12px; align-items: center;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  box-shadow: var(--v2-shadow-1);
}
.insight-pill-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v2-bg-soft); color: var(--gh-green-500);
  font-weight: 800;
}
.insight-pill-label { font-size: 11px; color: var(--v2-text-muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.insight-pill-value { font-weight: 700; }

/* Top regions list */
.top-regions-list { display: grid; gap: 10px; }
.top-region-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--v2-border-soft);
}
.top-region-row:last-child { border-bottom: none; }
.top-region-rank {
  font-family: var(--v2-font-display); font-weight: 800;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--v2-bg-soft); color: var(--v2-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.top-region-row:nth-child(1) .top-region-rank { background: var(--gh-gold-500); color: var(--gh-black); }
.top-region-row:nth-child(2) .top-region-rank { background: var(--gh-green-100); color: var(--gh-green-700); }
.top-region-name { font-weight: 700; }
.top-region-meta { font-size: 12px; color: var(--v2-text-muted); }
.top-region-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.top-region-pct { font-weight: 800; font-family: var(--v2-font-display); }
.top-region-leading {
  font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.top-region-leading.lead-yes     { background: var(--v2-yes-bg); color: var(--v2-yes); }
.top-region-leading.lead-neutral { background: var(--v2-neutral-bg); color: var(--v2-neutral); }
.top-region-leading.lead-no      { background: var(--v2-no-bg); color: var(--v2-no); }

/* Demographic skew callout */
.skew-callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: var(--v2-bg-soft); border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 14px 18px;
  margin-top: 6px;
}
.skew-callout-emoji { font-size: 22px; }
.skew-callout-title { font-weight: 700; }
.skew-callout-sub { font-size: 12px; color: var(--v2-text-muted); }
.skew-callout-skew {
  font-family: var(--v2-font-display); font-size: 22px; font-weight: 800;
  color: var(--gh-green-600);
}
.skew-callout-skew.is-negative { color: var(--gh-red-500); }

/* Share card / snapshot frame */
.share-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--v2-bg-alt);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.share-toolbar-label {
  font-size: 12px; color: var(--v2-text-muted); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.share-icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--gh-green-500); color: #fff;
  border: none; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
  min-height: 38px;
}
.share-icon-btn:hover { background: var(--gh-green-600); transform: translateY(-1px); }
.share-icon-btn.is-secondary { background: var(--v2-bg-soft); color: var(--v2-text); border: 1px solid var(--v2-border); }
.share-icon-btn.is-secondary:hover { background: var(--v2-bg-deep); }
.share-icon-btn svg { width: 16px; height: 16px; }

.share-card {
  position: relative;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--v2-shadow-2);
  overflow: hidden;
  transition: outline-color .2s ease;
  outline: 2px solid transparent;
  outline-offset: 4px;
}
.share-card.is-snapshotting {
  outline-color: var(--gh-gold-500);
}
.share-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--gh-red-500) 0% 33%, var(--gh-gold-500) 33% 66%, var(--gh-green-500) 66% 100%);
}
.share-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 14px;
}
.share-card-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--v2-font-display); font-weight: 800;
  color: var(--v2-text);
}
.share-card-brand img { width: 30px; height: 20px; border-radius: 3px; }
.share-card-brand-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--v2-text-muted); text-transform: uppercase; }
.share-card-meta {
  font-size: 11px; color: var(--v2-text-muted);
  text-align: right;
}
.share-card-meta strong { color: var(--gh-green-600); font-weight: 800; }

.share-card-question {
  font-family: var(--v2-font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800; line-height: 1.2;
  margin: 6px 0 18px;
  color: var(--v2-text);
}

.share-card-bigs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 16px;
}
.share-card-big {
  text-align: center;
  border-radius: var(--v2-radius);
  padding: 16px 10px;
  border: 2px solid;
}
.share-card-big.is-yes     { background: var(--v2-yes-bg); border-color: var(--v2-yes); }
.share-card-big.is-neutral { background: var(--v2-neutral-bg); border-color: var(--v2-neutral); }
.share-card-big.is-no      { background: var(--v2-no-bg); border-color: var(--v2-no); }
.share-card-big-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.share-card-big.is-yes     .share-card-big-label { color: var(--v2-yes); }
.share-card-big.is-neutral .share-card-big-label { color: var(--v2-neutral); }
.share-card-big.is-no      .share-card-big-label { color: var(--v2-no); }
.share-card-big-pct {
  font-family: var(--v2-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1; margin: 6px 0 4px;
}
.share-card-big.is-yes     .share-card-big-pct { color: var(--v2-yes); }
.share-card-big.is-neutral .share-card-big-pct { color: var(--v2-neutral); }
.share-card-big.is-no      .share-card-big-pct { color: var(--v2-no); }
.share-card-big-votes { font-size: 11px; color: var(--v2-text-muted); }

.share-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--v2-border-soft);
  font-size: 12px; color: var(--v2-text-muted);
}
.share-card-foot strong { color: var(--v2-text); }
.share-card-flag-strip {
  display: inline-flex; gap: 0; height: 5px; border-radius: 3px; overflow: hidden;
  width: 60px;
}
.share-card-flag-strip span { flex: 1; }
.share-card-flag-strip span:nth-child(1) { background: var(--gh-red-500); }
.share-card-flag-strip span:nth-child(2) { background: var(--gh-gold-500); }
.share-card-flag-strip span:nth-child(3) { background: var(--gh-green-500); }

@media (max-width: 640px) {
  .share-card-bigs { grid-template-columns: 1fr; }
  .share-card-head { flex-direction: column; align-items: flex-start; }
  .share-card-meta { text-align: left; }
}

/* Audience-clarity badge — distinguishes user pages from admin */
.audience-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
  background: var(--v2-info-bg); color: var(--v2-info);
}
.audience-badge.is-admin { background: var(--gh-gold-500); color: var(--gh-black); }

/* Reduce-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  .news-ticker-loop { animation: none; }
}
