/* ═══════════════════════════════════════════════════════════════════
   WAZNA — SERVICE LEADER YOUTH REGISTRATION UX REDESIGN
   Modern, warm, Coptic-Orthodox youth ministry friendly design system
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --wz-purple-deep:    #4E3D78;
  --wz-purple-primary: #6E59A5;
  --wz-purple-accent:  #9B87F5;
  --wz-purple-soft:    #E5DEFF;
  --wz-purple-light:   #F1F0FB;
  --wz-purple-bg:      #F8F7FD;

  --wz-coral:          #E2636F;
  --wz-coral-light:    #FBE9EB;

  --wz-teal:           #3FA79A;
  --wz-teal-light:     #E7F5F2;

  --wz-dark:           #1A1F2C;
  --wz-gray-700:       #374151;
  --wz-gray-500:       #6B7280;
  --wz-gray-400:       #9CA3AF;
  --wz-gray-300:       #D1D5DB;
  --wz-gray-200:       #E5E7EB;
  --wz-gray-100:       #F3F4F6;
  --wz-white:          #FFFFFF;

  --wz-radius-sm:  8px;
  --wz-radius-md:  12px;
  --wz-radius-lg:  18px;
  --wz-radius-xl:  24px;
  --wz-radius-pill: 9999px;

  --wz-shadow-sm: 0 1px 2px 0 rgba(26, 31, 44, 0.05);
  --wz-shadow-md: 0 4px 12px -2px rgba(110, 89, 165, 0.1), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --wz-shadow-lg: 0 12px 28px -6px rgba(110, 89, 165, 0.16), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --wz-shadow-glow: 0 0 20px rgba(155, 135, 245, 0.25);

  --wz-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Base */
body {
  background-color: var(--wz-purple-bg);
  color: var(--wz-dark);
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.wz-reg-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

@media (min-width: 768px) {
  .wz-reg-page {
    padding: 2.5rem 1.5rem 4rem;
  }
}

/* ════════════════════════════════════════
   PAGE HEADER & HERO
   ════════════════════════════════════════ */
.wz-hero-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.wz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--wz-purple-soft);
  color: var(--wz-purple-deep);
  padding: 0.35rem 1rem;
  border-radius: var(--wz-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  box-shadow: var(--wz-shadow-sm);
}

.wz-hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--wz-purple-primary);
}

.wz-hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--wz-purple-deep);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .wz-hero-title {
    font-size: 2.25rem;
  }
}

.wz-hero-subtitle {
  font-size: 1rem;
  color: var(--wz-gray-500);
  margin: 0;
  max-width: 500px;
  margin-inline: auto;
}

/* ════════════════════════════════════════
   PROGRESS BAR & STEP INDICATOR
   ════════════════════════════════════════ */
.wz-progress-card {
  background: var(--wz-white);
  border: 1px solid var(--wz-purple-soft);
  border-radius: var(--wz-radius-xl);
  padding: 1.25rem 1rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--wz-shadow-md);
  position: relative;
}

@media (min-width: 640px) {
  .wz-progress-card {
    padding: 1.5rem 1.5rem;
  }
}

.wz-steps-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.wz-track-line-bg {
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 4px;
  background-color: var(--wz-gray-200);
  border-radius: var(--wz-radius-pill);
  z-index: 0;
}

.wz-track-line-fill {
  position: absolute;
  top: 20px;
  left: 30px;
  height: 4px;
  background: linear-gradient(90deg, var(--wz-purple-accent), var(--wz-purple-primary));
  border-radius: var(--wz-radius-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

[dir="rtl"] .wz-track-line-fill {
  left: auto;
  right: 30px;
}

.wz-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: default;
  flex: 1;
  text-align: center;
}

.wz-step-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--wz-white);
  border: 2.5px solid var(--wz-gray-300);
  color: var(--wz-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--wz-transition);
  box-shadow: 0 0 0 4px var(--wz-white);
}

.wz-step-item.active .wz-step-bubble {
  background: var(--wz-purple-primary);
  border-color: var(--wz-purple-primary);
  color: var(--wz-white);
  box-shadow: 0 0 0 4px var(--wz-purple-soft), var(--wz-shadow-glow);
  transform: scale(1.08);
}

.wz-step-item.completed .wz-step-bubble {
  background: var(--wz-teal);
  border-color: var(--wz-teal);
  color: var(--wz-white);
}

.wz-step-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wz-gray-500);
  transition: var(--wz-transition);
}

@media (min-width: 640px) {
  .wz-step-label {
    font-size: 0.85rem;
  }
}

.wz-step-item.active .wz-step-label {
  color: var(--wz-purple-deep);
  font-weight: 700;
}

.wz-step-item.completed .wz-step-label {
  color: var(--wz-teal);
}

/* Step Encouragement Banner */
.wz-encouragement-banner {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background-color: var(--wz-purple-light);
  border-radius: var(--wz-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wz-purple-deep);
  border-inline-start: 3.5px solid var(--wz-purple-primary);
  animation: fadeIn 0.3s ease-out;
}

.wz-encouragement-banner svg {
  width: 18px;
  height: 18px;
  color: var(--wz-teal);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   WIZARD STEP PANELS
   ════════════════════════════════════════ */
.wz-step-panel {
  display: none;
  animation: stepSlide 0.35s ease-out;
}

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

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

/* Card Container */
.wz-card {
  background: var(--wz-white);
  border: 1px solid var(--wz-purple-soft);
  border-radius: var(--wz-radius-xl);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--wz-shadow-md);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .wz-card {
    padding: 2rem 2rem;
  }
}

.wz-card-header {
  border-bottom: 1px solid var(--wz-gray-200);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.wz-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wz-purple-deep);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wz-card-title svg {
  width: 22px;
  height: 22px;
  color: var(--wz-purple-primary);
}

.wz-card-desc {
  font-size: 0.875rem;
  color: var(--wz-gray-500);
  margin: 0;
}

/* Grid Rows */
.wz-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .wz-form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Groups */
.wz-form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.wz-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.wz-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wz-gray-700);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wz-badge-required {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--wz-coral-light);
  color: var(--wz-coral);
  padding: 0.15rem 0.5rem;
  border-radius: var(--wz-radius-pill);
}

.wz-badge-optional {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--wz-gray-100);
  color: var(--wz-gray-500);
  padding: 0.15rem 0.5rem;
  border-radius: var(--wz-radius-pill);
}

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

.wz-input-icon {
  position: absolute;
  left: 0.875rem;
  width: 20px;
  height: 20px;
  color: var(--wz-gray-400);
  pointer-events: none;
  transition: var(--wz-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

[dir="rtl"] .wz-input-icon {
  left: auto;
  right: 0.875rem;
}

.wz-input {
  width: 100%;
  height: 48px; /* Touch target >= 44px */
  padding: 0.65rem 0.875rem 0.65rem 2.85rem;
  font-size: 0.95rem;
  color: var(--wz-dark);
  background-color: var(--wz-white);
  border: 1.5px solid var(--wz-gray-300);
  border-radius: var(--wz-radius-md);
  transition: var(--wz-transition);
  font-family: inherit;
  box-sizing: border-box;
}

[dir="rtl"] .wz-input {
  padding: 0.65rem 2.85rem 0.65rem 0.875rem;
}

/* Dedicated spacing when input wrapper contains an action button (eye toggle, generate code) */
.wz-input-wrapper:has(.wz-input-action-btn) .wz-input {
  padding-right: 3rem;
}
[dir="rtl"] .wz-input-wrapper:has(.wz-input-action-btn) .wz-input {
  padding-left: 3rem;
  padding-right: 2.85rem;
}

.wz-input-wrapper:has(#generateCodeBtn) .wz-input {
  padding-right: 6.85rem;
}
[dir="rtl"] .wz-input-wrapper:has(#generateCodeBtn) .wz-input {
  padding-left: 6.85rem;
  padding-right: 2.85rem;
}

.wz-input:focus {
  outline: none;
  border-color: var(--wz-purple-primary);
  box-shadow: 0 0 0 3.5px rgba(110, 89, 165, 0.15);
}

.wz-input:focus ~ .wz-input-icon {
  color: var(--wz-purple-primary);
}

.wz-input.is-invalid {
  border-color: var(--wz-coral);
  background-color: var(--wz-coral-light);
}

.wz-input.is-invalid:focus {
  box-shadow: 0 0 0 3.5px rgba(226, 99, 111, 0.2);
}

/* Select Dropdown */
select.wz-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.75rem;
  /* Native <select> text doesn't honor text-overflow reliably across engines when
     padding is asymmetric (icon on one side, chevron on the other) -- long option
     text can visually run into the icon instead of stopping short of it. Force a
     hard clip with ellipsis so it never collides, in either direction. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[dir="rtl"] select.wz-input {
  background-position: left 0.875rem center;
  padding-left: 2.75rem;
  padding-right: 3rem;
}

/* Input Action Buttons (Generate Code, Show Password) */
.wz-input-action-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--wz-purple-light);
  color: var(--wz-purple-deep);
  border: 1px solid var(--wz-purple-soft);
  border-radius: var(--wz-radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--wz-transition);
  height: 34px;
}

[dir="rtl"] .wz-input-action-btn {
  right: auto;
  left: 0.5rem;
}

.wz-input-action-btn:hover {
  background: var(--wz-purple-soft);
  color: var(--wz-purple-primary);
}

.wz-input-action-btn.icon-only {
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
  color: var(--wz-gray-500);
}

.wz-input-action-btn.icon-only:hover {
  color: var(--wz-purple-primary);
  background: var(--wz-purple-light);
}

/* Helper text & inline error */
.wz-field-hint {
  font-size: 0.75rem;
  color: var(--wz-gray-500);
  margin-top: 0.35rem;
}

.wz-field-error {
  font-size: 0.8rem;
  color: var(--wz-coral);
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
  align-items: center;
  gap: 0.35rem;
  animation: fadeIn 0.2s ease-out;
}

.wz-field-error.visible {
  display: flex;
}

/* Gender Segmented Card Picker */
.wz-gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.wz-gender-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 52px; /* touch target >= 44px */
  padding: 0.5rem 1rem;
  background: var(--wz-white);
  border: 2px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-md);
  cursor: pointer;
  transition: var(--wz-transition);
  font-weight: 600;
  color: var(--wz-gray-700);
}

.wz-gender-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wz-gender-card:hover {
  border-color: var(--wz-purple-accent);
  background-color: var(--wz-purple-light);
}

.wz-gender-card.selected {
  border-color: var(--wz-purple-primary);
  background-color: var(--wz-purple-light);
  color: var(--wz-purple-deep);
  box-shadow: 0 0 0 3px var(--wz-purple-soft);
}

.wz-gender-card svg {
  width: 22px;
  height: 22px;
  color: var(--wz-purple-primary);
}

/* ════════════════════════════════════════
   STEP 4: AVATAR SELECTOR GRID
   ════════════════════════════════════════ */
.wz-avatar-callout {
  background: var(--wz-teal-light);
  border: 1px solid rgba(63, 167, 154, 0.35);
  border-radius: var(--wz-radius-md);
  padding: 0.875rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #155E56;
}

.wz-avatar-callout svg {
  width: 20px;
  height: 20px;
  color: var(--wz-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.wz-avatars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 480px) {
  .wz-avatars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .wz-avatars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.wz-avatar-card {
  position: relative;
  background: var(--wz-white);
  border: 2px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-lg);
  padding: 1.1rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wz-transition);
  text-align: center;
  min-height: 140px; /* touch target >= 44px */
}

.wz-avatar-card:hover {
  border-color: var(--wz-purple-accent);
  transform: translateY(-3px);
  box-shadow: var(--wz-shadow-md);
}

.wz-avatar-card.selected {
  border-color: var(--wz-purple-primary);
  background-color: var(--wz-purple-light);
  box-shadow: 0 0 0 2.5px var(--wz-purple-primary), 0 0 0 5px var(--wz-purple-soft), var(--wz-shadow-glow);
  transform: translateY(-2px);
}

.wz-avatar-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wz-avatar-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wz-purple-light);
  padding: 4px;
  transition: var(--wz-transition);
}

.wz-avatar-card.selected .wz-avatar-img-wrap {
  transform: scale(1.05);
}

.wz-avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wz-avatar-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wz-gray-700);
  transition: var(--wz-transition);
}

.wz-avatar-card.selected .wz-avatar-name {
  color: var(--wz-purple-deep);
}

.wz-avatar-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wz-purple-primary);
  color: var(--wz-white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wz-shadow-sm);
}

[dir="rtl"] .wz-avatar-check {
  right: auto;
  left: 8px;
}

.wz-avatar-card.selected .wz-avatar-check {
  display: flex;
}

.wz-avatar-check svg {
  width: 14px;
  height: 14px;
}

/* Optional Accordion Section */
.wz-accordion-toggle {
  background: none;
  border: none;
  width: 100%;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wz-purple-deep);
  cursor: pointer;
  border-top: 1px dashed var(--wz-purple-soft);
  margin-top: 1rem;
}

.wz-accordion-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.wz-accordion-toggle.open svg {
  transform: rotate(180deg);
}

.wz-accordion-body {
  display: none;
  padding-top: 1rem;
  animation: fadeIn 0.25s ease;
}

.wz-accordion-body.open {
  display: block;
}

/* ════════════════════════════════════════
   WIZARD CONTROLS (FOOTER BUTTONS)
   ════════════════════════════════════════ */
.wz-controls-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wz-btn {
  min-height: 48px; /* touch target >= 44px -- min, not fixed, so wrapped text on
                        narrow screens grows the button instead of getting clipped */
  padding: 0.6rem 1.25rem;
  border-radius: var(--wz-radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--wz-transition);
  font-family: inherit;
  border: none;
  text-decoration: none;
}

@media (max-width: 360px) {
  .wz-btn {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
  }
}

.wz-btn-primary {
  background-color: var(--wz-purple-primary);
  color: var(--wz-white);
  box-shadow: var(--wz-shadow-md);
  flex: 1;
}

@media (min-width: 640px) {
  .wz-btn-primary {
    flex: initial;
    min-width: 180px;
  }
}

.wz-btn-primary:hover {
  background-color: var(--wz-purple-deep);
  box-shadow: var(--wz-shadow-lg);
  transform: translateY(-1.5px);
}

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

.wz-btn-secondary {
  background-color: var(--wz-white);
  color: var(--wz-gray-700);
  border: 1.5px solid var(--wz-gray-300);
  min-width: 110px;
}

.wz-btn-secondary:hover {
  background-color: var(--wz-gray-100);
  border-color: var(--wz-gray-400);
}

.wz-btn:disabled,
.wz-btn.loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Spinner */
.wz-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--wz-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.wz-btn.loading .wz-spinner {
  display: inline-block;
}

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

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

/* ════════════════════════════════════════
   POST-REGISTRATION QR SUCCESS WIDGET
   Dedicated, screenshot-friendly card
   ════════════════════════════════════════ */
.wz-success-wrapper {
  animation: fadeIn 0.4s ease-out;
}

.wz-success-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.wz-success-badge-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--wz-teal-light);
  color: var(--wz-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 8px rgba(63, 167, 154, 0.12);
}

.wz-success-badge-icon svg {
  width: 36px;
  height: 36px;
}

.wz-success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wz-purple-deep);
  margin: 0 0 0.5rem;
}

.wz-success-subtitle {
  font-size: 1rem;
  color: var(--wz-gray-500);
  margin: 0;
}

/* 5 Waznat Reward Pill */
.wz-reward-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wz-teal-light);
  border: 1.5px solid rgba(63, 167, 154, 0.35);
  color: #155E56;
  padding: 0.5rem 1.25rem;
  border-radius: var(--wz-radius-pill);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
  box-shadow: var(--wz-shadow-sm);
  animation: softBounce 1.5s ease-in-out infinite alternate;
}

@keyframes softBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* Screenshot Card */
.wz-screenshot-card {
  background: var(--wz-white);
  border: 2px solid var(--wz-purple-soft);
  border-radius: var(--wz-radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--wz-shadow-lg);
  max-width: 440px;
  margin: 1.5rem auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wz-screenshot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--wz-purple-primary), var(--wz-purple-accent), var(--wz-teal));
}

.wz-youth-id-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.wz-youth-avatar-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--wz-purple-light);
  border: 3px solid var(--wz-purple-soft);
  padding: 4px;
  margin-bottom: 0.75rem;
  box-shadow: var(--wz-shadow-md);
}

.wz-youth-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wz-youth-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wz-purple-deep);
  margin: 0;
}

.wz-youth-display-username {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wz-purple-accent);
  margin-top: 0.2rem;
  direction: ltr;
}

/* QR Code Section */
.wz-qr-box {
  background: var(--wz-white);
  padding: 1.25rem;
  border-radius: var(--wz-radius-lg);
  border: 1.5px solid var(--wz-gray-200);
  display: inline-block;
  margin: 0.75rem 0 1.25rem;
  box-shadow: var(--wz-shadow-sm);
}

.wz-qr-box img {
  width: 200px;
  height: 200px;
  display: block;
  image-rendering: pixelated;
}

.wz-qr-caption {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wz-purple-deep);
  margin: 0 0 0.4rem;
}

.wz-qr-note {
  font-size: 0.8rem;
  color: var(--wz-gray-500);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.wz-qr-note svg {
  width: 15px;
  height: 15px;
  color: var(--wz-teal);
  flex-shrink: 0;
}

/* Success Actions - Responsive mobile-first layout */
.wz-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 440px;
  margin: 1.5rem auto 0;
}

.wz-success-actions .wz-btn {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  box-sizing: border-box;
}

/* ════════════════════════════════════════
   PHOTO UPLOAD (Public Self-Registration)
   ════════════════════════════════════════ */
.wz-file-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px dashed var(--wz-gray-300);
  border-radius: var(--wz-radius-md);
  padding: 0.85rem 1rem;
  background: var(--wz-purple-light);
  transition: var(--wz-transition);
  cursor: pointer;
}

.wz-file-wrapper:hover,
.wz-file-wrapper:focus-within {
  border-color: var(--wz-purple-accent);
  background: var(--wz-purple-soft);
}

.wz-file-wrapper.is-invalid {
  border-color: var(--wz-coral);
  background: var(--wz-coral-light);
}

.wz-file-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.wz-file-icon {
  width: 22px;
  height: 22px;
  color: var(--wz-purple-primary);
  flex-shrink: 0;
}

.wz-file-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wz-gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
