/* ============================================================
   ACBIZ GLOBAL ELECTION HUB — Full Stylesheet v2
   "Secure Elections. Trusted Results."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design tokens ── */
:root {
  --eh-navy:    #050d1f;
  --eh-navy2:   #091630;
  --eh-navy3:   #0a1a38;
  --eh-blue:    #1557ff;
  --eh-blue2:   #0a3fbf;
  --eh-blue3:   #0d2d8a;
  --eh-gold:    #f5c400;
  --eh-gold2:   #e0b000;
  --eh-cyan:    #00d4ff;
  --eh-green:   #10b981;
  --eh-white:   #f0f4ff;
  --eh-muted:   #8899bb;
  --eh-border:  rgba(255,255,255,0.08);
  --eh-glass:   rgba(255,255,255,0.04);
  --eh-glass2:  rgba(255,255,255,0.06);
  --eh-radius:  14px;
  --eh-font:    'DM Sans', sans-serif;
  --eh-display: 'Syne', sans-serif;
  --eh-shadow:  0 4px 24px rgba(0,0,0,0.35);
}

/* ── Global reset for eh-page ── */
*, *::before, *::after { box-sizing: border-box; }
.eh-page { font-family: var(--eh-font); background: var(--eh-navy); color: var(--eh-white); overflow-x: hidden; line-height: 1.6; }
.eh-page a { text-decoration: none; }
.eh-page img { max-width: 100%; }

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.eh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,13,31,0.80);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--eh-border);
  transition: background .3s, box-shadow .3s;
}
.eh-nav.scrolled {
  background: rgba(5,13,31,0.97);
  box-shadow: 0 1px 0 var(--eh-border), 0 8px 32px rgba(0,0,0,0.4);
}
.eh-nav-brand { display: flex; align-items: center; gap: 12px; }
.eh-nav-logo {
  width: 36px; height: 36px; background: var(--eh-blue);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0; box-shadow: 0 0 16px rgba(21,87,255,0.4);
}
.eh-nav-name { font-family: var(--eh-display); font-weight: 700; font-size: 15px; color: var(--eh-white); line-height: 1.2; }
.eh-nav-name span { display: block; font-size: 9px; font-weight: 400; color: var(--eh-muted); letter-spacing: 1.5px; text-transform: uppercase; }
.eh-nav-links { display: flex; align-items: center; gap: 28px; }
.eh-nav-links a { font-size: 14px; font-weight: 500; color: var(--eh-muted); transition: color .2s; }
.eh-nav-links a:hover { color: var(--eh-white); }
.eh-nav-cta { display: flex; align-items: center; gap: 10px; }
.eh-btn-ghost {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: var(--eh-font);
  color: var(--eh-white); background: transparent; border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.eh-btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
.eh-btn-primary {
  padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; font-family: var(--eh-font);
  color: #fff; background: var(--eh-blue); border: none; cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .1s;
  box-shadow: 0 2px 12px rgba(21,87,255,0.35);
}
.eh-btn-primary:hover { background: var(--eh-blue2); box-shadow: 0 4px 20px rgba(21,87,255,0.5); }
.eh-btn-primary:active { transform: scale(.97); }

/* Mobile nav hamburger */
.eh-nav-mobile-toggle {
  display: none; background: none; border: none;
  color: var(--eh-white); font-size: 22px; cursor: pointer; padding: 4px;
}
.eh-mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(5,13,31,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--eh-border);
  padding: 20px 24px; z-index: 999;
  flex-direction: column; gap: 4px;
}
.eh-mobile-menu.open { display: flex; }
.eh-mobile-menu a {
  padding: 12px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--eh-muted);
  transition: background .15s, color .15s;
}
.eh-mobile-menu a:hover { background: var(--eh-glass2); color: var(--eh-white); }
.eh-mobile-menu .eh-mobile-divider { height: 1px; background: var(--eh-border); margin: 8px 0; }
.eh-mobile-menu .eh-mobile-cta {
  background: var(--eh-blue); color: #fff !important; text-align: center;
  font-weight: 700 !important; margin-top: 4px;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.eh-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 48px 60px;
  position: relative; overflow: hidden; text-align: center;
}
/* Multi-layer background */
.eh-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.eh-hero-bg-glow {
  position: absolute;
  width: 900px; height: 600px;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(21,87,255,0.2) 0%, transparent 70%);
  filter: blur(40px);
}
.eh-hero-bg-glow2 {
  position: absolute;
  width: 500px; height: 400px;
  right: -100px; bottom: 0;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  filter: blur(60px);
}
.eh-hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--eh-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--eh-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 100%);
}

.eh-hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

/* Announcement badge */
.eh-hero-announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 40px;
  background: rgba(21,87,255,0.08);
  border: 1px solid rgba(21,87,255,0.25);
  margin-bottom: 32px;
  animation: eh-fade-up 0.5s ease both;
  cursor: default;
}
.eh-hero-announce-tag {
  background: var(--eh-blue); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.eh-hero-announce-text { font-size: 13px; color: var(--eh-muted); font-weight: 500; }
.eh-hero-announce-arrow { font-size: 12px; color: var(--eh-cyan); margin-left: 2px; }

/* Hero headline */
.eh-hero-h1 {
  font-family: var(--eh-display);
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 800; line-height: 1.05; letter-spacing: -3px;
  color: #fff; margin-bottom: 0;
  animation: eh-fade-up 0.55s ease 0.08s both;
}
.eh-hero-h1 .eh-gradient-text {
  background: linear-gradient(135deg, #4d8aff 0%, var(--eh-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eh-hero-tagline {
  font-family: var(--eh-display);
  font-size: clamp(18px, 2.5vw, 26px); font-weight: 600;
  color: var(--eh-gold); letter-spacing: 0.5px;
  margin: 16px 0 28px;
  animation: eh-fade-up 0.55s ease 0.16s both;
}
.eh-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 300; line-height: 1.75;
  color: var(--eh-muted); max-width: 600px; margin: 0 auto 44px;
  animation: eh-fade-up 0.55s ease 0.22s both;
}

/* Hero CTA buttons */
.eh-hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  animation: eh-fade-up 0.55s ease 0.28s both;
}
.eh-btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: var(--eh-font);
  background: var(--eh-blue); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(21,87,255,0.45);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.eh-btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(21,87,255,0.55); background: #2066ff; }
.eh-btn-hero-primary:active { transform: scale(.97); }
.eh-btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: var(--eh-font);
  color: var(--eh-white); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.eh-btn-hero-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

/* Hero stat bar */
.eh-hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-top: 64px; flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--eh-border);
  border-radius: 16px; overflow: hidden;
  animation: eh-fade-up 0.55s ease 0.36s both;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.eh-hero-stat {
  flex: 1; min-width: 120px; padding: 20px 24px; text-align: center;
  border-right: 1px solid var(--eh-border);
  transition: background .2s;
}
.eh-hero-stat:last-child { border-right: none; }
.eh-hero-stat:hover { background: rgba(21,87,255,0.06); }
.eh-hero-stat-num {
  font-family: var(--eh-display); font-size: 26px; font-weight: 800;
  color: #fff; letter-spacing: -1px; line-height: 1;
}
.eh-hero-stat-num .accent { color: var(--eh-cyan); }
.eh-hero-stat-lbl { font-size: 11px; color: var(--eh-muted); margin-top: 4px; letter-spacing: 0.5px; }

/* Hero product preview */
.eh-hero-preview {
  margin-top: 72px; position: relative;
  animation: eh-fade-up 0.6s ease 0.44s both;
}
.eh-hero-preview-wrap {
  background: var(--eh-navy2);
  border: 1px solid rgba(21,87,255,0.2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(21,87,255,0.08), 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(21,87,255,0.12);
  position: relative;
}
.eh-hero-preview-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21,87,255,0.6), var(--eh-cyan), rgba(21,87,255,0.6), transparent);
}
/* Browser chrome bar */
.eh-browser-bar {
  background: rgba(0,0,0,0.3); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.eh-browser-dots { display: flex; gap: 6px; }
.eh-browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.eh-browser-dots span:nth-child(1) { background: #ff5f57; }
.eh-browser-dots span:nth-child(2) { background: #ffbd2e; }
.eh-browser-dots span:nth-child(3) { background: #28c840; }
.eh-browser-url {
  flex: 1; background: rgba(255,255,255,0.06);
  border-radius: 6px; padding: 4px 12px;
  font-size: 11px; color: var(--eh-muted); text-align: center;
  max-width: 320px; margin: 0 auto;
}
/* Dashboard mockup inside preview */
.eh-mock-shell {
  display: flex; min-height: 340px;
}
.eh-mock-sidebar {
  width: 200px; flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 16px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.eh-mock-sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 8px;
}
.eh-mock-logo { width: 26px; height: 26px; background: var(--eh-blue); border-radius: 6px; flex-shrink: 0; }
.eh-mock-sidebar-text { font-size: 11px; font-weight: 700; color: var(--eh-white); font-family: var(--eh-display); }
.eh-mock-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; font-size: 11px; color: var(--eh-muted);
  border-radius: 0; transition: background .15s;
}
.eh-mock-nav-item.active { background: rgba(21,87,255,0.15); color: var(--eh-white); border-left: 2px solid var(--eh-blue); }
.eh-mock-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--eh-muted); opacity: .4; }
.eh-mock-nav-dot.blue { background: var(--eh-blue); opacity: 1; }
.eh-mock-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.eh-mock-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.eh-mock-title { font-size: 13px; font-weight: 700; color: var(--eh-white); font-family: var(--eh-display); }
.eh-mock-btn { background: var(--eh-blue); color: #fff; font-size: 9px; font-weight: 700; padding: 4px 10px; border-radius: 5px; }
.eh-mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.eh-mock-stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 10px;
}
.eh-mock-stat-card .eh-mock-val { font-size: 18px; font-weight: 800; color: #fff; font-family: var(--eh-display); }
.eh-mock-stat-card .eh-mock-lbl { font-size: 9px; color: var(--eh-muted); margin-top: 2px; }
.eh-mock-stat-card.c-blue { border-top: 2px solid var(--eh-blue); }
.eh-mock-stat-card.c-green { border-top: 2px solid var(--eh-green); }
.eh-mock-stat-card.c-gold { border-top: 2px solid var(--eh-gold); }
.eh-mock-stat-card.c-cyan { border-top: 2px solid var(--eh-cyan); }
.eh-mock-table-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04); border-radius: 7px;
}
.eh-mock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.eh-mock-dot.live { background: var(--eh-green); }
.eh-mock-dot.up   { background: var(--eh-gold); }
.eh-mock-dot.draft{ background: var(--eh-muted); }
.eh-mock-row-text { flex: 1; }
.eh-mock-row-name { font-size: 10px; font-weight: 600; color: var(--eh-white); }
.eh-mock-row-sub  { font-size: 8px; color: var(--eh-muted); margin-top: 1px; }
.eh-mock-badge {
  font-size: 8px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
}
.eh-mock-badge.live  { background: rgba(16,185,129,0.15); color: #34d399; }
.eh-mock-badge.up    { background: rgba(245,196,0,0.12); color: var(--eh-gold); }
.eh-mock-badge.draft { background: rgba(136,153,187,0.1); color: var(--eh-muted); }
/* Gradient fade at bottom of preview */
.eh-hero-preview-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--eh-navy));
  pointer-events: none;
}

/* ════════════════════════════════════════
   SOCIAL PROOF LOGOS
════════════════════════════════════════ */
.eh-logos {
  padding: 48px 0;
  border-top: 1px solid var(--eh-border);
  border-bottom: 1px solid var(--eh-border);
  background: rgba(255,255,255,0.01);
}
.eh-logos-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 48px;
}
.eh-logos-label {
  text-align: center; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(136,153,187,0.5); margin-bottom: 28px;
}
.eh-logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.eh-logo-pill {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--eh-display); font-size: 14px; font-weight: 700;
  color: rgba(136,153,187,0.5); letter-spacing: -0.3px;
  transition: color .2s;
}
.eh-logo-pill:hover { color: rgba(136,153,187,0.85); }
.eh-logo-pill-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0.5;
}

/* ════════════════════════════════════════
   SECTIONS (shared)
════════════════════════════════════════ */
.eh-section { padding: 112px 48px; position: relative; }
.eh-section-inner { max-width: 1140px; margin: 0 auto; }
.eh-section-header { max-width: 600px; margin-bottom: 64px; }
.eh-section-header.centered { margin: 0 auto 64px; text-align: center; }

.eh-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--eh-cyan);
  margin-bottom: 16px;
}
.eh-label::before {
  content: ''; width: 16px; height: 1.5px;
  background: var(--eh-cyan); display: inline-block;
}
.eh-h2 {
  font-family: var(--eh-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800; letter-spacing: -2px;
  color: #fff; line-height: 1.08; margin-bottom: 18px;
}
.eh-h2 em { font-style: normal; color: var(--eh-gold); }
.eh-lead {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: var(--eh-muted);
}

/* ════════════════════════════════════════
   FEATURES — Bento grid layout
════════════════════════════════════════ */
.eh-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  margin-top: 64px;
}
.eh-bento-card {
  background: var(--eh-navy2);
  border: 1px solid var(--eh-border);
  border-radius: 16px; padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .2s, box-shadow .25s;
}
.eh-bento-card:hover {
  border-color: rgba(21,87,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.eh-bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--eh-blue), var(--eh-cyan));
  opacity: 0; transition: opacity .3s;
}
.eh-bento-card:hover::before { opacity: 1; }
/* Bento grid spans */
.eh-bento-card.span-4  { grid-column: span 4; }
.eh-bento-card.span-6  { grid-column: span 6; }
.eh-bento-card.span-8  { grid-column: span 8; }
.eh-bento-card.span-12 { grid-column: span 12; }

.eh-bento-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
  background: rgba(21,87,255,0.1); border: 1px solid rgba(21,87,255,0.2);
}
.eh-bento-card.gold-accent .eh-bento-icon { background: rgba(245,196,0,0.08); border-color: rgba(245,196,0,0.2); }
.eh-bento-card.green-accent .eh-bento-icon { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); }
.eh-bento-card.cyan-accent .eh-bento-icon { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.2); }

.eh-bento-card h3 {
  font-family: var(--eh-display);
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -0.3px;
}
.eh-bento-card p { font-size: 14px; color: var(--eh-muted); line-height: 1.7; }
.eh-bento-tag {
  display: inline-block; margin-top: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--eh-cyan); text-transform: uppercase;
}
/* Wide card with inline visual */
.eh-bento-card.wide-card {
  display: flex; align-items: center; gap: 40px;
}
.eh-bento-card.wide-card .eh-bento-text { flex: 1; }
.eh-bento-card.wide-card .eh-bento-visual {
  flex-shrink: 0; width: 220px;
  display: flex; flex-direction: column; gap: 8px;
}
/* Live vote bar visual */
.eh-vote-bar-row { display: flex; align-items: center; gap: 10px; }
.eh-vote-bar-name { font-size: 11px; color: var(--eh-muted); width: 70px; flex-shrink: 0; text-align: right; }
.eh-vote-bar-track {
  flex: 1; height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 8px; overflow: hidden;
}
.eh-vote-bar-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--eh-blue), var(--eh-cyan));
  transition: width 1.5s ease;
}
.eh-vote-bar-pct { font-size: 11px; font-weight: 700; color: var(--eh-white); width: 34px; flex-shrink: 0; }

/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
.eh-how { background: var(--eh-navy2); }
.eh-how-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  margin-top: 64px; position: relative;
}
.eh-how-grid::before {
  content: '';
  position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, var(--eh-blue), var(--eh-cyan), var(--eh-gold));
  opacity: 0.4;
}
.eh-how-step { text-align: center; padding: 0 24px; position: relative; }
.eh-how-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--eh-navy); border: 2px solid var(--eh-blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; position: relative; z-index: 1;
  font-family: var(--eh-display); font-size: 18px; font-weight: 800; color: var(--eh-blue);
  box-shadow: 0 0 20px rgba(21,87,255,0.25);
}
.eh-how-step h4 {
  font-family: var(--eh-display); font-size: 16px; font-weight: 700;
  color: #fff; margin-bottom: 10px; letter-spacing: -0.3px;
}
.eh-how-step p { font-size: 14px; color: var(--eh-muted); line-height: 1.65; }

/* ════════════════════════════════════════
   USE CASES
════════════════════════════════════════ */
.eh-usecases-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 64px;
}
.eh-usecase {
  background: var(--eh-glass); border: 1px solid var(--eh-border); border-radius: 16px;
  padding: 28px; display: flex; align-items: flex-start; gap: 16px;
  transition: border-color .2s, background .2s, transform .2s;
}
.eh-usecase:hover { border-color: rgba(21,87,255,0.3); background: rgba(21,87,255,0.05); transform: translateY(-2px); }
.eh-usecase-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: rgba(245,196,0,0.07); border: 1px solid rgba(245,196,0,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.eh-usecase h4 { font-family: var(--eh-display); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.eh-usecase p  { font-size: 13px; color: var(--eh-muted); line-height: 1.65; }

/* ════════════════════════════════════════
   SECURITY
════════════════════════════════════════ */
.eh-security { background: var(--eh-navy2); }
.eh-security-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.eh-security-badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.eh-sec-badge {
  background: rgba(255,255,255,0.03); border: 1px solid var(--eh-border);
  border-radius: 12px; padding: 20px;
  transition: border-color .2s, background .2s;
}
.eh-sec-badge:hover { border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.03); }
.eh-sec-badge-icon { font-size: 22px; margin-bottom: 10px; }
.eh-sec-badge h5 { font-family: var(--eh-display); font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.eh-sec-badge p  { font-size: 12px; color: var(--eh-muted); line-height: 1.55; }

/* ════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════ */
.eh-testimonials-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 64px;
}
.eh-testimonial {
  background: var(--eh-navy2); border: 1px solid var(--eh-border);
  border-radius: 16px; padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .2s, transform .2s;
}
.eh-testimonial:hover { border-color: rgba(21,87,255,0.3); transform: translateY(-2px); }
.eh-testimonial-quote {
  font-size: 14px; color: var(--eh-white); line-height: 1.75; font-weight: 300;
  flex: 1;
}
.eh-testimonial-quote::before { content: '\201C'; font-size: 36px; color: var(--eh-blue); line-height: 0; vertical-align: -14px; margin-right: 4px; font-family: Georgia, serif; }
.eh-testimonial-author { display: flex; align-items: center; gap: 12px; }
.eh-testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 15px; color: #fff;
  flex-shrink: 0;
}
.eh-testimonial-author-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--eh-white); }
.eh-testimonial-author-info span   { font-size: 12px; color: var(--eh-muted); }
.eh-testimonial-stars { color: var(--eh-gold); font-size: 13px; letter-spacing: 1px; margin-bottom: -8px; }

/* ════════════════════════════════════════
   PRICING
════════════════════════════════════════ */
.eh-pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 64px;
  align-items: start;
}
.eh-plan {
  background: rgba(255,255,255,0.03); border: 1px solid var(--eh-border);
  border-radius: 18px; padding: 32px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.eh-plan:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.eh-plan-featured {
  background: linear-gradient(160deg, rgba(21,87,255,0.14) 0%, rgba(0,212,255,0.05) 100%);
  border-color: rgba(21,87,255,0.35);
  transform: scale(1.02);
}
.eh-plan-featured:hover { transform: scale(1.02) translateY(-4px); }
.eh-plan-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--eh-blue); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.eh-plan-name {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--eh-muted); margin-bottom: 14px;
}
.eh-plan-price {
  font-family: var(--eh-display); font-size: 48px; font-weight: 800;
  color: #fff; letter-spacing: -2px; line-height: 1; margin-bottom: 4px;
}
.eh-plan-price sup { font-size: 22px; vertical-align: super; letter-spacing: 0; }
.eh-plan-price sub { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--eh-muted); }
.eh-plan-desc { font-size: 13px; color: var(--eh-muted); margin-bottom: 24px; }
.eh-plan-divider { height: 1px; background: var(--eh-border); margin-bottom: 24px; }
.eh-plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.eh-plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--eh-muted); line-height: 1.5; }
.eh-plan-features li::before { content: '✓'; color: var(--eh-cyan); font-weight: 800; flex-shrink: 0; margin-top: 0; }
.eh-plan-features li.no::before { content: '✕'; color: rgba(255,255,255,0.18); }
.eh-plan-features li.no { opacity: 0.45; }
.eh-plan-btn {
  display: block; width: 100%; text-align: center; padding: 13px;
  border-radius: 10px; font-size: 14px; font-weight: 700; font-family: var(--eh-font);
  cursor: pointer; transition: all .2s;
}
.eh-plan-btn-primary { background: var(--eh-blue); color: #fff; border: none; }
.eh-plan-btn-primary:hover { background: var(--eh-blue2); box-shadow: 0 6px 20px rgba(21,87,255,.4); }
.eh-plan-btn-ghost { background: transparent; color: var(--eh-white); border: 1px solid var(--eh-border); }
.eh-plan-btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }

/* ════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════ */
.eh-cta {
  background: linear-gradient(135deg, var(--eh-blue3) 0%, var(--eh-blue2) 40%, #1557ff 70%, rgba(0,212,255,0.25) 100%);
  position: relative; overflow: hidden;
}
.eh-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.eh-cta::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(rgba(0,212,255,0.12), transparent 70%);
  pointer-events: none;
}
.eh-cta-inner {
  position: relative; z-index: 1; max-width: 1140px; margin: 0 auto;
  padding: 80px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.eh-cta h2 {
  font-family: var(--eh-display);
  font-size: clamp(24px, 3.5vw, 42px); font-weight: 800; letter-spacing: -1.5px; color: #fff;
  margin-bottom: 8px;
}
.eh-cta p { font-size: 16px; color: rgba(255,255,255,0.7); font-weight: 300; }
.eh-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.eh-cta-btn-primary {
  padding: 15px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: var(--eh-font);
  background: var(--eh-gold); color: #050d1f; border: none; cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.eh-cta-btn-primary:hover { background: var(--eh-gold2); box-shadow: 0 8px 28px rgba(245,196,0,.4); }
.eh-cta-btn-primary:active { transform: scale(.97); }
.eh-cta-btn-ghost {
  padding: 15px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: var(--eh-font);
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  transition: background .2s;
}
.eh-cta-btn-ghost:hover { background: rgba(255,255,255,0.18); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.eh-footer { background: #02070f; border-top: 1px solid var(--eh-border); padding: 64px 48px 32px; }
.eh-footer-grid {
  max-width: 1140px; margin: 0 auto 56px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 56px;
}
.eh-footer-brand .eh-nav-brand { margin-bottom: 16px; }
.eh-footer-brand p { font-size: 13px; color: var(--eh-muted); line-height: 1.75; max-width: 280px; }
.eh-footer-brand-badges { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.eh-footer-brand-badge {
  padding: 4px 10px; border-radius: 5px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--eh-border);
  font-size: 10px; color: var(--eh-muted); letter-spacing: 0.5px;
  font-weight: 600;
}
.eh-footer-col h5 {
  font-family: var(--eh-display); font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--eh-white); margin-bottom: 18px;
}
.eh-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.eh-footer-col ul li a { font-size: 13px; color: var(--eh-muted); transition: color .2s; }
.eh-footer-col ul li a:hover { color: var(--eh-white); }
.eh-footer-bottom {
  max-width: 1140px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid var(--eh-border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.eh-footer-bottom p { font-size: 12px; color: rgba(136,153,187,0.5); }
.eh-footer-bottom-links { display: flex; gap: 20px; }
.eh-footer-bottom-links a { font-size: 12px; color: rgba(136,153,187,0.5); transition: color .2s; }
.eh-footer-bottom-links a:hover { color: var(--eh-muted); }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes eh-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes eh-pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}
@keyframes eh-bar-grow {
  from { width: 0; }
}
.eh-animate { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.eh-animate.visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════
   RESPONSIVE — Homepage
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .eh-bento-card.span-4 { grid-column: span 6; }
  .eh-bento-card.span-8 { grid-column: span 12; }
  .eh-bento-card.wide-card { flex-direction: column; }
  .eh-bento-card.wide-card .eh-bento-visual { width: 100%; }
  .eh-security-split { grid-template-columns: 1fr; gap: 40px; }
  .eh-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .eh-nav { padding: 0 20px; }
  .eh-nav-links { display: none; }
  .eh-nav-mobile-toggle { display: block; }
  .eh-section { padding: 72px 20px; }
  .eh-hero { padding: 90px 20px 48px; }
  .eh-logos-inner { padding: 0 20px; }
  .eh-how-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .eh-how-grid::before { display: none; }
  .eh-usecases-grid { grid-template-columns: 1fr 1fr; }
  .eh-testimonials-grid { grid-template-columns: 1fr; }
  .eh-pricing-grid { grid-template-columns: 1fr; }
  .eh-plan-featured { transform: scale(1); }
  .eh-cta-inner { flex-direction: column; align-items: flex-start; padding: 56px 20px; }
  .eh-footer { padding: 48px 20px 24px; }
  .eh-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .eh-mock-sidebar { display: none; }
}
@media (max-width: 600px) {
  .eh-hero-h1 { letter-spacing: -2px; }
  .eh-hero-stats { border-radius: 12px; }
  .eh-hero-stat { padding: 14px 12px; }
  .eh-hero-stat-num { font-size: 20px; }
  .eh-bento-card.span-4,
  .eh-bento-card.span-6,
  .eh-bento-card.span-8,
  .eh-bento-card.span-12 { grid-column: span 12; }
  .eh-how-grid { grid-template-columns: 1fr; }
  .eh-usecases-grid { grid-template-columns: 1fr; }
  .eh-footer-grid { grid-template-columns: 1fr; }
  .eh-logos-row { gap: 24px; }
}

/* ============================================================
   AUTH PAGES — Login & Register
   ============================================================ */

/* Full-page auth layout */
.eh-auth-page {
  font-family: var(--eh-font);
  background: var(--eh-navy);
  color: var(--eh-white);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Left panel — branding ── */
.eh-auth-left {
  position: relative;
  background: linear-gradient(160deg, #091630 0%, #050d1f 60%, #030918 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
}
/* Blue glow */
.eh-auth-left::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(21,87,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
/* Gold accent bottom */
.eh-auth-left::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(245,196,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Dot grid on left panel */
.eh-auth-left-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 20%, transparent 100%);
}
.eh-auth-left-top {
  position: relative;
  z-index: 1;
}
.eh-auth-left-middle {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.eh-auth-left-bottom {
  position: relative;
  z-index: 1;
}

/* Logo on left */
.eh-auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eh-auth-logo-mark {
  width: 42px;
  height: 42px;
  background: var(--eh-blue);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eh-display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.eh-auth-logo-text {
  font-family: var(--eh-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--eh-white);
  line-height: 1.2;
}
.eh-auth-logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--eh-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Tagline block */
.eh-auth-tagline {
  margin-bottom: 40px;
}
.eh-auth-tagline h2 {
  font-family: var(--eh-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
}
.eh-auth-tagline h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--eh-blue) 0%, var(--eh-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eh-auth-tagline p {
  font-size: 15px;
  font-weight: 300;
  color: var(--eh-muted);
  line-height: 1.65;
  max-width: 320px;
}

/* Trust badges row */
.eh-auth-trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eh-auth-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--eh-muted);
}
.eh-auth-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(21,87,255,0.12);
  border: 1px solid rgba(21,87,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.eh-auth-trust-item strong {
  color: var(--eh-white);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1px;
}

/* Footer on left */
.eh-auth-left-footer {
  font-size: 12px;
  color: rgba(136, 153, 187, 0.6);
}

/* ── Right panel — form ── */
.eh-auth-right {
  background: #060e20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  border-left: 1px solid var(--eh-border);
}
/* Subtle top glow on right */
.eh-auth-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21,87,255,0.4), transparent);
}

.eh-auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* Form header */
.eh-auth-form-header {
  margin-bottom: 36px;
}
.eh-auth-form-header h1 {
  font-family: var(--eh-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 8px;
}
.eh-auth-form-header p {
  font-size: 14px;
  color: var(--eh-muted);
  font-weight: 300;
}
.eh-auth-form-header p a {
  color: var(--eh-cyan);
  font-weight: 500;
  transition: color .2s;
}
.eh-auth-form-header p a:hover {
  color: #fff;
}

/* Flash messages styled for dark theme */
.eh-flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.eh-flash-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}
.eh-flash-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7;
}

/* Form fields */
.eh-field {
  margin-bottom: 20px;
}
.eh-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--eh-white);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.eh-field-input-wrap {
  position: relative;
}
.eh-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.5;
}
.eh-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--eh-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--eh-font);
  color: var(--eh-white);
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.eh-input::placeholder {
  color: rgba(136,153,187,0.5);
}
.eh-input:focus {
  border-color: rgba(21,87,255,0.6);
  background: rgba(21,87,255,0.06);
  box-shadow: 0 0 0 3px rgba(21,87,255,0.12);
}
/* Toggle password button */
.eh-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--eh-muted);
  padding: 4px;
  transition: color .2s;
}
.eh-pw-toggle:hover { color: var(--eh-white); }

/* Password strength bar */
.eh-pw-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.eh-pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background .3s;
}
.eh-pw-bar.active-weak   { background: #ef4444; }
.eh-pw-bar.active-fair   { background: #f59e0b; }
.eh-pw-bar.active-good   { background: #3b82f6; }
.eh-pw-bar.active-strong { background: #10b981; }
.eh-pw-label {
  font-size: 11px;
  color: var(--eh-muted);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

/* Submit button */
.eh-auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--eh-font);
  background: var(--eh-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.eh-auth-submit:hover {
  background: var(--eh-blue2);
  box-shadow: 0 8px 24px rgba(21,87,255,0.35);
}
.eh-auth-submit:active {
  transform: scale(.98);
}

/* Divider */
.eh-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.eh-auth-divider::before,
.eh-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--eh-border);
}
.eh-auth-divider span {
  font-size: 12px;
  color: var(--eh-muted);
  white-space: nowrap;
}

/* Footer links */
.eh-auth-form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--eh-muted);
}
.eh-auth-form-footer a {
  color: var(--eh-cyan);
  font-weight: 500;
  transition: color .2s;
}
.eh-auth-form-footer a:hover { color: #fff; }

/* Terms note */
.eh-auth-terms {
  font-size: 12px;
  color: rgba(136,153,187,0.6);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}
.eh-auth-terms a {
  color: var(--eh-muted);
  text-decoration: underline;
  text-decoration-color: rgba(136,153,187,0.3);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .eh-auth-page {
    grid-template-columns: 1fr;
  }
  .eh-auth-left {
    padding: 32px 28px 40px;
    min-height: auto;
  }
  .eh-auth-left-middle {
    padding: 28px 0;
  }
  .eh-auth-tagline h2 { font-size: 26px; }
  .eh-auth-trust { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .eh-auth-left-footer { display: none; }
}
@media (max-width: 480px) {
  .eh-auth-right { padding: 32px 20px; }
  .eh-auth-trust-item span { display: none; }
}


/* ============================================================
   DASHBOARD LAYOUT — User Dashboard
   ============================================================ */

/* ── App shell ── */
.eh-app {
  display: flex;
  min-height: 100vh;
  font-family: var(--eh-font);
  background: var(--eh-navy);
  color: var(--eh-white);
}

/* ── Sidebar ── */
.eh-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #060e22;
  border-right: 1px solid var(--eh-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}
.eh-sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--eh-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eh-sidebar-logo {
  width: 36px; height: 36px;
  background: var(--eh-blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display);
  font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.eh-sidebar-name {
  font-family: var(--eh-display);
  font-size: 14px; font-weight: 700;
  color: var(--eh-white); line-height: 1.2;
}
.eh-sidebar-name span {
  display: block; font-size: 10px; font-weight: 400;
  color: var(--eh-muted); letter-spacing: 1.2px; text-transform: uppercase;
}
.eh-sidebar-close {
  display: none;
  margin-left: auto;
  background: none; border: none;
  color: var(--eh-muted); font-size: 18px;
  cursor: pointer; padding: 4px;
}

/* User pill in sidebar */
.eh-sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--eh-border);
  display: flex; align-items: center; gap: 12px;
}
.eh-sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display);
  font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.eh-sidebar-uname {
  font-size: 13px; font-weight: 600; color: var(--eh-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eh-sidebar-urole {
  font-size: 11px; color: var(--eh-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* Sidebar nav */
.eh-sidebar-nav { padding: 12px 0; flex: 1; }
.eh-snav-section {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(136,153,187,0.45);
  padding: 16px 20px 6px;
}
.eh-snav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 500; color: var(--eh-muted);
  transition: background .15s, color .15s;
  position: relative; cursor: pointer;
}
.eh-snav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--eh-white);
}
.eh-snav-item.active {
  background: rgba(21,87,255,0.12);
  color: var(--eh-white);
}
.eh-snav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--eh-blue);
}
.eh-snav-icon { font-size: 16px; flex-shrink: 0; }
.eh-snav-badge {
  margin-left: auto;
  background: rgba(21,87,255,0.2);
  border: 1px solid rgba(21,87,255,0.3);
  color: var(--eh-cyan);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}
.eh-snav-item.danger { color: #f87171; }
.eh-snav-item.danger:hover { background: rgba(239,68,68,0.08); color: #fca5a5; }

/* Sidebar footer */
.eh-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--eh-border);
  font-size: 11px; color: rgba(136,153,187,0.4);
  line-height: 1.6;
}

/* ── Main content area ── */
body { background: var(--eh-navy); }
.eh-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top bar ── */
.eh-topbar {
  height: 64px;
  background: rgba(6,14,34,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--eh-border);
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.eh-topbar-toggle {
  display: none;
  background: none; border: none;
  color: var(--eh-muted); font-size: 20px;
  cursor: pointer; padding: 4px;
}
.eh-topbar-title {
  font-family: var(--eh-display);
  font-size: 17px; font-weight: 700;
  color: var(--eh-white); letter-spacing: -0.5px;
}
.eh-topbar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
}
.eh-topbar-btn {
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--eh-font);
  background: var(--eh-blue); color: #fff;
  border: none; cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.eh-topbar-btn:hover { background: var(--eh-blue2); }
.eh-topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--eh-border);
  font-size: 13px; color: var(--eh-muted);
  cursor: default;
}
.eh-topbar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  font-family: var(--eh-display);
}

/* ── Page body ── */
.eh-page-body {
  padding: 32px;
  flex: 1;
}

/* ── Welcome banner ── */
.eh-welcome {
  background: linear-gradient(130deg, rgba(21,87,255,0.14) 0%, rgba(0,212,255,0.06) 100%);
  border: 1px solid rgba(21,87,255,0.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: relative; overflow: hidden;
}
.eh-welcome::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21,87,255,0.5), var(--eh-cyan), transparent);
}
.eh-welcome-text h2 {
  font-family: var(--eh-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; margin-bottom: 6px;
}
.eh-welcome-text p {
  font-size: 14px; color: var(--eh-muted); font-weight: 300;
}
.eh-welcome-date {
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--eh-cyan); background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 6px 14px; border-radius: 20px;
  white-space: nowrap;
}

/* ── Stats grid ── */
.eh-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.eh-stat-card {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  padding: 22px 24px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.eh-stat-card:hover {
  border-color: rgba(21,87,255,0.3);
  transform: translateY(-2px);
}
.eh-stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0; transition: opacity .3s;
}
.eh-stat-card:hover::after { opacity: 1; }
.eh-stat-card.blue::after   { background: linear-gradient(90deg, var(--eh-blue), var(--eh-cyan)); }
.eh-stat-card.gold::after   { background: linear-gradient(90deg, var(--eh-gold), #ff9f0a); }
.eh-stat-card.green::after  { background: linear-gradient(90deg, #10b981, #34d399); }
.eh-stat-card.purple::after { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.eh-stat-card-icon {
  font-size: 22px; margin-bottom: 14px;
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.eh-stat-card.blue   .eh-stat-card-icon { background: rgba(21,87,255,0.12);  border: 1px solid rgba(21,87,255,0.2); }
.eh-stat-card.gold   .eh-stat-card-icon { background: rgba(245,196,0,0.1);   border: 1px solid rgba(245,196,0,0.2); }
.eh-stat-card.green  .eh-stat-card-icon { background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.2); }
.eh-stat-card.purple .eh-stat-card-icon { background: rgba(139,92,246,0.1);  border: 1px solid rgba(139,92,246,0.2); }
.eh-stat-card-value {
  font-family: var(--eh-display);
  font-size: 30px; font-weight: 800; letter-spacing: -1px;
  color: #fff; line-height: 1; margin-bottom: 4px;
}
.eh-stat-card-label {
  font-size: 12px; color: var(--eh-muted); font-weight: 500;
  letter-spacing: 0.3px;
}
.eh-stat-card-sub {
  font-size: 11px; color: var(--eh-muted);
  margin-top: 10px; display: flex; align-items: center; gap: 4px;
}
.eh-stat-card-sub .up   { color: #34d399; }
.eh-stat-card-sub .down { color: #f87171; }

/* ── Two-column layout ── */
.eh-dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── Panel / card ── */
.eh-panel {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  overflow: hidden;
}
.eh-panel-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--eh-border);
  display: flex; align-items: center; justify-content: space-between;
}
.eh-panel-head h3 {
  font-family: var(--eh-display);
  font-size: 14px; font-weight: 700;
  color: var(--eh-white); letter-spacing: -0.3px;
}
.eh-panel-head-sub { font-size: 12px; color: var(--eh-muted); margin-top: 2px; }
.eh-panel-link {
  font-size: 12px; color: var(--eh-cyan); font-weight: 600;
  transition: color .2s;
}
.eh-panel-link:hover { color: #fff; }
.eh-panel-body { padding: 20px 24px; }
.eh-panel-empty {
  text-align: center; padding: 40px 20px;
  color: var(--eh-muted); font-size: 13px; line-height: 1.7;
}
.eh-panel-empty-icon { font-size: 32px; margin-bottom: 10px; }

/* ── Election list rows ── */
.eh-election-list { display: flex; flex-direction: column; }
.eh-election-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--eh-border);
  transition: background .15s;
}
.eh-election-row:last-child { border-bottom: none; }
.eh-election-row:hover { background: rgba(255,255,255,0.02); }
.eh-election-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.eh-election-dot.live    { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation: eh-dot-pulse 2s infinite; }
.eh-election-dot.upcoming{ background: var(--eh-gold); }
.eh-election-dot.draft   { background: var(--eh-muted); }
.eh-election-dot.ended   { background: rgba(255,255,255,0.15); }
@keyframes eh-dot-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}
.eh-election-info { flex: 1; min-width: 0; }
.eh-election-title {
  font-size: 13px; font-weight: 600; color: var(--eh-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eh-election-meta {
  font-size: 11px; color: var(--eh-muted); margin-top: 2px;
}
.eh-election-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  flex-shrink: 0;
}
.eh-election-badge.live     { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.eh-election-badge.upcoming { background: rgba(245,196,0,0.1);    color: var(--eh-gold); border: 1px solid rgba(245,196,0,0.2); }
.eh-election-badge.draft    { background: rgba(136,153,187,0.1);  color: var(--eh-muted); border: 1px solid var(--eh-border); }
.eh-election-badge.ended    { background: rgba(255,255,255,0.04); color: rgba(136,153,187,0.6); border: 1px solid var(--eh-border); }
.eh-election-action {
  font-size: 12px; color: var(--eh-muted);
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--eh-border);
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.eh-election-action:hover { border-color: rgba(21,87,255,0.4); color: var(--eh-white); }

/* ── Quick actions panel ── */
.eh-quick-actions { display: flex; flex-direction: column; gap: 10px; }
.eh-qa-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--eh-border);
  cursor: pointer; transition: background .15s, border-color .2s;
  font-family: var(--eh-font);
}
.eh-qa-btn:hover {
  background: rgba(21,87,255,0.07);
  border-color: rgba(21,87,255,0.25);
}
.eh-qa-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.eh-qa-text { text-align: left; }
.eh-qa-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--eh-white); }
.eh-qa-text span   { font-size: 11px; color: var(--eh-muted); }
.eh-qa-arrow { margin-left: auto; color: var(--eh-muted); font-size: 14px; }

/* ── Activity feed ── */
.eh-activity-list { display: flex; flex-direction: column; gap: 0; }
.eh-activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.eh-activity-item:last-child { border-bottom: none; }
.eh-activity-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  background: rgba(21,87,255,0.1); border: 1px solid rgba(21,87,255,0.15);
}
.eh-activity-text { flex: 1; }
.eh-activity-text p { font-size: 13px; color: var(--eh-white); line-height: 1.4; margin: 0; }
.eh-activity-text span { font-size: 11px; color: var(--eh-muted); }

/* ── Getting started checklist ── */
.eh-checklist { display: flex; flex-direction: column; gap: 0; }
.eh-check-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--eh-border);
  transition: background .15s;
}
.eh-check-item:last-child { border-bottom: none; }
.eh-check-item:hover { background: rgba(255,255,255,0.02); }
.eh-check-tick {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.eh-check-tick.done { background: rgba(16,185,129,0.15); border: 1.5px solid rgba(16,185,129,0.4); color: #34d399; }
.eh-check-tick.todo { background: rgba(255,255,255,0.04); border: 1.5px solid var(--eh-border); color: transparent; }
.eh-check-body { flex: 1; }
.eh-check-body strong { display: block; font-size: 13px; font-weight: 600; color: var(--eh-white); }
.eh-check-body span   { font-size: 11px; color: var(--eh-muted); }
.eh-check-item.done-row .eh-check-body strong { color: var(--eh-muted); text-decoration: line-through; }
.eh-check-cta {
  font-size: 11px; color: var(--eh-cyan); font-weight: 600;
  white-space: nowrap; transition: color .2s;
}
.eh-check-cta:hover { color: #fff; }

/* ── Overlay for mobile sidebar ── */
.eh-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 190;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .eh-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .eh-dash-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .eh-sidebar { transform: translateX(-100%); }
  .eh-sidebar.open { transform: translateX(0); }
  .eh-sidebar-overlay.open { display: block; }
  .eh-sidebar-close { display: block; }
  body { background: var(--eh-navy); }
.eh-main { margin-left: 0; }
  .eh-topbar-toggle { display: block; }
  .eh-page-body { padding: 20px 16px; }
}
@media (max-width: 540px) {
  .eh-stats-grid { grid-template-columns: 1fr 1fr; }
  .eh-welcome { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   ELECTION BUILDER — Create, List, Manage
   ============================================================ */

/* ── Page header strip ── */
.eh-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.eh-page-header h1 {
  font-family: var(--eh-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; margin-bottom: 4px;
}
.eh-page-header p { font-size: 14px; color: var(--eh-muted); }

/* ── Breadcrumb ── */
.eh-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--eh-muted);
  margin-bottom: 20px;
}
.eh-breadcrumb a { color: var(--eh-muted); transition: color .2s; }
.eh-breadcrumb a:hover { color: var(--eh-white); }
.eh-breadcrumb span { color: rgba(136,153,187,0.4); }

/* ── Form card ── */
.eh-form-card {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.eh-form-card-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--eh-border);
  display: flex; align-items: center; gap: 12px;
}
.eh-form-card-head-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  background: rgba(21,87,255,0.12); border: 1px solid rgba(21,87,255,0.2);
}
.eh-form-card-head h3 {
  font-family: var(--eh-display);
  font-size: 14px; font-weight: 700; color: var(--eh-white);
}
.eh-form-card-head p { font-size: 12px; color: var(--eh-muted); margin-top: 1px; }
.eh-form-card-body { padding: 24px; }

/* ── Form grid ── */
.eh-form-grid { display: grid; gap: 20px; }
.eh-form-grid-2 { grid-template-columns: 1fr 1fr; }
.eh-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Form field (reused from auth, extended) ── */
.eh-field textarea.eh-input {
  padding: 12px 14px;
  min-height: 90px; resize: vertical;
}
.eh-field select.eh-input {
  padding: 12px 14px;
  cursor: pointer;
  background-color: rgba(255,255,255,0.04);
}
.eh-field select.eh-input option { background: #091630; color: var(--eh-white); }
.eh-input-no-icon { padding-left: 14px !important; }
.eh-field-hint {
  font-size: 11px; color: var(--eh-muted);
  margin-top: 5px; line-height: 1.4;
}

/* ── Toggle switch ── */
.eh-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.eh-toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.eh-toggle-label strong { display: block; font-size: 13px; font-weight: 600; color: var(--eh-white); }
.eh-toggle-label span   { font-size: 12px; color: var(--eh-muted); }
.eh-toggle {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.eh-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.eh-toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--eh-border);
  border-radius: 24px; cursor: pointer; transition: .2s;
}
.eh-toggle-slider::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--eh-muted); transition: .2s;
}
.eh-toggle input:checked + .eh-toggle-slider { background: var(--eh-blue); border-color: var(--eh-blue); }
.eh-toggle input:checked + .eh-toggle-slider::before { transform: translateX(20px); background: #fff; }

/* ── Form actions bar ── */
.eh-form-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 20px 24px;
  border-top: 1px solid var(--eh-border);
  background: rgba(255,255,255,0.02);
}
.eh-btn-save {
  padding: 11px 28px; border-radius: 9px;
  font-size: 14px; font-weight: 700; font-family: var(--eh-font);
  background: var(--eh-blue); color: #fff; border: none; cursor: pointer;
  transition: background .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.eh-btn-save:hover { background: var(--eh-blue2); box-shadow: 0 6px 20px rgba(21,87,255,.35); }
.eh-btn-cancel {
  padding: 11px 20px; border-radius: 9px;
  font-size: 14px; font-weight: 600; font-family: var(--eh-font);
  background: transparent; color: var(--eh-muted);
  border: 1px solid var(--eh-border); cursor: pointer; transition: all .2s;
}
.eh-btn-cancel:hover { border-color: rgba(255,255,255,.25); color: var(--eh-white); }

/* ── Election list table ── */
.eh-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--eh-border);
}
.eh-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.eh-table thead th {
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--eh-border);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--eh-muted);
  text-align: left; white-space: nowrap;
}
.eh-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .15s;
}
.eh-table tbody tr:last-child { border-bottom: none; }
.eh-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.eh-table td {
  padding: 14px 18px; color: var(--eh-muted);
  vertical-align: middle;
}
.eh-table td strong { color: var(--eh-white); font-weight: 600; }
.eh-table-actions { display: flex; gap: 8px; align-items: center; }
.eh-tbl-btn {
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  font-family: var(--eh-font); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.eh-tbl-btn-blue { background: rgba(21,87,255,0.12); color: var(--eh-cyan); border: 1px solid rgba(21,87,255,0.2); }
.eh-tbl-btn-blue:hover { background: rgba(21,87,255,0.2); }
.eh-tbl-btn-red  { background: rgba(239,68,68,0.08); color: #f87171; border: 1px solid rgba(239,68,68,0.15); }
.eh-tbl-btn-red:hover  { background: rgba(239,68,68,0.15); }
.eh-tbl-btn-ghost { background: transparent; color: var(--eh-muted); border: 1px solid var(--eh-border); }
.eh-tbl-btn-ghost:hover { border-color: rgba(255,255,255,.25); color: var(--eh-white); }

/* ── Manage election page ── */
.eh-manage-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px;
}
.eh-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}
.eh-status-pill.draft    { background: rgba(136,153,187,0.1); color: var(--eh-muted); border: 1px solid var(--eh-border); }
.eh-status-pill.upcoming { background: rgba(245,196,0,0.1);   color: var(--eh-gold); border: 1px solid rgba(245,196,0,0.25); }
.eh-status-pill.live     { background: rgba(16,185,129,0.1);  color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.eh-status-pill.ended    { background: rgba(255,255,255,0.04); color: rgba(136,153,187,0.6); border: 1px solid var(--eh-border); }

/* Position + candidate builder */
.eh-positions-list { display: flex; flex-direction: column; gap: 12px; }
.eh-position-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--eh-border);
  border-radius: 10px; overflow: hidden;
}
.eh-position-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--eh-border);
  background: rgba(255,255,255,0.02);
}
.eh-position-head strong { font-size: 13px; font-weight: 700; color: var(--eh-white); flex: 1; }
.eh-position-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.eh-candidate-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
}
.eh-candidate-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
  font-family: var(--eh-display);
}
.eh-candidate-name { font-size: 13px; font-weight: 600; color: var(--eh-white); flex: 1; }
.eh-candidate-bio  { font-size: 11px; color: var(--eh-muted); }

/* Action buttons in manage page */
.eh-action-group { display: flex; flex-direction: column; gap: 10px; }
.eh-action-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; font-family: var(--eh-font);
  cursor: pointer; transition: all .15s; border: 1px solid var(--eh-border);
  background: rgba(255,255,255,0.03); color: var(--eh-white); width: 100%;
}
.eh-action-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,.2); }
.eh-action-btn.green { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #34d399; }
.eh-action-btn.green:hover { background: rgba(16,185,129,0.15); }
.eh-action-btn.red   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #f87171; }
.eh-action-btn.red:hover   { background: rgba(239,68,68,0.14); }
.eh-action-btn.gold  { background: rgba(245,196,0,0.08); border-color: rgba(245,196,0,0.2); color: var(--eh-gold); }
.eh-action-btn.gold:hover  { background: rgba(245,196,0,0.14); }

/* ── Empty state ── */
.eh-empty {
  text-align: center; padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.eh-empty-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(21,87,255,0.08); border: 1px solid rgba(21,87,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.eh-empty h3 { font-family: var(--eh-display); font-size: 18px; font-weight: 700; color: #fff; }
.eh-empty p  { font-size: 14px; color: var(--eh-muted); max-width: 360px; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .eh-form-grid-2 { grid-template-columns: 1fr; }
  .eh-form-grid-3 { grid-template-columns: 1fr 1fr; }
  .eh-manage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .eh-form-grid-3 { grid-template-columns: 1fr; }
}


/* ============================================================
   VOTER MANAGEMENT — Additional Styles
   ============================================================ */

/* Stat card colour variants (extend existing cards) */
.eh-stat-card.cyan .eh-stat-card-icon {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
}
.eh-stat-card.cyan::after {
  background: linear-gradient(90deg, var(--eh-cyan), #00a8cc);
}
.eh-stat-card.purple .eh-stat-card-icon {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
}
.eh-stat-card.purple::after {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* Code tag in tables */
code {
  font-family: 'Courier New', monospace;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
}

/* File input styling */
input[type="file"].eh-input {
  padding-top: 10px;
  padding-bottom: 10px;
  cursor: pointer;
  color: var(--eh-muted);
}
input[type="file"].eh-input::-webkit-file-upload-button {
  background: rgba(21,87,255,0.15);
  border: 1px solid rgba(21,87,255,0.3);
  color: var(--eh-cyan);
  font-family: var(--eh-font);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
  transition: background .2s;
}
input[type="file"].eh-input::-webkit-file-upload-button:hover {
  background: rgba(21,87,255,0.25);
}

/* Select inside table */
select.eh-input {
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--eh-border);
  border-radius: 7px;
  color: var(--eh-white);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s;
}
select.eh-input:focus {
  border-color: rgba(21,87,255,0.5);
  outline: none;
}

/* Responsive voter columns */
@media (max-width: 860px) {
  .eh-voter-grid-2 { grid-template-columns: 1fr !important; }
}


/* ============================================================
   BALLOT LAYOUT — Public Voting Pages
   ============================================================ */

/* ── Ballot page shell ── */
.eh-ballot-page {
  font-family: var(--eh-font);
  background: var(--eh-navy);
  color: var(--eh-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Ballot nav (minimal, no login links) ── */
.eh-ballot-nav {
  background: rgba(5,13,31,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--eh-border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.eh-ballot-nav-brand { display: flex; align-items: center; gap: 10px; }
.eh-ballot-secure {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #34d399; font-weight: 600;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 5px 12px; border-radius: 20px;
}

/* ── Ballot body ── */
.eh-ballot-body {
  flex: 1;
  padding: 40px 24px 60px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* ── Voter identity bar ── */
.eh-voter-bar {
  background: rgba(21,87,255,0.08);
  border: 1px solid rgba(21,87,255,0.2);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.eh-voter-bar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 15px; color: #fff;
  flex-shrink: 0;
}
.eh-voter-bar-name { font-size: 14px; font-weight: 700; color: var(--eh-white); }
.eh-voter-bar-id   { font-size: 11px; color: var(--eh-muted); margin-top: 2px; }
.eh-voter-bar-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
  color: #34d399; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* ── Election header on ballot ── */
.eh-ballot-header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--eh-border);
}
.eh-ballot-header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
  color: #34d399; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.eh-ballot-header-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  animation: eh-dot-pulse 2s infinite;
}
.eh-ballot-header h1 {
  font-family: var(--eh-display);
  font-size: clamp(22px, 4vw, 32px); font-weight: 800;
  letter-spacing: -1px; color: #fff; margin-bottom: 8px;
}
.eh-ballot-header p { font-size: 14px; color: var(--eh-muted); line-height: 1.6; }
.eh-ballot-progress {
  margin-top: 16px;
  font-size: 12px; color: var(--eh-muted); font-weight: 600;
}

/* ── Position section ── */
.eh-ballot-position {
  margin-bottom: 28px;
}
.eh-ballot-position-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.eh-ballot-position-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(21,87,255,0.15); border: 1.5px solid rgba(21,87,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--eh-blue);
  flex-shrink: 0;
}
.eh-ballot-position-title {
  font-family: var(--eh-display);
  font-size: 16px; font-weight: 700; color: var(--eh-white);
}
.eh-ballot-position-sub { font-size: 12px; color: var(--eh-muted); margin-top: 1px; }
.eh-ballot-required {
  margin-left: auto; font-size: 10px; font-weight: 700;
  color: #f87171; background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.eh-ballot-required.selected {
  color: #34d399; background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.2);
}

/* ── Candidate cards ── */
.eh-candidate-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.eh-ballot-candidate {
  position: relative;
}
.eh-ballot-candidate input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.eh-ballot-candidate-label {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--eh-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.eh-ballot-candidate-label:hover {
  border-color: rgba(21,87,255,0.4);
  background: rgba(21,87,255,0.06);
}
.eh-ballot-candidate input:checked + .eh-ballot-candidate-label {
  border-color: var(--eh-blue);
  background: rgba(21,87,255,0.1);
  box-shadow: 0 0 0 3px rgba(21,87,255,0.12);
}
.eh-ballot-cand-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 17px; color: #fff;
  flex-shrink: 0;
  transition: box-shadow .18s;
}
.eh-ballot-candidate input:checked + .eh-ballot-candidate-label .eh-ballot-cand-avatar {
  box-shadow: 0 0 0 3px rgba(21,87,255,0.4);
}
.eh-ballot-cand-info { flex: 1; }
.eh-ballot-cand-name {
  font-size: 15px; font-weight: 700; color: var(--eh-white); margin-bottom: 3px;
}
.eh-ballot-cand-bio  { font-size: 12px; color: var(--eh-muted); line-height: 1.5; }
.eh-ballot-cand-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--eh-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .18s;
  font-size: 11px; color: transparent;
}
.eh-ballot-candidate input:checked + .eh-ballot-candidate-label .eh-ballot-cand-check {
  background: var(--eh-blue); border-color: var(--eh-blue);
  color: #fff;
}

/* ── Submit section ── */
.eh-ballot-submit-wrap {
  margin-top: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.eh-ballot-submit-wrap p {
  font-size: 13px; color: var(--eh-muted); line-height: 1.65; margin-bottom: 20px;
}
.eh-ballot-submit-btn {
  width: 100%; padding: 15px;
  background: var(--eh-blue); color: #fff;
  font-size: 16px; font-weight: 800; font-family: var(--eh-font);
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(21,87,255,0.4);
  transition: background .2s, box-shadow .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.eh-ballot-submit-btn:hover {
  background: var(--eh-blue2);
  box-shadow: 0 8px 32px rgba(21,87,255,0.5);
}
.eh-ballot-submit-btn:active { transform: scale(.98); }

/* ── Token login page ── */
.eh-token-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--eh-navy);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.eh-token-page::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(21,87,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.eh-token-card {
  width: 100%; max-width: 420px;
  background: rgba(9,22,48,0.95);
  border: 1px solid var(--eh-border);
  border-radius: 18px;
  padding: 40px 36px;
  position: relative; z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.eh-token-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21,87,255,0.5), var(--eh-cyan), transparent);
}
.eh-token-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 32px;
}
.eh-token-logo-mark {
  width: 38px; height: 38px; background: var(--eh-blue); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 0 16px rgba(21,87,255,0.35);
}
.eh-token-logo-name {
  font-family: var(--eh-display); font-size: 14px; font-weight: 700; color: var(--eh-white);
  line-height: 1.2;
}
.eh-token-logo-name span {
  display: block; font-size: 10px; font-weight: 400;
  color: var(--eh-muted); letter-spacing: 1.2px; text-transform: uppercase;
}
.eh-token-h1 {
  font-family: var(--eh-display);
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; margin-bottom: 8px;
}
.eh-token-sub { font-size: 14px; color: var(--eh-muted); margin-bottom: 28px; line-height: 1.6; }

/* ── Receipt / confirmation ── */
.eh-receipt-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--eh-navy); padding: 24px;
  position: relative; overflow: hidden;
}
.eh-receipt-page::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.eh-receipt-card {
  width: 100%; max-width: 480px;
  background: rgba(9,22,48,0.97);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 18px;
  padding: 44px 36px;
  text-align: center;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.08), 0 32px 80px rgba(0,0,0,0.5);
}
.eh-receipt-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, #34d399, transparent);
}
.eh-receipt-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 2px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 24px;
  box-shadow: 0 0 32px rgba(16,185,129,0.2);
}
.eh-receipt-title {
  font-family: var(--eh-display);
  font-size: 26px; font-weight: 800; letter-spacing: -1px;
  color: #fff; margin-bottom: 8px;
}
.eh-receipt-sub { font-size: 15px; color: var(--eh-muted); line-height: 1.65; margin-bottom: 28px; }
.eh-receipt-detail {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--eh-border);
  border-radius: 10px; padding: 16px 20px;
  margin-bottom: 24px; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
}
.eh-receipt-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.eh-receipt-row:last-child { border-bottom: none; padding-bottom: 0; }
.eh-receipt-row span { color: var(--eh-muted); }
.eh-receipt-row strong { color: var(--eh-white); text-align: right; }

/* ── Invalid page ── */
.eh-invalid-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--eh-navy); padding: 24px;
}
.eh-invalid-card {
  width: 100%; max-width: 440px; text-align: center;
  background: rgba(9,22,48,0.97);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 18px; padding: 44px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.eh-invalid-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}
.eh-invalid-icon {
  font-size: 40px; margin-bottom: 20px; display: block;
}
.eh-invalid-title {
  font-family: var(--eh-display);
  font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.eh-invalid-msg { font-size: 14px; color: var(--eh-muted); line-height: 1.7; margin-bottom: 28px; }

/* Responsive */
@media (max-width: 520px) {
  .eh-ballot-nav { padding: 0 16px; }
  .eh-ballot-body { padding: 24px 16px 48px; }
  .eh-token-card  { padding: 32px 22px; }
  .eh-receipt-card { padding: 32px 20px; }
}


/* ============================================================
   RESULTS DASHBOARD — Live Tallies & Certified Results
   ============================================================ */

/* ── Results header ── */
.eh-results-header {
  background: linear-gradient(130deg, rgba(21,87,255,0.1) 0%, rgba(0,212,255,0.05) 100%);
  border: 1px solid rgba(21,87,255,0.18);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.eh-results-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21,87,255,0.5), var(--eh-cyan), transparent);
}
.eh-results-header h2 {
  font-family: var(--eh-display);
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: #fff;
  margin-bottom: 4px;
}
.eh-results-header p { font-size: 13px; color: var(--eh-muted); }
.eh-results-live-badge {
  display: flex; align-items: center; gap: 7px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: #34d399; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 7px 14px; border-radius: 20px; white-space: nowrap;
}
.eh-results-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  animation: eh-dot-pulse 2s infinite;
}

/* ── Turnout summary ── */
.eh-turnout-card {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.eh-turnout-stat { text-align: center; }
.eh-turnout-stat .num {
  font-family: var(--eh-display);
  font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -1px;
}
.eh-turnout-stat .num .accent { color: var(--eh-cyan); }
.eh-turnout-stat .lbl { font-size: 11px; color: var(--eh-muted); margin-top: 2px; letter-spacing: 0.3px; }
.eh-turnout-bar-wrap { flex: 1; min-width: 200px; }
.eh-turnout-bar-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--eh-muted); margin-bottom: 7px; font-weight: 600;
}
.eh-turnout-bar-track {
  height: 10px; background: rgba(255,255,255,0.06);
  border-radius: 10px; overflow: hidden;
}
.eh-turnout-bar-fill {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--eh-blue), var(--eh-cyan));
  transition: width 1.2s ease;
}

/* ── Position result card ── */
.eh-result-position {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}
.eh-result-position-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--eh-border);
  display: flex; align-items: center; gap: 12px;
}
.eh-result-position-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(21,87,255,0.12); border: 1.5px solid rgba(21,87,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--eh-blue);
  flex-shrink: 0;
}
.eh-result-position-title {
  font-family: var(--eh-display);
  font-size: 15px; font-weight: 700; color: #fff;
}
.eh-result-position-sub { font-size: 12px; color: var(--eh-muted); margin-top: 1px; }
.eh-result-votes-total {
  margin-left: auto;
  font-size: 12px; color: var(--eh-muted); font-weight: 600;
}

/* ── Candidate result rows ── */
.eh-result-candidates { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.eh-result-cand {
  display: flex; align-items: center; gap: 14px;
}
.eh-result-cand-rank {
  width: 22px; font-size: 14px; text-align: center; flex-shrink: 0;
}
.eh-result-cand-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
}
.eh-result-cand.winner .eh-result-cand-avatar {
  background: linear-gradient(135deg, var(--eh-gold), #ff9f0a);
  box-shadow: 0 0 16px rgba(245,196,0,0.35);
}
.eh-result-cand-info { flex: 1; min-width: 0; }
.eh-result-cand-name {
  font-size: 13px; font-weight: 700; color: var(--eh-white);
  display: flex; align-items: center; gap: 7px;
}
.eh-result-winner-crown {
  font-size: 14px; line-height: 1;
}
.eh-result-cand-bar-wrap { margin-top: 6px; }
.eh-result-cand-bar-track {
  height: 7px; background: rgba(255,255,255,0.06);
  border-radius: 7px; overflow: hidden;
}
.eh-result-cand-bar-fill {
  height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, var(--eh-blue), var(--eh-cyan));
  transition: width 1.2s ease;
}
.eh-result-cand.winner .eh-result-cand-bar-fill {
  background: linear-gradient(90deg, var(--eh-gold), #ff9f0a);
}
.eh-result-cand-votes {
  flex-shrink: 0; text-align: right; min-width: 80px;
}
.eh-result-cand-votes .count {
  font-family: var(--eh-display); font-size: 18px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px;
}
.eh-result-cand-votes .pct {
  font-size: 11px; color: var(--eh-muted); display: block;
}
.eh-result-cand.winner .eh-result-cand-votes .count { color: var(--eh-gold); }

/* No votes yet state */
.eh-result-novotes {
  padding: 24px; text-align: center;
  font-size: 13px; color: var(--eh-muted);
}

/* ── Public results page ── */
.eh-public-results {
  max-width: 780px; margin: 0 auto; padding: 48px 24px 80px;
}
.eh-public-results-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--eh-border);
}
.eh-public-results-header .certified-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  color: #34d399; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}
.eh-public-results-header h1 {
  font-family: var(--eh-display);
  font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  letter-spacing: -1px; color: #fff; margin-bottom: 10px;
}
.eh-public-results-header p { font-size: 14px; color: var(--eh-muted); line-height: 1.65; }

/* Print-ready certified report */
@media print {
  .eh-topbar, .eh-sidebar, .eh-sidebar-overlay,
  .eh-page-header .eh-topbar-btn,
  .eh-results-actions { display: none !important; }
  .eh-main { margin-left: 0 !important; }
  .eh-page-body { padding: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .eh-result-position,
  .eh-results-header,
  .eh-turnout-card { border-color: #ddd !important; background: #fff !important; }
  .eh-result-position-title,
  .eh-result-cand-name,
  .eh-results-header h2,
  .eh-result-cand-votes .count { color: #000 !important; }
  .eh-result-cand-votes .pct,
  .eh-result-votes-total,
  .eh-result-position-sub,
  .eh-results-header p { color: #555 !important; }
  .eh-result-cand-bar-track { background: #eee !important; }
  .eh-turnout-bar-track { background: #eee !important; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .eh-results-header { flex-direction: column; align-items: flex-start; }
  .eh-turnout-card { flex-direction: column; gap: 16px; text-align: center; }
  .eh-result-candidates { padding: 12px 16px; }
}


/* ============================================================
   MY PROFILE — Account Settings
   ============================================================ */

.eh-profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Profile card (left) ── */
.eh-profile-card {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 84px;
}
.eh-profile-card-top {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--eh-border);
  background: linear-gradient(160deg, rgba(21,87,255,0.08) 0%, transparent 100%);
  position: relative;
}
.eh-profile-card-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--eh-blue), var(--eh-cyan), transparent);
}
.eh-profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 30px; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 4px rgba(21,87,255,0.15), 0 8px 24px rgba(0,0,0,0.3);
}
.eh-profile-name {
  font-family: var(--eh-display);
  font-size: 18px; font-weight: 800; color: #fff;
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.eh-profile-email { font-size: 13px; color: var(--eh-muted); margin-bottom: 12px; }
.eh-profile-role {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
  background: rgba(21,87,255,0.12); border: 1px solid rgba(21,87,255,0.25);
  color: var(--eh-cyan);
}
.eh-profile-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.eh-profile-stat {
  padding: 16px 12px; text-align: center;
  border-right: 1px solid var(--eh-border);
  border-bottom: 1px solid var(--eh-border);
  transition: background .15s;
}
.eh-profile-stat:nth-child(2n)  { border-right: none; }
.eh-profile-stat:nth-last-child(-n+2) { border-bottom: none; }
.eh-profile-stat:hover { background: rgba(255,255,255,0.02); }
.eh-profile-stat .num {
  font-family: var(--eh-display);
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.eh-profile-stat .lbl {
  font-size: 10px; color: var(--eh-muted); margin-top: 2px;
  letter-spacing: 0.3px; text-transform: uppercase;
}

/* ── Danger zone ── */
.eh-danger-zone {
  margin: 0 16px 16px;
  padding: 14px;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px;
}
.eh-danger-zone p {
  font-size: 12px; color: var(--eh-muted); margin-bottom: 10px; line-height: 1.5;
}

/* ── Right column tabs ── */
.eh-profile-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--eh-border);
  margin-bottom: 20px;
  padding: 0 2px;
}
.eh-profile-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: var(--eh-muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .2s, border-color .2s;
  text-decoration: none; display: inline-block;
}
.eh-profile-tab:hover { color: var(--eh-white); }
.eh-profile-tab.active {
  color: var(--eh-white);
  border-bottom-color: var(--eh-blue);
}

/* Responsive */
@media (max-width: 860px) {
  .eh-profile-grid { grid-template-columns: 1fr; }
  .eh-profile-card { position: static; }
}


/* ============================================================
   OBSERVER ACCESS — Portal & Management
   ============================================================ */

/* ── Observer management (inside dashboard) ── */
.eh-observer-list { display: flex; flex-direction: column; gap: 0; }
.eh-observer-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--eh-border);
  transition: background .15s;
}
.eh-observer-row:last-child { border-bottom: none; }
.eh-observer-row:hover { background: rgba(255,255,255,0.02); }
.eh-observer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.eh-observer-info { flex: 1; min-width: 0; }
.eh-observer-name { font-size: 13px; font-weight: 700; color: var(--eh-white); }
.eh-observer-meta { font-size: 11px; color: var(--eh-muted); margin-top: 2px; }
.eh-observer-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; flex-shrink: 0;
}
.eh-observer-badge.invited  { background: rgba(245,196,0,.1);     color: var(--eh-gold); border: 1px solid rgba(245,196,0,.2); }
.eh-observer-badge.active   { background: rgba(16,185,129,.1);    color: #34d399;        border: 1px solid rgba(16,185,129,.25); }
.eh-observer-badge.revoked  { background: rgba(255,255,255,.04);  color: var(--eh-muted);border: 1px solid var(--eh-border); }

/* ── Observer portal (public, uses ballot layout) ── */
.eh-observer-portal {
  min-height: 100vh;
  background: var(--eh-navy);
  display: flex; flex-direction: column;
}
.eh-observer-nav {
  background: rgba(5,13,31,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--eh-border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.eh-observer-badge-nav {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: #a78bfa;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 5px 14px; border-radius: 20px;
}
.eh-observer-body {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  width: 100%;
}
.eh-observer-header {
  background: linear-gradient(130deg, rgba(124,58,237,0.1) 0%, rgba(21,87,255,0.06) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.eh-observer-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #a78bfa, transparent);
}
.eh-observer-header h1 {
  font-family: var(--eh-display);
  font-size: clamp(18px, 3vw, 26px); font-weight: 800;
  letter-spacing: -0.5px; color: #fff; margin-bottom: 6px;
}
.eh-observer-header p { font-size: 13px; color: var(--eh-muted); }
.eh-observer-id {
  font-size: 11px; color: #a78bfa;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 4px 12px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.eh-observer-notice {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px; color: var(--eh-muted); line-height: 1.6;
  margin-bottom: 24px;
  display: flex; gap: 10px; align-items: flex-start;
}
.eh-observer-notice strong { color: var(--eh-white); }

/* Live indicator */
.eh-obs-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: #34d399;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  padding: 5px 13px; border-radius: 20px;
}
.eh-obs-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  animation: eh-dot-pulse 2s infinite;
}

@media (max-width: 600px) {
  .eh-observer-nav { padding: 0 16px; }
  .eh-observer-body { padding: 20px 14px 48px; }
  .eh-observer-header { padding: 18px 18px; }
}


/* ============================================================
   NOMINATIONS — Badge & Form accents (minimal additions)
   ============================================================ */

/* Nomination form submit button reuses .eh-ballot-submit-btn */
/* Position select reuses .eh-input */

/* Pending badge in sidebar */
.eh-snav-badge {
  margin-left: auto;
  background: rgba(245,196,0,0.15);
  border: 1px solid rgba(245,196,0,0.3);
  color: var(--eh-gold);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}


/* ============================================================
   ORGANISATIONS — Workspaces & Team Management
   ============================================================ */

/* Org card grid */
.eh-org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}
.eh-org-card {
  background: var(--eh-glass);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.eh-org-card:hover {
  border-color: rgba(21,87,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.25);
}
.eh-org-card-top {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.eh-org-card-body {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--eh-border);
}
.eh-org-card-name {
  font-family: var(--eh-display);
  font-size: 15px; font-weight: 800; color: #fff;
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.eh-org-card-meta { font-size: 12px; color: var(--eh-muted); }
.eh-org-card-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  background: rgba(255,255,255,0.15); color: #fff;
}
.eh-org-logo-big {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 20px; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Org workspace header */
.eh-org-header {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(130deg, rgba(21,87,255,0.08) 0%, transparent 100%);
  border: 1px solid var(--eh-border);
  border-radius: 14px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.eh-org-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.eh-org-logo-sm {
  width: 56px; height: 56px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 22px; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.eh-org-header-info { flex: 1; }
.eh-org-header-name {
  font-family: var(--eh-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; margin-bottom: 4px;
}
.eh-org-header-meta { font-size: 13px; color: var(--eh-muted); }

/* Org plan badge */
.eh-org-plan {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.eh-org-plan.free       { background: rgba(136,153,187,0.1); color: var(--eh-muted); border: 1px solid var(--eh-border); }
.eh-org-plan.pro        { background: rgba(21,87,255,0.12); color: var(--eh-cyan); border: 1px solid rgba(21,87,255,0.25); }
.eh-org-plan.enterprise { background: rgba(245,196,0,0.1); color: var(--eh-gold); border: 1px solid rgba(245,196,0,0.25); }

/* Org tabs */
.eh-org-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--eh-border);
  margin-bottom: 24px;
}
.eh-org-tab {
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  color: var(--eh-muted); border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.eh-org-tab:hover { color: var(--eh-white); }
.eh-org-tab.active { color: var(--eh-white); border-bottom-color: var(--eh-blue); }

/* Team member rows */
.eh-member-list { display: flex; flex-direction: column; gap: 0; }
.eh-member-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px; border-bottom: 1px solid var(--eh-border);
  transition: background .15s;
}
.eh-member-row:last-child { border-bottom: none; }
.eh-member-row:hover { background: rgba(255,255,255,0.02); }
.eh-member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eh-blue), var(--eh-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-display); font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.eh-member-info { flex: 1; min-width: 0; }
.eh-member-name { font-size: 13px; font-weight: 700; color: var(--eh-white); }
.eh-member-email { font-size: 11px; color: var(--eh-muted); margin-top: 1px; }
.eh-role-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  flex-shrink: 0;
}
.eh-role-badge.owner  { background: rgba(245,196,0,.1);    color: var(--eh-gold); border: 1px solid rgba(245,196,0,.2); }
.eh-role-badge.admin  { background: rgba(21,87,255,.1);    color: var(--eh-cyan); border: 1px solid rgba(21,87,255,.2); }
.eh-role-badge.member { background: rgba(136,153,187,.08); color: var(--eh-muted);border: 1px solid var(--eh-border); }

/* Colour picker */
.eh-color-picker-wrap {
  display: flex; align-items: center; gap: 12px;
}
.eh-color-preview {
  width: 40px; height: 40px; border-radius: 9px;
  border: 2px solid var(--eh-border); flex-shrink: 0;
  transition: background .2s;
}
input[type="color"].eh-input {
  padding: 4px 6px; height: 44px; cursor: pointer;
  background: rgba(255,255,255,0.04);
}

/* Invite link box */
.eh-invite-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(0,0,0,0.2); border: 1px solid var(--eh-border);
  border-radius: 8px; padding: 11px 16px;
}
.eh-invite-url {
  flex: 1; font-size: 12px; color: var(--eh-cyan);
  font-family: monospace; word-break: break-all; min-width: 0;
}

/* Responsive */
@media (max-width: 900px) { .eh-org-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .eh-org-grid { grid-template-columns: 1fr; } }
