/* =====================================================================
   VoteHub Design System
   Deep navy / electric blue / violet premium SaaS aesthetic.
   No build step required - plain CSS, safe for shared hosting.
   ===================================================================== */

:root {
  --vh-navy-950: #070a1f;
  --vh-navy-900: #0b0f2a;
  --vh-navy-800: #121737;
  --vh-navy-700: #1a2148;
  --vh-indigo-600: #4f46e5;
  --vh-indigo-500: #6366f1;
  --vh-purple-600: #7c3aed;
  --vh-purple-500: #8b5cf6;
  --vh-blue-500: #3b82f6;
  --vh-blue-400: #60a5fa;
  --vh-turquoise-500: #06b6d4;
  --vh-turquoise-400: #22d3ee;
  --vh-green-500: #10b981;
  --vh-red-500: #ef4444;
  --vh-amber-500: #f59e0b;

  --vh-gradient-hero: radial-gradient(1200px 600px at 15% -10%, rgba(124, 58, 237, .35), transparent 60%),
                       radial-gradient(1000px 500px at 100% 0%, rgba(59, 130, 246, .30), transparent 55%),
                       linear-gradient(160deg, #070a1f 0%, #0b0f2a 45%, #161c47 100%);
  --vh-gradient-accent: linear-gradient(135deg, var(--vh-indigo-600), var(--vh-purple-600));
  --vh-gradient-blue: linear-gradient(135deg, var(--vh-blue-500), var(--vh-turquoise-500));

  --vh-text-900: #0f172a;
  --vh-text-700: #334155;
  --vh-text-500: #64748b;
  --vh-text-300: #cbd5e1;
  --vh-bg-100: #f6f7fb;
  --vh-bg-50: #ffffff;
  --vh-border: #e6e8f0;

  --vh-radius-sm: 10px;
  --vh-radius: 16px;
  --vh-radius-lg: 24px;
  --vh-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --vh-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --vh-shadow-lg: 0 20px 60px rgba(15, 23, 42, .16);
  --vh-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--vh-text-900);
  background: var(--vh-bg-100);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.vh-container { max-width: var(--vh-container); margin: 0 auto; padding: 0 20px; }
.vh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Focus visibility (Rule 72) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--vh-blue-400);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.vh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.vh-btn-primary { background: var(--vh-gradient-accent); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.35); }
.vh-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,.45); }
.vh-btn-outline { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.vh-btn-outline:hover { background: rgba(255,255,255,.14); }
.vh-btn-light { background: #fff; color: var(--vh-indigo-600); border-color: var(--vh-border); }
.vh-btn-light:hover { background: var(--vh-bg-100); }
.vh-btn-ghost { background: transparent; color: var(--vh-text-700); border-color: var(--vh-border); }
.vh-btn-ghost:hover { background: var(--vh-bg-100); }
.vh-btn-danger { background: #fee2e2; color: #b91c1c; }
.vh-btn-danger:hover { background: #fecaca; }
.vh-btn-success { background: var(--vh-green-500); color: #fff; }
.vh-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.vh-btn-block { width: 100%; }
.vh-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------- */
.vh-navbar { position: sticky; top: 0; z-index: 50; background: rgba(7,10,31,.78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.vh-navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.vh-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; }
.vh-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--vh-gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.vh-nav-links { display: flex; gap: 26px; align-items: center; }
.vh-nav-links a { color: rgba(255,255,255,.78); font-size: 14.5px; font-weight: 500; }
.vh-nav-links a:hover, .vh-nav-links a.active { color: #fff; }
.vh-nav-actions { display: flex; align-items: center; gap: 12px; }
.vh-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; }

@media (max-width: 960px) {
  .vh-nav-links { display: none; }
  .vh-nav-toggle { display: block; }
  .vh-navbar.is-open .vh-nav-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--vh-navy-900); padding: 16px 20px 24px; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.vh-hero { background: var(--vh-gradient-hero); color: #fff; padding: 90px 0 110px; position: relative; overflow: hidden; }
.vh-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.vh-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--vh-turquoise-400); }
.vh-hero h1 { font-size: 48px; line-height: 1.1; margin: 20px 0 18px; font-weight: 800; letter-spacing: -.02em; }
.vh-hero h1 .accent { background: linear-gradient(135deg, var(--vh-blue-400), var(--vh-turquoise-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vh-hero p.lead { font-size: 18px; color: rgba(255,255,255,.72); max-width: 540px; margin-bottom: 30px; }
.vh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.vh-hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.vh-hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.65); max-width: 220px; }
.vh-hero-trust-item .ico { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.vh-hero-visual { position: relative; height: 460px; }
.vh-glass-card { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); border-radius: 18px; padding: 16px 18px; box-shadow: var(--vh-shadow-lg); width: 240px; }
.vh-glass-card h4 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.vh-glass-card p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.65); }
.vh-glass-card .tag { display: inline-block; margin-bottom: 8px; font-size: 11px; font-weight: 700; color: var(--vh-turquoise-400); text-transform: uppercase; letter-spacing: .06em; }
.vh-glass-1 { top: 0; left: 10%; animation: vh-float 6s ease-in-out infinite; }
.vh-glass-2 { top: 90px; right: 0; animation: vh-float 7s ease-in-out infinite 1s; }
.vh-glass-3 { top: 230px; left: 0; animation: vh-float 6.5s ease-in-out infinite .5s; }
.vh-glass-4 { top: 300px; right: 6%; animation: vh-float 7.5s ease-in-out infinite 1.5s; }
.vh-glass-5 { top: 400px; left: 22%; animation: vh-float 6.2s ease-in-out infinite .8s; }
@keyframes vh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .vh-hero-grid { grid-template-columns: 1fr; }
  .vh-hero h1 { font-size: 34px; }
  .vh-hero-visual { display: none; }
}

/* ---------------------------------------------------------------------
   Sections / typography
   --------------------------------------------------------------------- */
.vh-section { padding: 84px 0; }
.vh-section-tight { padding: 56px 0; }
.vh-section-dark { background: var(--vh-navy-950); color: #fff; }
.vh-section-header { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.vh-kicker { color: var(--vh-indigo-600); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.vh-section-header h2 { font-size: 34px; margin: 10px 0 12px; letter-spacing: -.02em; }
.vh-section-header p { color: var(--vh-text-500); font-size: 16px; }
.vh-section-dark .vh-section-header p { color: rgba(255,255,255,.65); }

.vh-grid { display: grid; gap: 24px; }
.vh-grid-2 { grid-template-columns: repeat(2, 1fr); }
.vh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vh-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .vh-grid-2, .vh-grid-3, .vh-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vh-grid-2, .vh-grid-3, .vh-grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.vh-card { background: #fff; border: 1px solid var(--vh-border); border-radius: var(--vh-radius); box-shadow: var(--vh-shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.vh-card:hover { box-shadow: var(--vh-shadow); }
.vh-card-pad { padding: 24px; }

.vh-feature-card { padding: 26px 22px; border-radius: var(--vh-radius); background: #fff; border: 1px solid var(--vh-border); }
.vh-feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--vh-gradient-accent); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px; font-size: 20px; }
.vh-feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.vh-feature-card p { color: var(--vh-text-500); font-size: 14.5px; margin: 0; }

/* Election / competition cards */
.vh-election-card { border-radius: var(--vh-radius); overflow: hidden; background: #fff; border: 1px solid var(--vh-border); box-shadow: var(--vh-shadow-sm); display: flex; flex-direction: column; }
.vh-election-banner { position: relative; height: 150px; background: var(--vh-gradient-accent); background-size: cover; background-position: center; }
.vh-election-banner .vh-badge { position: absolute; top: 12px; left: 12px; }
.vh-election-banner .vh-badge-live { position: absolute; top: 12px; right: 12px; }
.vh-election-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vh-election-org { font-size: 12.5px; color: var(--vh-text-500); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.vh-election-title { font-size: 17px; font-weight: 700; margin: 0; }
.vh-election-desc { font-size: 13.5px; color: var(--vh-text-500); margin: 0; }
.vh-election-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--vh-text-500); flex-wrap: wrap; }
.vh-election-actions { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }

/* ---------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------- */
.vh-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.vh-badge-live { background: #fee2e2; color: #b91c1c; }
.vh-badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; animation: vh-pulse 1.4s infinite; }
.vh-badge-upcoming { background: #ede9fe; color: #6d28d9; }
.vh-badge-soon { background: #fef3c7; color: #b45309; }
.vh-badge-completed, .vh-badge-ended { background: #dcfce7; color: #166534; }
.vh-badge-draft { background: #f1f5f9; color: #475569; }
.vh-badge-paused, .vh-badge-cancelled { background: #fee2e2; color: #991b1b; }
.vh-badge-private { background: #e0e7ff; color: #3730a3; }
.vh-badge-public { background: #cffafe; color: #155e75; }
@keyframes vh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* On dark hero banners, badges float on translucent backing */
.vh-election-banner .vh-badge { box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---------------------------------------------------------------------
   Live card (homepage "Live Voting Now")
   --------------------------------------------------------------------- */
.vh-live-card { background: #fff; border: 1px solid var(--vh-border); border-radius: var(--vh-radius-lg); padding: 24px; box-shadow: var(--vh-shadow); }
.vh-live-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 12px; }
.vh-live-card h3 { font-size: 19px; margin: 6px 0 2px; }
.vh-live-card .org { font-size: 13px; color: var(--vh-text-500); }
.vh-countdown-chip { text-align: right; }
.vh-countdown-chip .label { font-size: 11.5px; color: var(--vh-text-500); text-transform: uppercase; letter-spacing: .03em; }
.vh-countdown-chip .value { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; color: var(--vh-indigo-600); }
.vh-total-votes { font-size: 13px; color: var(--vh-text-500); margin-bottom: 14px; }
.vh-total-votes strong { color: var(--vh-text-900); font-size: 15px; }

.vh-result-row { margin-bottom: 12px; }
.vh-result-row-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.vh-result-row-head .name { font-weight: 600; }
.vh-result-row-head .stat { color: var(--vh-text-500); }
.vh-progress { height: 9px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.vh-progress-bar { height: 100%; border-radius: 999px; background: var(--vh-gradient-blue); transition: width .5s ease; }
.vh-progress-bar.rank-1 { background: var(--vh-gradient-accent); }

.vh-live-card-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------------------------------------------------------------------
   Countdown display (standalone, larger)
   --------------------------------------------------------------------- */
.vh-countdown-blocks { display: flex; gap: 10px; }
.vh-countdown-block { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 62px; }
.vh-countdown-block .num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vh-countdown-block .unit { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.vh-countdown-blocks.on-light .vh-countdown-block { background: var(--vh-bg-100); border-color: var(--vh-border); color: var(--vh-text-900); }

/* ---------------------------------------------------------------------
   Stat / dashboard cards
   --------------------------------------------------------------------- */
.vh-stat-card { background: #fff; border: 1px solid var(--vh-border); border-radius: var(--vh-radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.vh-stat-card .icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--vh-gradient-accent); color: #fff; }
.vh-stat-card .value { font-size: 26px; font-weight: 800; }
.vh-stat-card .label { font-size: 13px; color: var(--vh-text-500); }

/* ---------------------------------------------------------------------
   Dashboard shell
   --------------------------------------------------------------------- */
.vh-dash-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.vh-sidebar { background: var(--vh-navy-950); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.vh-sidebar .vh-brand { padding: 6px 8px 22px; }
.vh-sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.vh-sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.vh-sidebar-link.active { background: var(--vh-gradient-accent); color: #fff; }
.vh-sidebar-section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.35); padding: 18px 14px 6px; }
.vh-dash-main { padding: 28px 32px 60px; max-width: 1320px; }
.vh-dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.vh-dash-topbar h1 { font-size: 24px; margin: 0; }
.vh-mobile-topbar { display: none; }

@media (max-width: 1024px) {
  .vh-dash-shell { grid-template-columns: 1fr; }
  .vh-sidebar { position: fixed; left: -280px; top: 0; width: 260px; z-index: 60; transition: left .2s ease; }
  .vh-sidebar.is-open { left: 0; }
  .vh-dash-main { padding: 20px 16px 50px; }
  .vh-mobile-topbar { display: flex; align-items: center; justify-content: space-between; background: var(--vh-navy-950); color: #fff; padding: 14px 16px; position: sticky; top: 0; z-index: 40; }
}

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */
.vh-table-wrap { overflow-x: auto; border: 1px solid var(--vh-border); border-radius: var(--vh-radius); background: #fff; }
table.vh-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.vh-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--vh-text-500); padding: 13px 16px; border-bottom: 1px solid var(--vh-border); background: var(--vh-bg-100); }
table.vh-table td { padding: 13px 16px; border-bottom: 1px solid var(--vh-border); vertical-align: middle; }
table.vh-table tr:last-child td { border-bottom: none; }
table.vh-table tr:hover td { background: #fafbff; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.vh-field { margin-bottom: 18px; }
.vh-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--vh-text-700); }
.vh-hint { font-size: 12.5px; color: var(--vh-text-500); margin-top: 5px; }
.vh-input, .vh-select, .vh-textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--vh-border);
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--vh-text-900);
}
.vh-input:focus, .vh-select:focus, .vh-textarea:focus { border-color: var(--vh-indigo-500); box-shadow: 0 0 0 3px rgba(79,70,229,.12); outline: none; }
.vh-textarea { resize: vertical; min-height: 100px; }
.vh-error { color: var(--vh-red-500); font-size: 12.5px; margin-top: 6px; }
.vh-field.has-error .vh-input, .vh-field.has-error .vh-select, .vh-field.has-error .vh-textarea { border-color: var(--vh-red-500); }
.vh-checkbox-row, .vh-radio-row { display: flex; align-items: center; gap: 10px; }
.vh-switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--vh-border); }
.vh-switch-row:last-child { border-bottom: none; }
.vh-switch-row .title { font-weight: 600; font-size: 14px; }
.vh-switch-row .desc { font-size: 12.5px; color: var(--vh-text-500); }
.vh-switch { position: relative; width: 42px; height: 24px; }
.vh-switch input { opacity: 0; width: 0; height: 0; }
.vh-switch .track { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: .15s; cursor: pointer; }
.vh-switch .track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.vh-switch input:checked + .track { background: var(--vh-indigo-600); }
.vh-switch input:checked + .track::before { transform: translateX(18px); }

/* Candidate selection card (Rule 73) */
.vh-choice-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 2px solid var(--vh-border); border-radius: var(--vh-radius); cursor: pointer; transition: all .12s ease; background: #fff; }
.vh-choice-card:hover { border-color: var(--vh-indigo-500); }
.vh-choice-card.is-selected { border-color: var(--vh-indigo-600); background: #f5f4ff; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.vh-choice-card .avatar { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; background: var(--vh-bg-100); flex-shrink: 0; }
.vh-choice-card .info { flex: 1; min-width: 0; }
.vh-choice-card .info h4 { margin: 0 0 2px; font-size: 15.5px; }
.vh-choice-card .info .subtitle { font-size: 12.5px; color: var(--vh-text-500); }
.vh-choice-card .info .bio { font-size: 12.5px; color: var(--vh-text-500); margin-top: 4px; }
.vh-choice-card input[type=radio], .vh-choice-card input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--vh-indigo-600); flex-shrink: 0; }
.vh-choice-card.is-selected::after { content: '✓'; }

/* ---------------------------------------------------------------------
   Alerts / toasts
   --------------------------------------------------------------------- */
.vh-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.vh-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.vh-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.vh-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.vh-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

#vh-toasts { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.vh-toast { background: var(--vh-navy-950); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: var(--vh-shadow-lg); font-size: 14px; min-width: 260px; animation: vh-toast-in .2s ease; }
.vh-toast.success { border-left: 4px solid var(--vh-green-500); }
.vh-toast.error { border-left: 4px solid var(--vh-red-500); }
@keyframes vh-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */
.vh-modal-backdrop { position: fixed; inset: 0; background: rgba(7,10,31,.6); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.vh-modal-backdrop.is-open { display: flex; }
.vh-modal { background: #fff; border-radius: var(--vh-radius-lg); max-width: 520px; width: 100%; padding: 26px; box-shadow: var(--vh-shadow-lg); max-height: 90vh; overflow-y: auto; }
.vh-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.vh-modal-head h3 { margin: 0; font-size: 18px; }
.vh-modal-close { background: none; border: none; font-size: 20px; color: var(--vh-text-500); }

/* ---------------------------------------------------------------------
   Wizard (Create Election)
   --------------------------------------------------------------------- */
.vh-wizard-steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.vh-wizard-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--vh-text-500); padding: 8px 14px; border-radius: 999px; background: var(--vh-bg-100); }
.vh-wizard-step .num { width: 22px; height: 22px; border-radius: 50%; background: #e2e4ee; color: var(--vh-text-500); display: flex; align-items: center; justify-content: center; font-size: 11.5px; }
.vh-wizard-step.active { background: #eef0ff; color: var(--vh-indigo-600); }
.vh-wizard-step.active .num { background: var(--vh-gradient-accent); color: #fff; }
.vh-wizard-step.done .num { background: var(--vh-green-500); color: #fff; }
.vh-wizard-panel { display: none; }
.vh-wizard-panel.active { display: block; }
.vh-option-tile { border: 2px solid var(--vh-border); border-radius: var(--vh-radius); padding: 18px; cursor: pointer; }
.vh-option-tile.is-selected { border-color: var(--vh-indigo-600); background: #f5f4ff; }
.vh-option-tile h4 { margin: 8px 0 6px; font-size: 15.5px; }
.vh-option-tile p { margin: 0; font-size: 13px; color: var(--vh-text-500); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.vh-footer { background: var(--vh-navy-950); color: rgba(255,255,255,.65); padding: 60px 0 28px; }
.vh-footer h5 { color: #fff; font-size: 13.5px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.vh-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.vh-footer a { color: rgba(255,255,255,.6); font-size: 13.5px; }
.vh-footer a:hover { color: #fff; }
.vh-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12.5px; }
.vh-social { display: flex; gap: 10px; }
.vh-social a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------------
   Empty state
   --------------------------------------------------------------------- */
.vh-empty { text-align: center; padding: 60px 20px; }
.vh-empty .icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; background: var(--vh-gradient-accent); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; }
.vh-empty h3 { margin: 0 0 8px; font-size: 19px; }
.vh-empty p { color: var(--vh-text-500); margin: 0 0 20px; }

/* ---------------------------------------------------------------------
   Misc utilities
   --------------------------------------------------------------------- */
.vh-flex { display: flex; }
.vh-flex-between { display: flex; align-items: center; justify-content: space-between; }
.vh-gap-8 { gap: 8px; } .vh-gap-12 { gap: 12px; } .vh-gap-16 { gap: 16px; }
.vh-mt-8 { margin-top: 8px; } .vh-mt-16 { margin-top: 16px; } .vh-mt-24 { margin-top: 24px; } .vh-mt-32 { margin-top: 32px; }
.vh-mb-8 { margin-bottom: 8px; } .vh-mb-16 { margin-bottom: 16px; } .vh-mb-24 { margin-bottom: 24px; }
.vh-text-center { text-align: center; }
.vh-text-muted { color: var(--vh-text-500); }
.vh-w-full { width: 100%; }
.vh-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--vh-bg-100); font-size: 12px; font-weight: 600; color: var(--vh-text-700); }
.vh-code-chip { font-family: 'SFMono-Regular', Consolas, monospace; background: var(--vh-navy-950); color: var(--vh-turquoise-400); padding: 10px 16px; border-radius: 10px; font-size: 16px; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 10px; }
.vh-avatar-lg { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; }
.vh-divider { height: 1px; background: var(--vh-border); margin: 24px 0; border: none; }
.vh-skeleton { background: linear-gradient(90deg, #eef0f6 25%, #f6f7fb 37%, #eef0f6 63%); background-size: 400% 100%; animation: vh-skeleton 1.4s ease infinite; border-radius: 8px; }
@keyframes vh-skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.vh-auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--vh-gradient-hero); padding: 30px; }
.vh-auth-card { background: #fff; border-radius: var(--vh-radius-lg); padding: 40px; max-width: 440px; width: 100%; box-shadow: var(--vh-shadow-lg); }
