/*
 * UP Vidhan Sabha Public Opinion Survey
 * Minimal, Friendly, Premium Yellow-Orange Design System + Large PNG Cutouts
 * Typography: Noto Sans Devanagari (Hindi clarity) + Inter (numerals & English)
 */
:root {
  --font-display: 'Noto Sans Devanagari', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Noto Sans Devanagari', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ink: #0f172a;
  --ink-soft: #1e293b;
  --body: #475569;
  --muted: #64748b;

  --bg: #fffdf9;
  --bg-warm: #fffbeb;
  --bg-orange-soft: #fff7ed;
  --card: #ffffff;
  --card-stone: #f8f6f2;
  --dark-footer: #181007;

  --yellow: #facc15;
  --amber: #f59e0b;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --orange-dark: #c2410c;
  --whatsapp: #128c7e;

  --line: rgba(15, 23, 42, 0.07);
  --line-2: rgba(15, 23, 42, 0.13);

  --shadow-soft:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -12px rgba(15, 23, 42, 0.09);
  --shadow-card:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 24px 60px -18px rgba(15, 23, 42, 0.11),
    0 8px 24px -10px rgba(245, 158, 11, 0.12);
  --pl-key-bg: linear-gradient(180deg, #27221d 0%, #14110e 50%, #090806 100%);
  --pl-key-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px -4px rgba(15, 23, 42, 0.35);
  --pl-orange-bg: linear-gradient(180deg, #fb923c 0%, #f97316 45%, #ea580c 100%);
  --pl-orange-shadow:
    inset 0 1.5px 0 rgba(254, 240, 138, 0.5),
    0 10px 24px -8px rgba(249, 115, 22, 0.5);

  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

button,
input,
select {
  font-family: inherit;
}

/* Soft, refined sunlit Yellow-Orange ambient glow */
.fl-hero-aura {
  position: fixed;
  inset: 0 0 auto 0;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(45% 75% at 50% 0, #fefce8 0%, rgba(254, 252, 232, 0) 72%),
    radial-gradient(80% 115% at 50% 0, #fef08a 0%, #fed7aa 38%, rgba(251, 146, 60, 0.24) 64%, rgba(255, 253, 249, 0) 92%);
  -webkit-mask-image: linear-gradient(#000 0% 42%, transparent 100%);
  mask-image: linear-gradient(#000 0% 42%, transparent 100%);
}

.fl-hero-grain {
  position: fixed;
  inset: 0 0 auto 0;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Large transparent PNG cutout watermarks on left & right sides */
.side-leaders-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.side-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 72px 8px 36px;
  width: clamp(92px, 22vw, 310px);
}

.side-col--left {
  align-items: flex-start;
  padding-left: max(4px, 1vw);
}

.side-col--right {
  align-items: flex-end;
  padding-right: max(4px, 1vw);
}

.side-cutout {
  height: clamp(136px, 24vh, 300px);
  width: auto;
  max-width: 100%;
  opacity: 0.11;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  filter: saturate(0.75) drop-shadow(0 12px 24px rgba(180, 83, 9, 0.12));
  transition: opacity 240ms ease;
}

.side-cutout img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 960px) {
  .side-col {
    width: clamp(200px, 23vw, 340px);
    padding: 76px 18px 36px;
    justify-content: space-evenly;
  }

  .side-cutout {
    height: clamp(160px, 20vh, 235px);
    opacity: 0.28;
  }

  .side-cutout:nth-child(even) {
    align-self: center;
  }
}

/* Minimal sticky progress line */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(15, 23, 42, 0.05);
  z-index: 60;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15 0%, #f59e0b 48%, #ea580c 100%);
  transition: width 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  display: flex;
  flex-direction: column;
}

/* Minimal floating glass header */
.fl-nav-wrap {
  padding-top: 2px;
  margin-bottom: 18px;
}

.fl-nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-soft);
}

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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15 0%, #ea580c 100%);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.45);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

html[lang="en"] .brand-title {
  letter-spacing: -0.02em;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fef9c3;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  color: #854d0e;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, #fffdf7 0%, #fff7ed 100%);
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.nav-admin-btn:hover {
  border-color: var(--orange-deep);
  background: #ffedd5;
  transform: translateY(-1px);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}

.lang-toggle:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

.lang-toggle .active {
  color: var(--orange-deep);
  font-weight: 700;
}

.lang-sep {
  color: var(--line-2);
}

/* Main survey stage */
.survey-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 0 16px;
}

.stage-container {
  width: 100%;
}

/* Clean airy minimal card */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  animation: cardEnter 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 520px) {
  .card {
    padding: 32px 28px;
  }
}

/* Cover Splash Hero Card */
.splash-card {
  text-align: center;
  padding: 30px 20px 26px;
  background:
    radial-gradient(75% 55% at 50% 0%, rgba(254, 240, 138, 0.34) 0%, rgba(255, 255, 255, 0) 75%),
    #ffffff;
}

@media (min-width: 520px) {
  .splash-card {
    padding: 36px 28px 30px;
  }
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--bg-warm);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 700;
}

.splash-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-deep);
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.55);
  animation: splashPulse 1.8s infinite;
}

@keyframes splashPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0;
  margin: 0 0 12px;
  color: var(--ink);
}

html[lang="en"] .splash-title {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.splash-title-accent {
  display: block;
  background: linear-gradient(90deg, #d97706 0%, #ea580c 55%, #c2410c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.splash-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0 auto 20px;
  max-width: 44ch;
}

/* Balanced horizontal cutout showcase row on Cover */
.splash-cutouts-strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 10px 8px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff7ed 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  overflow: hidden;
}

.splash-cutout-item {
  width: 56px;
  height: 70px;
  margin: 0 -6px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 180ms ease;
}

@media (min-width: 460px) {
  .splash-cutout-item {
    width: 68px;
    height: 84px;
    margin: 0 -5px;
  }
}

.splash-cutout-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.16));
}

.splash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.splash-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.splash-stat-icon {
  display: inline-flex;
  color: var(--orange-deep);
  flex-shrink: 0;
}

.splash-cta {
  width: 100%;
  min-height: 56px;
  font-size: 1.04rem;
}

.splash-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin: 0;
  border-radius: 999px;
  background: var(--bg-orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--orange-dark);
}

.trust-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 4vw, 1.56rem);
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--ink);
}

html[lang="en"] .card-title {
  letter-spacing: -0.025em;
  line-height: 1.26;
}

.card-subtitle {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--body);
  margin: 0 0 22px;
}

/* Shared-seat invitation banner */
.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  border: 1px solid #fde68a;
  font-size: 0.86rem;
  color: var(--ink);
}

.invite-use-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background-image: var(--pl-orange-bg);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Minimal Searchable Dropdown */
.dropdown-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.dropdown-count-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 700;
}

.dropdown-field {
  position: relative;
  margin-bottom: 6px;
}

.dropdown-trigger {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dropdown-trigger:hover {
  border-color: var(--orange);
}

.dropdown-trigger[aria-expanded="true"] {
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.dropdown-trigger-text.is-placeholder {
  color: var(--muted);
  font-weight: 500;
}

.dropdown-chevron {
  flex-shrink: 0;
  color: var(--orange-deep);
  transition: transform 180ms ease;
}

.dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  margin-top: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.dropdown-search-wrap {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}

.dropdown-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dropdown-search-input:focus {
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.clear-input-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--card-stone);
  color: var(--body);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dropdown-options {
  max-height: 256px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dropdown-option {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 120ms ease;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover,
.dropdown-option.selected {
  background: var(--bg-orange-soft);
  color: var(--orange-dark);
}

.dropdown-option.selected {
  font-weight: 700;
}

.dropdown-sub {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.dropdown-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.seat-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Native-styled clean <select> for Results Seat Switcher */
.results-filter-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  border: 1px solid #fde68a;
}

.results-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}

.native-select-wrap {
  position: relative;
}

.native-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 38px 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.native-select:focus {
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.native-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--orange-deep);
}

/* Friendly minimal option cards + large PNG cutout busts */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  color: var(--ink);
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 130ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.option-card.has-cutout {
  min-height: 76px;
  padding: 10px 16px 10px 12px;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 8px 20px -10px rgba(249, 115, 22, 0.24);
}

.option-card:active {
  transform: scale(0.988);
}

.option-card.selected {
  border-color: var(--orange-deep);
  background: linear-gradient(180deg, #fffdf7 0%, #fff7ed 100%);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.option-card.neutral-pinned {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.42);
  background: #fffdf6;
}

.option-card.neutral-pinned.selected {
  border-style: solid;
  border-color: var(--orange-deep);
  background: #fffbeb;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Larger 66px transparent PNG cutout pedestal */
.option-avatar {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 65%, #fef3c7 0%, #ffedd5 68%, #fffaf2 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--orange-dark);
}

.option-card.selected .option-avatar {
  border-color: var(--orange-deep);
  background: radial-gradient(circle at 50% 65%, #fde68a 0%, #fed7aa 75%, #fff7ed 100%);
}

.option-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.16));
  display: block;
}

.option-avatar--pair {
  width: 96px;
  gap: 0;
  padding: 2px 3px 0;
}

.option-avatar--pair img {
  width: 54%;
  height: 100%;
  flex-shrink: 0;
}

.option-avatar--pair img:first-child {
  margin-right: -10px;
  z-index: 2;
}

.option-avatar--pair img:last-child {
  z-index: 1;
}

.option-avatar--neutral {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  align-items: center;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: #ffffff;
  color: #92400e;
}

.option-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  font-size: 0.75rem;
  transition: all 150ms ease;
}

.option-card.selected .option-check {
  border-color: transparent;
  background-image: var(--pl-orange-bg);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
}

.options-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.options-divider::before,
.options-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Primary Pill CTA & Secondary Actions */
.card-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-primary {
  flex: 1;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(254, 240, 138, 0.45);
  background-image: var(--pl-orange-bg);
  box-shadow: var(--pl-orange-shadow);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

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

.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-back {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-skip {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: var(--bg-warm);
  color: #92400e;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

/* Results Infographics Dashboard */
.demo-banner {
  padding: 10px 13px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-banner {
  padding: 9px 13px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.demo-reset-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background-image: var(--pl-key-bg);
  box-shadow: var(--pl-key-shadow);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.scope-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--card-stone);
  border: 1px solid var(--line);
}

.scope-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
}

.scope-tab.active {
  background-image: var(--pl-orange-bg);
  box-shadow: 0 6px 14px -4px rgba(249, 115, 22, 0.42);
  color: #ffffff;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.kpi-card {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffdf7 0%, #fffbeb 100%);
  border: 1px solid rgba(245, 158, 11, 0.24);
  text-align: center;
}

.kpi-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 3px;
}

.kpi-value {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}

.metric-section {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
}

.metric-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

.metric-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Circle Donut Infographic */
.donut-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fffdf8;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

@media (min-width: 460px) {
  .donut-layout {
    flex-direction: row;
    align-items: center;
  }
}

.donut-wrap {
  position: relative;
  width: 184px;
  height: 184px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(249, 115, 22, 0.12));
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-center-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
}

.donut-center-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  margin-top: 2px;
}

.donut-legend {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.81rem;
}

.legend-item.is-pick {
  background: rgba(254, 243, 199, 0.72);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center bottom;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.legend-name {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-item.is-pick .legend-name {
  font-weight: 700;
  color: var(--orange-dark);
}

.legend-pct {
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

/* Horizontal Ranked Bar Graph */
.bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
}

.bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.bar-label.user-pick {
  font-weight: 700;
  color: var(--orange-dark);
}

.bar-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.bar-pct {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f8f5f0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.bar-pct.is-top {
  background: #fef08a;
  color: #78350f;
}

.bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #f3f0ea;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde047 0%, #f59e0b 100%);
  transition: width 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.primary {
  background: linear-gradient(90deg, #facc15 0%, #f97316 55%, #ea580c 100%);
}

/* Vertical Column Bar Graph (Age Breakdown) */
.col-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  padding: 22px 10px 10px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(
      to top,
      rgba(245, 158, 11, 0.12) 0,
      rgba(245, 158, 11, 0.12) 1px,
      transparent 1px,
      transparent 36px
    ),
    #fffdf8;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.col-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.col-pct {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink);
}

.col-track {
  width: 100%;
  max-width: 48px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(245, 158, 11, 0.09);
  border-radius: 12px;
  overflow: hidden;
}

.col-pillar {
  width: 100%;
  min-height: 4px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 55%, #ea580c 100%);
  transition: height 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.col-pillar.is-pick {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 60%, #c2410c 100%);
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.32);
}

.col-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--body);
  text-align: center;
}

.col-item.is-pick .col-label {
  color: var(--orange-dark);
}

/* WhatsApp Share Card */
.share-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 150% at 92% 20%, rgba(253, 224, 71, 0.35) 0%, rgba(251, 146, 60, 0.18) 48%, rgba(255, 255, 255, 0) 80%),
    #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.share-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.share-desc {
  font-size: 0.86rem;
  color: var(--body);
  margin: 0 0 14px;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-whatsapp {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #1aa393 0%, #128c7e 60%, #0d7266 100%);
  box-shadow: 0 10px 24px -8px rgba(18, 140, 126, 0.5);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-copy {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-image: var(--pl-key-bg);
  box-shadow: var(--pl-key-shadow);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.turnstile-mount {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Warm Dark Footer */
.fl-footer {
  position: relative;
  overflow: hidden;
  background: var(--dark-footer);
  color: #fefce8;
  padding: 18px 16px;
  margin-top: auto;
  z-index: 1;
}

.fl-footer__glow {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 140px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(250, 204, 21, 0.34), rgba(249, 115, 22, 0.2) 50%, rgba(249, 115, 22, 0) 80%);
}

.fl-footer__inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-text {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.6;
  color: rgba(254, 249, 195, 0.78);
}

.footer-admin-row {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.footer-admin-btn:hover {
  background: rgba(249, 115, 22, 0.24);
  border-color: rgba(253, 224, 71, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

.voted-home-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f0fdf4 0%, #fffbeb 100%);
  border: 1px solid #86efac;
  color: #14532d;
  text-align: left;
  font-size: 0.85rem;
}

.voted-home-card .option-sub {
  color: #166534;
  margin-top: 2px;
}

.results-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.results-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 130ms ease, transform 120ms ease;
}

.results-home-btn:hover {
  border-color: var(--orange-deep);
  background: var(--bg-warm);
  transform: translateY(-1px);
}

/* Loading & toast */
.loading-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 18px;
  text-align: center;
  color: var(--body);
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid rgba(245, 158, 11, 0.22);
  border-top-color: var(--orange-deep);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background-image: var(--pl-key-bg);
  border: 1px solid rgba(253, 224, 71, 0.35);
  box-shadow: var(--pl-key-shadow);
  color: #fef08a;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 70;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .progress-fill,
  .bar-fill,
  .col-pillar,
  .option-card,
  .btn-primary,
  .dropdown-chevron {
    animation: none !important;
    transition: none !important;
  }
}

/* Public live announcement & pause notice */
.live-notice-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Admin Panel Layout */
.admin-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 16px 36px;
}

.admin-main {
  width: 100%;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-login-card {
  max-width: 880px;
  margin: 24px auto;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .admin-login-card {
    grid-template-columns: 1.05fr 1fr;
    margin: 38px auto;
  }
}

.admin-login-brand {
  position: relative;
  padding: 28px 24px;
  background:
    radial-gradient(80% 80% at 15% 10%, rgba(254, 240, 138, 0.72) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #fffbeb 0%, #fff7ed 58%, #ffedd5 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 780px) {
  .admin-login-brand {
    padding: 36px 32px;
    border-bottom: none;
    border-right: 1px solid rgba(245, 158, 11, 0.22);
  }
}

.admin-brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 3.2vw, 1.68rem);
  font-weight: 800;
  line-height: 1.38;
  color: var(--ink);
  margin: 12px 0 8px;
}

.admin-brand-sub {
  font-size: 0.9rem;
  color: var(--body);
  margin: 0;
  line-height: 1.55;
}

.admin-features-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.admin-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-feat-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.08);
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.74rem;
  font-weight: 700;
  color: #92400e;
}

.admin-login-pane {
  padding: 28px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 780px) {
  .admin-login-pane {
    padding: 38px 34px;
  }
}

.admin-login-heading {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.admin-login-desc {
  font-size: 0.88rem;
  color: var(--body);
  margin: 0 0 20px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.admin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  display: inline-flex;
}

.admin-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 42px 11px 42px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-md);
  background: #fffdf9;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.admin-input:focus {
  background: #ffffff;
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.admin-pw-toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-pw-toggle:hover {
  background: var(--bg-warm);
  color: var(--orange-deep);
}

.admin-error-box {
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.83rem;
  font-weight: 600;
}

.admin-login-foot {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.admin-uid-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  border: 1px solid #fde68a;
  font-size: 0.84rem;
}

.admin-uid-box code {
  padding: 4px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  font-size: 0.82rem;
}

.admin-setup-steps {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.7;
}

.admin-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-export-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-kpi-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 16px;
  background: var(--card-stone);
  border: 1px solid var(--line);
}

.admin-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.active {
  background-image: var(--pl-orange-bg);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .admin-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  background: #fffdf7;
  font-weight: 700;
  color: #92400e;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-del-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-danger-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #fca5a5;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* Quick District Chips (Step 1) */
.quick-chips-block {
  margin-top: 14px;
}

.quick-chips-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.quick-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: #fffdf8;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 130ms ease, background-color 130ms ease, transform 120ms ease;
}

.quick-chip:hover,
.quick-chip.selected {
  border-color: var(--orange-deep);
  background: var(--bg-orange-soft);
  color: var(--orange-dark);
  transform: translateY(-1px);
}

.quick-chip-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Direct-Tap Compact 2-Column Seat Grid (Step 2) */
.seat-filter-inline {
  padding: 0;
  border: none;
  background: transparent;
  margin-bottom: 12px;
}

.seat-filter-inline .clear-input-btn {
  right: 8px;
}

.seat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.seat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.seat-tile:hover {
  border-color: rgba(249, 115, 22, 0.52);
  box-shadow: 0 6px 14px -8px rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}

.seat-tile.selected {
  border-color: var(--orange-deep);
  background: linear-gradient(180deg, #fffdf7 0%, #fff7ed 100%);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.seat-tile-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.seat-ac-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
}

.seat-tile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.seat-tile-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

/* Compact 2-Column Graphic Option Tiles (Step 3 Issues, Step 4 Neutral, Step 5 Age) */
.options-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.span-full {
  grid-column: 1 / -1;
}

.option-tile {
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 10px 30px 10px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform 120ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.option-tile > .option-check {
  position: absolute;
  top: 8px;
  right: 8px;
}

.option-tile:hover {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 6px 14px -8px rgba(249, 115, 22, 0.24);
  transform: translateY(-1px);
}

.option-tile.selected {
  border-color: var(--orange-deep);
  background: linear-gradient(180deg, #fffdf7 0%, #fff7ed 100%);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.option-tile.neutral-pinned {
  min-height: 52px;
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.44);
  background: #fffdf6;
}

.option-tile.neutral-pinned.selected {
  border-style: solid;
  border-color: var(--orange-deep);
  background: #fffbeb;
}

.option-tile--wide {
  min-height: 56px;
}

.issue-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.issue-icon-badge--neutral {
  width: 30px;
  height: 30px;
  background: #ffffff;
  color: #92400e;
}

.option-tile.selected .issue-icon-badge {
  background: var(--pl-orange-bg);
  border-color: transparent;
  color: #ffffff;
}

.option-tile-text {
  flex: 1;
  min-width: 0;
}

.option-tile-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.26;
}

.option-tile .option-sub {
  font-size: 0.7rem;
  line-height: 1.22;
}

.option-check--sm {
  width: 20px;
  height: 20px;
  font-size: 0.68rem;
}

.option-tile.selected .option-check,
.seat-tile.selected .option-check,
.poll-tile.selected .option-check {
  border-color: transparent;
  background-image: var(--pl-orange-bg);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
}

/* Smart 2-Column Graphic Leader Tiles (Step 4 Poll) */
.poll-grid-smart {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.poll-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px 11px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 130ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.poll-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 8px 18px -10px rgba(249, 115, 22, 0.25);
}

.poll-tile.selected {
  border-color: var(--orange-deep);
  background: linear-gradient(180deg, #fffdf7 0%, #fff7ed 100%);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.poll-tile-check {
  position: absolute;
  top: 7px;
  right: 7px;
}

.poll-tile-avatar {
  width: 68px;
  height: 58px;
  margin-bottom: 7px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 65%, #fef3c7 0%, #ffedd5 68%, #fffaf2 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
}

.poll-tile-avatar--pair {
  width: 98px;
  padding: 2px 3px 0;
}

.poll-tile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.16));
}

.poll-tile-avatar--pair img {
  width: 55%;
}

.poll-tile-avatar--pair img:first-child {
  margin-right: -10px;
  z-index: 2;
}

.poll-tile-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.24;
  margin-bottom: 2px;
}

.poll-tile-sub {
  font-size: 0.69rem;
  color: var(--muted);
  line-height: 1.24;
}

.option-card--compact {
  min-height: 54px;
  padding: 9px 12px;
}

.option-card--compact .option-avatar--neutral {
  width: 38px;
  height: 38px;
}

/* Admin Smart Visual Graphs & Inspector Cards */
.kpi-card--ring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
}

.kpi-ring-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-ring-pct {
  position: absolute;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 780px) {
  .admin-charts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stacked-strip {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f0ea;
}

.stacked-strip.is-compact {
  height: 7px;
  margin-bottom: 4px;
}

.stacked-seg {
  height: 100%;
  transition: width 350ms ease;
}

.admin-dist-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-inspector-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffdf8 0%, #fff7ed 100%);
  border: 1px solid rgba(249, 115, 22, 0.34);
  box-shadow: 0 12px 26px -14px rgba(249, 115, 22, 0.25);
}

.admin-inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-graph-btn,
.admin-close-btn {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: #fffbeb;
  color: #9a3412;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.admin-graph-btn:hover,
.admin-close-btn:hover {
  border-color: var(--orange-deep);
  background: #ffedd5;
}

.admin-kpi-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 780px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-charts-grid .donut-wrap {
  width: 158px;
  height: 158px;
}

@media (max-width: 420px) {
  .fl-nav-pill {
    gap: 8px;
    padding: 8px 10px 8px 12px;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .nav-admin-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
}

/* Celebratory Rewarding Support Bottom Sheet / Modal */
.support-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeBackdrop 160ms ease;
}

@media (max-width: 520px) {
  .support-modal-backdrop {
    padding: 0;
  }
}

@media (min-width: 521px) {
  .support-modal-backdrop {
    align-items: center;
  }
}

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

.support-modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-bottom: none;
  box-shadow: 0 -14px 44px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  text-align: left;
  animation: sheetRise 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 521px) {
  .support-modal-card {
    border-radius: 22px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.26);
  }
}

@keyframes sheetRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-reward-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #ffedd5 65%, #fed7aa 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
}

.support-reward-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #9a3412;
}

.support-check-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.32);
  flex-shrink: 0;
}

.support-modal-body {
  padding: 18px 18px 20px;
}

.support-chai-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.support-chai-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(234, 88, 12, 0.16));
}

.support-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.support-mini-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fffdf5;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.72rem;
  font-weight: 700;
}

.support-close-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: #ffffff;
  color: #78350f;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-close-x:hover {
  border-color: var(--orange-deep);
  color: var(--orange-dark);
}

.support-modal-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
}

.support-modal-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--body);
}

.inline-seat-section {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 158, 11, 0.36);
  animation: cardEnter 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.support-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  text-decoration: none;
  margin-bottom: 10px;
}

.support-upi-box {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fffdf8;
  border: 1px dashed rgba(245, 158, 11, 0.48);
  text-align: left;
}

.support-upi-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}

.support-upi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.support-upi-row code {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.support-upi-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.support-amt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: #ffffff;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.support-amt-pill:hover {
  background: #ffedd5;
  border-color: var(--orange-deep);
}

.support-dismiss-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  background: #fafaf9;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.support-dismiss-btn:hover {
  border-color: var(--line-2);
  background: #f5f5f4;
}

.btn-support-inline {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.48);
  background: #fffbeb;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-support-inline:hover {
  background: #ffedd5;
  border-color: var(--orange-deep);
}

.admin-quick-reset-btn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-quick-reset-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.reset-option-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: #fffdf8;
  margin-bottom: 10px;
}

.reset-option-box--danger {
  border-color: #fecaca;
  background: #fef2f2;
  margin-bottom: 0;
}

.reset-option-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-danger-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Native theme matching for <bondin-support> web component */
bondin-support {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

bondin-support::part(button) {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(254, 240, 138, 0.45);
  background-image: var(--pl-orange-bg);
  background-color: var(--orange-deep);
  box-shadow: var(--pl-orange-shadow);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

button,
a,
select,
input {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .app-shell {
    max-width: 600px;
    padding: 24px 18px 40px;
  }
}

/* Hard-closed ECI emergency screen, 3-mode admin radio & All-UP lock card */
.closed-notice-card {
  text-align: center;
  padding: 36px 24px;
}

.closed-icon-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mode-radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 680px) {
  .mode-radio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mode-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: #ffffff;
  font-size: 0.84rem;
  cursor: pointer;
}

.mode-radio-card input {
  margin-top: 3px;
  accent-color: var(--orange-deep);
}

.mode-radio-card.selected {
  border-color: var(--orange-deep);
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16);
}

.mode-radio-card--danger.selected {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
}

.locked-up-card {
  position: relative;
  margin-bottom: 16px;
  padding: 24px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: linear-gradient(180deg, #fffdf8 0%, #fff7ed 100%);
  overflow: hidden;
  text-align: center;
}

.locked-blur-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  opacity: 0.28;
  filter: blur(2px);
}

.locked-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde047, #f97316);
}

.locked-up-overlay {
  position: relative;
  z-index: 1;
}

.locked-pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 800;
}

bondin-support::part(button):hover {
  filter: brightness(1.04);
}
