/* c:\Users\Administrator\Downloads\VOTER\styles.css */
:root {
  --bg-deep: #061317;
  --bg-mid: #0a1f24;
  --glass-bg: rgba(255, 255, 255, 0.075);
  --glass-bg-strong: rgba(16, 36, 41, 0.88);
  --glass-sub: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text-primary: #f4f9f9;
  --text-secondary: #b5cdd0;
  --text-muted: #7ea1a6;
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --font-bn: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-bn);
  background: radial-gradient(circle at 15% 15%, #0e2e33 0%, var(--bg-deep) 55%, #040c0f 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.bn-one {
  font-family: 'Noto Sans Bengali', 'Nirmala UI', 'SolaimanLipi', sans-serif;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  display: inline;
}

/* Ambient Background (zero-cost radial gradients for 60fps smoothness) */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.orb-1 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.48) 0%, rgba(16, 185, 129, 0) 68%);
  top: -220px;
  left: -180px;
}

.orb-2 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.42) 0%, rgba(14, 165, 233, 0) 68%);
  bottom: -220px;
  right: -160px;
}

.orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22) 0%, rgba(244, 63, 94, 0) 70%);
  top: 35%;
  left: 50%;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Shell */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
}

.glass-panel {
  background: rgba(14, 34, 39, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.glass-subcard {
  background: var(--glass-sub);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hidden {
  display: none !important;
}

/* Topbar */
.topbar {
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: grid;
  place-items: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.brand-emblem svg {
  width: 22px;
  height: 22px;
}

.brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.topbar-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
}

/* Hero Search */
.hero-search-section {
  padding: 28px 26px;
  text-align: center;
  position: relative;
  z-index: 15;
}

.hero-intro-grid {
  max-width: 860px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  text-align: left;
}

.hero-banner-wrap {
  width: 180px;
  height: 180px;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.45), rgba(244, 63, 94, 0.35));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.hero-intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 8px;
}

.hero-title span {
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.search-bar-wrap {
  display: flex;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto 16px;
  align-items: flex-start;
}

.search-input-col {
  flex: 1;
  position: relative;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(4, 15, 19, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-box:focus-within {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 14px 10px;
}

.search-input-box input::placeholder {
  color: var(--text-muted);
}

.clear-btn,
.combo-clear {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--accent-glow);
  transition: transform 0.15s, filter 0.15s;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

/* Live Search Suggestions Dropdown */
.live-suggest-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(9, 26, 31, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  max-height: 380px;
  overflow-y: auto;
  z-index: 40;
  text-align: left;
  padding: 8px;
}

.suggest-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-bright);
  padding: 6px 12px 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.14s;
}

.suggest-item:hover {
  background: rgba(16, 185, 129, 0.16);
}

.suggest-main {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.suggest-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.suggest-tag {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* Quick Controls Row (Area Combobox + Gender + Filter Toggle) */
.quick-controls-row {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.area-combobox {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.area-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 15, 19, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  height: 42px;
}

.area-input-wrap:focus-within {
  border-color: var(--accent-bright);
}

.area-pin-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.area-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
}

.area-input-wrap input::placeholder {
  color: var(--text-muted);
}

.combo-caret {
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.area-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(9, 26, 31, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  max-height: 320px;
  overflow-y: auto;
  z-index: 35;
  text-align: left;
  padding: 6px;
}

.area-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
}

.area-opt:hover {
  background: rgba(16, 185, 129, 0.16);
}

.area-opt-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.area-opt-count {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-bright);
  flex-shrink: 0;
}

.gender-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(4, 15, 19, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  gap: 3px;
  height: 42px;
  align-items: center;
}

.pill-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}

.pill-btn.active {
  background: rgba(16, 185, 129, 0.25);
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.45);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* Advanced Filters */
.advanced-filters {
  max-width: 860px;
  margin: 16px auto 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(4, 15, 19, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.field-group input,
.field-group select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.field-group select option {
  background: #0a1f24;
  color: #f4f9f9;
}

.filter-actions {
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary-sm {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Results Grid (15 per page) */
.results-header {
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.results-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-area-badge {
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
}

.pagination-controls,
.results-footer-pag {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.results-footer-pag {
  justify-content: center;
  margin-top: 18px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.page-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  font-weight: 700;
}

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

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(16, 38, 44, 0.76);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.14s ease, background 0.14s ease;
  display: flex;
  gap: 14px;
  align-items: center;
  contain: layout style;
}

.result-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(52, 211, 153, 0.5);
}

.rc-mini-card {
  width: 66px;
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(14, 165, 233, 0.16));
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.rc-mini-card.female {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.22), rgba(16, 185, 129, 0.14));
  border-color: rgba(253, 164, 175, 0.38);
}

.rc-mini-card svg {
  width: 34px;
  height: 34px;
  color: #7dd3fc;
}

.rc-mini-card.female svg {
  color: #fda4af;
}

.rc-mini-img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}

.rc-mini-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 2px 0 3px;
}

.rc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc-name {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-voter {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-bright);
}

.rc-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-cta {
  font-size: 0.78rem;
  color: var(--accent-bright);
  font-weight: 600;
  margin-top: 2px;
}

/* Modal Popups (GPU-composited for silky 60fps open/scroll) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 11, 14, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.14s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  background: rgba(11, 31, 36, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity;
  animation: popIn 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.modal-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-glass {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-bright);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.5);
}

.modal-scroll-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.id-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.id-card-frame {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(16, 185, 129, 0.24));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.id-card-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.id-card-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.glass-divider {
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.voter-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gender-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-bright);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.voter-details-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

.detail-voter-id {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.serial-badge {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.serial-badge > span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.serial-badge strong {
  font-size: 1.15rem;
  color: var(--accent-bright);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-box {
  padding: 16px 18px;
}

.detail-box-wide {
  grid-column: 1 / -1;
}

.box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row > span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-row strong {
  color: var(--text-primary);
  text-align: right;
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
}

.info-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.address-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.address-banner span {
  display: block;
  font-size: 0.76rem;
  color: var(--accent-bright);
  margin-bottom: 3px;
}

.address-banner p {
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* Welcome Modal */
.welcome-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 32px 26px 26px;
  background: rgba(9, 28, 33, 0.94);
  border-radius: 28px;
  text-align: center;
  animation: popIn 0.22s ease-out;
}

.welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.welcome-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.welcome-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-title span {
  color: var(--accent-bright);
}

.welcome-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.welcome-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 9px 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Legal Guideline Banner */
.guideline-card {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.22);
}

.guideline-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.guideline-content h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 4px;
}

.guideline-content p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-telegram,
.footer-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.16s, transform 0.16s;
}

.btn-telegram:hover,
.footer-tg-btn:hover {
  background: rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

.btn-telegram svg,
.footer-tg-btn svg {
  width: 18px;
  height: 18px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left strong {
  font-size: 0.96rem;
  color: var(--text-primary);
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Empty State & Toast */
.empty-state {
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-top: 6px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.95);
  color: #032018;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .glass-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 31, 36, 0.9);
  }
  .app-shell {
    padding: 10px 10px calc(24px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .topbar {
    padding: 12px 14px;
    border-radius: 18px;
  }
  .stat-pill {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .hero-search-section {
    padding: 20px 16px;
    border-radius: 22px;
  }
  .hero-intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
  .hero-banner-wrap {
    margin: 0 auto;
    width: 165px;
    height: 165px;
  }
  .hero-intro-copy {
    align-items: center;
  }
  .search-bar-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary {
    width: 100%;
    height: 46px;
  }
  .quick-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .area-combobox {
    min-width: 100%;
  }
  .gender-pills {
    justify-content: center;
  }
  .filter-toggle-btn {
    justify-content: center;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .details-grid,
  .info-grid-2 {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .modal-dialog {
    max-height: 94vh;
    border-radius: 22px;
  }
  .modal-scroll-body {
    padding: 16px;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .bg-canvas,
  .app-shell {
    display: none !important;
  }
  .modal-backdrop {
    position: static;
    background: #fff;
    padding: 0;
  }
  .modal-dialog {
    max-height: none;
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
  }
  .modal-header {
    display: none !important;
  }
  .info-row strong,
  .voter-details-header h3,
  .address-banner p {
    color: #000 !important;
  }
}
