/* ============================================================
   SIMULASI E-VOTING PILKADES DARMAGA
   Master Stylesheet - Fullscreen • Landscape • Mobile First
   ============================================================ */

:root {
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-light: #cffafe;
  --primary-dark: #0e7490;

  --secondary: #14b8a6;
  --secondary-hover: #0d9488;
  --secondary-light: #ccfbf1;

  --blue: #0ea5e9;
  --blue-hover: #0284c7;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;

  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;

  --bg-dark-1: #07111f;
  --bg-dark-2: #0d192b;
  --bg-dark-3: #10263d;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15);

  --btn-height: 56px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-dark-1);
  color: var(--slate-100);
  font-family: var(--font-main);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  touch-action: manipulation;
}

body.in-simulation {
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  height: 100dvh !important;
}

/* Base App Container */
#app-root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #07111f 0%, #0d192b 50%, #10263d 100%);
  position: relative;
}

body.in-simulation #app-root {
  height: 100dvh !important;
  overflow: hidden !important;
}

/* ============================================================
   ORIENTATION OVERLAY (Shown in Portrait Mode DURING SIMULATION)
   ============================================================ */
#orientation-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: radial-gradient(circle at 50% 40%, #0d192b 0%, #07111f 100%);
  color: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  box-sizing: border-box;
}

@media screen and (orientation: portrait) {
  body.in-simulation #orientation-overlay {
    display: flex !important;
  }
}

.orient-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 2px solid #06b6d4;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: rotatePhone 2.5s infinite ease-in-out;
}

.orient-icon-box svg {
  width: 42px;
  height: 42px;
  fill: #f59e0b;
}

@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  65% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.orient-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  color: #f59e0b;
  max-width: 280px;
  line-height: 1.3;
}

.orient-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 280px;
}

/* ============================================================
   TOP BAR & STEP PROGRESS
   ============================================================ */
.app-header {
  height: 56px;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.header-brand:hover {
  background: rgba(255, 255, 255, 0.04);
}

.header-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-brand:hover .header-logo-wrap {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.6);
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-title-box {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: #06b6d4;
  letter-spacing: 0.5px;
}

/* Compact Step Progress */
.stage-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-500);
  font-size: 10.5px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-700);
  transition: all 0.3s ease;
}

.progress-line {
  width: 14px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
}

.progress-step.completed {
  color: var(--primary-light);
}
.progress-step.completed .progress-dot {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}
.progress-step.completed + .progress-line {
  background: var(--primary);
}

.progress-step.active {
  color: #ffffff;
}
.progress-step.active .progress-dot {
  background: var(--accent-gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

/* Top Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-top {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-top:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-icon-top:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
}

.btn-audio-circular {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-audio-circular.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.audio-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.badge-simulasi-top {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ============================================================
   MAIN CONTENT VIEWPORT (100dvh Single Screen)
   ============================================================ */
.app-main {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.screen-view {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(0.98);
}

.screen-view.active {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Universal Screen Container (Strict No-Scroll 2-Column Landscape Layout, Centered & Proportional) */
.screen-container {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  padding: 12px clamp(16px, 2.5vw, 36px);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.screen-visual {
  flex: 1.1;
  min-width: 0;
  min-height: 0;
  max-width: 520px;
  height: auto;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.screen-content {
  flex: 1;
  min-width: 320px;
  max-width: 480px;
  height: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 16px);
}

/* Standalone Splash Container (Centered for Celebration & Screen Done) */
.splash-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 24px;
  position: relative;
  z-index: 2;
}

.splash-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.splash-sub {
  font-size: 16px;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 6px;
}

.splash-tagline {
  font-size: 14px;
  color: var(--slate-400);
  font-style: italic;
}

/* Screen Typography */
.screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(15, 118, 110, 0.5);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.8px;
}

.screen-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.screen-desc {
  font-size: 14.5px;
  color: var(--slate-300);
  line-height: 1.45;
}

/* Big Action Buttons (Senior / Lansia Friendly) */
.btn-primary-action {
  height: var(--btn-height);
  min-height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 800;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  transition: all 0.2s ease;
  touch-action: manipulation;
  width: fit-content;
  min-width: 220px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary-action:hover, .btn-primary-action:active {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.6);
}

.btn-secondary-action {
  height: var(--btn-height);
  min-height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary-action:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

/* ============================================================
   SCREEN 0: DIGITAL VOTING EXPERIENCE LANDING PAGE
   ============================================================ */
#screen-home {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.99);
}

#screen-home.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#screen-home.hero-dimming {
  opacity: 0.3;
  filter: blur(4px);
  transform: scale(0.98);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

/* Ambient Background Lights & Grid */
.landing-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.glow-orb-teal {
  top: 15%;
  right: 12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(20, 184, 166, 0.06) 45%, transparent 70%);
  animation: ambientFloatOrb 12s ease-in-out infinite alternate;
}

.glow-orb-blue {
  bottom: 10%;
  left: 5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 65%);
}

.digital-circuit-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 95%);
}

@keyframes ambientFloatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.08); }
  100% { transform: translate(20px, -20px) scale(0.95); }
}

/* Main Responsive Landing Container */
.landing-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 36px 14px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

/* 2-Column Desktop / Landscape Layout */
.hero-split-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* ============================================================
   HERO LEFT COLUMN: STORYTELLING & CTA
   ============================================================ */
.hero-text-col {
  flex: 1.15;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  animation: heroTextSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
  animation: pulseDot 2s infinite ease-in-out;
}

.hero-kicker-sub {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  color: #f8fafc;
  letter-spacing: -0.5px;
  margin: 0;
}

.highlight-evoting {
  background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.hero-title-sub {
  display: block;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-subtitle {
  font-size: clamp(13px, 1.15vw, 15.5px);
  line-height: 1.5;
  color: #94a3b8;
  font-weight: 500;
  max-width: 520px;
  margin: 0;
}

.hero-trust-indicators {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.trust-icon {
  width: 14px;
  height: 14px;
  color: #14b8a6;
  flex-shrink: 0;
}

/* Primary CTA Section */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-start-simulation {
  height: 62px;
  min-width: 270px;
  width: fit-content;
  padding: 0 32px;
  border-radius: 18px;
  background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 50%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35), 0 0 16px rgba(20, 184, 166, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: pulseGlowCta 3s infinite ease-in-out;
  touch-action: manipulation;
}

@keyframes pulseGlowCta {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35), 0 0 16px rgba(20, 184, 166, 0.25);
  }
  50% {
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.55), 0 0 26px rgba(14, 165, 233, 0.4);
  }
}

.btn-start-simulation:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.55), 0 0 28px rgba(14, 165, 233, 0.4);
}

.btn-start-simulation:hover .cta-arrow-box {
  transform: translateX(4px);
}

.btn-start-simulation:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.6);
}

.cta-arrow-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.cta-arrow-box svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.hero-microtext {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--slate-400);
  font-weight: 600;
  flex-wrap: wrap;
}

.micro-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.micro-icon {
  width: 14px;
  height: 14px;
  color: #38bdf8;
  flex-shrink: 0;
}

.micro-sep {
  color: var(--slate-600);
}

.hero-disclaimer-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  color: var(--slate-400);
  line-height: 1.4;
  width: fit-content;
  max-width: 540px;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.hero-disclaimer-bar:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.disclaimer-icon {
  width: 14px;
  height: 14px;
  color: #f59e0b;
  flex-shrink: 0;
}

/* ============================================================
   HERO RIGHT COLUMN: REALISTIC DIGITAL TPS SCENE
   ============================================================ */
.hero-visual-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: heroVisualFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroVisualFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.tps-scene-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tps-artwork-glow {
  position: absolute;
  inset: 5%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(20, 184, 166, 0.07) 50%, transparent 75%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
}

.tps-terminal-artwork {
  position: relative;
  z-index: 2;
  width: 100%;
}

.tps-vector-scene {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}

/* Floating Glass Badges */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(13, 25, 43, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: floatBadge 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.badge-verified {
  top: 15px;
  right: -5px;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
}

.badge-icon-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
}

.badge-scan {
  bottom: 50px;
  left: -10px;
  border-color: rgba(6, 182, 212, 0.45);
  animation-delay: -2s;
}

.badge-pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
  animation: pulseDot 1.5s infinite;
}

.badge-ballot {
  bottom: 25px;
  right: 15px;
  border-color: rgba(14, 165, 233, 0.4);
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  animation-delay: -1s;
}

.ballot-svg-icon {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  flex-shrink: 0;
}

.badge-title {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.badge-subtitle {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
}

/* Holographic Admin Gesture Emblem */
.holographic-logo {
  position: absolute;
  top: 0px;
  left: 15px;
  z-index: 12;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.holographic-logo:hover {
  transform: scale(1.08);
}

.holographic-logo:active {
  transform: scale(0.95);
}

.logo-holo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(6, 182, 212, 0.6);
  animation: rotateRing 14s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tps-holo-emblem {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
  background: #ffffff;
  border: 2px solid #06b6d4;
}

/* SVG Interior Animations */
.svg-laser-line {
  animation: laserSweep 2s ease-in-out infinite;
}

@keyframes laserSweep {
  0%, 100% { transform: translateY(-2px); opacity: 0.4; }
  50% { transform: translateY(5px); opacity: 1; }
}

.svg-touch-pulse {
  animation: touchPulse 2.2s ease-out infinite;
}

@keyframes touchPulse {
  0% { r: 3px; opacity: 1; }
  100% { r: 12px; opacity: 0; }
}

/* ============================================================
   BOTTOM: QUICK PROCESS INDICATOR (5 Steps)
   ============================================================ */
.hero-quick-process {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  z-index: 3;
  flex-shrink: 0;
  animation: heroProcessSlideIn 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.process-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.process-step-num {
  font-size: 10px;
  font-weight: 900;
  color: #06b6d4;
  letter-spacing: 0.5px;
}

.process-icon-box {
  width: 18px;
  height: 18px;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon-box svg {
  width: 16px;
  height: 16px;
}

.process-label {
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.process-arrow {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 900;
}

/* ============================================================
   HUD TRANSITION OVERLAY
   ============================================================ */
.hud-transition-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hud-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hud-spinner-box {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-spinner-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: #06b6d4;
  animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hud-pulse-glow {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.25);
  filter: blur(8px);
}

.hud-transition-text {
  font-size: 14px;
  font-weight: 800;
  color: #22d3ee;
  letter-spacing: 0.8px;
}

/* ============================================================
   SCREEN 1, 3, 6, 7: REALISTIC PHOTO STAGE CARDS
   ============================================================ */
.tps-photo-card {
  width: 100%;
  max-width: 480px;
  height: clamp(220px, 42vh, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(20, 184, 166, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(20, 184, 166, 0.15);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tps-stage-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tps-photo-card:hover .tps-stage-photo {
  transform: scale(1.03);
}

.tps-photo-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 8px #14b8a6;
  flex-shrink: 0;
}

.pulse-emerald {
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
  animation: pulseEmerald 1.8s infinite ease-in-out;
}

@keyframes pulseEmerald {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.tps-card-art {
  width: 100%;
  max-width: 380px;
  height: 220px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tps-card-art svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   SCREEN 2: VERIFIKASI & ANIMASI
   ============================================================ */
.voter-card-sim {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  border-left: 6px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 320px;
}

.voter-card-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.voter-card-code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: 1.5px;
}

.voter-card-status {
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
}

.voter-card-status.unverified {
  background: var(--warning-light);
  color: var(--warning);
}

.voter-card-status.verified {
  background: var(--success-light);
  color: var(--success);
}

/* Verification Live Checklist Animation */
.verify-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

.verify-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-300);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.3;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.verify-item.checked {
  opacity: 1;
  transform: translateX(0);
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.4);
  color: #ffffff;
}

.verify-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slate-700);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.verify-item.checked .verify-check-icon {
  background: var(--success);
}

/* ============================================================
   SCREEN 4: BARCODE SIMULASI & SCANNER
   ============================================================ */
.barcode-box-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.barcode-photo-card {
  width: 100%;
  max-width: 480px;
  height: clamp(220px, 40vh, 330px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.2);
  background: #0f172a;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.barcode-photo-card:hover {
  transform: translateY(-2px);
  border-color: #22d3ee;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 211, 238, 0.35);
}

.barcode-photo-card:active {
  transform: scale(0.97);
}

.barcode-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.barcode-photo-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444, 0 0 28px #f87171;
  z-index: 4;
  animation: scanLaserSmooth 2.4s infinite ease-in-out;
}

.barcode-photo-card.scanning .barcode-photo-laser {
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e, 0 0 32px #4ade80;
  animation: scanLaserRapid 0.6s infinite ease-in-out;
}

.barcode-photo-card.scanning {
  border-color: #22c55e;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

@keyframes scanLaserSmooth {
  0% { top: 25%; opacity: 0.85; }
  50% { top: 75%; opacity: 1; }
  100% { top: 25%; opacity: 0.85; }
}

@keyframes scanLaserRapid {
  0% { top: 20%; }
  50% { top: 80%; }
  100% { top: 20%; }
}

.barcode-card-touch {
  width: 280px;
  height: 150px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 3px solid #e2e8f0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.barcode-card-touch:active {
  transform: scale(0.96);
  border-color: var(--primary);
}

.barcode-laser-line {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 4px;
  background: #22d3ee;
  box-shadow: 0 0 15px #06b6d4, 0 0 30px #22d3ee;
  display: none;
  z-index: 10;
}

.barcode-card-touch.scanning .barcode-laser-line {
  display: block;
  animation: scanLaser 1s ease-in-out infinite;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 96%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

.barcode-card-touch.scanning {
  border-color: #06b6d4;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.barcode-graphic {
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.barcode-bar {
  background: #0f172a;
  height: 100%;
}

.barcode-code-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 4px;
}

.barcode-touch-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
  animation: floatBounce 1.5s infinite ease-in-out;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ============================================================
   SCREEN 5: SURAT SUARA DIGITAL (BALLOT)
   ============================================================ */
.ballot-screen-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  position: relative;
}

.ballot-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ballot-header-info h2 {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.ballot-header-info p {
  font-size: 12px;
  color: var(--slate-300);
}

.ballot-watermark-badge {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Candidates Grid (Proportional, Elegant, Landscape Horizontal Center) */
.ballot-candidates-grid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.ballot-candidates-grid::-webkit-scrollbar {
  display: none;
}

/* Candidate Card - Highly Proportional, User-Friendly & Senior Accessible */
.candidate-card-touch {
  flex: 0 1 245px;
  width: 245px;
  min-width: 200px;
  max-width: 280px;
  height: 94%;
  max-height: 275px;
  background: #ffffff;
  border-radius: 16px;
  border: 3px solid #cbd5e1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

.candidate-card-touch:hover, .candidate-card-touch:active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  border-color: #0284c7;
}

.candidate-card-touch.selected {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35), 0 12px 30px rgba(16, 185, 129, 0.4);
  background: #f0fdf4;
}

/* Official Header Strip on Candidate Card */
.cand-card-header {
  width: 100%;
  height: 36px;
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  flex-shrink: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.candidate-card-touch.selected .cand-card-header {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

/* Large, Proportional Candidate Photo Frame (Natural Portrait Containment) */
.cand-photo-box {
  width: calc(100% - 16px);
  flex: 1;
  max-height: 142px;
  min-height: 100px;
  margin: 6px auto 4px;
  border-radius: 10px;
  overflow: hidden;
  background: #090d16;
  border: 1.5px solid #cbd5e1;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cand-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.25s ease;
}

.candidate-card-touch:hover .cand-photo-box img {
  transform: scale(1.03);
}

/* Candidate Name */
.cand-name {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 4px 8px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

/* Tactile Select Button */
.cand-btn-select {
  width: calc(100% - 16px);
  height: 38px;
  margin: 0 8px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.candidate-card-touch.selected .cand-btn-select {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* Floating Selected Badge */
.cand-selected-ribbon {
  position: absolute;
  top: 42px;
  right: 12px;
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  display: none;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.candidate-card-touch.selected .cand-selected-ribbon {
  display: flex;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ballot-bottom-bar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* ============================================================
   CONFIRMATION POP-UP MODAL (User-Friendly Center Overlay)
   ============================================================ */
.confirm-popup-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
}

.confirm-popup-backdrop.active {
  display: flex !important;
  animation: fadeInModal 0.2s ease-out forwards !important;
}

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

.confirm-popup-card {
  width: 95% !important;
  max-width: 520px !important;
  max-height: 94vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 4px solid var(--primary) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  padding: 16px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  animation: scaleUpModal 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
  color: #0f172a !important;
  position: relative !important;
  overflow-y: auto !important;
}

@keyframes scaleUpModal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.confirm-popup-header {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 2px !important;
}

.confirm-popup-sub {
  font-size: 12px !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
}

.confirm-popup-preview {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 10px 16px !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}

.confirm-popup-photo {
  width: 95px !important;
  height: 95px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #090d16 !important;
  border: 2px solid #cbd5e1 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.confirm-popup-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.confirm-popup-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  flex: 1 !important;
}

.confirm-popup-num {
  display: inline-block !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 1px !important;
  margin-bottom: 4px !important;
}

.confirm-popup-name {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.confirm-popup-vision {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 4px !important;
  line-height: 1.3 !important;
}

.confirm-popup-actions {
  display: flex !important;
  gap: 12px !important;
  width: 100% !important;
}

.btn-popup-cancel {
  flex: 1 !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  border: 2px solid #cbd5e1 !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-popup-cancel:active {
  background: #e2e8f0 !important;
}

.btn-popup-confirm {
  flex: 1.4 !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.btn-popup-confirm:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.5) !important;
}

/* ============================================================
   REALISTIC PRINTER & KOTAK SUARA SIMULATION
   ============================================================ */
.ballot-box-scene {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  max-width: 440px;
  height: clamp(155px, 26vh, 180px);
  position: relative;
  margin-top: 4px;
}

/* Left: Digital Voting Machine with Thermal Printer */
.machine-printer-unit {
  width: 175px;
  height: 165px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 2.5px solid #334155;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.machine-label {
  font-size: 9.5px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.machine-slot-box {
  width: 145px;
  height: 11px;
  background: #020617;
  border-radius: 5px;
  border: 1px solid #475569;
  position: relative;
}

/* Paper emerging from printer */
.printed-vvpat-paper {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 125px;
  height: 0px;
  background: #fffdf5;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: #0f172a;
  padding: 0 6px;
  overflow: hidden;
  z-index: 20;
  transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.printed-vvpat-paper.slide-out {
  height: 115px;
}

/* Animation: Paper glides smoothly into ballot box slot */
.printed-vvpat-paper.drop-into-box {
  animation: glideIntoBox 2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glideIntoBox {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  45% {
    transform: translate(95px, -30px) scale(0.9) rotate(6deg);
    opacity: 1;
  }
  75% {
    transform: translate(195px, 10px) scale(0.8) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(195px, 60px) scale(0.65) rotate(0deg);
    opacity: 0.15;
  }
}

/* Right: Official Pilkades Ballot Box (Kotak Suara) */
.official-ballot-box {
  width: 175px;
  height: 165px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2.5px solid #0f766e;
  border-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(15, 118, 110, 0.2);
  flex-shrink: 0;
}

.ballot-box-slot-top {
  width: 115px;
  height: 10px;
  background: #020617;
  border-radius: 5px;
  border: 2px solid #f59e0b;
  margin-bottom: 8px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  position: relative;
}

.ballot-box-emblem {
  width: 44px;
  height: 44px;
  margin-top: 6px;
  opacity: 0.95;
  object-fit: contain;
}

.ballot-box-text {
  font-size: 10px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.8px;
  text-align: center;
  margin-top: 4px;
}

.ballot-box-padlock {
  position: absolute;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.printer-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.printer-led.active {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* ============================================================
   SCREEN 7: COMPLETE & CHECKLIST
   ============================================================ */
.complete-summary-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  max-width: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
}

.summary-check-item span {
  color: var(--success);
  font-weight: 900;
}

/* ============================================================
   ADMIN MODAL & DASHBOARD
   ============================================================ */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-modal-backdrop.active {
  display: flex;
}

.admin-card-dialog {
  width: 100%;
  max-width: 420px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  color: #ffffff;
}

.admin-dashboard-container {
  width: 95%;
  height: 92%;
  max-width: 1100px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.admin-top-nav {
  height: 52px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.admin-tabs-list {
  display: flex;
  gap: 6px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn.active, .admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-main-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  user-select: text;
  -webkit-user-select: text;
}

/* Admin Form Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-300);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  user-select: text;
  -webkit-user-select: text;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
}

/* Admin Stat Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-val {
  font-size: 24px;
  font-weight: 900;
  color: #22d3ee;
}

.admin-stat-lbl {
  font-size: 11.5px;
  color: var(--slate-400);
  font-weight: 600;
}

/* Candidate Preview in Admin */
.candidate-crud-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   RESPONSIVE DESIGN (Smartphone Landscape & Tablet Focus)
   ============================================================ */
@media screen and (orientation: landscape) and (max-height: 540px) {
  .app-header {
    height: 44px;
    padding: 0 14px;
  }
  .header-logo-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .header-title {
    font-size: 11.5px;
  }
  .header-subtitle {
    font-size: 8.5px;
  }
  .badge-simulasi-top {
    font-size: 9px;
    padding: 3px 8px;
  }
  .btn-icon-top {
    width: 32px;
    height: 32px;
  }

  /* Landing Screen on Mobile Landscape (Strict 100dvh, zero scroll) */
  .landing-wrapper {
    padding: 6px 16px 8px 16px;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
  }
  .hero-split-grid {
    gap: 12px;
    flex: 1;
    min-height: 0;
    align-items: center;
  }
  .hero-text-col {
    gap: 5px;
    max-width: 52%;
    flex: 1.1;
  }
  .hero-kicker-row {
    gap: 5px;
  }
  .hero-kicker-badge {
    font-size: 8.5px;
    padding: 2px 7px;
  }
  .hero-kicker-sub {
    font-size: 9.5px;
    display: none;
  }
  .hero-title {
    font-size: 24px;
    line-height: 1.1;
  }
  .hero-title-sub {
    font-size: 14px;
    margin-top: 1px;
  }
  .hero-subtitle {
    font-size: 10.5px;
    line-height: 1.3;
    max-width: 360px;
  }
  .hero-trust-indicators {
    gap: 8px;
    margin-top: 0;
  }
  .trust-item {
    font-size: 9.5px;
    gap: 3px;
  }
  .trust-icon {
    width: 10px;
    height: 10px;
  }
  .hero-cta-wrapper {
    gap: 3px;
    margin-top: 2px;
  }
  .btn-start-simulation {
    height: 44px;
    min-width: 190px;
    padding: 0 18px;
    font-size: 13.5px;
    border-radius: 12px;
    gap: 10px;
  }
  .cta-arrow-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }
  .cta-arrow-box svg {
    width: 14px;
    height: 14px;
  }
  .hero-microtext {
    font-size: 9px;
    gap: 5px;
  }
  .micro-icon {
    width: 10px;
    height: 10px;
  }
  .hero-disclaimer-bar {
    padding: 2px 7px;
    font-size: 8.5px;
    margin-top: 0;
    max-width: 320px;
  }
  .disclaimer-icon {
    width: 10px;
    height: 10px;
  }
  .hero-visual-col {
    max-width: 48%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tps-scene-container {
    max-width: 290px;
    max-height: calc(100dvh - 125px);
  }
  .tps-vector-scene {
    max-height: calc(100dvh - 130px);
    width: auto;
    max-width: 100%;
  }
  .floating-badge {
    padding: 2px 6px;
    border-radius: 6px;
    gap: 4px;
  }
  .badge-title {
    font-size: 8px;
  }
  .badge-subtitle {
    font-size: 7px;
  }
  .badge-icon-check {
    width: 13px;
    height: 13px;
    font-size: 7.5px;
  }
  .holographic-logo {
    width: 36px;
    height: 36px;
    top: -5px;
    left: 5px;
  }
  .hero-quick-process {
    padding-top: 4px;
    gap: 4px;
    flex-shrink: 0;
  }
  .process-card {
    padding: 3px 7px;
    border-radius: 6px;
    gap: 4px;
  }
  .process-step-num {
    font-size: 8px;
  }
  .process-icon-box {
    width: 13px;
    height: 13px;
  }
  .process-icon-box svg {
    width: 11px;
    height: 11px;
  }
  .process-label {
    font-size: 8.5px;
  }
  .process-arrow {
    font-size: 9px;
  }

  /* Internal screens scaling */
  .screen-container {
    padding: 8px 16px;
    gap: 14px;
  }
  .screen-title {
    font-size: 20px;
  }
  .screen-desc {
    font-size: 13px;
  }
  .btn-primary-action, .btn-secondary-action {
    height: 48px;
    min-height: 44px;
    font-size: 14px;
  }
  .tps-card-art {
    height: 180px;
  }
  .tps-photo-card {
    height: 175px;
    max-width: 290px;
  }
  .tps-photo-overlay-badge {
    padding: 5px 10px;
    font-size: 9.5px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }
  .barcode-photo-card {
    height: 170px;
    max-width: 280px;
  }
  .ballot-box-scene {
    height: 140px;
    gap: 14px;
  }
  .machine-printer-unit, .official-ballot-box {
    width: 135px;
    height: 130px;
    padding: 6px;
  }
  .machine-slot-box, .ballot-box-slot-top {
    width: 110px;
    height: 9px;
  }
  .printed-vvpat-paper {
    width: 95px;
    left: 8px;
  }
  .printed-vvpat-paper.slide-out {
    height: 85px;
  }
  .ballot-box-emblem {
    width: 32px;
    height: 32px;
    margin-top: 2px;
  }
  .ballot-box-text {
    font-size: 8.5px;
  }
  .candidate-card-touch {
    max-height: 195px;
  }
  .cand-photo-box {
    width: 70px;
    height: 70px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #print-receipt-section, #print-receipt-section * {
    visibility: visible;
  }
  #print-receipt-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0 auto;
    padding: 10px;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: monospace;
    font-size: 12pt;
  }
}

/* ============================================================
   CANDIDATE EDITION - MODERN CIVIC MEDIA & PROFILE STYLES
   ============================================================ */

/* Public Top Civic Navbar */
.civic-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.civic-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.civic-nav-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.civic-nav-titles {
  display: flex;
  flex-direction: column;
}

.civic-nav-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.civic-nav-sub {
  font-size: 11px;
  color: var(--primary, #06b6d4);
  font-weight: 700;
  letter-spacing: 0.8px;
}

.civic-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.civic-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.civic-nav-links a:hover {
  color: var(--primary, #06b6d4);
}

.civic-nav-cta {
  background: linear-gradient(135deg, var(--primary, #0f766e) 0%, var(--secondary, #0284c7) 100%);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.civic-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

.civic-mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
}

/* Civic Container Layout */
.civic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section (Split Grid Desktop, Stacked Mobile) */
.hero-candidate-section {
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(15, 118, 110, 0.25) 0%, transparent 55%),
              radial-gradient(circle at 20% 70%, rgba(2, 132, 199, 0.2) 0%, transparent 50%);
}

.hero-candidate-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-candidate-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.candidate-number-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  width: fit-content;
}

.kicker-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #f59e0b);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.kicker-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent, #f59e0b);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-candidate-village {
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-candidate-name {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-candidate-tagline {
  font-size: clamp(15px, 2vw, 18px);
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.5;
  border-left: 3px solid var(--primary, #06b6d4);
  padding-left: 14px;
  font-style: italic;
}

.hero-vision-snippet {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.hero-vision-snippet strong {
  color: #ffffff;
}

/* Hero CTA Group */
.hero-candidate-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-hero-profile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-hero-profile:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-hero-simulation {
  background: linear-gradient(135deg, var(--primary, #0f766e) 0%, var(--secondary, #0284c7) 100%);
  border: none;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.btn-hero-simulation:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.55);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 8px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: #4ade80;
}

/* Hero Right: Candidate Photo Card */
.hero-candidate-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.candidate-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #0d192b;
}

.candidate-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.candidate-photo-frame:hover img {
  transform: scale(1.03);
}

.candidate-photo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-num-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #f59e0b);
}

.badge-num-text {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.candidate-photo-verified {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #4ade80;
}

/* Profile Full Section */
.profile-section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-kicker {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary, #06b6d4);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Biodata Cards Grid */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.bio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s ease;
}

.bio-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.bio-card-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary, #06b6d4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bio-card-val {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}

/* Big Modern Vision Card */
.vision-card-big {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18) 0%, rgba(2, 132, 199, 0.14) 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vision-card-quote-mark {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 96px;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(6, 182, 212, 0.15);
  pointer-events: none;
}

.vision-card-tag {
  display: inline-block;
  background: var(--accent, #f59e0b);
  color: #000000;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.vision-card-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.vision-card-text {
  font-size: clamp(15px, 2vw, 18px);
  color: #e2e8f0;
  line-height: 1.65;
  font-weight: 500;
}

/* Numbered Missions Vertical Cards */
.missions-vertical-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.mission-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  align-items: center;
  transition: all 0.25s ease;
}

.mission-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(4px);
}

.mission-num-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--primary, #06b6d4);
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.mission-content p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Programs Cards Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.program-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
}

.program-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.program-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.program-cat-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent, #f59e0b);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.program-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.program-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.program-card-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Gallery Grid & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d192b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 31, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.gallery-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.gallery-caption {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.3;
}

/* Lightbox Modal */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.lightbox-info {
  text-align: center;
  color: #ffffff;
}

.btn-close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-close-lightbox:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Public Contacts & Socials */
.social-contacts-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.social-btn.wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #000000;
}

.btn-share-profile {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: var(--accent, #f59e0b);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  transition: all 0.2s ease;
}

.btn-share-profile:hover {
  background: var(--accent, #f59e0b);
  color: #000000;
  transform: translateY(-2px);
}

/* Simulation Transition Banner */
.simulation-cta-banner {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.2) 0%, rgba(13, 25, 43, 0.8) 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  margin: 48px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sim-banner-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent, #f59e0b);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.sim-banner-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.sim-banner-desc {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 24px;
}

.btn-start-banner-sim {
  background: linear-gradient(135deg, var(--primary, #0f766e) 0%, var(--secondary, #0284c7) 100%);
  border: none;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-start-banner-sim:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.65);
}

/* Civic Footer */
.civic-footer {
  background: #040912;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 32px;
  color: #94a3b8;
  font-size: 13px;
}

.footer-disclaimer-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: #fca5a5;
  line-height: 1.5;
  text-align: center;
}

.footer-sponsorship {
  font-size: 13px;
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-dev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-dev-row a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-dev-row a:hover {
  color: var(--primary, #06b6d4);
}

/* Simulation Header Left Group & Exit Button */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-exit-simulation-bar {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-exit-simulation-bar:hover {
  background: rgba(239, 68, 68, 0.32);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateX(-2px);
}

.btn-exit-simulation-bar:active {
  transform: scale(0.96);
}

/* Backward compatibility */
.btn-exit-simulation {
  display: none;
}

/* Control Center Layout & Tabs */
.admin-control-center-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  overflow: hidden;
}

.admin-sidebar-nav {
  background: #091322;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-category {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 10px 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.18s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-nav-link.active {
  background: var(--primary, #0f766e);
  color: #ffffff;
  font-weight: 700;
}

.admin-content-pane {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: calc(88vh - 60px);
}

/* Profile Completeness Checklist */
.checklist-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.checklist-items-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.check-pill.complete {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.check-pill.incomplete {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Image Cropper Preview */
.cropper-preview-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

.crop-preview-frame {
  width: 90px;
  height: 112px; /* 4:5 ratio */
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--primary, #06b6d4);
  background: #000;
}

.crop-preview-frame.square {
  width: 80px;
  height: 80px; /* 1:1 ratio */
}

.crop-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Local QR Code Generator Pane */
.qr-generator-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.qr-canvas-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.qr-canvas-box #admin-qr-code-canvas {
  max-width: 100%;
  height: auto;
}

/* Setup Wizard Modal */
.wizard-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.wizard-backdrop.active {
  display: flex;
}

.wizard-card {
  background: #0d192b;
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  padding: 32px;
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.step-node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #475569;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  transition: all 0.25s ease;
}

.wizard-step-node.active .step-node-num {
  background: var(--primary, #06b6d4);
  border-color: #38bdf8;
  color: #000000;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}

.wizard-step-node.completed .step-node-num {
  background: #16a34a;
  border-color: #4ade80;
  color: #ffffff;
}

.step-node-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.wizard-step-node.active .step-node-lbl {
  color: #38bdf8;
}

/* Mobile Responsiveness for Civic Sections */
@media (max-width: 768px) {
  .civic-nav {
    padding: 10px 16px;
  }
  .civic-nav-links {
    display: none;
  }
  .civic-mobile-menu-btn {
    display: block;
  }
  .hero-candidate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-candidate-left {
    align-items: center;
  }
  .candidate-number-kicker {
    margin: 0 auto;
  }
  .hero-candidate-tagline {
    border-left: none;
    border-bottom: 2px solid var(--primary, #06b6d4);
    padding: 0 0 10px;
  }
  .hero-candidate-cta {
    justify-content: center;
    width: 100%;
  }
  .btn-hero-profile, .btn-hero-simulation {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
  .admin-control-center-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
  }
  .admin-nav-category {
    display: none;
  }
  .admin-nav-link {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
  }
  .qr-generator-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SIMULATION VIEWPORT ENHANCEMENTS (ZERO CUT-OFF 2-COLUMN LAYOUT)
   ============================================================ */
.step-split-container {
  width: 100%;
  max-width: 1160px;
  height: 100%;
  max-height: calc(100dvh - 66px);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.5vw, 44px);
  box-sizing: border-box;
  overflow: hidden;
}

.step-left-visual {
  flex: 1.15;
  max-width: 530px;
  height: 100%;
  max-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
  min-height: 0;
}

.step-scene-img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.scene-badge-bottom {
  position: absolute;
  bottom: 12px;
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.4px;
  pointer-events: none;
}

.step-right-content {
  flex: 1;
  max-width: 480px;
  height: auto;
  max-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.8vh, 16px);
  min-width: 280px;
  box-sizing: border-box;
}

.step-kicker-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent, #f59e0b);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 2px;
}

.step-heading {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.step-description {
  font-size: clamp(13px, 1.15vw, 15px);
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.instruction-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(12px, 1.05vw, 13.5px);
  color: #94a3b8;
  line-height: 1.45;
}

.bullet-check {
  color: #4ade80;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

/* Step 2B: Success Verification Card */
.success-pass-card {
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid rgba(74, 222, 128, 0.5);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(74, 222, 128, 0.2);
}

/* Step 4: Barcode Scanner Box */
.barcode-interactive-box {
  background: #091322;
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.2);
}

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #22d3ee, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: scanLaser 2s infinite ease-in-out;
}

@keyframes scanLaser {
  0% { top: 15%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

/* Step 5B: Printing Animation Card */
.printing-animation-card {
  background: #091322;
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.paper-printing-slip {
  background: #ffffff;
  color: #0f172a;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  margin-top: 12px;
}

/* Step 6: Receipt Card Mockup */
.receipt-card-mockup {
  background: #091322;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px 20px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   BALLOT CANDIDATE SELECTION RULES & NON-PRIMARY RESTRICTION
   ============================================================ */
.candidate-card-touch.is-non-primary {
  border-color: #94a3b8;
  background: #f8fafc;
  cursor: pointer;
}

.candidate-card-touch.is-non-primary .cand-card-header {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.candidate-card-touch.is-non-primary .cand-btn-select {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.candidate-card-touch.is-non-primary:hover .cand-btn-select {
  background: #e2e8f0;
  color: #475569;
}

.candidate-card-touch.shake-card {
  animation: shakeBallotCard 0.5s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.35) !important;
}

@keyframes shakeBallotCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Floating Notice Toast for Non-Primary Clicks */
.ballot-toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #f59e0b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
  z-index: 9999;
  font-size: 13.5px;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 90vw;
  animation: popInNotice 0.25s ease-out;
}

.ballot-toast-notice.active {
  display: flex;
}

@keyframes popInNotice {
  0% { transform: translate(-50%, 20px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Short Screen Landscape Adaptations (e.g. height <= 520px) */
@media (max-height: 520px) and (orientation: landscape) {
  .app-header {
    height: 46px;
    padding: 0 12px;
  }
  .header-logo-wrap {
    width: 32px;
    height: 32px;
  }
  .header-title {
    font-size: 11.5px;
  }
  .header-subtitle {
    display: none;
  }
  .btn-exit-simulation-bar {
    padding: 4px 10px;
    font-size: 10.5px;
  }
  .stage-progress {
    gap: 4px;
  }
  .progress-step span {
    font-size: 9px;
  }
  .step-split-container {
    max-height: calc(100dvh - 48px);
    padding: 6px 14px;
    gap: 16px;
  }
  .step-scene-img {
    max-height: calc(100dvh - 72px);
  }
  .step-heading {
    font-size: 18px;
  }
  .step-description {
    font-size: 12px;
    line-height: 1.35;
  }
  .instruction-bullet-list {
    display: none;
  }
  .btn-primary-action {
    min-height: 40px;
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
  }
}

