/* ══════════════════════════════════════════════════════════════════════
   MOY FUN / HOBBY TIME — REGISTRO CLIENTE KIOSKO
   Diseño optimizado para tablets
   Flujo: Cola POS → Responsiva → Firma → Éxito
══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800;900&family=Syne:wght@700;800;900&display=swap');

:root {
  --primary: #1a56db;
  --primary-light: #3b75f5;
  --primary-dark: #123d9c;

  --success: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;

  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;

  --bg-light: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #dbe3ee;

  --dark-bg: #07111f;
  --dark-card: rgba(11, 23, 40, .82);
  --dark-border: rgba(255, 255, 255, .10);

  --shadow-soft: 0 18px 48px rgba(15, 23, 42, .10);
  --shadow-card: 0 22px 70px rgba(15, 23, 42, .14);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark-bg);
  color: var(--text);
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════════════════════════════════
   Loading
══════════════════════════════════════════════════════════════════════ */

#loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  background: var(--dark-bg);
  color: #dbeafe;
}

.spinner {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, .16);
  border-top-color: var(--primary-light);
  animation: spin .8s linear infinite;
}

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

/* ══════════════════════════════════════════════════════════════════════
   Screens
══════════════════════════════════════════════════════════════════════ */

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Ya no usamos la bienvenida vieja */
#welcomeScreen {
  display: none !important;
}

/* Quitar canguro / íconos decorativos */
.queue-icon,
.welcome-icon,
.form-header-icon {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════
   Pantalla de cola / tarjetas pendientes
══════════════════════════════════════════════════════════════════════ */

#queueScreen {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(26, 86, 219, .28), transparent 34%),
    radial-gradient(circle at 95% 95%, rgba(34, 197, 94, .20), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #0b1728 48%, #070d18 100%);
}

#queueScreen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 20px;
}

.queue-bg-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .45;
  pointer-events: none;
}

.queue-bg-glow-1 {
  top: -160px;
  left: -160px;
  background: rgba(26, 86, 219, .46);
}

.queue-bg-glow-2 {
  right: -160px;
  bottom: -160px;
  background: rgba(34, 197, 94, .32);
}

.queue-wrap {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 34px;
  background: rgba(11, 23, 40, .82);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .44),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
  text-align: center;
}

.queue-wrap::-webkit-scrollbar {
  width: 8px;
}

.queue-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.queue-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  min-height: 74px;
}

.queue-logo {
  display: block;
  max-width: 170px;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.queue-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 184, 0, .13);
  border: 1px solid rgba(255, 184, 0, .28);
  color: #ffdf83;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.queue-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -2px;
}

.queue-subtitle {
  max-width: 620px;
  margin: 14px auto 10px;
  color: rgba(255, 255, 255, .70);
  font-size: clamp(17px, 2.3vw, 23px);
  font-weight: 800;
  line-height: 1.25;
}

.queue-branch {
  min-height: 22px;
  margin: 6px auto 12px;
  color: rgba(255, 255, 255, .50);
  font-size: 12px;
  font-weight: 800;
}

.queue-status {
  min-height: 24px;
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, .60);
  font-size: 13px;
  font-weight: 800;
}

.queue-status.success {
  color: #bbf7d0;
}

.queue-status.error {
  color: #fecaca;
}

.queue-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 20px auto 14px;
}

.queue-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .12);
  outline: none;
  width: 100%;
  min-height: 170px;
  padding: 20px;
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .045)),
    radial-gradient(circle at top right, rgba(26, 86, 219, .22), transparent 42%);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease,
    opacity .18s ease;
}

.queue-card:hover,
.queue-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 0, .46);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, .38),
    0 0 0 4px rgba(255, 184, 0, .10);
}

.queue-card:active {
  transform: translateY(-1px) scale(.99);
}

.queue-card.loading,
.queue-card:disabled {
  cursor: wait;
  opacity: .65;
}

.queue-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.queue-card-label {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.queue-card-name {
  margin: 0;
  color: #ffffff;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.02;
  letter-spacing: -.5px;
  font-weight: 900;
  text-transform: uppercase;
  word-break: break-word;
}

.queue-card-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 184, 0, .16);
  color: #ffd36a;
  border: 1px solid rgba(255, 184, 0, .25);
  font-size: 20px;
}

.queue-card-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.queue-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(26, 86, 219, .16);
  border: 1px solid rgba(96, 165, 250, .22);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 900;
}

.queue-pill.gold {
  background: rgba(255, 184, 0, .13);
  border-color: rgba(255, 184, 0, .28);
  color: #ffdf83;
}

.queue-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 16px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #1a56db, #1747b3);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(26, 86, 219, .30);
}

.queue-empty {
  max-width: 540px;
  margin: 32px auto 10px;
  padding: 30px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .055);
  border: 1px dashed rgba(255, 255, 255, .18);
}

.queue-empty-icon {
  font-size: 50px;
  margin-bottom: 10px;
}

.queue-empty-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 8px;
}

.queue-empty-text {
  color: rgba(255, 255, 255, .58);
  font-size: 15px;
  line-height: 1.45;
}

.queue-actions {
  margin-top: 16px;
}

.queue-refresh-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .075);
  color: rgba(255, 255, 255, .82);
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.queue-refresh-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .11);
}

.queue-hint {
  margin-top: 16px;
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════
   Formulario / responsiva
══════════════════════════════════════════════════════════════════════ */

#formScreen {
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(circle at 12% 6%, rgba(26, 86, 219, .10), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

#formScreen.active {
  display: block;
  padding: 24px 16px;
}

.form-header {
  width: min(1080px, 100%);
  min-height: 86px;
  margin: 0 auto 18px;
  padding: 16px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.form-header-logo {
  display: block;
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.form-header-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #64748b;
  font-size: 13px;
  font-weight: 950;
}

.step-dot.active {
  background: var(--primary);
  color: #ffffff;
}

.step-dot.done {
  background: var(--success);
  color: #ffffff;
}

.step-line {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: #e5e7eb;
}

.step-line.done {
  background: var(--success);
}

.form-body {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: var(--shadow-card);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.kiosk-linked-sale-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(26, 86, 219, .12), rgba(255, 184, 0, .10));
  border: 1px solid rgba(26, 86, 219, .20);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.kiosk-linked-sale-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 24px;
  background: rgba(26,86,219,.14);
  border: 1px solid rgba(26,86,219,.18);
}

.kiosk-linked-sale-title {
  font-size: 15px;
  font-weight: 950;
  color: var(--text);
  margin-bottom: 4px;
}

.kiosk-linked-sale-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 800;
  line-height: 1.35;
}

.section-hdr {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin: 8px 0 18px;
}

.divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 26px 0;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 900;
  color: #1f2937;
}

.req {
  color: var(--danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.person-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-group input:focus,
.form-group select:focus,
.person-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
}

.invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12) !important;
}

.kiosk-person-lock-notice {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff7dc;
  border: 1px solid #f8d36b;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.person-card {
  padding: 18px;
  margin: 0 0 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.person-card .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.person-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #ffffff;
  font-weight: 950;
}

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

.plan-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
}

.plan-btn.selected {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.pbl {
  font-weight: 950;
}

.pbp {
  opacity: .9;
}

.waiver-preview {
  width: 100%;
  max-height: 430px;
  overflow: auto;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  color: #111827;
}

.waiver-preview::-webkit-scrollbar {
  width: 8px;
}

.waiver-preview::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.waiver-preview table {
  width: 100%;
  border-collapse: collapse;
}

.waiver-preview th,
.waiver-preview td {
  border: 1px solid #c5d8f0;
  padding: 7px 10px;
  font-size: 12px;
}

.sig-container {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 20px;
  border: 2px dashed #b6c6dc;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.sig-container canvas,
#signaturePad {
  display: block;
  width: 100%;
  height: 240px;
  background: #ffffff;
  cursor: crosshair;
}

.sig-label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.sig-container.has-sig .sig-label {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════
   Botones
══════════════════════════════════════════════════════════════════════ */

.btn {
  border-radius: 15px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  border: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:active {
  transform: scale(.98);
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(26,86,219,.22);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(22,163,74,.22);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-ghost {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-full {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════
   Pantalla éxito
══════════════════════════════════════════════════════════════════════ */

#successScreen {
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(circle at 12% 6%, rgba(26, 86, 219, .10), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

#successScreen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  text-align: center;
}

.success-icon {
  font-size: 78px;
  margin-bottom: 18px;
}

.success-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}

.success-sub {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 14px;
}

.success-name {
  font-size: 22px;
  font-weight: 950;
  color: var(--primary);
  margin-bottom: 16px;
}

.countdown-bar-wrap {
  width: min(520px, 90%);
  height: 10px;
  border-radius: 999px;
  background: #dbe3ee;
  overflow: hidden;
  margin: 20px auto 10px;
}

.countdown-bar {
  width: 100%;
  height: 100%;
  background: var(--success);
  transition: width .3s ease, background .3s ease;
}

.countdown-txt {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.confetti-piece {
  position: fixed;
  top: -20px;
  border-radius: 4px;
  z-index: 9999;
  animation: confettiFall linear forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: .2;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Toast
══════════════════════════════════════════════════════════════════════ */

#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 99999;
  padding: 13px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 45px rgba(0,0,0,.30);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  transition: transform .25s ease, opacity .25s ease;
}

/* ══════════════════════════════════════════════════════════════════════
   Tablet-first
══════════════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  #queueScreen.active {
    padding: 24px 14px;
  }

  .queue-wrap {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    padding: 26px 22px;
    border-radius: 28px;
  }

  .queue-logo {
    max-width: 150px;
    max-height: 64px;
  }

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

  .queue-card {
    min-height: 164px;
    padding: 18px;
  }

  #formScreen.active {
    padding: 18px 12px;
  }

  .form-header,
  .form-body {
    width: 100%;
  }

  .form-body {
    padding: 22px;
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .person-card .two-col {
    grid-template-columns: 1fr;
  }

  .form-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-indicator {
    width: 100%;
    justify-content: center;
  }

  .waiver-preview {
    max-height: 380px;
    padding: 16px;
  }

  .sig-container,
  .sig-container canvas,
  #signaturePad {
    height: 230px;
  }
}

@media (max-width: 680px) {
  .queue-cards {
    grid-template-columns: 1fr;
  }

  .queue-title {
    font-size: 44px;
  }

  .queue-subtitle {
    font-size: 17px;
  }

  .form-header-logo {
    max-width: 130px;
    max-height: 54px;
  }

  .form-header-title {
    font-size: 19px;
  }

  .step-line {
    width: 28px;
  }

  .kiosk-linked-sale-banner {
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE COMPLETO — Formulario + Firma
══════════════════════════════════════════════════════════════════════ */

#formScreen {
  background:
    radial-gradient(circle at 10% 10%, rgba(26, 86, 219, .28), transparent 34%),
    radial-gradient(circle at 95% 95%, rgba(255, 184, 0, .15), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #0b1728 48%, #070d18 100%) !important;
  color: #e5eefc !important;
}

.form-header,
.form-body {
  background: rgba(11, 23, 40, .86) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
  backdrop-filter: blur(16px) !important;
}

.form-header-title,
.section-hdr,
.form-group label {
  color: #ffffff !important;
}

.form-group input,
.form-group select,
.person-card input {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #ffffff !important;
}

.form-group input::placeholder,
.person-card input::placeholder {
  color: rgba(255,255,255,.45) !important;
}

.form-group input:focus,
.form-group select:focus,
.person-card input:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 4px rgba(96,165,250,.14) !important;
}

.divider {
  border-top-color: rgba(255,255,255,.10) !important;
}

.kiosk-linked-sale-banner {
  background:
    linear-gradient(135deg, rgba(26, 86, 219, .18), rgba(255, 184, 0, .10)) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.kiosk-linked-sale-title {
  color: #ffffff !important;
}

.kiosk-linked-sale-text {
  color: rgba(255,255,255,.68) !important;
}

.kiosk-person-lock-notice {
  background: rgba(255,184,0,.12) !important;
  border-color: rgba(255,184,0,.28) !important;
  color: #ffdf83 !important;
}

.person-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

.person-card span,
.person-card div {
  color: inherit;
}

.person-card [style*="var(--text-muted)"] {
  color: rgba(255,255,255,.55) !important;
}

.plan-btn {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #ffffff !important;
}

.plan-btn.selected {
  background: #1a56db !important;
  border-color: #3b82f6 !important;
}

.waiver-preview {
  background: rgba(255,255,255,.96) !important;
  color: #111827 !important;
  border-color: rgba(255,255,255,.14) !important;
}

.sig-container,
.sig-container canvas,
#signaturePad {
  background: #ffffff !important;
}

.btn-secondary {
  background: rgba(255,255,255,.10) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

.btn-ghost {
  background: rgba(255,255,255,.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   DARK SUCCESS SCREEN
══════════════════════════════════════════════════════════════════════ */

#successScreen {
  background:
    radial-gradient(circle at 20% 20%, rgba(26, 86, 219, .18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, .10), transparent 40%),
    linear-gradient(180deg, #07111f 0%, #0b1728 50%, #070d18 100%) !important;
}

#successScreen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  text-align: center;
}

.success-icon {
  animation: successBounce .6s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes successBounce {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-title {
  color: #ffffff !important;
  animation: successSlideUp .5s cubic-bezier(.22, 1, .36, 1) .15s both;
}

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

.success-sub {
  color: rgba(255, 255, 255, .60) !important;
  animation: successSlideUp .5s cubic-bezier(.22, 1, .36, 1) .25s both;
}

.success-name {
  color: #60a5fa !important;
  font-size: 24px !important;
  animation: successSlideUp .5s cubic-bezier(.22, 1, .36, 1) .35s both;
}

#successScreen .countdown-txt,
.countdown-txt {
  color: rgba(255, 255, 255, .45) !important;
}

.countdown-bar-wrap {
  background: rgba(255, 255, 255, .10) !important;
}

.countdown-bar {
  background: linear-gradient(90deg, #22c55e, #4ade80) !important;
}

/* Confetti visibility on dark bg */
.confetti-piece {
  filter: brightness(1.2);
}

/* ══════════════════════════════════════════════════════════════════════
   SIGNATURE PAD FIX — prevent pointer offset
══════════════════════════════════════════════════════════════════════ */

.sig-container canvas,
#signaturePad {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}
