/* ==========================================================================
   DELHI ORTHOPAEDIC ASSOCIATION (DOA) - ELECTIONS 2026-27
   Official Portal Stylesheet (Matching DOA Design System & Aesthetics)
   ========================================================================== */

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

:root {
  /* DOA Emblem Official Color System */
  --primary-blue: #1E3A8A;       /* Deep Royal Blue */
  --blue-dark: #0A192F;          /* Midnight Navy */
  --blue-brand: #2563EB;         /* Vibrant Sapphire Blue */
  --blue-light: #3B82F6;         /* Bright Sky Blue */
  --blue-soft: #EFF6FF;          /* Soft Ice Blue */
  --blue-surface: #F8FAFC;       /* Crisp Pale Blue Surface */

  --primary-red: #DC2626;        /* Official DOA Cardinal Red */
  --red-dark: #991B1B;           /* Deep Ruby Crimson */
  --red-brand: #EF4444;          /* Vibrant Scarlet Red */
  --red-soft: #FEF2F2;           /* Soft Rose/Red Surface */
  --red-border: #FCA5A5;

  --accent-gold: #F59E0B;
  --accent-gold-soft: #FEF3C7;
  --accent-green: #10B981;
  --accent-green-soft: #D1FAE5;

  --neutral-white: #FFFFFF;
  --neutral-offwhite: #F8FAFC;
  --neutral-surface: #F1F5F9;
  --neutral-border: #E2E8F0;
  --neutral-text: #1E293B;
  --neutral-muted: #64748B;
  --neutral-subtle: #94A3B8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #F8FAFC;
  color: var(--neutral-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   TOP BAR & BRAND HEADER
   ========================================================================== */
.top-security-bar {
  background: #061121;
  color: #CBD5E1;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-security-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #38BDF8;
  font-weight: 600;
}

.election-brand-header {
  background: var(--neutral-white);
  border-bottom: 2px solid #E2E8F0;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.brand-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
}

.brand-titles h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}

.brand-titles p {
  font-size: 0.825rem;
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue-brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
  transform: translateY(-1px);
}

.btn-red {
  background: var(--primary-red);
  color: #fff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.btn-red:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.4);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D97706, #B45309);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--neutral-border);
  color: var(--neutral-text);
}

.btn-outline:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.btn-outline-red {
  background: transparent;
  border-color: var(--red-border);
  color: var(--primary-red);
}

.btn-outline-red:hover {
  background: var(--red-soft);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.btn:disabled, .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: var(--accent-gold-soft);
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-blue {
  background: var(--blue-soft);
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-red {
  background: var(--red-soft);
  color: #B91C1C;
  border: 1px solid var(--red-border);
}

.badge-green {
  background: var(--accent-green-soft);
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.election-hero {
  background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 65%, #0F172A 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.election-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
}

.hero-content h2 span {
  color: #FBBF24;
}

.hero-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.officer-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.25rem;
  max-width: 500px;
}

.officer-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.officer-text h4 {
  font-size: 0.925rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.officer-text p {
  font-size: 0.775rem;
  color: #94A3B8;
  margin: 0;
}

/* ==========================================================================
   VOTER LOGIN CARD (INTERACTIVE OTP FLOW)
   ========================================================================== */
.voting-auth-card {
  background: var(--neutral-white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  color: var(--neutral-text);
  border: 1px solid #E2E8F0;
  position: relative;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-header-icon {
  width: 54px;
  height: 54px;
  background: var(--blue-soft);
  color: var(--blue-brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.auth-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

.auth-header p {
  font-size: 0.85rem;
  color: var(--neutral-muted);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--neutral-text);
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.otp-digit-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.otp-input {
  width: 45px;
  height: 54px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-dark);
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-md);
  background: #F8FAFC;
}

.otp-input:focus {
  outline: none;
  border-color: var(--blue-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.auth-notice-box {
  background: var(--blue-soft);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #1E40AF;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ==========================================================================
   SCHEDULE & STATUTORY TIMELINE
   ========================================================================== */
.election-schedule-section {
  padding: 3.5rem 0;
  background: var(--neutral-white);
  border-bottom: 1px solid var(--neutral-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-header h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.schedule-card {
  background: #F8FAFC;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.schedule-card.active-stage {
  background: #EFF6FF;
  border-color: #3B82F6;
  box-shadow: var(--shadow-md);
}

.schedule-card.active-stage::top {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-brand);
}

.schedule-date {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-red);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.schedule-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

.schedule-status {
  font-size: 0.75rem;
  color: var(--neutral-muted);
}

/* ==========================================================================
   VOTING BALLOT & CANDIDATES PAGE
   ========================================================================== */
.ballot-voter-bar {
  background: linear-gradient(90deg, #0A192F 0%, #1E3A8A 100%);
  color: #fff;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.ballot-voter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.voter-identity-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.voter-avatar-badge {
  width: 48px;
  height: 48px;
  background: var(--primary-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.voter-details h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.voter-details p {
  font-size: 0.8rem;
  color: #94A3B8;
  margin: 0;
}

.voter-details p span {
  color: #FBBF24;
  font-weight: 700;
}

.ballot-tracker-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Positions & Candidate Cards */
.position-block {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.position-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-border);
}

.position-titles h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.position-titles p {
  font-size: 0.875rem;
  color: var(--neutral-muted);
}

.position-quota-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.quota-pending {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.quota-completed {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.candidate-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.candidate-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.candidate-card.voted-choice {
  border-color: #10B981;
  background: #F0FDF4;
  box-shadow: 0 0 0 2px #10B981;
}

.candidate-card.locked-out {
  opacity: 0.65;
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.candidate-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.candidate-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: #E2E8F0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.candidate-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 0.15rem;
}

.candidate-lm {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: #EFF6FF;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.candidate-hospital {
  font-size: 0.8rem;
  color: var(--neutral-muted);
  line-height: 1.35;
}

.candidate-manifesto-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  color: var(--neutral-text);
  line-height: 1.45;
  flex-grow: 1;
}

.candidate-manifesto-box strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--neutral-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.candidate-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

/* ==========================================================================
   ADMIN PORTAL (ELECTION OFFICER DASHBOARD)
   ========================================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-box {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: #EFF6FF; color: #2563EB; }
.stat-icon.red { background: #FEF2F2; color: #DC2626; }
.stat-icon.green { background: #ECFDF5; color: #059669; }
.stat-icon.gold { background: #FFFBEB; color: #D97706; }

.stat-info h5 {
  font-size: 0.8rem;
  color: var(--neutral-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-info h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
}

/* Tally Results Table */
.tally-table-card {
  background: var(--neutral-white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.tally-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tally-table th {
  background: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-muted);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--neutral-border);
}

.tally-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--neutral-border);
  vertical-align: middle;
}

.vote-progress-wrap {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.35rem;
}

.vote-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  border-radius: var(--radius-full);
}

.vote-progress-bar.leader {
  background: linear-gradient(90deg, #059669, #10B981);
}

.winner-trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   MODALS & TOAST NOTIFICATIONS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: all 0.25s ease;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--blue-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--neutral-muted);
  cursor: pointer;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0A192F;
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  min-width: 320px;
  max-width: 440px;
  border-left: 4px solid var(--blue-brand);
  animation: slideUp 0.3s ease;
}

.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }
.toast.warning { border-left-color: #F59E0B; }

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

/* Print Slip Styles */
@media print {
  .election-brand-header, .top-security-bar, .btn, .main-footer {
    display: none !important;
  }
  body { background: #fff !important; }
  .voting-auth-card, .tally-table-card { box-shadow: none !important; border: 1px solid #000 !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .brand-wrapper { justify-content: center; text-align: center; }
  .brand-identity { flex-direction: column; }
  .ballot-voter-content { flex-direction: column; text-align: center; }
  .voter-identity-wrap { flex-direction: column; }
}

/* 3-Method Auth Switcher Tabs */
.auth-method-tabs {
  display: flex;
  background: var(--neutral-surface);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--neutral-border);
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--neutral-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}
.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}
.auth-tab-btn:hover:not(.active) {
  color: var(--primary-red);
}

/* Candidate Selected State (Before Final Submission) */
.candidate-card.selected {
  border: 2px solid var(--primary-blue);
  background: #F0F9FF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), var(--shadow-md);
  transform: translateY(-2px);
}
.candidate-card.selected .candidate-action-bar {
  background: #E0F2FE;
}

/* Sticky Bottom Ballot Review Bar */
.ballot-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0A192F;
  color: #FFFFFF;
  border-top: 2px solid var(--accent-gold);
  padding: 1rem 0;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
  z-index: 999;
}
.ballot-sticky-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Statutory Undertaking & Agreement Checkbox */
.statutory-undertaking-box {
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
}
.statutory-undertaking-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-red);
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}
.statutory-undertaking-box label {
  font-size: 0.825rem;
  color: #7F1D1D;
  line-height: 1.45;
  cursor: pointer;
}

/* Post-Submission Screen Card */
.thank-you-card {
  max-width: 760px;
  margin: 3rem auto;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.thank-you-shield-icon {
  width: 88px;
  height: 88px;
  background: #ECFDF5;
  color: #059669;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.1);
}

