/* ==========================================================================
   🏛️ 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%);
  --grad-tricolor: linear-gradient(90deg, #ea580c 0%, #ffffff 50%, #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, #fef2f2 0%, #fff7ed 50%, #fef2f2 100%);
  border-bottom: 1px solid #fee2e2;
  color: #991b1b;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.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;
}
