:root {
  --bg: #0b1224;
  --panel: rgba(14, 22, 41, 0.8);
  --card: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #f97316;
  --accent-2: #22d3ee;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-sm: 10px;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", "Hind", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.15), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.18), transparent 32%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 16px;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.hero {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(249, 115, 22, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero__meta {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-2);
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.lede {
  margin: 8px 0 14px;
  color: var(--muted);
}

.candidate {
  margin: 6px 0;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: -0.01em;
}

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

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 13px;
}

.hero__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  border: none;
  color: #0b0b0b;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-only {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.5);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.toolbar {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-share {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(249, 115, 22, 0.07));
  box-shadow: var(--shadow);
}

.bulk-share__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.bulk-share__row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.bulk-share .hint {
  color: rgba(229, 231, 235, 0.85);
}

.input-wrap {
  position: relative;
}

input[type="search"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  font: inherit;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

select {
  cursor: pointer;
}

.icon-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 16px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: center;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.age-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

.dash {
  color: var(--muted);
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

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

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.stat__label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat__value {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
}

.list-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 18px;
}

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

.voter-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.voter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.voter-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.voter-card.selected {
  border-color: var(--accent);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.28);
}

.select-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text);
  user-select: none;
  margin-right: 8px;
  flex-shrink: 0;
}

.select-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.select-mark {
  font-weight: 600;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: #9ef6ff;
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.phone-wrap {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.02));
}

.phone-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.pill {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.empty {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
}

.empty p {
  margin: 4px 0;
}

.mobile-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  backdrop-filter: blur(10px);
}

.nav-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 6px;
  font-weight: 600;
}

.nav-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 50;
}

.splash__card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__actions {
    width: 100%;
    justify-content: space-between;
  }
  .list-header {
    flex-direction: column;
  }
  .voter-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 540px) {
  .hero__actions {
    gap: 4px;
    width: auto;
  }
  .bulk-share__row {
    grid-template-columns: 1fr;
  }
  .bulk-share__row .primary-btn {
    width: 100%;
  }
}
