/* ============================================================
   VOTESECURE - SECURE ONLINE VOTING SYSTEM
   Aesthetic: Civic Authority — deep navy, gold accents,
   geometric precision, editorial typography
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --navy-light: #1d3461;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale:  #f5e9c8;
  --white:      #f8f5ef;
  --off-white:  #ede8de;
  --gray:       #8a9bb0;
  --gray-light: #b8c5d6;
  --red:        #c0392b;
  --green:      #1a7a4a;
  --green-light:#22a060;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);

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

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(29,52,97,0.4) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--gray-light); font-size: 0.95rem; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Layout Containers ─────────────────────────────────────── */
.page-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.container-sm {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ── Header / Navbar ───────────────────────────────────────── */
.navbar {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0.9rem 0;
  position: sticky; top: 0; z-index: 100;
}

.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}

.nav-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-size: 1rem;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500;
  color: var(--gray-light);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

.nav-user {
  display: flex; align-items: center; gap: 0.75rem;
}

.nav-badge {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem; font-weight: 500;
  font-family: var(--font-mono);
}

/* ── Hero / Page Header ────────────────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: rgba(17,34,64,0.8);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover { border-color: rgba(201,168,76,0.28); }

.card-sm { padding: 1.25rem 1.5rem; }
.card-header {
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding-bottom: 1rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h2, .card-header h3 { margin: 0; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-light);
}

input, select, textarea {
  background: rgba(10,22,40,0.6);
  border: 1px solid rgba(138,155,176,0.25);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

input::placeholder, textarea::placeholder { color: var(--gray); }

select option { background: var(--navy-mid); }

textarea { resize: vertical; min-height: 90px; }

.input-with-icon {
  position: relative;
}
.input-with-icon input { padding-left: 2.6rem; }
.input-with-icon .icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 1rem; pointer-events: none;
}

.form-hint {
  font-size: 0.78rem; color: var(--gray);
  margin-top: 0.2rem;
}

.form-error {
  font-size: 0.82rem; color: #e05858;
  display: none;
}
.form-error.show { display: block; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
  color: var(--navy);
}

.btn-secondary {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  background: rgba(192,57,43,0.12);
  color: #e05858;
  border: 1px solid rgba(192,57,43,0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(192,57,43,0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid rgba(138,155,176,0.2);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 0.55rem 0.7rem; }

/* ── Alerts / Notifications ────────────────────────────────── */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex; align-items: flex-start; gap: 0.65rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(26,122,74,0.15);
  border: 1px solid rgba(26,122,74,0.35);
  color: #5dd49a;
}

.alert-danger {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.35);
  color: #e07070;
}

.alert-info {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light);
}

.alert-warning {
  background: rgba(200,130,20,0.15);
  border: 1px solid rgba(200,130,20,0.35);
  color: #f0c060;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr {
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--gray-light);
  vertical-align: middle;
}

tbody tr {
  transition: background var(--transition);
}
tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ── Badges / Chips ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem; font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge-green   { background: rgba(26,122,74,0.15);  color: #5dd49a;    border: 1px solid rgba(26,122,74,0.3); }
.badge-red     { background: rgba(192,57,43,0.15);  color: #e07070;    border: 1px solid rgba(192,57,43,0.3); }
.badge-gray    { background: rgba(138,155,176,0.1); color: var(--gray); border: 1px solid rgba(138,155,176,0.2); }
.badge-blue    { background: rgba(52,101,164,0.2);  color: #7ab3f5;    border: 1px solid rgba(52,101,164,0.35); }

/* ── Candidate Cards ───────────────────────────────────────── */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.candidate-card {
  background: rgba(17,34,64,0.75);
  border: 2px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.candidate-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.candidate-card:hover,
.candidate-card.selected {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.15);
}

.candidate-card:hover::before,
.candidate-card.selected::before { opacity: 1; }

.candidate-card.selected { background: rgba(201,168,76,0.07); }

.candidate-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--gold);
  overflow: hidden;
}

.candidate-avatar img { width: 100%; height: 100%; object-fit: cover; }

.candidate-info { flex: 1; }
.candidate-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.candidate-party { font-size: 0.82rem; color: var(--gold); font-weight: 500; margin-bottom: 0.5rem; }
.candidate-manifesto { font-size: 0.83rem; color: var(--gray); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.vote-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: none; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
  position: absolute; top: 1rem; right: 1rem;
}
.candidate-card.selected .vote-check { display: flex; }

/* ── Position Section ──────────────────────────────────────── */
.position-section {
  margin-bottom: 3rem;
}

.position-title {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--white);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.position-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.2em;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* ── Election Timer ────────────────────────────────────────── */
.timer-bar {
  background: rgba(17,34,64,0.9);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0.65rem 0;
  text-align: center;
}

.timer-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap;
}

.timer-label {
  font-size: 0.8rem; color: var(--gray);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.timer-segments {
  display: flex; gap: 0.35rem; align-items: center;
}

.timer-seg {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 1.05rem; font-weight: 500;
  color: var(--gold);
  min-width: 2.8rem; text-align: center;
}

.timer-colon { color: var(--gold); font-family: var(--font-mono); font-size: 1rem; }

.timer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); animation: pulse 1.5s infinite; }
.timer-dot.inactive { background: var(--red); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Stats / KPI Cards ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(17,34,64,0.7);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}

.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.stat-icon.gold   { background: rgba(201,168,76,0.12); color: var(--gold); }
.stat-icon.green  { background: rgba(26,122,74,0.15);  color: var(--green-light); }
.stat-icon.blue   { background: rgba(52,101,164,0.2);  color: #7ab3f5; }
.stat-icon.red    { background: rgba(192,57,43,0.15);  color: #e07070; }

.stat-info { flex: 1; }
.stat-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gray); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Progress / Vote Bars ──────────────────────────────────── */
.vote-bar-wrap { margin: 0.4rem 0; }
.vote-bar-top  { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.3rem; }
.vote-bar-name { color: var(--white); font-weight: 500; }
.vote-bar-count{ color: var(--gold); font-family: var(--font-mono); }

.vote-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px; overflow: hidden;
}
.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.winner-card {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.winner-card::before {
  content: '🏆';
  font-size: 3rem; display: block;
  margin-bottom: 0.5rem;
}
.winner-name  { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.winner-meta  { font-size: 0.85rem; color: var(--gray-light); margin-top: 0.3rem; }
.winner-votes { font-family: var(--font-mono); color: var(--gold-light); font-size: 1.1rem; font-weight: 600; margin-top: 0.5rem; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 2rem; flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--gray); background: transparent;
  border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  margin-bottom: -1px;
  font-family: var(--font-body);
}

.tab-btn:hover { color: var(--gold-light); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 3rem 2rem;
}

.auth-left {
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border-right: 1px solid rgba(201,168,76,0.15);
  position: relative; overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}

.auth-left-content { position: relative; z-index: 1; text-align: center; max-width: 360px; }
.auth-left-icon { font-size: 4rem; margin-bottom: 1.5rem; display: block; }

.auth-right { background: var(--navy); }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-wrap h2 { margin-bottom: 0.5rem; }
.auth-form-wrap .sub { color: var(--gray); font-size: 0.9rem; margin-bottom: 2rem; }

.voter-id-display {
  background: rgba(201,168,76,0.06);
  border: 1px dashed rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.3rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin: 1rem 0;
}

/* ── Misc utilities ────────────────────────────────────────── */
.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; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-gray   { color: var(--gray); }
.text-sm     { font-size: 0.85rem; }
.text-mono   { font-family: var(--font-mono); }
.hidden      { display: none !important; }

.divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 500; display: flex; flex-direction: column; gap: 0.5rem;
}

.toast {
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.6rem;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

.toast.success { border-color: rgba(26,122,74,0.4); }
.toast.error   { border-color: rgba(192,57,43,0.4); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Main Landing ──────────────────────────────────────────── */
.home-hero {
  padding: 5rem 0;
  text-align: center;
}

.home-hero .tagline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home-hero .tagline span { color: var(--gold); }

.hero-ctas {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 4rem 0;
}

.feature-card {
  background: rgba(17,34,64,0.7);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-3px);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--white); margin-bottom: 0.5rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem; color: var(--gray);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .candidates-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .container-sm { padding: 0 1rem; }
  .card { padding: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
