/* ==========================================================================
   ORANJE.AI — AI Readiness Assessment
   Visual Design System v5.0 (Full Suite: Kiosk + Admin Portal)
   Brand Identity: Oranje AI (https://oranje.ai)
   ========================================================================== */

:root {
  /* Brand Colors */
  --oranje: #F26A21;
  --oranje-light: #FF823D;
  --oranje-deep: #D4530F;
  --oranje-glow: rgba(242, 106, 33, 0.28);
  --oranje-subtle: rgba(242, 106, 33, 0.08);

  /* Neutrals & Surfaces */
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-faint: #94A3B8;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5F9;
  --paper: #FFFFFF;
  --stage-bg: #070A12;
  --line: #E2E8F0;
  --line-soft: #EEF2F6;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* Accents */
  --coral: #EF4444;
  --turquoise: #0D9488;
  --amber: #F59E0B;
  --violet: #6366F1;
  --violet-deep: #4F46E5;
  --emerald: #10B981;
  --pink: #EC4899;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #FF823D 0%, #F26A21 50%, #D4530F 100%);
  --grad: var(--grad-brand);
  --grad-soft: linear-gradient(135deg, rgba(242, 106, 33, 0.12), rgba(99, 102, 241, 0.08));

  /* Geometry & Elevation */
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 70px -15px rgba(0, 0, 0, 0.65), 0 0 50px rgba(242, 106, 33, 0.16);
  --shadow-brand: 0 10px 25px -4px rgba(242, 106, 33, 0.45);
  --shadow-hard: none;
  --shadow-hard-sm: none;
  --shadow-hard-hover: none;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s var(--ease);
  --transition: 0.25s var(--ease);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* ==========================================================================
   Atmospheric Stage & Background (High-Tech Enterprise AI)
   ========================================================================== */
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--stage-bg);
  background-image: 
    radial-gradient(circle at 85% 12%, rgba(242, 106, 33, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(242, 106, 33, 0.05) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle animated ambient spotlight behind the kiosk */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(242, 106, 33, 0.12) 0%, rgba(99, 102, 241, 0.06) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 12s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-46%, -54%) scale(1.08); opacity: 1; }
}

/* Ambient Background Glow Orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.bg-glow-1 {
  top: -10%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(242, 106, 33, 0.32) 0%, rgba(242, 106, 33, 0.06) 50%, transparent 70%);
  animation: glowPulse 10s ease-in-out infinite alternate;
}

.bg-glow-2 {
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.24) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  animation: glowPulse 14s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.55; }
  100% { transform: scale(1.1) translate(20px, -20px); opacity: 0.8; }
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 700;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--oranje);
  color: #fff;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--oranje);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Kiosk Card Enclosure
   ========================================================================== */
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.kiosk {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 680px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: kioskEntry 0.45s var(--ease);
}

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

/* Glowing top accent stripe */
.kiosk::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: var(--grad-brand);
  flex: none;
  box-shadow: 0 2px 14px var(--oranje-glow);
}

.panel {
  padding: clamp(26px, 5vw, 36px) clamp(22px, 5vw, 32px) 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==========================================================================
   Header Elements & Brand Mark
   ========================================================================== */
.eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 12px;
}

.mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink);
}

.mark .brand-logo {
  height: 34px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--oranje);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oranje);
  display: inline-block;
  box-shadow: 0 0 8px var(--oranje);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  display: inline-block;
  animation: liveBlink 1.8s infinite;
  margin-right: 4px;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.link-btn:hover {
  color: var(--oranje);
  background: var(--surface);
  border-color: rgba(242, 106, 33, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ==========================================================================
   Typography & Hero Content
   ========================================================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--oranje-subtle);
  color: var(--oranje);
  border: 1px solid rgba(242, 106, 33, 0.25);
  margin-bottom: 12px;
  width: fit-content;
}

h1.hero {
  font-size: clamp(26px, 6vw, 32px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1.hero .highlight {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.58;
  margin-bottom: 22px;
  font-weight: 400;
}

/* Feature Pillars */
.feature-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}

.feature-pill .icon {
  font-size: 12px;
  color: var(--oranje);
}

/* ==========================================================================
   Form Fields & Registration Inputs
   ========================================================================== */
label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field {
  margin-bottom: 16px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--ink);
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=tel]::placeholder,
input[type=password]::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}

input:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--oranje);
  box-shadow: 0 0 0 4px var(--oranje-glow);
}

/* Input Icon Wrapper */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  pointer-events: none;
  transition: color var(--transition-fast);
  flex: none;
}

.input-wrap input {
  padding-left: 42px;
}

.input-wrap:focus-within .input-icon {
  color: var(--oranje);
}

/* Consent Card */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 6px 0 22px;
  border: 1.5px solid var(--line);
  transition: border-color var(--transition-fast);
}

.consent:hover {
  border-color: #CBD5E1;
}

.consent input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--oranje);
  cursor: pointer;
  border-radius: 4px;
}

.consent p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #FFFFFF;
  box-shadow: var(--shadow-brand);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(242, 106, 33, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -2px rgba(242, 106, 33, 0.35);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  background: #CBD5E1;
  color: #64748B;
  border: none;
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface-3);
  border-color: #CBD5E1;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn-quiet {
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-quiet:hover {
  background: var(--surface-2);
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  flex-wrap: wrap;
}

.btn-row .btn {
  flex: 1;
  min-width: 130px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.error-note {
  color: var(--coral);
  font-size: 12.5px;
  margin: 4px 0 14px;
  min-height: 16px;
  font-weight: 600;
}

/* ==========================================================================
   Question Flow & Chevron Arrow Progress Track
   ========================================================================== */
.track {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 24px;
}

.seg {
  flex: 1;
  display: flex;
  gap: 2px;
}

.tick {
  flex: 1;
  height: 12px;
  border: 0;
  background: #E2E8F0;
  clip-path: polygon(
    0 0,
    82% 0,
    100% 50%,
    82% 100%,
    0 100%,
    18% 50%
  );
  transition: all .25s ease;
}

.tick.on {
  background: var(--seg-color, var(--oranje));
  box-shadow: 0 0 10px color-mix(in srgb, var(--seg-color, var(--oranje)) 60%, transparent);
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--seg-color, var(--oranje));
  background: color-mix(in srgb, var(--seg-color, var(--oranje)) 12%, white);
  border: 1px solid color-mix(in srgb, var(--seg-color, var(--oranje)) 35%, transparent);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.q-count {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h2.question {
  font-size: clamp(19px, 4.5vw, 23px);
  line-height: 1.32;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 10px;
}

.opt {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.opt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--seg-color, var(--oranje));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.opt:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.opt.selected {
  border-color: var(--seg-color, var(--oranje));
  background: color-mix(in srgb, var(--seg-color, var(--oranje)) 8%, white);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--seg-color, var(--oranje)) 25%, transparent);
}

.opt.selected::before {
  opacity: 1;
}

.opt .ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: #FFFFFF;
}

.opt:hover .ring {
  border-color: #94A3B8;
}

.opt.selected .ring {
  border-color: var(--seg-color, var(--oranje));
  background: var(--seg-color, var(--oranje));
  box-shadow: 0 0 10px color-mix(in srgb, var(--seg-color, var(--oranje)) 50%, transparent);
}

.opt.selected .ring::after {
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

/* ==========================================================================
   Results Screen & Readiness Gauge
   ========================================================================== */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 20px;
  position: relative;
}

.gauge-wrap svg {
  filter: drop-shadow(0 6px 16px var(--oranje-glow));
}

.gauge-num {
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.band-label {
  font-size: clamp(22px, 5vw, 26px);
  margin: 0 0 14px;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.catbars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.catbar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catbar-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.catbar-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  overflow: hidden;
}

.catbar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 1.2s var(--ease);
}

.badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 4px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pop 0.35s var(--ease) backwards;
  border: 1px solid transparent;
}

.badge.strength {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.badge.focus {
  background: #FFF7ED;
  color: #9A3412;
  border-color: #FED7AA;
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Confetti */
.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 12px;
  opacity: 0.95;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to { transform: translateY(640px) rotate(600deg); opacity: 0; }
}

/* ==========================================================================
   Report & QR Code Screen
   ========================================================================== */
.report-card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.report-head .who {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.report-head .who b {
  color: var(--ink);
  font-size: 15px;
}

.report-score {
  text-align: right;
}

.report-score .n {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.report-score .l {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 3px;
}

.report-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}

.report-line:last-child {
  border-bottom: none;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

#qr-img {
  border: 3px solid #FFFFFF;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  width: 128px;
  height: 128px;
  background: #FFFFFF;
}

.countdown {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
  font-weight: 500;
}

.countdown button {
  background: none;
  border: none;
  text-decoration: underline;
  color: var(--oranje);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 0 3px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 10px);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: all 0.25s var(--ease);
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   ADMIN / STAFF PORTAL (Complete Redesign)
   ========================================================================== */

/* Login Modal Card */
.kiosk.admin-login-kiosk {
  max-width: 440px;
  min-height: auto;
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.admin-login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 32px 34px;
}

.admin-login-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.admin-login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}

.admin-login-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 22px;
}

.passcode-wrap {
  width: 100%;
  position: relative;
  margin-bottom: 8px;
}

.passcode-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: all var(--transition-fast);
}

.passcode-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--oranje);
  box-shadow: 0 0 0 4px var(--oranje-glow);
}

/* Dashboard Enclosure */
.kiosk.admin-dashboard-kiosk {
  max-width: 1120px;
  width: 100%;
  min-height: auto;
  margin: 16px auto 40px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Admin Header Bar */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header-brand .brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.admin-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: var(--oranje-subtle);
  color: var(--oranje);
  border: 1px solid rgba(242, 106, 33, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Toolbar (Tabs & Action Buttons) */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
}

.admin-tabs {
  display: inline-flex;
  background: #FFFFFF;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  gap: 4px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.admin-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.admin-tab.active {
  color: #FFFFFF;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(242, 106, 33, 0.35);
}

.admin-tab .badge-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
}

.admin-tab.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.admin-tools-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Content Body */
.admin-body {
  padding: 28px;
  background: #FFFFFF;
  min-height: 520px;
}

/* Stat Cards Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--oranje-subtle);
  color: var(--oranje);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

.admin-stat-info .n {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  font-family: 'Space Grotesk', sans-serif;
}

.admin-stat-info .l {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Filter & Search Bar */
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.admin-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 13.5px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.admin-search-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--oranje);
  box-shadow: 0 0 0 3px var(--oranje-glow);
}

.admin-band-select {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

/* Data Table */
.admin-table-container {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background: var(--surface-2);
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(242, 106, 33, 0.035);
}

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

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 2px 6px rgba(242, 106, 33, 0.25);
}

.participant-info .name {
  font-weight: 700;
  color: var(--ink);
}

.participant-info .company {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 1px;
}

.score-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

/* Color-coded Band Pills */
.band-tag-frontrunner {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.band-tag-ready {
  background: #EEF2FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.band-tag-getting-started {
  background: #FFF7ED;
  color: #9A3412;
  border: 1px solid #FED7AA;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.band-tag-curious {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.action-view-btn {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-view-btn:hover {
  background: var(--oranje);
  color: #FFFFFF;
  border-color: var(--oranje);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(242, 106, 33, 0.3);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.15s ease;
}

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

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: modalIn 0.2s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

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

.modal-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  flex-wrap: wrap;
}

.answers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--seg-color, var(--oranje));
  border-radius: var(--radius-xs);
  padding: 12px 14px;
}

.answer-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.answer-a {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--seg-color, var(--oranje));
  background: color-mix(in srgb, var(--seg-color, var(--oranje)) 12%, white);
  border: 1px solid color-mix(in srgb, var(--seg-color, var(--oranje)) 30%, transparent);
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ==========================================================================
   Question Bank Editor Styles
   ========================================================================== */
.qb-section {
  margin-bottom: 28px;
}

.qb-section h4 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.cat-row {
  display: grid;
  grid-template-columns: 1fr 44px 64px auto auto;
  gap: 8px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
}

.cat-row input[type=text] {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 6px;
}

.cat-row input[type=number] {
  padding: 8px 6px;
  font-size: 13px;
  border-radius: 6px;
  width: 100%;
  border: 1.5px solid var(--line);
}

.cat-row input[type=color] {
  width: 38px;
  height: 34px;
  padding: 2px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  background: #fff;
}

.q-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--seg-color, var(--oranje));
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.q-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

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

.q-cat-select {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-family: inherit;
  background: #FFFFFF;
  min-width: 140px;
}

.q-active {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.q-active input {
  accent-color: var(--oranje);
}

.q-text {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  margin-bottom: 10px;
  background: var(--surface-2);
}

.q-text:focus {
  outline: none;
  border-color: var(--oranje);
  background: #FFFFFF;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.opt-row {
  display: grid;
  grid-template-columns: 1fr 56px 30px;
  gap: 6px;
  align-items: center;
}

.opt-text {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  font-size: 12.5px;
  font-family: inherit;
  background: var(--surface-2);
}

.opt-points {
  padding: 8px 6px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  font-size: 12.5px;
  font-family: inherit;
  text-align: center;
  background: var(--surface-2);
}

.opt-remove {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 6px;
  width: 30px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

.opt-remove:hover {
  background: #FCA5A5;
  color: #991B1B;
}

.q-error {
  color: var(--coral);
  font-size: 12px;
  min-height: 14px;
  margin: 2px 0 4px;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .admin-stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .admin-header { padding: 16px 20px; }
  .admin-toolbar { padding: 12px 20px; }
  .admin-body { padding: 20px 16px; }
  .admin-filter-bar { flex-direction: column; align-items: stretch; }
  .admin-search-wrap { max-width: none; }
}

@media (max-width: 480px) {
  .stage { padding: 0; align-items: stretch; }
  .kiosk { border-radius: 0; min-height: 100dvh; box-shadow: none; border: none; }
  .kiosk.admin-login-kiosk { margin: 0; min-height: 100dvh; border-radius: 0; }
  .kiosk.admin-dashboard-kiosk { margin: 0; min-height: 100dvh; border-radius: 0; }
  .cat-row { grid-template-columns: 1fr 1fr; }
  .cat-row .cat-name { grid-column: 1 / -1; }
  .opt-row { grid-template-columns: 1fr 52px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
