/* ==========================================================================
   🏛️ ApnaNeta.in — Enterprise Design System & Modern Civic-Tech UI
   Crafted with Luxury Typography, Glassmorphism, and Indian Civic Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Hind:wght@400;500;600;700&family=Mukta:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Color Tokens */
  --canvas-bg: #f8fafc;
  --surface-card: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --surface-dark: #0b0f19;
  --surface-dark-card: #111827;
  
  --navy-900: #0a0f1d;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;
  
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  --saffron-50: #fff7ed;
  --saffron-100: #ffedd5;
  --saffron-500: #f97316;
  --saffron-600: #ea580c;
  --saffron-700: #c2410c;
  
  --emerald-50: #f0fdf4;
  --emerald-100: #dcfce7;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3b82f6;
  
  /* Gradients */
  --grad-saffron: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  --grad-navy: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  /* 🇮🇳 Authentic Indian 4-Colour Tiranga System (Saffron, White, Ashoka Chakra Navy Blue, Green) */
  --color-saffron: #ea580c;
  --color-saffron-dark: #c2410c;
  --color-saffron-light: #fff7ed;
  --color-white: #ffffff;
  --color-chakra-blue: #000080;
  --color-chakra-dark: #00005a;
  --color-chakra-light: #eff6ff;
  --color-green: #059669;
  --color-green-dark: #047857;
  --color-green-light: #f0fdf4;
  
  --grad-tiranga-4col: linear-gradient(90deg, #ea580c 0%, #ea580c 32%, #ffffff 32%, #ffffff 46%, #000080 46%, #000080 54%, #ffffff 54%, #ffffff 68%, #059669 68%, #059669 100%);
  --grad-tricolor: linear-gradient(90deg, #ea580c 0%, #ea580c 32%, #ffffff 32%, #ffffff 46%, #000080 46%, #000080 54%, #ffffff 54%, #ffffff 68%, #059669 68%, #059669 100%);
  --grad-tiranga-vertical: linear-gradient(180deg, #ea580c 0%, #ea580c 33.3%, #ffffff 33.3%, #ffffff 66.6%, #059669 66.6%, #059669 100%);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 12px 28px -4px rgb(15 23 42 / 0.08), 0 4px 12px -2px rgb(15 23 42 / 0.04);
  --shadow-xl: 0 20px 35px -5px rgb(15 23 42 / 0.12), 0 8px 16px -6px rgb(15 23 42 / 0.06);
  --shadow-glow-saffron: 0 0 25px -4px rgba(234, 88, 12, 0.35);
  --shadow-glow-primary: 0 0 25px -4px rgba(37, 99, 235, 0.35);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Hind', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hindi: 'Hind', 'Mukta', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--canvas-bg);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Tricolor Strip */
.tricolor-strip {
  height: 5px;
  background: var(--grad-tricolor);
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Header & Navigation (Ultra-Clean Floating Glass Bar)
   ========================================================================== */
.navbar {
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  position: sticky;
  top: 5px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #ffedd5;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--grad-navy);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.btn-saffron {
  background: var(--grad-saffron);
  color: white;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-saffron:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.45);
}

.btn-green {
  background: var(--grad-emerald);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-medium);
  color: var(--navy-800);
}

.btn-outline:hover {
  border-color: var(--primary-600);
  background: var(--primary-50);
  color: var(--primary-700);
}

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Urgent Election Alert Ticker Bar
   ========================================================================== */
.urgent-banner {
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 50%, #f0fdf4 100%);
  border-bottom: 2px solid #fed7aa;
  border-top: 1px solid #bbf7d0;
  color: #000080;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 128, 0.06);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Live Visitor Counter Badge Pill
   ========================================================================== */
.visitor-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #bfdbfe;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Search & Filter Directory Engine (parchi.html)
   ========================================================================== */
.search-header-box {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-control {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--canvas-bg);
  transition: all 0.2s ease;
}

.input-control:focus {
  outline: none;
  border-color: var(--primary-600);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Ward Pills */
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

.ward-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.ward-pill {
  padding: 8px 16px;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ward-pill:hover {
  background: #e2e8f0;
  color: var(--navy-900);
}

.ward-pill.active {
  background: var(--grad-navy);
  border-color: var(--primary-700);
  color: white;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

/* Demographic Stats Bar */
.demographic-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.demographic-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  box-shadow: var(--shadow-xs);
}

/* Voter Cards Grid */
.voter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.voter-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.voter-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg);
}

.voter-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.serial-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.epic-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.voter-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.search-highlight {
  background: #fef08a;
  color: #854d0e;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 800;
}

.voter-rel {
  font-size: 14px;
  color: var(--navy-600);
  margin-bottom: 12px;
}

.voter-meta-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}

.voter-meta-item strong {
  color: var(--text-muted);
  font-weight: 600;
}

.family-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.family-tag:hover {
  background: #bae6fd;
}

.voter-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.voter-card-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 8px 10px;
}

/* ==========================================================================
   Authentic Digital Voter Slip (Modal & Standalone)
   ========================================================================== */
.slip-outer-container {
  max-width: 620px;
  margin: 30px auto;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.slip-paper {
  background: #ffffff;
  padding: 28px;
  position: relative;
  border: 3px double #0f172a;
  margin: 16px;
  border-radius: var(--radius-md);
}

.slip-watermark-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.slip-header-title {
  text-align: center;
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.slip-header-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
}

.slip-header-title p {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
  margin-top: 4px;
}

.slip-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}

.slip-details-table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

.slip-details-table td.label-col {
  width: 42%;
  background: #f8fafc;
  color: var(--navy-700);
  font-weight: 700;
}

.slip-details-table td.val-col {
  color: var(--navy-900);
  font-weight: 700;
}

/* ==========================================================================
   AdSense Display Placements
   ========================================================================== */
.ad-slot-wrap {
  width: 100%;
  margin: 20px 0;
  text-align: center;
}

.ad-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--surface-dark);
  color: #94a3b8;
  padding: 50px 0 24px;
  margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  color: white;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
}

.disclaimer-text {
  max-width: 900px;
  margin: 0 auto 14px;
  font-size: 11.5px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .voter-grid { grid-template-columns: 1fr; }
  .demographic-summary-bar { flex-direction: column; align-items: flex-start; }
}

/* 3-Option Slip Segmented Switcher */
.slip-type-segment-bar {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}
.slip-type-btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.slip-type-btn:hover {
  color: #0f172a;
}
.slip-type-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}



/* ==========================================================================
   ✨ ULTRA-PREMIUM 4-TIER SELECTION & CIVIC SEARCH SYSTEM
   High-contrast, outdoor daylight legibility, responsive 4-column flow
   ========================================================================== */
.search-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1.8fr;
  gap: 14px;
  align-items: flex-end;
}

@media (max-width: 992px) {
  .search-selection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .search-selection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.step-label {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
  letter-spacing: 0.3px;
  font-family: var(--font-sans);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  margin-right: 6px;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.premium-select,
.premium-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-hindi);
}

.premium-select:hover,
.premium-input:hover {
  border-color: #94a3b8;
}

.premium-select:focus,
.premium-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.search-input-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  gap: 6px;
}

.search-input-wrapper .premium-input {
  flex: 1;
  padding-right: 12px;
}

.search-action-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.search-action-btn:active {
  transform: translateY(1px);
}

/* Quick Search Attribute Chips */
.search-attribute-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.chips-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.attr-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.attr-chip:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.attr-chip.active {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

/* ==========================================================================
   🏛️ 3-OPTION VOTER SLIP MODAL SYSTEM
   Option 1: साधारण पर्ची | Option 2: परिवार पर्ची | Option 3: प्रत्याशी पर्ची
   ========================================================================== */
.slip-type-segment-bar {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.slip-type-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.slip-type-btn:hover {
  color: #0f172a;
}

.slip-type-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.slip-official-card {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.official-header {
  text-align: center;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.official-header h2 {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}

.official-header .sub-hdr {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 2px;
}

.official-header .sec-notice {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* Candidate Endorsement Box */
.slip-cand-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cand-symbol-avatar {
  font-size: 24px;
  background: white;
  border: 1px solid #fdba74;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Single Voter Grid */
.official-grid {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.official-serial-col {
  text-align: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 4px;
}

.official-serial-col .s-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.official-serial-col .s-num {
  font-size: 26px;
  font-weight: 900;
  color: #be123c;
  line-height: 1.1;
  font-family: var(--font-sans);
}

.official-serial-col .s-ward {
  font-size: 10.5px;
  font-weight: 800;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
  display: inline-block;
}

.official-info-col .v-name {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 3px;
  font-family: var(--font-hindi);
}

.official-info-col .v-rel {
  font-size: 13.5px;
  margin-bottom: 6px;
}

.v-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-meta-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
}

/* Booth & Notice Bars */
.official-booth-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #1e293b;
  margin-bottom: 6px;
}

.official-date-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.official-notice {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.35;
  background: #f8fafc;
  padding: 5px 8px;
  border-radius: 4px;
  border-left: 3px solid #f59e0b;
}

/* Viral Next Search Box */
.next-search-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.ns-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.ns-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.ns-btn {
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ns-btn:hover {
  background: #f1f5f9;
}

.modal-actions-bar {
  display: flex;
  gap: 8px;
}



/* ==========================================================================
   🏛️ Master Unified Civic Navbar (Identical across ALL pages)
   ========================================================================== */
.master-navbar {
  background: #0f2942 !important;
  border-bottom: 3.5px solid transparent !important;
  border-image: var(--grad-tiranga-4col) 1 !important;
  box-shadow: 0 4px 15px rgba(15, 41, 66, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.master-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
}

.master-navbar .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff !important;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.master-navbar .brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.master-navbar .brand-badge {
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.6);
  color: #ffedd5;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  margin-left: 2px;
}

.master-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.master-navbar .nav-item {
  color: #e2e8f0 !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.master-navbar .nav-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.master-navbar .nav-item.active {
  color: #ffffff !important;
  background: rgba(234, 88, 12, 0.25) !important;
  border: 1.5px solid #ea580c !important;
}

.master-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pro-wa {
  background: #059669 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  padding: 7px 15px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-pro-wa:hover {
  background: #047857 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4) !important;
}

@media (max-width: 960px) {
  .master-nav-wrap {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .master-navbar .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 4px;
  }
  .master-navbar .nav-item {
    font-size: 12.5px;
    padding: 6px 10px;
  }
}


/* ============================================================
   MASTER CIVIC THEME & COMPONENT EXPANSION (GovTech v6)
   Unified Navigation, Demographics KPI, GotV Tracker & Print Engine
   ============================================================ */

/* 1. Master Civic Navbar (Universal across ALL pages) */
.master-navbar {
  background: #090d16 !important;
  border-bottom: 2px solid #ea580c !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.master-nav-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 64px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

.master-navbar .brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
}

.master-navbar .brand-logo-icon {
  font-size: 22px !important;
}

.master-navbar .brand-badge {
  background: #ea580c !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  margin-left: 4px !important;
  letter-spacing: 0.2px !important;
  text-transform: uppercase !important;
}

.master-navbar .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.master-navbar .nav-item {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.master-navbar .nav-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.master-navbar .nav-item.active {
  color: #ffffff !important;
  background: #ea580c !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4) !important;
}

.master-navbar .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.master-navbar .btn-pro-wa {
  background: #059669 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid #10b981 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.master-navbar .btn-pro-wa:hover {
  background: #047857 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5) !important;
}

@media (max-width: 992px) {
  .master-nav-wrap {
    height: auto !important;
    padding: 10px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .master-navbar .nav-links {
    order: 3 !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    gap: 4px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .master-navbar .nav-links::-webkit-scrollbar {
    display: none !important;
  }
  .master-navbar .nav-item {
    font-size: 12.5px !important;
    padding: 6px 10px !important;
  }
}

/* 2. Demographic & Turnout KPI Cards (Family Hub & Booth Tracker) */
.gotv-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin: 18px 0 !important;
  width: 100% !important;
}

.gotv-kpi-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.gotv-kpi-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07) !important;
}

.gotv-kpi-lbl {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.1px !important;
}

.gotv-kpi-val {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
  margin: 2px 0 !important;
}

/* 3. Turnout Meter & GotV Toggles */
.gotv-turnout-meter {
  width: 100% !important;
  height: 10px !important;
  background: #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-top: 6px !important;
}

.gotv-turnout-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #16a34a, #22c55e) !important;
  border-radius: 8px !important;
  transition: width 0.4s ease !important;
}

.gotv-status-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  border: 1.5px solid !important;
}

.gotv-status-toggle.voted {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #86efac !important;
}

.gotv-status-toggle.pending {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

/* 4. Family Hub Clan Cards & Roster */
.family-clan-card {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.family-clan-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

.family-roster-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 14px !important;
  font-size: 13.5px !important;
}

.family-roster-table th {
  background: #f8fafc !important;
  padding: 8px 12px !important;
  text-align: left !important;
  font-weight: 700 !important;
  color: #475569 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.family-roster-table td {
  padding: 8px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
}

.family-tier-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

.tier-mega { background: #fee2e2 !important; color: #dc2626 !important; border: 1px solid #fca5a5 !important; }
.tier-large { background: #fef3c7 !important; color: #d97706 !important; border: 1px solid #fde68a !important; }
.tier-mid { background: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }
.tier-small { background: #f1f5f9 !important; color: #64748b !important; border: 1px solid #e2e8f0 !important; }

.btn-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}

.btn-whatsapp:hover {
  background: #1eb954 !important;
  transform: translateY(-1px) !important;
}

.empty-state {
  text-align: center !important;
  padding: 48px 24px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px dashed #cbd5e1 !important;
  margin: 24px 0 !important;
}

/* 5. Live Pulse Ticker */
.live-ticker-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.live-dot-pulse {
  width: 8px !important;
  height: 8px !important;
  background: #ef4444 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7) !important;
  animation: pulseRed 1.6s infinite !important;
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 6. Universal Print Engine for Official Voter Slips */

/* Live Search Feedback Strip (Mobile & Desktop) */
.search-live-feedback {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 4px 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 24px !important;
}

/* Print Header for A4 Export */
.print-official-header {
  display: none;
}

/* ==========================================================================
   🇮🇳 INDIAN TRICOLOUR SEARCH HUB & ACCURATE BOOTH SYSTEM
   ========================================================================== */

/* Tricolor Stripe Accent */
.tricolor-micro-strip, .card-tricolor-strip, .search-hub-tricolor-strip, .bulk-slip-tricolor, .modal-tricolor-strip {
  height: 5px;
  background: var(--grad-tiranga-4col);
  border-radius: 4px 4px 0 0;
  width: 100%;
  display: block;
}

/* Card Booth Bar */
.card-booth-bar {
  margin-top: 8px;
  padding: 6px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.35;
}
.card-booth-tag {
  background: #0f2942;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}
.card-booth-name {
  color: #0f172a;
  font-weight: 700;
  flex: 1;
}
.card-booth-room {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 800;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
}
.card-booth-area {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

/* Bulk Print Button */
.bulk-print-btn {
  background: linear-gradient(135deg, #1e3a8a, #0f2942);
  color: #ffffff !important;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.bulk-print-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Search Hub (Initial State) */
.search-hub-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin: 10px 0;
}
.search-hub-header {
  padding: 24px 20px 16px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fff7ed 0%, #ffffff 80%);
}
.search-hub-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.search-hub-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.hub-divider {
  color: #cbd5e1;
}

.search-hub-cta-box {
  margin: 12px 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-hub-cta-box:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  transform: translateY(-1px);
}
.search-hub-cta-icon {
  font-size: 32px;
}
.search-hub-cta-body {
  flex: 1;
}
.search-hub-cta-heading {
  font-size: 15px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 2px;
}
.search-hub-cta-desc {
  font-size: 12.5px;
  color: #475569;
}
.search-hub-cta-btn {
  background: #ea580c;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.search-hub-section {
  padding: 12px 20px;
}
.search-hub-section-hdr {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-hub-ward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.search-hub-ward-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-hub-ward-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}
.hub-ward-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}
.hub-ward-count {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

.search-hub-bottom-action {
  padding: 16px 20px 24px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
}
.search-hub-browse-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-hub-browse-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Bulk Print Slips Styling */
.bulk-slip-card {
  border: 1.5px dashed #475569;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.bulk-slip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}
.bulk-slip-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bulk-emblem {
  font-size: 18px;
}
.bulk-gov-title {
  font-size: 10.5px;
  font-weight: 900;
  color: #000;
  line-height: 1.2;
}
.bulk-gp-sub {
  font-size: 9.5px;
  color: #333;
}
.bulk-ward-badge {
  background: #0f2942;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}
.bulk-slip-body {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.bulk-serial-box {
  background: #fff7ed;
  border: 1.5px solid #ea580c;
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
  min-width: 52px;
}
.bulk-serial-lbl {
  font-size: 8.5px;
  font-weight: 800;
  color: #9a3412;
  text-transform: uppercase;
}
.bulk-serial-num {
  font-size: 24px;
  font-weight: 900;
  color: #c2410c;
  line-height: 1.1;
}
.bulk-voter-details {
  flex: 1;
}
.bulk-voter-name {
  font-size: 15px;
  font-weight: 900;
  color: #000;
  line-height: 1.2;
}
.bulk-rel-name {
  font-size: 11px;
  color: #222;
  margin-top: 1px;
}
.bulk-meta-row {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #333;
  margin-top: 3px;
}
.bulk-epic-row {
  font-size: 10px;
  font-family: monospace;
  font-weight: 800;
  color: #1e3a8a;
  margin-top: 2px;
}
.bulk-slip-booth {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10px;
  margin-bottom: 6px;
}
.bulk-booth-hdr {
  font-weight: 800;
  color: #0f172a;
}
.bulk-booth-sub {
  color: #334155;
  margin-top: 1px;
}
.bulk-slip-cut-line {
  border-top: 1px dashed #94a3b8;
  padding-top: 4px;
  text-align: center;
  font-size: 9px;
  color: #64748b;
  font-weight: 700;
}


/* Village Badge on Voter Card */
.badge-village {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

/* PRO Feature Badges */
.pro-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
}

/* PRO Monetization Upgrade Modal */
.pro-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pro-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}
.pro-modal-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  padding: 18px 20px;
  position: relative;
}
.pro-modal-body {
  padding: 20px;
}

/* 8 Slips Per A4 Page Bulk Styles */
.bulk-slip-card-8 {
  border: 1px dashed #475569;
  border-radius: 4px;
  padding: 5px 8px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 64mm;
  max-height: 64mm;
}
.bulk-8-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3px;
  margin-bottom: 3px;
}
.bulk-8-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #0f172a;
}
.bulk-8-ward-badge {
  background: #000080;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
}
.bulk-8-body {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bulk-8-serial-box {
  background: #fff7ed;
  border: 1.5px solid #ea580c;
  border-radius: 4px;
  padding: 2px 5px;
  text-align: center;
  min-width: 44px;
}
.bulk-8-serial-lbl {
  font-size: 7.5px;
  font-weight: 800;
  color: #9a3412;
  display: block;
}
.bulk-8-serial-num {
  font-size: 20px;
  font-weight: 900;
  color: #000080;
  line-height: 1;
}
.bulk-8-voter-details {
  flex: 1;
  font-size: 9.5px;
  line-height: 1.25;
}
.bulk-8-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bulk-8-name {
  font-size: 13.5px;
  font-weight: 900;
  color: #000000;
}
.bulk-8-rel {
  font-size: 10px;
  color: #334155;
}
.bulk-8-meta {
  display: flex;
  gap: 6px;
  font-size: 9px;
  color: #475569;
  margin-top: 1px;
}
.bulk-8-epic {
  font-family: monospace;
  font-weight: 800;
  color: #1e3a8a;
}
.bulk-8-booth {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  color: #14532d;
  line-height: 1.2;
}
.bulk-8-cut-line {
  border-top: 1px dashed #94a3b8;
  padding-top: 2px;
  text-align: center;
  font-size: 8px;
  color: #64748b;
  font-weight: 700;
}

/* ==========================================================================
   🖨️ MASTER A4 PRINT ENGINE (Zero Clutter, 2-Column Voter Slips Roster)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 8mm;
 

  #bulkPrintContainer {
    display: block !important;
    width: 100% !important;
  }
  .bulk-print-page-header {
    display: block !important;
    border-bottom: 2px solid #000;
    padding-bottom: 6px;
    margin-bottom: 10px;
    page-break-after: avoid !important;
  }
  .bulk-print-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8mm !important;
    width: 100% !important;
  }
  .bulk-slip-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    min-height: 124mm !important;
  }
  .bulk-print-grid-8 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3mm !important;
    width: 100% !important;
  }
  .bulk-slip-card-8 {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    height: 64mm !important;
    max-height: 64mm !important;
    border: 1px dashed #334155 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

 }

  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Purge all site UI, headers, banners, dropdowns, and buttons */
  .master-navbar, header, nav, footer, .site-footer,
  .tricolor-strip, .live-meta-bar, .urgent-banner, .mobile-loc-bar,
  #mainFilterCard, .luxury-filter-card, .filter-dropdowns-row,
  .master-search-section, .filter-subbar, .demographics-strip,
  #panchayatDownloadBar, .panchayat-download-bar,
  #activeFilterBox, #loadMoreBtn, .btn-load-more,
  .card-actions, .nav-actions, .slip-modal, #slipModal,
  .modal-overlay, #visitorCountBadge, button, .primary-search-btn,
  .toast, .live-ticker-pill, .visitor-pill-badge, .bento-grid,
  .hero-search-card, .trust-strip {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .portal-main, .container, main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* Official Election Commission Header */
  .print-official-header {
    display: block !important;
    margin-bottom: 10px !important;
    page-break-after: avoid !important;
  }

  /* 2 Slips per row on standard A4 page */
  .voter-cards-grid, #resultsGrid, .voters-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6mm !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    page-break-inside: auto !important;
  }

  .voter-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 1.5px dashed #334155 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .card-serial-box {
    border: 2px solid #000000 !important;
    background: #f8fafc !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  .card-serial-lbl, .card-serial-num {
    color: #000000 !important;
  }
  .card-ward-tag {
    background: #000000 !important;
    color: #ffffff !important;
  }
  .card-voter-name {
    color: #000000 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }
  .card-rel-name {
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .badge-tag, .badge-epic {
    background: #f8fafc !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 10px !important;
  }
  .card-actions {
    display: none !important;
  }
}



/* ==========================================================================
   📱 ULTRA-FAST MOBILE-FIRST ENGINE (GovTech Responsive Master v7)
   ========================================================================== */

/* 1. Prevent iOS & Chrome Auto-Zoom on inputs */
@media (max-width: 768px) {
  input, select, textarea,
  .custom-input, .custom-select, .input-control,
  #searchInput, #heroQuery, #heroDist, #heroSamiti, #heroGp {
    font-size: 16px !important;
  }
}

/* 2. Mobile Master Navbar (Clean 2-Tier Responsive Architecture) */
@media (max-width: 768px) {
  .master-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background: #090d16 !important;
  }
  .master-nav-wrap {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "logo actions"
      "links links" !important;
    height: auto !important;
    min-height: 70px !important;
    padding: 6px 12px 5px !important;
    row-gap: 5px !important;
    column-gap: 8px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .master-navbar .brand-logo {
    grid-area: logo !important;
    font-size: 16px !important;
    gap: 6px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
  }
  .master-navbar .brand-logo-icon {
    font-size: 18px !important;
  }
  .master-navbar .brand-badge {
    font-size: 9px !important;
    padding: 1.5px 5px !important;
  }
  .master-navbar .nav-actions {
    grid-area: actions !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .master-navbar .btn-pro-wa {
    font-size: 10.5px !important;
    padding: 4px 8px !important;
    height: 28px !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
  }
  .master-navbar .nav-links {
    grid-area: links !important;
    display: flex !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 0 2px !important;
    gap: 5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 !important;
  }
  .master-navbar .nav-links::-webkit-scrollbar {
    display: none !important;
  }
  .master-navbar .nav-item {
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Live Meta Bar Mobile */
  .live-meta-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    text-align: center !important;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .live-meta-bar > div {
    width: 100% !important;
    text-align: center !important;
  }
  #visitorCountBadge {
    font-size: 11px !important;
    color: #4ade80 !important;
  }

  /* Main Container & Filter Card Mobile */
  .portal-main {
    margin: 8px auto !important;
    padding: 0 8px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .luxury-filter-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .master-search-section {
    margin-bottom: 8px !important;
    width: 100% !important;
  }
  .master-search-wrap {
    width: 100% !important;
  }
  .master-search-input {
    height: 44px !important;
    font-size: 13px !important;
    padding: 6px 74px 6px 34px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .search-icon-inside {
    left: 10px !important;
    font-size: 15px !important;
  }
  .primary-search-btn {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    right: 4px !important;
    border-radius: 6px !important;
  }
  .clear-search-btn {
    right: 52px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }
  .filter-subbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .demographics-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    font-size: 10.5px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .demographics-strip span {
    white-space: nowrap !important;
  }

  /* Panchayat Download Bar Mobile */
  .panchayat-download-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
  .panchayat-download-bar button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Empty Search Hero Mobile */
  .empty-search-hero {
    padding: 22px 10px !important;
    border-radius: 12px !important;
    margin: 4px 0 10px !important;
    box-sizing: border-box !important;
  }
  .empty-search-hero h2 {
    font-size: 16px !important;
  }
  .empty-search-hero p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }
  .empty-search-hero button {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  /* Voter Cards Mobile */
  .voter-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .voter-card {
    padding: 10px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  .card-top {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  .card-serial-box {
    width: 62px !important;
    min-width: 62px !important;
    padding: 4px 2px !important;
  }
  .card-serial-lbl {
    font-size: 8.5px !important;
  }
  .card-serial-num {
    font-size: 22px !important;
  }
  .card-ward-tag {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
  .card-voter-name {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }
  .card-rel-name {
    font-size: 11px !important;
  }
  .card-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-top: 4px !important;
  }
  .badge-tag, .badge-epic {
    font-size: 9.5px !important;
    padding: 1.5px 5px !important;
  }
  .card-actions {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }
  .card-btn {
    height: 36px !important;
    font-size: 11.5px !important;
    padding: 0 8px !important;
  }
}

/* Global anti-overflow safety */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
*, *:before, *:after {
  box-sizing: inherit !important;
}

/* 3. Mobile Location Badge & Dropdown Drawer */
.mobile-loc-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-loc-bar {
    display: block !important;
    margin-bottom: 10px !important;
  }
  .mobile-loc-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }
  .mobile-loc-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  .mobile-loc-pin {
    font-size: 18px !important;
  }
  .mobile-loc-details {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
  }
  .mobile-loc-lbl {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
  }
  .mobile-loc-title {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mobile-loc-btn {
    background: #0f2942 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  /* Dropdowns Collapsed by Default on Mobile when GP is loaded */
  .filter-dropdowns-row.mobile-collapsed {
    display: none !important;
  }
  .filter-dropdowns-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 10px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px dashed #cbd5e1 !important;
  }
}

/* 4. Master Search Bar Layout */
.master-search-section {
  margin-bottom: 12px !important;
  width: 100% !important;
}
.master-search-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}
.search-icon-inside {
  position: absolute !important;
  left: 14px !important;
  font-size: 18px !important;
  color: #64748b !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.master-search-input {
  width: 100% !important;
  height: 48px !important;
  padding: 8px 90px 8px 42px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  border: 2px solid #2563eb !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}
.master-search-input:focus {
  border-color: #ea580c !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.2) !important;
}
.clear-search-btn {
  position: absolute !important;
  right: 64px !important;
  background: #e2e8f0 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  touch-action: manipulation !important;
  z-index: 2 !important;
}
.primary-search-btn {
  position: absolute !important;
  right: 4px !important;
  height: 40px !important;
  padding: 0 14px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 7px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  touch-action: manipulation !important;
  z-index: 2 !important;
}

/* 5. Mobile Ward Filter Pills */
@media (max-width: 768px) {
  .ward-filter-section {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .ward-pill-scroll {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 2px !important;
    width: 100% !important;
  }
  .ward-pill-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .ward-filter-btn {
    padding: 6px 13px !important;
    font-size: 12.5px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    touch-action: manipulation !important;
  }
  .demographics-strip {
    font-size: 11.5px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }
}

/* 6. Mobile Voter Cards */
@media (max-width: 600px) {
  .voter-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .voter-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  }
  .card-serial-box {
    min-width: 54px !important;
    padding: 4px 6px !important;
  }
  .card-serial-num {
    font-size: 24px !important;
  }
  .card-voter-name {
    font-size: 17px !important;
  }
  .card-rel-name {
    font-size: 13px !important;
  }
  .card-actions {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
  }
  .card-btn {
    height: 38px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }
  .card-btn-view {
    flex: 1.6 !important;
    background: #0f2942 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
  }
  .card-btn-family {
    flex: 1 !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }
  .card-btn-download {
    flex: 0 0 38px !important;
    padding: 0 !important;
    font-size: 16px !important;
  }
}

/* 7. Mobile Slip Modal (Bottom-Sheet / Responsive Card) */
@media (max-width: 600px) {
  .slip-modal {
    padding: 8px !important;
    align-items: center !important;
  }
  .slip-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    max-height: 94vh !important;
  }
  .modal-tabs-strip {
    padding: 6px 8px !important;
    gap: 4px !important;
    padding-right: 36px !important;
  }
  .modal-tab-btn {
    font-size: 11.5px !important;
    padding: 6px 4px !important;
    white-space: nowrap !important;
  }
  .slip-official-card {
    padding: 10px 12px !important;
  }
  .big4-grid {
    gap: 5px !important;
  }
  .box-serial .num {
    font-size: 26px !important;
  }
  .box-ward .num {
    font-size: 18px !important;
  }
  .box-booth .num {
    font-size: 16px !important;
  }
  .v-big-name {
    font-size: 20px !important;
  }
  .modal-actions-bar {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .modal-actions-bar button {
    height: 44px !important;
    font-size: 13px !important;
  }
}

/* 8. Mobile Demographics KPI Grid (Family Hub & Booth Tracker) */
@media (max-width: 600px) {
  .gotv-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 12px 0 !important;
  }
  .gotv-kpi-card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }
  .gotv-kpi-lbl {
    font-size: 11px !important;
  }
  .gotv-kpi-val {
    font-size: 22px !important;
  }
}

/* 9. Mobile Home Page Hero */
@media (max-width: 600px) {
  .hero-wrap {
    padding: 24px 0 32px !important;
  }
  .hero-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  .hero-sub {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }
  .hero-search-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  .hero-search-card .search-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .hero-search-card .input-group label {
    font-size: 11.5px !important;
    margin-bottom: 4px !important;
  }
  .hero-search-card button[type="submit"] {
    margin-top: 6px !important;
    height: 48px !important;
    width: 100% !important;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   🏛️ APNANETA CANDIDATE VIP BANNER & PRO SUITE STYLING
   ========================================================================== */
.candidate-vip-banner {
  background: linear-gradient(90deg, #0b1329 0%, #172554 50%, #0b1329 100%);
  border-bottom: 2px solid #f59e0b;
  color: #ffffff;
  padding: 8px 16px;
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.cand-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}
.cand-badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cand-badge-tag {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}
.cand-name-tag strong {
  color: #ffffff;
  font-weight: 800;
}
.cand-symbol-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fef08a;
  font-size: 12.5px;
}
.cand-ballot-tag {
  background: #1e3a8a;
  color: #bfdbfe;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #3b82f6;
  font-weight: 800;
  font-size: 12px;
}
.cand-banner-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cand-btn-mini {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cand-btn-mini:hover {
  background: #ffffff;
  color: #0f172a;
}
.cand-btn-mini.btn-highlight {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
  font-weight: 800;
}
.cand-btn-close {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.cand-btn-close:hover {
  color: #f87171;
  border-color: #f87171;
}

@media (max-width: 768px) {
  .candidate-vip-banner {
    padding: 8px 10px;
  }
  .cand-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cand-banner-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}


/* ==========================================================================
   🔤 ALPHABETICAL MASTER VOTER DIRECTORY (SINGLE-LINE ROW DENSE REGISTER)
   ========================================================================== */
.alpha-view-container {
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}
.alpha-jump-strip {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.alpha-letter-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
}
.alpha-letter-btn:hover, .alpha-letter-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}
.alpha-voter-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.alpha-voter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}
.alpha-voter-table th {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 800;
  padding: 8px 10px;
  text-align: left;
  border-right: 1px solid #334155;
  font-size: 11.5px;
  letter-spacing: 0.2px;
}
.alpha-voter-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #1e293b;
}
.alpha-voter-table tr:nth-child(even) td {
  background: #f8fafc;
}
.alpha-voter-table tr:hover td {
  background: #fff7ed;
}
.alpha-serial-badge {
  background: #000080;
  color: #ffffff;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  display: inline-block;
  text-align: center;
}

/* Print optimizations for Alphabetical Table */
@media print {
  .alpha-jump-strip, .alpha-controls-bar, .master-navbar, .footer-gov, .btn, .cand-btn-mini {
    display: none !important;
  }
  .alpha-view-container {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .alpha-voter-table-wrap {
    overflow: visible !important;
    border: none !important;
  }
  .alpha-voter-table {
    font-size: 8.5pt !important;
    line-height: 1.15 !important;
  }
  .alpha-voter-table th {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 3px 6px !important;
    -webkit-print-color-adjust: exact !important;
  }
  .alpha-voter-table thead {
    display: table-header-group !important;
  }
  .alpha-voter-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .alpha-voter-table td {
    padding: 2.5px 6px !important;
    border-bottom: 0.5pt solid #999 !important;
  }
}
