body {
  min-height: 100vh;
}

.card {
  border-radius: 16px;
  border: none;
}

.btn {
  border-radius: 10px;
  font-weight: 500;
}

.table {
  margin-bottom: 0;
}

h1, h2 {
  font-weight: 700;
}

.page-title {
  color: #222;
}

.candidate-card {
  transition: 0.2s ease-in-out;
  border: 2px solid transparent;
}

.btn-check:checked + .candidate-card {
  border: 3px solid #0d6efd;
  background-color: #eef5ff;
  transform: scale(1.02);
}

.candidate-photo-circle {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 20px auto 10px auto;
  display: block;
  border: 4px solid #f1f1f1;
}

.no-photo-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 20px auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page {
  min-height: 100vh;
  background: #111827;
}

.home-hero {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(13, 110, 253, 0.92),
      rgba(17, 24, 39, 0.96)
    ),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 35%);
}

.home-description {
  max-width: 680px;
  font-size: 1.25rem;
  opacity: 0.95;
}

.home-election-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  border: none;
}

.home-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #198754);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
}

.home-stat-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.home-stat-card h4 {
  margin-bottom: 6px;
  font-weight: 700;
}

.home-stat-card p {
  margin-bottom: 0;
  opacity: 0.9;
}

.navbar-brand {
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .home-hero .display-3 {
    font-size: 2.5rem;
  }

  .home-election-card {
    padding: 24px;
  }
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(13, 110, 253, 0.94),
      rgba(17, 24, 39, 0.98)
    );
}

.auth-card {
  border-radius: 24px;
  border: none;
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, #0d6efd, #198754);
  color: white;
  padding: 28px;
  text-align: center;
}

.auth-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  margin: 0 auto 12px auto;
}

.premium-page {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(248, 249, 250, 0.95),
      rgba(230, 240, 255, 0.95)
    );
}

.premium-header {
  background: linear-gradient(135deg, #0d6efd, #111827);
  color: white;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.18);
}

.premium-card {
  border-radius: 22px;
  border: none;
  overflow: hidden;
}

.dashboard-action-card {
  border-radius: 18px;
  padding: 22px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.2s ease-in-out;
  text-decoration: none;
  font-weight: 700;
}

.dashboard-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
}

.summary-card {
  border-radius: 20px;
  border: none;
}

.summary-card h2 {
  font-size: 2.4rem;
}

.vote-position-card {
  border-radius: 22px;
  overflow: hidden;
}

.vote-position-header {
  background: linear-gradient(135deg, #111827, #0d6efd);
  color: white;
  padding: 18px 22px;
}

.skip-option {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
}

.candidate-card {
  border-radius: 22px;
  transition: 0.2s ease-in-out;
  border: 2px solid transparent;
}

.btn-check:checked + .candidate-card {
  border: 3px solid #0d6efd;
  background-color: #eef5ff;
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.25);
}

/* Clean voter-focused homepage */

.home-page {
  min-height: 100vh;
  background: #0f172a;
}

.home-hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 35%);
}

.home-page .navbar {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 5;
}

.home-page .navbar-brand {
  letter-spacing: 0.3px;
}

.home-description {
  max-width: 680px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.home-info-panel {
  max-width: 720px;
}

.home-stat-card {
  height: 100%;
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.home-stat-card h4 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.home-stat-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.home-election-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-flyer {
  max-height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.home-icon-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
}

.home-election-card .btn-primary {
  border-radius: 16px;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.home-election-card .btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

@media (max-width: 991px) {
  .home-page .navbar {
    position: relative;
  }

  .home-hero .min-vh-100 {
    min-height: auto !important;
  }

  .home-election-card {
    padding: 26px;
  }
}

/* Compact voter search page */
.voter-search-page .voter-search-title h1 {
  font-weight: 800;
}

.voter-search-page .voter-search-header {
  padding: 18px 24px;
}

.voter-search-page .auth-icon-circle {
  width: 54px;
  height: 54px;
  font-size: 26px;
  margin-bottom: 8px;
}

.voter-search-page .auth-card {
  max-height: 95vh;
}

.voter-id-box {
  background: #e7f1ff;
  border: 1px solid #cfe2ff;
}

/* Polished admin dashboard */
.admin-dashboard-page {
  min-height: 100vh;
}

.dashboard-shell {
  min-height: calc(100vh - 48px);
}

.dashboard-topbar {
  color: #ffffff;
  padding: 24px 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(17, 24, 39, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.dashboard-topbar h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
}

.dashboard-main-card,
.dashboard-side-card {
  border-radius: 26px;
  border: none;
  overflow: hidden;
}

.dashboard-main-card {
  background: rgba(255, 255, 255, 0.98);
}

.dashboard-side-card {
  background: rgba(255, 255, 255, 0.96);
}

.dashboard-status-badge {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-open {
  background: #dcfce7;
  color: #166534;
}

.status-closed {
  background: #fef3c7;
  color: #92400e;
}

.dashboard-stat-card {
  height: 100%;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
  transition: 0.2s ease-in-out;
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.dashboard-stat-card p {
  margin: 10px 0 4px 0;
  color: #64748b;
  font-weight: 600;
}

.dashboard-stat-card h2 {
  margin-bottom: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.4rem;
}

.section-label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.modern-action-card {
  min-height: 145px;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  transition: 0.22s ease-in-out;
}

.modern-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 34%);
  opacity: 0.9;
}

.modern-action-card > div {
  position: relative;
  z-index: 1;
}

.modern-action-card:hover {
  transform: translateY(-5px);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.modern-action-card h5 {
  font-weight: 800;
  margin: 8px 0 5px 0;
}

.modern-action-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
  opacity: 0.9;
}

.action-icon {
  font-size: 1.7rem;
}

.action-blue {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.action-cyan {
  background: linear-gradient(135deg, #0891b2, #0f766e);
}

.action-green {
  background: linear-gradient(135deg, #16a34a, #166534);
}

.action-dark {
  background: linear-gradient(135deg, #111827, #334155);
}

.dashboard-tool-list {
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-tool-list .list-group-item {
  border: none;
  border-bottom: 1px solid #eef2f7;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dashboard-tool-list .list-group-item:last-child {
  border-bottom: none;
}

.dashboard-tool-list .list-group-item:hover {
  background: #f1f5f9;
}

@media (max-width: 991px) {
  .dashboard-shell {
    min-height: auto;
  }

  .dashboard-topbar {
    padding: 22px;
  }

  .modern-action-card {
    min-height: 125px;
  }
}

@media (max-width: 575px) {
  .admin-dashboard-page .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dashboard-topbar {
    border-radius: 22px;
  }

  .dashboard-main-card .card-body,
  .dashboard-side-card .card-body {
    padding: 18px !important;
  }
}

/* Compact admin dashboard fit */
.admin-dashboard-page .container-fluid {
  max-width: 1440px;
}

.admin-dashboard-page .dashboard-shell {
  min-height: auto;
}

.admin-dashboard-page .dashboard-topbar {
  padding: 16px 22px;
  margin-bottom: 14px !important;
  border-radius: 22px;
}

.admin-dashboard-page .dashboard-topbar h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.admin-dashboard-page .dashboard-topbar p {
  font-size: 0.92rem;
}

.admin-dashboard-page .dashboard-topbar .badge {
  padding: 0.35rem 0.65rem !important;
  margin-bottom: 0.35rem !important;
}

.admin-dashboard-page .row.g-4 {
  --bs-gutter-y: 0.9rem;
  --bs-gutter-x: 0.9rem;
}

.admin-dashboard-page .row.g-3 {
  --bs-gutter-y: 0.65rem;
  --bs-gutter-x: 0.65rem;
}

.admin-dashboard-page .dashboard-main-card .card-body,
.admin-dashboard-page .dashboard-side-card .card-body {
  padding: 16px !important;
}

.admin-dashboard-page .dashboard-main-card .mb-4 {
  margin-bottom: 0.85rem !important;
}

.admin-dashboard-page .dashboard-side-card {
  margin-bottom: 0.9rem !important;
}

.admin-dashboard-page .dashboard-side-card h5,
.admin-dashboard-page .dashboard-main-card h4 {
  font-size: 1rem;
}

.admin-dashboard-page .dashboard-side-card p,
.admin-dashboard-page .dashboard-main-card p {
  font-size: 0.86rem;
}

.admin-dashboard-page .dashboard-status-badge {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.admin-dashboard-page .dashboard-stat-card {
  padding: 12px;
  border-radius: 18px;
}

.admin-dashboard-page .dashboard-stat-card p {
  margin: 6px 0 2px 0;
  font-size: 0.78rem;
}

.admin-dashboard-page .dashboard-stat-card h2 {
  font-size: 1.8rem;
}

.admin-dashboard-page .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 1.1rem;
}

.admin-dashboard-page .section-label {
  margin-bottom: 0.55rem !important;
}

.admin-dashboard-page .modern-action-card {
  min-height: 102px;
  border-radius: 20px;
  padding: 15px;
}

.admin-dashboard-page .modern-action-card h5 {
  font-size: 1rem;
  margin: 5px 0 3px 0;
}

.admin-dashboard-page .modern-action-card p {
  font-size: 0.78rem;
  line-height: 1.25;
}

.admin-dashboard-page .action-icon {
  font-size: 1.35rem;
}

.admin-dashboard-page .dashboard-tool-list .list-group-item {
  padding: 9px 12px;
  font-size: 0.88rem;
}

.admin-dashboard-page .d-grid.gap-2 {
  gap: 0.45rem !important;
}

.admin-dashboard-page .btn {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  font-size: 0.9rem;
}

.admin-dashboard-page .alert {
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
}

/* Premium voter ballot page */
.voter-ballot-page {
  min-height: 100vh;
}

.ballot-container {
  max-width: 1500px;
}

.ballot-hero {
  color: #ffffff;
  border-radius: 28px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(17, 24, 39, 0.98));
}

.ballot-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ballot-description {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.voter-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.voter-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.2);
}

.ballot-main-card,
.ballot-side-card {
  border-radius: 28px;
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.ballot-flyer {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 22px;
}

.ballot-guide-list {
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.7;
}

.ballot-secure-badge {
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
}

.ballot-info-alert {
  background: #eef6ff;
  color: #0f3b68;
  border: 1px solid #cfe8ff;
  border-radius: 18px;
}

.empty-ballot-icon {
  font-size: 3rem;
}

.ballot-position-section {
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ballot-position-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #111827, #1d4ed8);
}

.ballot-position-title h4 {
  font-weight: 800;
}

.ballot-position-title p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.position-number {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.ballot-position-body {
  padding: 18px;
  background: #f8fafc;
}

.skip-ballot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 13px 15px;
  transition: 0.2s ease-in-out;
}

.skip-ballot-card:hover {
  border-color: #0d6efd;
  background: #eef6ff;
}

.skip-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.skip-ballot-card span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
}

.btn-check:checked + .skip-ballot-card {
  border-style: solid;
  border-color: #64748b;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(100, 116, 139, 0.15);
}

.candidate-ballot-card {
  display: block;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  text-align: center;
  transition: 0.22s ease-in-out;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.candidate-ballot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.candidate-photo-wrap {
  padding: 18px 18px 6px 18px;
}

.candidate-ballot-photo,
.candidate-ballot-no-photo {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  border: 5px solid #f1f5f9;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.candidate-ballot-no-photo {
  background: linear-gradient(135deg, #64748b, #334155);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.candidate-ballot-body {
  padding: 12px 16px 18px 16px;
}

.candidate-ballot-body h5 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.select-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.btn-check:checked + .candidate-ballot-card {
  border-color: #0d6efd;
  background: #eef6ff;
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 36px rgba(13, 110, 253, 0.24);
}

.btn-check:checked + .candidate-ballot-card .candidate-ballot-photo {
  border-color: #0d6efd;
}

.btn-check:checked + .candidate-ballot-card .select-pill {
  background: #0d6efd;
  color: #ffffff;
}

.btn-check:checked + .candidate-ballot-card .select-pill::before {
  content: "✓ ";
}

.ballot-submit-panel {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
  .ballot-hero {
    padding: 24px;
  }

  .ballot-submit-panel {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .ballot-submit-panel .btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .voter-ballot-page .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ballot-main-card .card-body {
    padding: 16px !important;
  }

  .ballot-position-title {
    padding: 16px;
  }

  .ballot-position-body {
    padding: 14px;
  }

  .candidate-ballot-photo,
  .candidate-ballot-no-photo {
    width: 118px;
    height: 118px;
  }
}

/* Premium voter ballot page */
.voter-ballot-page {
  min-height: 100vh;
}

.ballot-container {
  max-width: 1500px;
}

.ballot-hero {
  color: #ffffff;
  border-radius: 28px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(17, 24, 39, 0.98));
}

.ballot-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ballot-description {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.voter-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.voter-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.2);
}

.ballot-main-card {
  border-radius: 28px;
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.ballot-secure-badge {
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
}

.empty-ballot-icon {
  font-size: 3rem;
}

/* Softer ballot flyer side panel */
.ballot-flyer-panel {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.ballot-flyer-panel .ballot-flyer {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.flyer-soft-caption {
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.caption-kicker {
  display: inline-block;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.flyer-soft-caption h5 {
  font-weight: 800;
  color: #0f172a;
}

.ballot-soft-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  line-height: 1.5;
}

.soft-note-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Soft ballot instruction */
.ballot-mini-instruction {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.92rem;
}

.ballot-mini-instruction span {
  font-size: 1.15rem;
}

/* Ballot positions */
.ballot-position-section {
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ballot-position-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #111827, #1d4ed8);
}

.ballot-position-title h4 {
  font-weight: 800;
}

.ballot-position-title p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.position-number {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.ballot-position-body {
  padding: 18px;
  background: #f8fafc;
}

/* Skip option */
.skip-ballot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 13px 15px;
  transition: 0.2s ease-in-out;
}

.skip-ballot-card:hover {
  border-color: #0d6efd;
  background: #eef6ff;
}

.skip-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.skip-ballot-card span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
}

.btn-check:checked + .skip-ballot-card {
  border-style: solid;
  border-color: #64748b;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(100, 116, 139, 0.15);
}

/* Candidate cards */
.candidate-ballot-card {
  display: block;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  text-align: center;
  transition: 0.22s ease-in-out;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.candidate-ballot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.candidate-photo-wrap {
  padding: 18px 18px 6px 18px;
}

.candidate-ballot-photo,
.candidate-ballot-no-photo {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  border: 5px solid #f1f5f9;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.candidate-ballot-no-photo {
  background: linear-gradient(135deg, #64748b, #334155);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.candidate-ballot-body {
  padding: 12px 16px 18px 16px;
}

.candidate-ballot-body h5 {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.select-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.btn-check:checked + .candidate-ballot-card {
  border-color: #0d6efd;
  background: #eef6ff;
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 36px rgba(13, 110, 253, 0.24);
}

.btn-check:checked + .candidate-ballot-card .candidate-ballot-photo {
  border-color: #0d6efd;
}

.btn-check:checked + .candidate-ballot-card .select-pill {
  background: #0d6efd;
  color: #ffffff;
}

.btn-check:checked + .candidate-ballot-card .select-pill::before {
  content: "✓ ";
}

/* Submit panel */
.ballot-submit-panel {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
  .ballot-hero {
    padding: 24px;
  }

  .ballot-submit-panel {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .ballot-submit-panel .btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .voter-ballot-page .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ballot-main-card .card-body {
    padding: 16px !important;
  }

  .ballot-position-title {
    padding: 16px;
  }

  .ballot-position-body {
    padding: 14px;
  }

  .candidate-ballot-photo,
  .candidate-ballot-no-photo {
    width: 118px;
    height: 118px;
  }
}

/* Ballot title flyer image */
.ballot-title-flyer {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

/* Bigger candidate images */
.candidate-ballot-photo,
.candidate-ballot-no-photo {
  width: 168px;
  height: 168px;
}

.candidate-photo-wrap {
  padding: 22px 18px 8px 18px;
}

/* Give bigger candidate cards a little more breathing room */
.candidate-ballot-body {
  padding: 14px 16px 20px 16px;
}

.candidate-ballot-body h5 {
  font-size: 1.08rem;
}

/* Make cards look stronger with bigger photos */
.candidate-ballot-card {
  border-radius: 26px;
}

/* Mobile adjustment */
@media (max-width: 991px) {
  .ballot-title-flyer {
    width: 110px;
    height: 110px;
    margin-top: 6px;
  }
}

@media (max-width: 575px) {
  .candidate-ballot-photo,
  .candidate-ballot-no-photo {
    width: 140px;
    height: 140px;
  }

  .ballot-title-flyer {
    width: 95px;
    height: 95px;
  }
}

/* Prominent ballot submit button */
.ballot-submit-button {
  width: 100%;
  max-width: 520px;
  padding: 16px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d6efd, #1d4ed8);
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.35);
  transition: 0.22s ease-in-out;
}

.ballot-submit-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(13, 110, 253, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.ballot-submit-button:active {
  transform: translateY(-1px);
}

/* Multi-page voting progress */
.ballot-progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.ballot-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #0d6efd, #1d4ed8);
  border-radius: 999px;
  transition: width 0.25s ease-in-out;
}

/* Ballot title flyer image */
.ballot-title-flyer {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

/* Bigger candidate images */
.candidate-ballot-photo,
.candidate-ballot-no-photo {
  width: 168px;
  height: 168px;
}

.candidate-photo-wrap {
  padding: 22px 18px 8px 18px;
}

.candidate-ballot-body {
  padding: 14px 16px 20px 16px;
}

.candidate-ballot-body h5 {
  font-size: 1.08rem;
}

.candidate-ballot-card {
  border-radius: 26px;
}

/* Prominent ballot submit button */
.ballot-submit-button {
  min-width: 260px;
  padding: 15px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d6efd, #1d4ed8);
  border: none;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.35);
  transition: 0.22s ease-in-out;
}

.ballot-submit-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(13, 110, 253, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.ballot-submit-button:active {
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .ballot-title-flyer {
    width: 110px;
    height: 110px;
    margin-top: 6px;
  }
}

@media (max-width: 575px) {
  .candidate-ballot-photo,
  .candidate-ballot-no-photo {
    width: 140px;
    height: 140px;
  }

  .ballot-title-flyer {
    width: 95px;
    height: 95px;
  }

  .ballot-submit-button {
    width: 100%;
  }
}

/* Compact one-position voting page */
.compact-ballot-hero {
  padding: 14px 22px !important;
  border-radius: 22px !important;
}

.compact-ballot-hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
  line-height: 1.15;
}

.compact-ballot-description {
  font-size: 0.9rem;
  line-height: 1.35;
  max-width: 900px;
}

.compact-ballot-hero .voter-welcome-pill {
  padding: 6px 11px;
  font-size: 0.9rem;
}

.compact-ballot-hero .btn {
  padding: 0.42rem 0.75rem;
  font-size: 0.9rem;
}

.compact-ballot-hero .ballot-title-flyer {
  width: 82px;
  height: 82px;
  border-radius: 18px;
}

/* Compact main ballot card */
.voter-ballot-page .ballot-main-card .card-body {
  padding: 16px !important;
}

.voter-ballot-page .ballot-main-card h3 {
  font-size: 1.25rem;
}

.voter-ballot-page .ballot-secure-badge {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.voter-ballot-page .ballot-progress {
  height: 7px;
  margin-bottom: 0.75rem !important;
}

.voter-ballot-page .ballot-mini-instruction {
  padding: 8px 11px;
  font-size: 0.84rem;
  margin-bottom: 0.75rem !important;
}

/* Compact position block */
.voter-ballot-page .ballot-position-section {
  border-radius: 20px;
  margin-bottom: 1rem !important;
}

.voter-ballot-page .ballot-position-title {
  padding: 11px 15px;
  gap: 10px;
}

.voter-ballot-page .position-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.voter-ballot-page .ballot-position-title h4 {
  font-size: 1.1rem;
}

.voter-ballot-page .ballot-position-title p {
  font-size: 0.8rem;
}

.voter-ballot-page .ballot-position-body {
  padding: 12px;
}

.voter-ballot-page .skip-ballot-card {
  padding: 9px 12px;
  margin-bottom: 0.85rem !important;
  border-radius: 15px;
}

.voter-ballot-page .skip-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.voter-ballot-page .skip-ballot-card span {
  font-size: 0.78rem;
}

/* Bigger candidate pictures, but tighter card */
.voter-ballot-page .candidate-ballot-photo,
.voter-ballot-page .candidate-ballot-no-photo {
  width: 185px !important;
  height: 185px !important;
}

.voter-ballot-page .candidate-photo-wrap {
  padding: 14px 12px 4px 12px !important;
}

.voter-ballot-page .candidate-ballot-card {
  border-radius: 22px;
}

.voter-ballot-page .candidate-ballot-body {
  padding: 8px 12px 12px 12px !important;
}

.voter-ballot-page .candidate-ballot-body h5 {
  font-size: 1rem;
  margin-bottom: 7px;
}

.voter-ballot-page .select-pill {
  padding: 5px 10px;
  font-size: 0.76rem;
}

/* Reduce row spacing */
.voter-ballot-page .row.g-4 {
  --bs-gutter-y: 0.8rem;
  --bs-gutter-x: 0.8rem;
}

/* Bottom navigation */
.voter-ballot-page .ballot-submit-button {
  min-width: 230px;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 15px;
}

.voter-ballot-page .btn-outline-secondary.btn-lg {
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 15px;
}

/* Better fit on medium screens */
@media (min-width: 1200px) {
  .voter-ballot-page .col-xxl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* Smaller screens */
@media (max-width: 991px) {
  .compact-ballot-hero {
    padding: 16px !important;
  }

  .compact-ballot-hero .ballot-title-flyer {
    width: 70px;
    height: 70px;
  }

  .voter-ballot-page .candidate-ballot-photo,
  .voter-ballot-page .candidate-ballot-no-photo {
    width: 160px !important;
    height: 160px !important;
  }
}

@media (max-width: 575px) {
  .voter-ballot-page .candidate-ballot-photo,
  .voter-ballot-page .candidate-ballot-no-photo {
    width: 145px !important;
    height: 145px !important;
  }

  .voter-ballot-page .ballot-submit-button {
    width: 100%;
  }
}

/* Premium vote confirmation page */
.vote-confirm-page {
  min-height: 100vh;
}

.confirm-container {
  max-width: 1400px;
}

.confirm-hero {
  color: #ffffff;
  border-radius: 26px;
  padding: 22px 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(17, 24, 39, 0.98));
}

.confirm-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.confirm-description {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.confirm-main-card {
  border-radius: 28px;
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.confirm-count-badge {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.confirm-candidate-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease-in-out;
}

.confirm-candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.confirm-photo-wrap {
  padding: 24px 18px 10px 18px;
  background: #f8fafc;
}

.confirm-candidate-photo,
.confirm-no-photo {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.confirm-no-photo {
  background: linear-gradient(135deg, #64748b, #334155);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.confirm-candidate-body {
  padding: 18px 18px 22px 18px;
}

.confirm-position-badge {
  display: inline-flex;
  background: #eef6ff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.confirm-candidate-body h4 {
  font-weight: 800;
  color: #0f172a;
}

.confirm-action-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.confirm-submit-button {
  padding: 13px 26px;
  border-radius: 17px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.32);
  transition: 0.22s ease-in-out;
}

.confirm-submit-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  background: linear-gradient(135deg, #15803d, #14532d);
  box-shadow: 0 20px 42px rgba(22, 163, 74, 0.42);
}

.confirm-submit-button:active {
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .confirm-action-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-action-panel .btn,
  .confirm-action-panel form,
  .confirm-submit-button {
    width: 100%;
  }

  .confirm-candidate-photo,
  .confirm-no-photo {
    width: 145px;
    height: 145px;
  }
}

/* Premium results page */
.results-page {
  min-height: 100vh;
}

.results-container {
  max-width: 1500px;
}

.results-hero {
  color: #ffffff;
  border-radius: 28px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(17, 24, 39, 0.98));
}

.results-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.results-description {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.results-refresh-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 15px;
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
}

.results-refresh-note span {
  font-weight: 900;
}

.results-main-card {
  border-radius: 28px;
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.results-pill-badge {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}

/* Results stat cards */
.results-stat-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease-in-out;
}

.results-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.results-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-size: 1.25rem;
}

.results-stat-card p {
  margin: 0 0 5px 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.9rem;
}

.results-stat-card h2 {
  margin-bottom: 0;
  color: #0f172a;
  font-size: 2.25rem;
  font-weight: 850;
}

/* Winner cards */
.winner-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease-in-out;
}

.winner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.winner-photo-wrap {
  padding: 24px 18px 10px 18px;
  background:
    radial-gradient(circle at top, rgba(13, 110, 253, 0.16), transparent 40%),
    #f8fafc;
}

.winner-photo,
.winner-no-photo {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.winner-no-photo {
  background: linear-gradient(135deg, #64748b, #334155);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.winner-body {
  padding: 18px 18px 22px 18px;
}

.winner-position-badge {
  display: inline-flex;
  background: #eef6ff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.winner-body h4 {
  font-weight: 850;
  color: #0f172a;
}

.winner-vote-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.winner-vote-count strong {
  font-size: 1.2rem;
}

.no-winner-card {
  background: #f8fafc;
}

/* Detailed results */
.results-position-section {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.results-position-header {
  color: #ffffff;
  padding: 16px 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #111827, #1d4ed8);
}

.results-position-header h4 {
  font-weight: 850;
}

.results-table thead {
  background: #0f172a;
  color: #ffffff;
}

.results-table th {
  padding: 14px 16px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-table td {
  padding: 14px 16px;
}

.results-candidate-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-rank {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef6ff;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.results-row-photo,
.results-row-no-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f5f9;
}

.results-row-no-photo {
  background: #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.results-vote-badge {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  background: #eef6ff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 850;
}

@media (max-width: 767px) {
  .results-hero {
    padding: 22px;
  }

  .winner-photo,
  .winner-no-photo {
    width: 145px;
    height: 145px;
  }

  .results-table th,
  .results-table td {
    padding: 12px;
  }
}

/* Polished voter login page */
.voter-login-page .auth-card {
  border-radius: 26px;
}

.voter-login-page .voter-login-header {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #0d6efd, #111827);
}

.voter-login-page .auth-icon-circle {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.voter-id-input {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.voter-id-input::placeholder {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.voter-login-button {
  border-radius: 16px;
  background: linear-gradient(135deg, #0d6efd, #1d4ed8);
  border: none;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.32);
  transition: 0.22s ease-in-out;
}

.voter-login-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  background: linear-gradient(135deg, #1d4ed8, #111827);
  box-shadow: 0 20px 42px rgba(13, 110, 253, 0.42);
}

.voter-login-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.voter-login-note span {
  font-size: 1.1rem;
}

@media (max-width: 575px) {
  .voter-login-page h1 {
    font-size: 1.7rem;
  }

  .voter-login-page .card-body {
    padding: 20px !important;
  }
}

/* Vote success page */
.vote-success-page .vote-success-card {
  border-radius: 28px;
  overflow: hidden;
}

.vote-success-header {
  color: #ffffff;
  padding: 34px 28px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #16a34a, #0f172a);
}

.vote-success-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  margin: 0 auto 16px auto;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.vote-success-header h2 {
  font-weight: 850;
}

.vote-success-header p {
  color: rgba(255, 255, 255, 0.82);
}

.success-message-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.55;
}

.success-message-box span {
  font-size: 1.3rem;
}

.vote-success-button {
  border-radius: 17px;
  background: linear-gradient(135deg, #0d6efd, #1d4ed8);
  border: none;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.32);
  transition: 0.22s ease-in-out;
}

.vote-success-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  background: linear-gradient(135deg, #1d4ed8, #111827);
  box-shadow: 0 20px 42px rgba(13, 110, 253, 0.42);
}

@media (max-width: 575px) {
  .vote-success-header {
    padding: 28px 20px;
  }

  .vote-success-icon {
    width: 74px;
    height: 74px;
    font-size: 36px;
  }

  .vote-success-page h1 {
    font-size: 1.75rem;
  }
}

/* Premium audit logs page */
.audit-page {
  min-height: 100vh;
}

.audit-container {
  max-width: 1450px;
}

.audit-hero {
  color: #ffffff;
  border-radius: 28px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(17, 24, 39, 0.98));
}

.audit-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.audit-description {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.audit-main-card {
  border-radius: 28px;
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.audit-count-badge {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}

.audit-empty-icon {
  font-size: 3rem;
}

.audit-table {
  border-collapse: separate;
  border-spacing: 0;
}

.audit-table thead {
  background: #0f172a;
  color: #ffffff;
}

.audit-table th {
  padding: 15px 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
}

.audit-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.audit-table tbody tr {
  transition: 0.18s ease-in-out;
}

.audit-table tbody tr:hover {
  background: #f8fafc;
}

.audit-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 0.82rem;
}

.audit-action-badge {
  display: inline-flex;
  max-width: 220px;
  background: #eef6ff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  word-break: break-word;
  white-space: normal;
}

.audit-details {
  color: #334155;
  line-height: 1.5;
  max-width: 620px;
}

.audit-date {
  color: #64748b;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .audit-hero {
    padding: 22px;
  }

  .audit-main-card .card-body {
    padding: 18px !important;
  }

  .audit-table th,
  .audit-table td {
    padding: 12px;
  }

  .audit-action-badge {
    max-width: 170px;
  }

  .audit-date {
    white-space: normal;
  }
}