/* ============================================================================
   LEARN WITH JC — STUDENT REGISTRATION MULTI-STEP MODAL (5 STEPS)
   Desktop: Clean left brand panel + 5-step vertical stepper + spacious form
   Mobile:  Arched Prague hero banner + 5-step horizontal stepper
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. MODAL BACKDROP & CONTAINER
   ---------------------------------------------------------------------------- */
.reg-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 18, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.reg-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Window Container */
.reg-modal-container {
  width: 100%;
  max-width: 1180px;
  height: 720px;
  max-height: 94vh;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 4px 20px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 310px 230px 1fr;
  overflow: hidden;
  position: relative;
  transform: scale(0.96) translateY(14px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-modal-backdrop.active .reg-modal-container {
  transform: scale(1) translateY(0);
}

/* Close Button (Desktop Top Right) */
.reg-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f6f4;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #2e4337;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
}

.reg-modal-close-btn:hover {
  background: #e2ede6;
  color: #0b2619;
  transform: rotate(90deg);
}

/* ----------------------------------------------------------------------------
   2. LEFT PANEL — DESKTOP BRANDING
   ---------------------------------------------------------------------------- */
.reg-brand-panel {
  background: #072214;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reg-desktop-brand-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 30px 26px 0;
  position: relative;
  z-index: 2;
}

/* Logo Badge */
.reg-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #143825;
  padding: 6px 14px 6px 8px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(204, 163, 75, 0.3);
  align-self: flex-start;
}

.reg-brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.reg-brand-badge span {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Tagline */
.reg-tagline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.reg-tagline-dash {
  width: 20px;
  height: 2px;
  background-color: #58c286;
  border-radius: 2px;
}

.reg-tagline-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #9cb4a7;
  text-transform: uppercase;
}

/* Main Heading */
.reg-main-heading {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #ffffff;
}

.reg-main-heading .mint-text {
  color: #58c286;
  display: block;
}

/* Main Description */
.reg-main-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #a8c0b2;
  margin-bottom: 18px;
}

/* 3 Feature Badges */
.reg-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.reg-feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.reg-feature-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #58c286;
}

.reg-feature-text h4 {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1px;
}

.reg-feature-text p {
  font-size: 11px;
  color: #8da698;
  line-height: 1.25;
}

/* Full-Bleed Desktop Bottom Background Photo & Cursive Script */
.reg-brand-bottom-photo {
  position: relative;
  height: 180px;
  margin: 10px -26px 0 -26px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-brand-bottom-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.85) contrast(1.1);
  display: block;
}

.reg-brand-bottom-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #072214 0%, rgba(7, 34, 20, 0.25) 40%, rgba(7, 34, 20, 0.85) 100%);
  pointer-events: none;
}

.reg-cursive-badge {
  position: absolute;
  bottom: 14px;
  left: 22px;
  z-index: 4;
  font-family: 'Caveat', cursive, sans-serif;
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  line-height: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.reg-cursive-badge .swoosh-underline {
  width: 60px;
  height: 3px;
  background: #58c286;
  border-radius: 2px;
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
   3. MIDDLE COLUMN — VERTICAL STEPPER (Desktop Only — 5 Steps)
   ---------------------------------------------------------------------------- */
.reg-stepper-panel {
  background: #fbfdfc;
  padding: 32px 18px 20px;
  border-right: 1px solid #edf2ef;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reg-stepper-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.reg-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 22px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.reg-step-item:last-child {
  padding-bottom: 0;
}

.reg-step-item:hover {
  opacity: 0.9;
}

/* Connecting Line */
.reg-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 15px;
  width: 2px;
  height: calc(100% - 28px);
  background: #e3ebe6;
  z-index: 1;
  transition: background 0.3s ease;
}

.reg-step-item.completed:not(:last-child)::after {
  background: #1a4d2e;
}

/* Step Circle */
.reg-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d5e0d9;
  color: #647b6e;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

.reg-step-item.active .reg-step-circle {
  background: #1a4d2e;
  border-color: #1a4d2e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 77, 46, 0.28);
}

.reg-step-item.completed .reg-step-circle {
  background: #e7f4ec;
  border-color: #1a4d2e;
  color: #1a4d2e;
}

.reg-step-text {
  display: flex;
  flex-direction: column;
}

.reg-step-icon-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reg-step-num-prefix {
  font-size: 12px;
  font-weight: 800;
  color: #58c286;
}

.reg-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #193123;
  line-height: 1.2;
}

.reg-step-item.active .reg-step-title {
  color: #1a4d2e;
}

.reg-step-item:not(.active) .reg-step-title {
  color: #3b5044;
}

.reg-step-sub {
  font-size: 10.5px;
  color: #798f82;
  margin-top: 2px;
}

/* Bottom Stepper Bridge Sketch Illustration */
.reg-stepper-illustration {
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
}

.reg-bridge-sketch-svg {
  width: 120px;
  height: 42px;
  display: block;
  margin: 0 auto 4px;
  opacity: 0.65;
}

.reg-stepper-cursive-text {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a4d2e;
  line-height: 1;
}

.reg-stepper-cursive-text .sketch-dash {
  width: 40px;
  height: 2px;
  background: #58c286;
  margin: 3px auto 0;
  border-radius: 2px;
}

/* ----------------------------------------------------------------------------
   4. RIGHT COLUMN — FORM CONTENT PANEL
   ---------------------------------------------------------------------------- */
.reg-form-panel {
  background: #ffffff;
  padding: 30px 38px 24px;
  overflow-y: auto;
  height: 100%;
  display: block;
}

/* Form Header */
.reg-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.reg-form-header-left {
  max-width: 440px;
}

.reg-form-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.reg-form-tagline {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #58c286;
  text-transform: uppercase;
}

.reg-student-id-badge {
  font-size: 11px;
  background: #eef6f1;
  color: #1a4d2e;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(26, 77, 46, 0.15);
}

.reg-step-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reg-mobile-step-circle-icon {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2f2e6;
  color: #1a4d2e;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-form-title {
  font-size: 25px;
  font-weight: 800;
  color: #0b2619;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 2px 0;
}

.reg-form-subtitle {
  font-size: 13px;
  color: #6d8276;
  margin: 0;
}

/* Header Progress Counter on Right */
.reg-form-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-right: 38px;
}

.reg-step-counter-badge {
  font-size: 12px;
  font-weight: 700;
  color: #647b6e;
}

.reg-progress-segments {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reg-progress-segment {
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: #e3eae5;
  transition: background 0.3s ease;
}

.reg-progress-segment.active {
  background: #1a4d2e;
}

/* ----------------------------------------------------------------------------
   5. MAIN FORM & INPUT CONTROLS
   ---------------------------------------------------------------------------- */
#studentRegForm {
  display: block;
  width: 100%;
}

/* Form Steps Wrapper */
.reg-step-pane {
  display: none;
  width: 100%;
}

.reg-step-pane.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 2-Column Grid */
.reg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.reg-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.reg-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #162a1f;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reg-req-star {
  color: #e04b4b;
}

.reg-optional-tag {
  color: #798f82;
  font-weight: 500;
  font-size: 11.5px;
}

.reg-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.reg-input-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: #799183;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

/* Inputs, Selects, and Textareas */
.reg-input,
.reg-select,
.reg-textarea {
  width: 100%;
  padding: 10.5px 14px 10.5px 40px;
  background: #ffffff;
  border: 1.5px solid #dce4df;
  border-radius: 11px;
  font-size: 13.5px;
  color: #112519;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.reg-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23799183' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.reg-textarea {
  padding: 10px 12px;
  resize: vertical;
  min-height: 70px;
}

.reg-input:focus,
.reg-select:focus,
.reg-textarea:focus {
  border-color: #1a4d2e;
  box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.12);
}

.reg-input-wrapper:focus-within .reg-input-icon {
  color: #1a4d2e;
}

/* Helper note */
.reg-helper-note {
  font-size: 11.5px;
  color: #6a8274;
  margin-top: 5px;
  line-height: 1.4;
}

/* Password Toggle */
.reg-pwd-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #799183;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.reg-pwd-toggle-btn:hover {
  color: #1a4d2e;
}

/* Under-18 Guardian Box */
.reg-minor-guardian-box {
  background: #f7faf8;
  border: 1px solid #d8e5dd;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.reg-minor-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a4d2e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Learning Mode Selector (Online / Offline) */
.reg-mode-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reg-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid #dce4df;
  border-radius: 13px;
  background: #fbfdfc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reg-mode-card:hover {
  border-color: #58c286;
  background: #f4faf6;
}

.reg-mode-card.active {
  border-color: #1a4d2e;
  background: #edf7f1;
  box-shadow: 0 4px 12px rgba(26, 77, 46, 0.12);
}

.reg-mode-card input[type="radio"] {
  display: none;
}

.reg-mode-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dce4df;
  color: #1a4d2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-mode-card.active .reg-mode-card-icon {
  background: #1a4d2e;
  color: #ffffff;
  border-color: #1a4d2e;
}

.reg-mode-card-info {
  display: flex;
  flex-direction: column;
}

.reg-mode-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #142a1e;
}

.reg-mode-card-desc {
  font-size: 11.5px;
  color: #647b6e;
  margin-top: 2px;
  line-height: 1.3;
}

/* Profile Photo Upload Box */
.reg-photo-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px dashed #cad7cf;
  border-radius: 13px;
  padding: 12px 16px;
  background: #fbfdfc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reg-photo-upload-box:hover {
  border-color: #1a4d2e;
  background: #f4faf6;
}

.reg-upload-dropzone-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-upload-cloud-icon {
  width: 20px;
  height: 20px;
  color: #1a4d2e;
  margin-bottom: 2px;
}

.reg-upload-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #142a1e;
}

.reg-upload-sub {
  font-size: 11px;
  color: #798f82;
}

.reg-avatar-preview-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.reg-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.reg-avatar-camera-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #1a4d2e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

/* Terms Checkbox */
.reg-terms-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.reg-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a4d2e;
  margin-top: 2px;
  cursor: pointer;
}

.reg-checkbox-text {
  font-size: 12.5px;
  color: #4a5c52;
  line-height: 1.45;
}

.reg-link-inline {
  color: #1a4d2e;
  font-weight: 700;
  text-decoration: underline;
}

.reg-login-switch-callout {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f4faf6;
  border: 1px solid #dceae2;
  font-size: 13px;
  color: #3b5245;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-login-switch-link {
  color: #1a4d2e;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.reg-demo-notice {
  font-size: 11px;
  color: #8fa699;
  margin-top: 12px;
  font-style: italic;
}

/* ----------------------------------------------------------------------------
   6. FORM NAVIGATION FOOTER (Back & Next Step)
   ---------------------------------------------------------------------------- */
.reg-form-footer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #edf2ef;
}

.reg-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: #f3f6f4;
  color: #2b3d33;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reg-btn-back:hover {
  background: #e3ebe6;
  color: #0b2619;
}

.reg-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: #1a4d2e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(26, 77, 46, 0.28);
  transition: all 0.2s ease;
}

.reg-btn-next:hover {
  background: #0f351f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 77, 46, 0.35);
}

/* Success Confirmation Screen */
.reg-success-pane {
  text-align: center;
  padding: 30px 20px;
  margin: auto 0;
}

.reg-success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e7f4ec;
  color: #1a4d2e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(88, 194, 134, 0.15);
}

.reg-success-title {
  font-size: 24px;
  font-weight: 800;
  color: #0b2619;
  margin-bottom: 8px;
}

.reg-success-desc {
  font-size: 13.5px;
  color: #556c5f;
  max-width: 440px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

/* Validation shake */
.reg-input.input-shake,
.reg-select.input-shake {
  animation: regShake 0.35s ease;
  border-color: #e04b4b !important;
}

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

/* ----------------------------------------------------------------------------
   7. DESKTOP ONLY RULES (>900px)
   ---------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .reg-mobile-brand-content,
  .reg-mobile-bottom-stepper,
  .reg-mobile-step-circle-icon {
    display: none !important;
  }
}

/* ----------------------------------------------------------------------------
   8. MOBILE RESPONSIVE RULES (<=900px)
   ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .reg-desktop-brand-content,
  .reg-stepper-panel,
  .reg-modal-close-btn,
  .reg-progress-segments {
    display: none !important;
  }

  .reg-mobile-step-circle-icon {
    display: flex !important;
  }

  .reg-modal-backdrop {
    padding: 0;
    align-items: flex-start;
  }

  .reg-modal-container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
  }

  /* Mobile Top Brand Panel */
  .reg-brand-panel {
    background: #f7faf8;
    color: #122118;
    padding: 14px 16px 12px;
    flex-shrink: 0;
    overflow: visible;
  }

  .reg-mobile-brand-content {
    display: block !important;
  }

  .reg-mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
    position: relative;
    z-index: 50;
  }

  .reg-brand-badge {
    margin-bottom: 0;
    background: #143825;
    padding: 5px 12px;
  }

  .reg-mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 60;
  }

  .reg-mobile-globe-btn,
  .reg-mobile-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a4d2e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 70;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }

  .reg-mobile-close-btn {
    color: #142a1e;
    background: #eef5f1;
  }

  .reg-mobile-close-btn:active,
  .reg-mobile-close-btn:hover {
    background: #d8eae0;
    color: #072f1b;
    transform: scale(1.05);
  }

  .reg-mobile-hero-row {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 12px;
    align-items: center;
  }

  .reg-mobile-heading {
    font-size: 20px;
    font-weight: 800;
    color: #122118;
    line-height: 1.18;
    margin: 0 0 4px 0;
  }

  .reg-mobile-heading .mint-text {
    color: #1a4d2e;
  }

  .reg-mobile-desc {
    font-size: 11px;
    line-height: 1.4;
    color: #556c5f;
    margin: 0 0 8px 0;
  }

  .reg-mobile-dots {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .reg-mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d2ded7;
    transition: all 0.25s ease;
  }

  .reg-mobile-dot.active {
    width: 16px;
    border-radius: 6px;
    background: #1a4d2e;
  }

  .reg-mobile-prague-frame {
    width: 120px;
    height: 130px;
    border-radius: 60px 60px 24px 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(7, 46, 27, 0.16);
    border: 2px solid #ffffff;
    z-index: 2;
  }

  .reg-mobile-prague-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
  }

  .reg-mobile-hero-right {
    position: relative;
    display: flex;
    justify-content: flex-end;
  }

  .reg-mobile-prague-blob {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 135px;
    height: 135px;
    background: #d4ebd9;
    border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none !important;
  }

  /* Mobile Form Card */
  .reg-form-panel {
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
    padding: 18px 16px 20px;
    flex: 1 0 auto;
    overflow: visible;
  }

  .reg-form-header {
    margin-bottom: 14px;
  }

  .reg-form-title {
    font-size: 18px;
  }

  .reg-form-subtitle {
    font-size: 11.5px;
  }

  .reg-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .reg-mode-selector-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reg-form-footer {
    flex-direction: column-reverse;
    gap: 10px;
    border-top: none;
    padding-top: 14px;
    margin-top: 18px;
  }

  .reg-btn-next,
  .reg-btn-back {
    width: 100%;
    justify-content: center;
    padding: 13px;
  }

  /* Mobile Bottom Stepper (5 Steps) */
  .reg-mobile-bottom-stepper {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 16px;
    background: #ffffff;
    border-top: 1px solid #edf2ef;
    flex-shrink: 0;
  }

  .reg-mobile-step-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
    cursor: pointer;
  }

  .reg-mobile-step-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(50% + 13px);
    width: calc(100% - 26px);
    height: 1.5px;
    background: #e3ebe6;
  }

  .reg-mobile-step-col.completed:not(:last-child)::after {
    background: #1a4d2e;
  }

  .reg-mobile-step-num {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #d5e0d9;
    color: #647b6e;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .reg-mobile-step-col.active .reg-mobile-step-num {
    background: #1a4d2e;
    border-color: #1a4d2e;
    color: #ffffff;
  }

  .reg-mobile-step-col.completed .reg-mobile-step-num {
    background: #e7f4ec;
    border-color: #1a4d2e;
    color: #1a4d2e;
  }

  .reg-mobile-step-label {
    font-size: 9px;
    font-weight: 700;
    color: #798f82;
    text-align: center;
    line-height: 1.15;
  }

  .reg-mobile-step-col.active .reg-mobile-step-label {
    color: #1a4d2e;
  }
}

/* ----------------------------------------------------------------------------
   9. DARK MODE OVERRIDES
   ---------------------------------------------------------------------------- */
[data-theme="dark"] .reg-modal-container {
  background: #0d1e14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(204, 163, 75, 0.25);
}

[data-theme="dark"] .reg-stepper-panel {
  background: #08170e;
  border-right-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .reg-form-panel {
  background: #0d1e14;
}

[data-theme="dark"] .reg-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="dark"] .reg-modal-close-btn:hover {
  background: #cca34b;
  color: #072f1b;
}

[data-theme="dark"] .reg-form-title {
  color: #ffffff;
}

[data-theme="dark"] .reg-form-subtitle {
  color: #9cb4a7;
}

[data-theme="dark"] .reg-label {
  color: #e2ede6;
}

[data-theme="dark"] .reg-input,
[data-theme="dark"] .reg-select,
[data-theme="dark"] .reg-textarea {
  background: #07140c;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .reg-input:focus,
[data-theme="dark"] .reg-select:focus,
[data-theme="dark"] .reg-textarea:focus {
  border-color: #cca34b;
  box-shadow: 0 0 0 3px rgba(204, 163, 75, 0.25);
}

[data-theme="dark"] .reg-input-icon {
  color: #cca34b;
}

[data-theme="dark"] .reg-step-title {
  color: #ffffff;
}

[data-theme="dark"] .reg-step-item.active .reg-step-circle {
  background: #cca34b;
  border-color: #cca34b;
  color: #072f1b;
}

[data-theme="dark"] .reg-photo-upload-box {
  background: #07140c;
  border-color: rgba(204, 163, 75, 0.3);
}

[data-theme="dark"] .reg-upload-title {
  color: #ffffff;
}

[data-theme="dark"] .reg-mode-card {
  background: #07140c;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .reg-mode-card .reg-mode-card-title {
  color: #ffffff;
}

[data-theme="dark"] .reg-mode-card-icon {
  background: #0d1e14;
  border-color: rgba(255, 255, 255, 0.14);
  color: #cca34b;
}

[data-theme="dark"] .reg-mode-card.active {
  border-color: #cca34b;
  background: rgba(204, 163, 75, 0.12);
}

[data-theme="dark"] .reg-mode-card.active .reg-mode-card-icon {
  background: #cca34b;
  color: #072f1b;
  border-color: #cca34b;
}

[data-theme="dark"] .reg-btn-back {
  background: rgba(255, 255, 255, 0.08);
  color: #e2ede6;
}

[data-theme="dark"] .reg-btn-next {
  background: #cca34b;
  color: #072f1b;
  box-shadow: 0 4px 14px rgba(204, 163, 75, 0.35);
}

[data-theme="dark"] .reg-btn-next:hover {
  background: #e2b960;
}

[data-theme="dark"] .reg-mobile-bottom-stepper {
  background: #08170e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .reg-minor-guardian-box {
  background: #07140c;
  border-color: rgba(204, 163, 75, 0.2);
}

[data-theme="dark"] .reg-minor-notice {
  color: #cca34b;
}

[data-theme="dark"] .reg-student-id-badge {
  background: rgba(204, 163, 75, 0.15);
  color: #cca34b;
  border-color: rgba(204, 163, 75, 0.3);
}

[data-theme="dark"] .reg-login-switch-callout {
  background: #07140c;
  border-color: rgba(204, 163, 75, 0.25);
  color: #c5ded0;
}

[data-theme="dark"] .reg-login-switch-link {
  color: #cca34b;
}

/* Mobile Top Bar in Dark Mode */
[data-theme="dark"] .reg-mobile-close-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(204, 163, 75, 0.3) !important;
  color: #cca34b !important;
}

[data-theme="dark"] .reg-mobile-close-btn:active,
[data-theme="dark"] .reg-mobile-close-btn:hover {
  background: #cca34b !important;
  color: #072f1b !important;
}

[data-theme="dark"] .reg-mobile-globe-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(204, 163, 75, 0.3) !important;
  color: #cca34b !important;
}

[data-theme="dark"] .reg-brand-panel {
  background: #08170e !important;
}

[data-theme="dark"] .reg-mobile-heading {
  color: #ffffff !important;
}

[data-theme="dark"] .reg-mobile-desc {
  color: #9cb4a7 !important;
}
