/* ============================================================
   SEVSS — Secure E-Voting Simulation System
   Design: Authoritative Civic Dark Theme
   Fonts: Playfair Display + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg:          #07090f;
  --bg-2:        #0d1117;
  --bg-3:        #131822;
  --bg-card:     #161c28;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(34,197,94,0.3);

  --gold:        #f5c842;
  --gold-dim:    #c9a228;
  --green:       #22c55e;
  --green-dim:   #16a34a;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --purple:      #8b5cf6;

  --text:        #e8eaf0;
  --text-2:      #9aa3b8;
  --text-3:      #5a6480;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(34,197,94,0.15);

  --transition:  all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Background Texture ────────────────────────────────── */
.bg-texture {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(34,197,94,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(245,200,66,0.04) 0%, transparent 50%),
    var(--bg);
}

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.navbar-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #000;
}
.navbar-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.navbar-title span { color: var(--green); }
.navbar-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link.active { background: var(--bg-3); color: var(--green); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 20px rgba(34,197,94,0.3);
}
.btn-primary:hover {
  background: #16a34a;
  box-shadow: 0 0 30px rgba(34,197,94,0.5);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover { background: #e6b800; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.05); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-ghost { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-sm { padding: 1.25rem; border-radius: var(--radius); }
.card-hover {
  transition: var(--transition);
}
.card-hover:hover {
  border-color: rgba(34,197,94,0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.925rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-control::placeholder { color: var(--text-3); }
.form-control.is-invalid { border-color: var(--red); }
.form-control.is-valid { border-color: var(--green); }
.input-group { position: relative; }
.input-icon {
  position: absolute; left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); font-size: 0.95rem;
  pointer-events: none;
}
.input-group .form-control { padding-left: 2.6rem; }
.form-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 0.4rem; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 0.4rem; }

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.alert-danger  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.3); color: var(--gold); }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green  { background: rgba(34,197,94,0.15);  color: var(--green); }
.badge-gold   { background: rgba(245,200,66,0.15); color: var(--gold); }
.badge-red    { background: rgba(239,68,68,0.15);  color: var(--red); }
.badge-blue   { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-purple { background: rgba(139,92,246,0.15); color: var(--purple); }

/* ─── Layout Utilities ───────────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 520px;  margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 780px;  margin: 0 auto; padding: 0 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-1 { padding-top:0.5rem; padding-bottom:0.5rem; }
.py-2 { padding-top:1rem; padding-bottom:1rem; }
.py-3 { padding-top:1.5rem; padding-bottom:1.5rem; }
.py-4 { padding-top:2rem; padding-bottom:2rem; }
.py-5 { padding-top:3rem; padding-bottom:3rem; }

/* ─── Section Headers ────────────────────────────────────── */
.section-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.section-sub {
  font-size: 1rem; color: var(--text-2);
  margin-top: 0.75rem; line-height: 1.7;
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
}
.page-header-sub { color: var(--text-2); margin-top: 0.4rem; font-size: 0.95rem; }

/* ─── Stat Cards ─────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 1rem;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; line-height: 1;
}
.stat-card-label { font-size: 0.82rem; color: var(--text-2); margin-top: 0.35rem; font-weight: 500; }

/* ─── Candidate Card ─────────────────────────────────────── */
.candidate-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.candidate-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(circle at 50% 0%, rgba(34,197,94,0.08) 0%, transparent 70%);
}
.candidate-card:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-3px); }
.candidate-card:hover::before { opacity: 1; }
.candidate-card.selected {
  border-color: var(--green);
  background: rgba(34,197,94,0.05);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-glow);
}
.candidate-card.selected::before { opacity: 1; }
.candidate-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  color: #fff; margin: 0 auto 1rem;
  position: relative;
}
.candidate-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.candidate-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  text-align: center; margin-bottom: 0.4rem;
}
.candidate-party {
  font-size: 0.78rem; color: var(--text-2);
  text-align: center; font-weight: 500;
}
.candidate-bio { font-size: 0.82rem; color: var(--text-3); margin-top: 0.75rem; text-align: center; line-height: 1.5; }
.candidate-select-indicator {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; transition: var(--transition);
}
.candidate-card.selected .candidate-select-indicator {
  background: var(--green); border-color: var(--green); color: #000;
}

/* ─── Progress Bar ───────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--bg-2);
  border-radius: 999px; height: 10px;
  overflow: hidden; flex: 1;
}
.progress-bar-fill {
  height: 100%; border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Voter ID Badge ─────────────────────────────────────── */
.voter-id-badge {
  background: var(--bg-2);
  border: 1px dashed rgba(245,200,66,0.4);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem; color: var(--gold);
  letter-spacing: 0.08em;
  display: inline-block;
}

/* ─── Step Indicator ─────────────────────────────────────── */
.steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex; align-items: center; gap: 0.6rem;
  flex: 1;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  background: var(--bg-3); border: 2px solid var(--border);
  color: var(--text-3); flex-shrink: 0;
  transition: var(--transition);
}
.step.active .step-num   { background: var(--green); border-color: var(--green); color: #000; }
.step.done   .step-num   { background: rgba(34,197,94,0.2); border-color: var(--green); color: var(--green); }
.step-label { font-size: 0.78rem; font-weight: 600; color: var(--text-3); }
.step.active .step-label { color: var(--green); }
.step.done   .step-label { color: var(--text-2); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 0.5rem; }
.step.done .step-line { background: var(--green); }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%; max-width: 460px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ─── Biometric Animation ────────────────────────────────── */
.biometric-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--border);
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.biometric-ring::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--green);
  animation: spin 1.2s linear infinite;
}
.biometric-ring.success { border-color: var(--green); }
.biometric-ring.success::before { display: none; }
.biometric-icon { font-size: 2.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(34,197,94,0.3); }
  50%      { box-shadow: 0 0 40px rgba(34,197,94,0.6); }
}

/* ─── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
tbody td { padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.875rem; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Auth Layout ────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}
.auth-logo {
  text-align: center; margin-bottom: 2rem;
}
.auth-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #000;
  margin: 0 auto 0.75rem;
}
.auth-logo-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
}
.auth-logo-sub { font-size: 0.8rem; color: var(--text-3); }
.auth-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; }
.auth-sub { font-size: 0.875rem; color: var(--text-2); margin-bottom: 1.75rem; }
.auth-divider {
  text-align: center; position: relative; margin: 1.25rem 0;
}
.auth-divider::before {
  content: ''; position: absolute; inset: 50% 0 auto;
  height: 1px; background: var(--border);
}
.auth-divider span {
  background: var(--bg-card); padding: 0 0.75rem;
  font-size: 0.78rem; color: var(--text-3); position: relative;
}
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-2); }
.auth-footer a { color: var(--green); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 999px;
  background: rgba(34,197,94,0.05);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 1.75rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--green); font-style: normal; }
.hero-title .gold { color: var(--gold); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-2);
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.hero-stat-val .unit { font-size: 1rem; color: var(--text-3); margin-left: 2px; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-2); margin-top: 0.25rem; }

/* ─── How it Works ───────────────────────────────────────── */
.how-step {
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.how-step-num {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: var(--green);
}
.how-step-title { font-weight: 700; margin-bottom: 0.3rem; }
.how-step-desc { font-size: 0.875rem; color: var(--text-2); }

/* ─── Feature Card ───────────────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem;
}
.feature-title { font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.82rem; color: var(--text-3);
}
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--green); }

/* ─── Category Pill ──────────────────────────────────────── */
.cat-pill {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  text-align: left; width: 100%;
}
.cat-pill:hover { border-color: var(--green); background: rgba(34,197,94,0.04); }
.cat-pill.active { border-color: var(--green); background: rgba(34,197,94,0.08); }
.cat-pill-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(34,197,94,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.cat-pill-name { font-weight: 700; font-size: 0.925rem; }
.cat-pill-status { font-size: 0.75rem; color: var(--text-3); margin-top: 0.1rem; }

/* ─── Vote Status Row ────────────────────────────────────── */
.vote-status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  transition: var(--transition);
}
.vote-status-row:hover { border-color: rgba(255,255,255,0.12); }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.5s ease both; }
.animate-fade-up-1 { animation: fadeUp 0.5s 0.1s ease both; }
.animate-fade-up-2 { animation: fadeUp 0.5s 0.2s ease both; }
.animate-fade-up-3 { animation: fadeUp 0.5s 0.3s ease both; }
.animate-fade-up-4 { animation: fadeUp 0.5s 0.4s ease both; }

/* ─── Divider ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ─── Skeleton ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-card) 50%, var(--bg-3) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -400% 0; } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
  .navbar-nav .nav-link span { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .auth-card { padding: 1.75rem; }
  .card { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 0.75rem 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

/* ─── Dashboard sidebar on wider screens ─────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky; top: 80px;
}
.sidebar-title {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); margin-bottom: 1rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
  margin-bottom: 0.2rem;
}
.sidebar-link:hover { background: var(--bg-3); color: var(--text); }
.sidebar-link.active { background: rgba(34,197,94,0.1); color: var(--green); }
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ─── Admin specific ─────────────────────────────────────── */
.admin-header {
  background: linear-gradient(135deg, rgba(245,200,66,0.08), rgba(34,197,94,0.05));
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: var(--text-2);
}

/* ─── Confirmation Card ──────────────────────────────────── */
.confirm-candidate {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
}
.confirm-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.confirm-name { font-weight: 700; font-size: 1rem; }
.confirm-party { font-size: 0.8rem; color: var(--text-2); }
