/* VO2 onboarding — neumorphic split layout (VO2Peaks DS) */

html.vo2-auth-page body {
  background: var(--surface-0) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
}

html.vo2-auth-page #main,
html.vo2-auth-page main,
html.vo2-auth-page .main,
html.vo2-auth-page section {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

html.vo2-auth-page #header,
html.vo2-auth-page .site-footer,
html.vo2-auth-page #vo2MobileNavPill,
html.vo2-auth-page .vo2-mobile-nav-pill,
html.vo2-auth-page .vo2-mobile-more-sheet,
html.vo2-auth-page .vo2-mobile-more-backdrop {
  display: none !important;
}

.vo2-wizard-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--surface-0);
  position: relative;
  overflow: hidden;
}

.vo2-wizard-wrap::before,
.vo2-wizard-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.vo2-wizard-wrap::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(223, 32, 99, 0.22), transparent 70%);
}

.vo2-wizard-wrap::after {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(0, 36, 125, 0.18), transparent 70%);
}

.vo2-wizard-scene {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

@media (min-width: 992px) {
  .vo2-wizard-scene {
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  .vo2-wizard-scene {
    padding: 2rem;
    gap: 2rem;
  }
}

/* —— Hero panel —— */
.vo2-wizard-hero {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
}

@media (min-width: 992px) {
  .vo2-wizard-hero {
    display: flex;
    padding: 2rem 1rem 2rem 0.5rem;
  }
}

.vo2-wizard-hero__visual {
  width: 100%;
  max-width: 320px;
  margin: 0 0 1.75rem;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--nm-raised-sm);
}

.vo2-wizard-hero__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Mobile cycling banner */
.vo2-wizard-mobile-banner {
  display: block;
  padding: 0.5rem 1rem 0;
  overflow: hidden;
  max-width: 100%;
}

.vo2-wizard-mobile-banner__img {
  width: 100%;
  max-height: 88px;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
}

@media (min-width: 992px) {
  .vo2-wizard-mobile-banner { display: none; }
}

.vo2-wizard-hero__logo {
  width: 72px;
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 8px 16px rgba(0, 36, 125, 0.12));
}

.vo2-wizard-hero__eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--vo2-pink-500);
  margin: 0 0 0.5rem;
}

.vo2-wizard-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--fw-black);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--fg-1);
}

.vo2-wizard-hero__desc {
  font-size: var(--fs-body);
  color: var(--fg-3);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 28ch;
}

.vo2-wizard-hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vo2-wizard-hero__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  color: var(--fg-2);
}

.vo2-wizard-hero__list li span {
  flex: 0 0 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  color: var(--vo2-pink-500);
  font-size: 1rem;
}

.vo2-wizard-hero__orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(223, 32, 99, 0.15), rgba(41, 212, 198, 0.12));
  bottom: 10%;
  left: 5%;
  filter: blur(40px);
  animation: vo2OrbFloat 8s ease-in-out infinite;
}

@keyframes vo2OrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

/* —— Main card —— */
.vo2-wizard {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  box-shadow: none;
  border-radius: 0;
  direction: rtl;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

@media (min-width: 576px) {
  .vo2-wizard {
    box-shadow: var(--nm-raised);
    border-radius: var(--r-card);
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
    min-height: auto;
  }
}

@media (min-width: 992px) {
  .vo2-wizard {
    margin: 0;
    width: 100%;
    max-height: calc(100dvh - 4rem);
    overflow: hidden;
  }
}

.vo2-wizard__topbar {
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .vo2-wizard__topbar { padding: 1.25rem 1.5rem 0; }
}

.vo2-wizard__brand-mobile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

@media (min-width: 992px) {
  .vo2-wizard__brand-mobile { display: none; }
}

.vo2-wizard__brand-mobile img {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

@media (min-width: 400px) {
  .vo2-wizard__brand-mobile img { width: 40px; }
}

.vo2-wizard__brand-mobile span {
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
  color: var(--fg-1);
  white-space: nowrap;
}

.vo2-wizard__step-meta {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-4);
  white-space: nowrap;
  flex-shrink: 0;
}

.vo2-wizard__header {
  padding: 0.35rem 1rem 0.85rem;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .vo2-wizard__header { padding: 0.5rem 1.5rem 1rem; }
}

.vo2-wizard__title {
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: var(--fw-black);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}

.vo2-wizard__subtitle {
  font-size: var(--fs-small);
  color: var(--fg-3);
  margin: 0 0 1rem;
  font-weight: 500;
}

.vo2-progress {
  height: 8px;
  background: var(--surface-0);
  border-radius: var(--r-pill);
  box-shadow: var(--nm-inset-sm);
  overflow: hidden;
}

.vo2-progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vo2-pink-400), var(--vo2-pink-600));
  box-shadow: 0 0 12px rgba(223, 32, 99, 0.45);
  transition: width 0.45s var(--ease-out);
}

/* Step rail */
.vo2-steps {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0.75rem 1rem 0.15rem;
  margin: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  scroll-snap-type: x proximity;
}

.vo2-steps::-webkit-scrollbar { display: none; }

@media (max-width: 575.98px) {
  .vo2-steps {
    display: none !important;
  }
}

@media (min-width: 576px) {
  .vo2-steps { padding: 1rem 1.5rem 0.25rem; }
}

.vo2-step-rail__item {
  flex: 0 0 auto;
  min-width: 52px;
  max-width: 76px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  text-align: center;
}

@media (min-width: 480px) {
  .vo2-step-rail__item {
    min-width: 64px;
    max-width: 88px;
  }
}

.vo2-step-rail__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--surface-sunken);
  z-index: 0;
}

.vo2-step-rail__item.is-done:not(:last-child)::after {
  background: linear-gradient(90deg, var(--vo2-green-500), var(--vo2-pink-400));
}

.vo2-step-rail__dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--fg-4);
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  transition: all var(--dur-2) var(--ease-out);
}

.vo2-step-rail__dot .bi {
  font-size: 0.9rem;
  line-height: 1;
}

.vo2-step-rail__dot-text {
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
}

.vo2-step-rail__item.is-active .vo2-step-rail__dot {
  background: linear-gradient(135deg, var(--vo2-pink-400), var(--vo2-pink-600));
  color: var(--fg-inv);
  box-shadow:
    -3px -3px 8px var(--nm-light),
    6px 6px 14px rgba(190, 21, 83, 0.35);
  transform: scale(1.08);
}

.vo2-step-rail__item.is-done .vo2-step-rail__dot {
  background: linear-gradient(135deg, #3CC67D, var(--vo2-green-500));
  color: var(--fg-inv);
  font-size: 0.65rem;
}

.vo2-step-rail__label {
  font-size: 0.55rem;
  font-weight: var(--fw-semi);
  color: var(--fg-4);
  line-height: 1.2;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 400px) {
  .vo2-step-rail__label {
    font-size: 0.6rem;
    max-width: 72px;
  }
}

@media (max-width: 359px) {
  .vo2-step-rail__label { display: none; }
}

.vo2-step-rail__item.is-active .vo2-step-rail__label {
  color: var(--vo2-pink-500);
}

.vo2-wizard__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.35rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 576px) {
  .vo2-wizard__body { padding: 0.5rem 1.5rem 1.5rem; }
}

.vo2-step-panel {
  display: none;
  animation: vo2StepIn var(--dur-3) var(--ease-out);
}

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

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

/* Illustration / step icon badge */
.vo2-illus {
  text-align: center;
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  color: var(--vo2-pink-500);
}

@media (min-width: 576px) {
  .vo2-illus {
    width: 88px;
    height: 88px;
    margin-bottom: 1.25rem;
  }
}

.vo2-illus--icon .bi {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
  display: inline-block;
}

.vo2-illus--profile {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.vo2-illus__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--nm-raised-sm);
  border: 3px solid var(--surface-1);
  display: none;
}

.vo2-illus--profile .vo2-illus__avatar {
  display: block;
}

.vo2-illus--profile .bi {
  display: none !important;
}

@media (min-width: 576px) {
  .vo2-illus--icon .bi { font-size: 2rem; }
}

.vo2-illus svg {
  width: 40px;
  height: 40px;
}

@media (min-width: 576px) {
  .vo2-illus svg { width: 44px; height: 44px; }
}

.vo2-illus--logo {
  padding: 0.55rem;
}

.vo2-illus__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

@media (min-width: 576px) {
  .vo2-illus--logo {
    padding: 0.65rem;
  }

  .vo2-illus__logo {
    width: 60px;
    height: 60px;
  }
}

.vo2-wizard--auth .vo2-wizard__topbar {
  display: none;
}

.vo2-step-lead {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--fg-3);
  margin: -0.5rem 0 1.25rem;
  line-height: 1.5;
}

/* Neumorphic fields */
.vo2-field {
  margin-bottom: 1.1rem;
}

/* Half-width centered inputs — login / OTP / simple auth steps */
.vo2-field--half {
  width: 50%;
  max-width: 20rem;
  margin-inline: auto;
}

.vo2-field--half label {
  text-align: center;
  padding-inline-start: 0;
}

.vo2-field--half .vo2-field__error-hint {
  text-align: center;
}

.vo2-field--half input:not([dir="ltr"]) {
  text-align: center;
}

@media (max-width: 575.98px) {
  .vo2-field--half {
    width: 100%;
    max-width: none;
  }
}

.vo2-field label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.45rem;
  padding-inline-start: 4px;
}

.vo2-field__well {
  position: relative;
  background: var(--surface-0);
  border-radius: 14px;
  box-shadow: var(--nm-inset-sm);
  transition: box-shadow var(--dur-2) var(--ease-out);
}

.vo2-field__well:focus-within {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.45);
}

.vo2-field.is-invalid .vo2-field__well {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(255, 107, 61, 0.8);
}

.vo2-field.is-invalid label {
  color: #c2410c;
}

.vo2-field--role.is-invalid .vo2-role-cards {
  box-shadow: 0 0 0 2px rgba(255, 107, 61, 0.8);
  border-radius: 16px;
}

.vo2-field__error-hint {
  margin: 0.4rem 4px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c2410c;
  line-height: 1.45;
}

.vo2-upload-box.is-invalid {
  box-shadow:
    var(--nm-raised-sm),
    0 0 0 2px rgba(255, 107, 61, 0.8);
}

.vo2-upload-box.is-invalid .vo2-field__error-hint {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.vo2-field input,
.vo2-field select,
.vo2-field textarea {
  display: block;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg-1);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  line-height: 1.4;
}

.vo2-field input[dir="ltr"],
.vo2-field--otp input {
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}

.vo2-otp-resend {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.5rem;
  padding: 0 0.15rem;
}

.vo2-otp-resend__btn {
  font-size: var(--fs-small);
  padding: 0.35rem 0;
}

.vo2-otp-resend__btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.vo2-otp-resend__timer {
  font-size: var(--fs-caption);
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vo2-field textarea {
  resize: vertical;
  min-height: 100px;
}

.vo2-field select {
  cursor: pointer;
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7282' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.vo2-field input:read-only {
  color: var(--fg-3);
}

/* Role cards */
.vo2-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 380px) {
  .vo2-role-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) {
  .vo2-role-cards { gap: 1rem; }
}

.vo2-role-card {
  border: 0;
  border-radius: 18px;
  padding: 1.15rem 0.65rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}

.vo2-role-card:hover {
  box-shadow: var(--nm-raised);
  transform: translateY(-2px);
}

.vo2-role-card.is-selected {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.5);
  transform: translateY(0);
}

.vo2-role-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  box-shadow: var(--nm-raised-sm);
  color: var(--vo2-pink-500);
}

.vo2-role-card__icon .bi {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--vo2-pink-500);
}

.vo2-role-card__icon svg {
  width: 28px;
  height: 28px;
}

.vo2-role-card strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--fg-1);
}

.vo2-role-card small {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-caption);
  color: var(--fg-4);
  font-weight: 500;
}

/* Buttons */
.vo2-wizard__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 479px) {
  .vo2-wizard__actions {
    flex-direction: column;
  }
  .vo2-wizard__actions .vo2-btn {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
  .vo2-wizard__actions .vo2-btn--ghost,
  .vo2-wizard__actions .vo2-btn--link {
    flex: 1 1 auto;
  }
}

.vo2-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.8rem 1.25rem;
  font-weight: var(--fw-semi);
  font-size: var(--fs-body);
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow var(--dur-2) var(--ease-out), transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.vo2-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.vo2-btn--primary {
  background: linear-gradient(135deg, var(--vo2-pink-400) 0%, var(--vo2-pink-500) 55%, var(--vo2-pink-600) 100%);
  color: var(--fg-inv);
  box-shadow:
    -3px -3px 8px var(--nm-light),
    6px 6px 14px rgba(190, 21, 83, 0.38);
}

.vo2-btn--primary:hover:not(:disabled) {
  box-shadow:
    -3px -3px 10px var(--nm-light),
    8px 8px 18px rgba(190, 21, 83, 0.48);
}

.vo2-btn--primary:active:not(:disabled) {
  box-shadow:
    inset 2px 2px 5px rgba(122, 10, 46, 0.55),
    inset -2px -2px 5px rgba(255, 160, 195, 0.45);
  transform: scale(0.98);
}

/* Anchor buttons — override global site link color (#e71068 on pink) */
.vo2-wizard-wrap a.vo2-btn--primary,
.vo2-wizard-wrap a.vo2-btn--primary:hover,
.vo2-wizard-wrap a.vo2-btn--primary:focus,
.vo2-wizard-wrap a.vo2-btn--primary:active {
  color: #fff;
  text-decoration: none;
}

.vo2-wizard-wrap a.vo2-btn--ghost,
.vo2-wizard-wrap a.vo2-btn--ghost:hover,
.vo2-wizard-wrap a.vo2-btn--ghost:focus {
  color: var(--fg-2);
  text-decoration: none;
}

.vo2-wizard-wrap a.vo2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vo2-btn--ghost {
  flex: 0 1 auto;
  background: var(--surface-0);
  color: var(--fg-2);
  box-shadow: var(--nm-raised-sm);
}

.vo2-btn--ghost:hover {
  color: var(--vo2-pink-500);
}

.vo2-btn--ghost:active {
  box-shadow: var(--nm-inset-sm);
}

.vo2-btn--link {
  background: transparent;
  color: var(--vo2-pink-500);
  flex: 0 0 auto;
  min-width: auto;
  font-size: var(--fs-small);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Upload */
.vo2-upload-box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-radius: 18px;
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  color: var(--fg-2);
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
  transition: box-shadow var(--dur-2) var(--ease-out), color var(--dur-2);
}

.vo2-upload-box:hover {
  color: var(--vo2-pink-500);
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.25);
}

.vo2-upload-box__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  box-shadow: var(--nm-raised-sm);
  color: var(--vo2-pink-500);
  font-size: 1.25rem;
}

.vo2-upload-box__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.vo2-upload-box__preview-wrap {
  position: relative;
  display: none;
  width: 96px;
  height: 96px;
}

.vo2-upload-box--avatar .vo2-upload-box__preview-wrap {
  width: 120px;
  height: 120px;
}

.vo2-upload-box.is-selected .vo2-upload-box__preview-wrap,
.vo2-upload-box.is-uploading .vo2-upload-box__preview-wrap,
.vo2-upload-box.is-uploaded .vo2-upload-box__preview-wrap {
  display: block;
}

.vo2-upload-box__preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--nm-raised-sm);
  border: 3px solid var(--surface-1);
  display: block;
}

.vo2-upload-box__preview[hidden] {
  display: none;
}

.vo2-upload-box--avatar.is-uploading .vo2-upload-box__preview-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(223, 32, 99, 0) 0%,
    rgba(223, 32, 99, 0.95) 22%,
    rgba(223, 32, 99, 0) 44%,
    rgba(223, 32, 99, 0) 100%
  );
  -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 74%);
  mask: radial-gradient(closest-side, transparent 72%, #000 74%);
  animation: vo2-upload-ring-spin 0.9s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes vo2-upload-ring-spin {
  to { transform: rotate(360deg); }
}

.vo2-upload-box__status {
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
}

.vo2-upload-box__hint {
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
}

.vo2-upload-box.is-selected .vo2-upload-box__icon {
  display: none;
}

.vo2-upload-box.is-uploading {
  pointer-events: none;
  opacity: 0.85;
}

.vo2-upload-box.is-uploading .vo2-upload-box__status::after {
  content: ' — در حال آپلود…';
  color: var(--vo2-pink-500);
}

.vo2-upload-box.is-uploaded {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(34, 197, 94, 0.35);
}

.vo2-upload-box.is-uploaded .vo2-upload-box__status {
  color: #16a34a;
}

.vo2-upload-box.is-uploaded .vo2-upload-box__hint {
  display: none;
}

/* Crop modal */
.vo2-crop-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10080;
}

.vo2-crop-modal.is-open {
  display: block;
}

.vo2-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.vo2-crop-modal__dialog {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  margin: 7vh auto 0;
  border-radius: 18px;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-lg);
  overflow: hidden;
}

.vo2-crop-modal__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(163, 177, 198, 0.25);
}

.vo2-crop-modal__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--fg-1);
}

.vo2-crop-modal__close {
  margin-inline-start: auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 0;
  background: var(--surface-1);
  box-shadow: var(--nm-raised-sm);
  color: var(--fg-2);
  font-size: 20px;
  line-height: 1;
}

.vo2-crop-modal__close:active {
  box-shadow: var(--nm-inset-sm);
}

.vo2-crop-modal__body {
  padding: 14px 16px;
}

.vo2-crop-modal__stage {
  width: 100%;
  height: min(56vh, 420px);
  border-radius: 16px;
  background: var(--surface-1);
  box-shadow: var(--nm-inset-sm);
  overflow: hidden;
}

.vo2-crop-modal__stage img {
  max-width: 100%;
  display: block;
}

.vo2-crop-modal__footer {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(163, 177, 198, 0.25);
}

.vo2-crop-modal__footer .vo2-btn {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  padding-inline: 14px;
}

.vo2-crop-modal__cancel {
  margin-inline-start: auto;
}

#btnCropConfirm {
  min-width: 124px;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .vo2-crop-modal__footer {
    gap: 8px;
    padding-inline: 12px;
  }
  .vo2-crop-modal__footer .vo2-btn {
    font-size: 13px;
    padding-inline: 10px;
  }
  #btnCropConfirm {
    min-width: 116px;
  }
}

/* Alerts */
.vo2-error {
  font-size: var(--fs-small);
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  color: var(--danger);
  background: rgba(255, 107, 61, 0.1);
  box-shadow: var(--nm-inset-sm);
}

.vo2-error.is-success {
  color: var(--success);
  background: rgba(31, 174, 99, 0.1);
}

/* Checklist */
.vo2-checklist {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
  border-radius: 18px;
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
}

.vo2-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(163, 177, 198, 0.35);
  font-size: var(--fs-small);
  font-weight: 500;
}

.vo2-checklist li:last-child { border-bottom: 0; }
.vo2-checklist li::before {
  content: '○';
  font-size: 0.75rem;
}
.vo2-checklist li.done { color: var(--success); }
.vo2-checklist li.done::before { content: '✓'; }
.vo2-checklist li.pending { color: var(--warning); }
.vo2-checklist li.missing { color: var(--danger); }

.vo2-wizard-wrap .text-muted {
  color: var(--fg-3) !important;
}

.vo2-wizard-wrap a {
  color: var(--vo2-pink-500);
  font-weight: var(--fw-semi);
  text-decoration: none;
}

.vo2-wizard-wrap a:hover {
  text-decoration: underline;
}

.vo2-wizard__footer-link {
  text-align: center;
  padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .vo2-wizard__footer-link { padding: 0 1.5rem 1.25rem; }
}

/* Select2 dropdown above wizard on mobile */
.vo2-wizard-wrap .select2-dropdown {
  z-index: 10060 !important;
}

/* —— Persian datepicker (wizard — neumorphic modal) —— */
html.vo2-datepicker-open {
  overflow: hidden;
}

html.vo2-auth-page .datepicker-container {
  z-index: 10050 !important;
  direction: ltr;
}

html.vo2-auth-page .datepicker-container:not(.pwt-hide) {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(26, 31, 43, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html.vo2-auth-page .datepicker-container.pwt-mobile-view {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  overflow: visible !important;
  font-size: inherit !important;
  transition: opacity var(--dur-2) var(--ease-out);
}

html.vo2-auth-page .datepicker-container .datepicker-plot-area {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: min(300px, calc(100vw - 2rem)) !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  padding: 0.85rem 0.75rem 0.65rem;
  border: 0;
  border-radius: 20px;
  background: var(--surface-1);
  box-shadow: var(--nm-raised);
  font-family: var(--font-body);
}

html.vo2-auth-page .datepicker-plot-area * {
  font-family: var(--font-body);
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view,
html.vo2-auth-page .datepicker-plot-area .datepicker-month-view,
html.vo2-auth-page .datepicker-plot-area .datepicker-year-view {
  min-height: 0;
  float: none;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-navigator {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-next,
html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-prev,
html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-switch {
  float: none;
  width: auto;
  flex: 0 0 auto;
  height: 36px;
  min-width: 36px;
  line-height: 1;
  margin: 0;
  padding: 0 0.5rem;
  border-radius: 12px;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  color: var(--fg-2);
  font-size: 1.1rem !important;
  font-weight: 700;
  transition: box-shadow var(--dur-2) var(--ease-out), color var(--dur-2);
}

html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-switch {
  flex: 1 1 auto;
  font-size: 0.9rem !important;
  font-weight: 700;
  color: var(--fg-1);
}

html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-next:hover,
html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-prev:hover,
html.vo2-auth-page .datepicker-plot-area .datepicker-navigator .pwt-btn-switch:hover {
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
  color: var(--vo2-pink-500);
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .month-grid-box {
  min-height: 0;
  margin: 0;
  float: none;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .month-grid-box .header {
  padding-bottom: 0.35rem;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .month-grid-box .header .header-row-cell {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fg-4);
  height: 22px;
  line-height: 22px;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td {
  height: auto;
  padding: 2px;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td span {
  height: 34px;
  line-height: 34px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-2);
  background: transparent;
  transition: background var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td span.other-month {
  color: var(--fg-4);
  opacity: 0.65;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td.disabled span {
  background: transparent;
  color: var(--fg-4);
  opacity: 0.35;
  cursor: default;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td.today span {
  background: var(--surface-0);
  color: var(--vo2-navy);
  box-shadow: var(--nm-inset-sm);
  border: 0;
  text-shadow: none;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td.selected span,
html.vo2-auth-page .datepicker-plot-area .datepicker-year-view .year-item.selected,
html.vo2-auth-page .datepicker-plot-area .datepicker-month-view .month-item.selected {
  background: linear-gradient(145deg, var(--vo2-pink-400), var(--vo2-pink-600));
  color: var(--fg-inv);
  box-shadow: 0 4px 14px rgba(223, 32, 99, 0.35);
  text-shadow: none;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-day-view .table-days td span:hover,
html.vo2-auth-page .datepicker-plot-area .datepicker-year-view .year-item:hover,
html.vo2-auth-page .datepicker-plot-area .datepicker-month-view .month-item:hover {
  background: var(--surface-0);
  color: var(--vo2-pink-500);
  box-shadow: var(--nm-raised-sm);
}

html.vo2-auth-page .datepicker-plot-area .datepicker-year-view,
html.vo2-auth-page .datepicker-plot-area .datepicker-month-view {
  padding-top: 0.25rem;
}

html.vo2-auth-page .datepicker-plot-area .datepicker-year-view .year-item,
html.vo2-auth-page .datepicker-plot-area .datepicker-month-view .month-item {
  height: 38px;
  line-height: 38px;
  margin: 3px 0;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  color: var(--fg-2);
}

html.vo2-auth-page .datepicker-plot-area .toolbox {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(163, 177, 198, 0.25);
  display: flex;
  justify-content: flex-end;
  float: none;
}

html.vo2-auth-page .datepicker-plot-area .toolbox .pwt-btn-calendar,
html.vo2-auth-page .datepicker-plot-area .toolbox .pwt-btn-today {
  display: none !important;
}

html.vo2-auth-page .datepicker-plot-area .toolbox .pwt-btn-submit {
  float: none;
  margin: 0;
  min-width: 88px;
  height: 36px;
  line-height: 36px;
  padding: 0 1.1rem;
  border-radius: var(--r-pill);
  font-size: 0.82rem !important;
  font-weight: 700;
  color: var(--fg-inv);
  background: linear-gradient(145deg, var(--vo2-pink-400), var(--vo2-pink-600));
  box-shadow: 0 4px 14px rgba(223, 32, 99, 0.28);
}

html.vo2-auth-page .datepicker-plot-area .toolbox .pwt-btn-submit:hover {
  background: linear-gradient(145deg, var(--vo2-pink-500), var(--vo2-pink-600));
}

/* Kill vendor mobile orange overrides inside wizard */
html.vo2-auth-page .datepicker-container.pwt-mobile-view .datepicker-plot-area [class*='pwt-btn'] {
  background: var(--surface-0) !important;
  font-size: inherit !important;
  height: auto;
  line-height: inherit;
}

html.vo2-auth-page .datepicker-container.pwt-mobile-view .datepicker-plot-area .table-days td span {
  height: 34px;
  line-height: 34px;
  font-size: 0.82rem;
}

html.vo2-auth-page .datepicker-container.pwt-mobile-view .datepicker-plot-area .datepicker-year-view .year-item,
html.vo2-auth-page .datepicker-container.pwt-mobile-view .datepicker-plot-area .datepicker-month-view .month-item {
  height: 38px;
  line-height: 38px;
}

.vo2-wizard-wrap .vo2-field--date .vo2-field__well {
  position: relative;
}

.vo2-wizard-wrap .vo2-field--date .vo2-field__well::after {
  content: '\F1F6';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-4);
  font-size: 1rem;
  pointer-events: none;
}

.vo2-wizard-wrap .vo2-field--date input {
  padding-inline-start: 2.25rem;
  cursor: pointer;
  text-align: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}

.vo2-wizard-wrap .select2-container {
  width: 100% !important;
}

.vo2-wizard-wrap .select2-container--default .select2-selection--single,
.vo2-wizard-wrap .select2-container--default .select2-selection--multiple {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
}

.vo2-wizard-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.vo2-wizard-wrap .select2-container--default.select2-container--focus .select2-selection--multiple {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.4);
}

/* —— Ajax search selects (club / coach) —— */
.vo2-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 4px 0.55rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg-2);
  background: var(--surface-0);
  border-radius: 999px;
  box-shadow: var(--nm-raised-sm);
}

.vo2-hint-badge i {
  color: var(--brand-primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.vo2-field--select .vo2-field__well--select {
  padding: 2px;
}

.vo2-field--select .select2-container {
  position: relative;
}

.vo2-field--select.is-loading .select2-container::after {
  content: '';
  position: absolute;
  inset-inline-end: 2.5rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(223, 32, 99, 0.18);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: vo2-upload-ring-spin 0.75s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.vo2-field--select .select2-container--default .select2-selection--single {
  background: transparent;
  box-shadow: none;
  min-height: 44px;
  border-radius: 12px;
}

.vo2-field--select .select2-container--default.select2-container--focus .select2-selection--single {
  box-shadow: none;
}

.vo2-field--select .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-inline-start: 0.85rem;
  padding-inline-end: 3rem;
  line-height: 44px;
  color: var(--fg-1);
  font-weight: 600;
  text-align: start;
  direction: rtl;
}

.vo2-field--select .select2-container--default .select2-selection--single .select2-selection__clear {
  margin-inline-end: 0.35rem;
  color: var(--fg-3);
  font-weight: 700;
}

.vo2-field--select .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--fg-3);
  font-weight: 500;
}

.vo2-field--select .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  inset-inline-end: 10px;
}

.vo2-field--select .select2-container--default .select2-selection--clearable .select2-selection__rendered {
  padding-inline-end: 3.75rem;
}

.vo2-wizard-wrap .select2-dropdown {
  border: 0;
  border-radius: 14px;
  background: var(--surface-1);
  box-shadow: var(--nm-raised);
  overflow: hidden;
  padding: 0.35rem;
}

.vo2-wizard-wrap .select2-search--dropdown {
  padding: 0.25rem 0.35rem 0.45rem;
}

.vo2-wizard-wrap .select2-search--dropdown .select2-search__field {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
}

.vo2-wizard-wrap .select2-search--dropdown .select2-search__field:focus {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.35);
}

.vo2-wizard-wrap .select2-results__option {
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 2px;
}

.vo2-wizard-wrap .select2-results__option--highlighted[aria-selected] {
  background: rgba(223, 32, 99, 0.12);
  color: var(--brand-primary);
}

.vo2-wizard-wrap .select2-results__option[aria-selected='true'] {
  background: rgba(223, 32, 99, 0.08);
  color: var(--brand-primary);
}

.vo2-wizard-wrap .select2-results__message {
  padding: 0.65rem 0.5rem;
  color: var(--fg-3);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* —— Auth pages (login / OTP) — compact centered column —— */
.vo2-wizard-scene--auth {
  min-height: 100dvh;
}

@media (min-width: 992px) {
  .vo2-wizard-scene--auth {
    align-items: center;
    min-height: calc(100dvh - 2rem);
  }
}

.vo2-wizard--auth {
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh !important;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    0
    max(1.5rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.vo2-auth-shell {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding-inline: 1rem;
  flex: 0 1 auto;
}

@media (min-width: 576px) {
  .vo2-wizard--auth {
    min-height: auto !important;
    padding: 2rem 0;
  }

  .vo2-auth-shell {
    padding-inline: 1.5rem;
  }
}

.vo2-auth-shell > .vo2-auth-panel--tabs {
  flex-shrink: 0;
}

.vo2-auth-shell > .vo2-auth-panel--login,
.vo2-auth-shell > .vo2-auth-panel--register {
  display: block;
  padding: 0 0 0 !important;
}

.vo2-auth-shell > .vo2-auth-panel--login[hidden],
.vo2-auth-shell > .vo2-auth-panel--register[hidden] {
  display: none !important;
}

@media (min-width: 992px) {
  .vo2-wizard--auth {
    align-self: center;
  }
}

.vo2-wizard__header--auth {
  text-align: center;
  padding-bottom: 0.25rem;
  margin-bottom: 0.1rem;
}

.vo2-wizard__header--auth .vo2-step-title {
  margin-top: 0;
}

.vo2-step-title {
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  font-weight: var(--fw-black);
  text-align: center;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}

.vo2-step-lead--hint {
  font-size: 0.8rem;
  color: var(--fg-4);
  margin-bottom: 0;
}

.vo2-auth-panel {
  padding: 0 1rem 1.25rem !important;
  display: block;
}

@media (min-width: 576px) {
  .vo2-auth-panel {
    padding: 0 1.5rem 1.75rem !important;
  }
}

.vo2-auth-banner {
  width: 50%;
  max-width: 20rem;
  min-width: 16rem;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.7rem 0.9rem;
  background: var(--surface-0);
  border-radius: 12px;
  box-shadow: var(--nm-inset-sm);
  color: var(--fg-3);
}

.vo2-auth-banner a {
  color: var(--vo2-pink-500);
  font-weight: var(--fw-semi);
  text-decoration: none;
}

.vo2-auth-banner a:hover {
  text-decoration: underline;
}

.vo2-auth-form {
  width: 50%;
  max-width: 20rem;
  min-width: 16rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

@media (max-width: 575.98px) {
  .vo2-auth-banner,
  .vo2-auth-form,
  .vo2-auth-otp-card {
    width: 100%;
    max-width: 22rem;
  }
}

.vo2-auth-form .vo2-field {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-bottom: 0.85rem;
}

.vo2-auth-form .vo2-field label {
  text-align: center;
  padding-inline-start: 0;
}

.vo2-auth-form .vo2-field__error-hint {
  text-align: center;
}

.vo2-auth-form .vo2-field input:not([dir="ltr"]) {
  text-align: center;
}

.vo2-auth-form__hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--fg-4);
  line-height: 1.55;
  margin: 0 0 0.9rem;
}

.vo2-auth-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.vo2-auth-form__actions .vo2-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.vo2-auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  color: var(--fg-3);
}

.vo2-auth-form__meta label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  color: inherit;
}

.vo2-auth-form__meta input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--vo2-pink-500);
  flex-shrink: 0;
}

.vo2-auth-form__legal {
  text-align: center;
  font-size: 0.78rem;
  color: var(--fg-4);
  margin-top: 0.85rem;
  line-height: 1.55;
}

.vo2-auth-form__legal a {
  color: var(--vo2-pink-500);
  font-weight: var(--fw-semi);
}

/* OTP step — matches auth form width */
.vo2-auth-otp-card {
  width: 50%;
  max-width: 20rem;
  min-width: 16rem;
  margin-inline: auto;
  padding: 1rem 0.9rem;
  background: var(--surface-0);
  border-radius: 14px;
  box-shadow: var(--nm-inset-sm);
  text-align: center;
}

.vo2-auth-otp-card h6 {
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  margin: 0 0 0.35rem;
  color: var(--fg-1);
}

.vo2-auth-otp-card__mobile {
  direction: ltr;
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-bold);
  color: var(--fg-2);
  margin: 0 0 0.85rem;
}

.vo2-auth-otp-inputs {
  direction: ltr;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.vo2-auth-otp-inputs .otp-input {
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  border: 0;
  border-radius: 12px;
  background: var(--surface-1);
  box-shadow: var(--nm-inset-sm);
  color: var(--fg-1);
  outline: none;
  padding: 0;
}

.vo2-auth-otp-inputs .otp-input:focus {
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.45);
}

.vo2-auth-otp-help {
  font-size: 0.8rem;
  color: var(--fg-4);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.vo2-auth-otp-help a {
  color: var(--vo2-pink-500);
  font-weight: var(--fw-semi);
}

.vo2-auth-otp-help .vo2-btn--ghost {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  margin-top: 0.35rem;
}

/* Register wizard — narrow fields on mobile/OTP/password steps */
.vo2-step-panel .vo2-auth-form {
  margin-bottom: 0.5rem;
}

.vo2-auth-form .vo2-wizard__actions {
  width: 100%;
  margin-top: 0.15rem;
  flex-direction: column;
}

.vo2-auth-form .vo2-wizard__actions .vo2-btn {
  width: 100%;
}

.vo2-auth-form .vo2-otp-resend {
  justify-content: center;
  text-align: center;
}

/* Auth tabs — login / register switch */
.vo2-auth-panel--tabs {
  padding: 0 0 0.85rem !important;
  margin-bottom: 0.1rem;
}

.vo2-auth-tabs {
  display: flex;
  width: 50%;
  max-width: 20rem;
  min-width: 16rem;
  margin: 0 auto;
  padding: 0.3rem;
  gap: 0.35rem;
  background: var(--surface-0);
  border-radius: 14px;
  box-shadow: var(--nm-inset-sm);
}

@media (max-width: 575.98px) {
  .vo2-auth-tabs {
    width: 100%;
    max-width: 22rem;
  }
}

.vo2-auth-tabs__btn {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--fg-3);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.vo2-auth-tabs__btn:hover {
  color: var(--fg-1);
}

.vo2-auth-tabs__btn.is-active {
  background: var(--surface-1);
  color: var(--vo2-pink-500);
  box-shadow: var(--nm-raised-sm);
  font-weight: var(--fw-bold);
}

.vo2-auth-panel--login,
.vo2-auth-panel--register {
  padding: 0 0 1.25rem;
}

.vo2-auth-panel__inner {
  width: 100%;
}

.vo2-auth-panel__body {
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .vo2-auth-panel__body {
    padding: 0 1.5rem;
  }
}

.vo2-auth-register-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.vo2-auth-register-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-small);
  color: var(--fg-2);
  line-height: 1.75;
  text-align: start;
}

.vo2-auth-visual {
  margin: 0 0 1.15rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--nm-raised-sm);
}

.vo2-auth-visual--top {
  margin: 0 0 1rem;
  width: 100%;
}

.vo2-auth-visual--top[hidden] {
  display: none !important;
}

.vo2-auth-brand {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0.5rem;
}

.vo2-auth-brand .vo2-illus--logo {
  margin: 0;
  padding: 0.45rem;
}

.vo2-auth-visual__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
}

.vo2-auth-form.vo2-auth-form--register {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 576px) {
  .vo2-auth-form.vo2-auth-form--register {
    max-width: 24rem;
  }
}

.vo2-auth-register-list li i {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  color: var(--vo2-pink-500);
  font-size: 0.95rem;
}

.vo2-wizard-wrap .select2-results__option--load-more {
  text-align: center;
  color: var(--fg-3);
}

/* —— Embedded license wizard (profile tab) —— */
.vo2-license-wizard {
  direction: rtl;
  font-family: var(--font-body);
  color: var(--fg-1);
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
}

/* Override full-page wizard shell when embedded in profile tab */
.vo2-license-wizard .vo2-wizard,
.vo2-license-wizard .vo2-wizard.vo2-wizard--embed {
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  width: 100% !important;
  overflow: hidden;
  border-radius: var(--r-card);
  box-shadow: var(--nm-raised);
}

.vo2-license-wizard .vo2-wizard__body {
  flex: 0 1 auto;
  padding-bottom: 0.25rem;
  overflow-x: hidden;
}

.vo2-license-wizard .vo2-wizard__topbar {
  padding-top: 0.5rem;
}

.vo2-license-wizard .vo2-wizard__actions {
  margin-top: 0.75rem;
  padding: 0 1rem 1rem;
  flex-shrink: 0;
}

.vo2-license-wizard .vo2-wizard__actions--split {
  justify-content: space-between;
}

@media (min-width: 480px) {
  .vo2-license-wizard .vo2-wizard__actions--split .vo2-btn {
    min-width: 8.5rem;
    flex: 0 1 auto;
  }

  .vo2-license-wizard .vo2-wizard__actions--split .vo2-btn.w-100 {
    width: auto;
    flex: 0 1 auto;
  }
}

/* Step rail: hide connector lines inside narrow embed (RTL bleed artifacts) */
.vo2-license-wizard .vo2-step-rail__item:not(:last-child)::after {
  display: none;
}

.vo2-license-wizard .vo2-steps {
  padding-inline: 0.75rem;
}

#licenseCard .vo2-license-wizard .vo2-field input,
#licenseCard .vo2-license-wizard .vo2-field textarea {
  direction: ltr;
  text-align: left;
}

#licenseCard .vo2-license-wizard .vo2-field input[name="team"],
#licenseCard .vo2-license-wizard .vo2-field--rtl input {
  direction: rtl;
  text-align: right;
}

/* Role cards must not inherit .vo2-field label caption styles */
.vo2-license-wizard .vo2-field--role .vo2-role-card {
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
  padding-inline-start: 0;
}

.vo2-license-wizard .vo2-field--role .vo2-role-card strong {
  text-transform: none;
}

.vo2-license-wizard .vo2-field--role .vo2-role-card small {
  text-transform: none;
}

.vo2-license-wizard .vo2-role-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.vo2-license-wizard .vo2-role-cards--license .vo2-role-card {
  position: relative;
  min-width: 0;
}

.vo2-license-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.vo2-license-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  color: var(--fg-2);
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  cursor: pointer;
  transition: box-shadow var(--dur-2), color var(--dur-2), transform var(--dur-2);
  user-select: none;
}

.vo2-license-chip:hover {
  color: var(--vo2-pink-500);
  transform: translateY(-1px);
}

.vo2-license-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vo2-license-chip.is-selected {
  color: var(--fg-inv);
  background: linear-gradient(135deg, var(--vo2-pink-400), var(--vo2-pink-600));
  box-shadow: 6px 6px 14px rgba(190, 21, 83, 0.28);
}

.vo2-license-chip__count {
  display: block;
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--fg-3);
  margin-top: 0.75rem;
}

.vo2-license-chip__count.is-limit {
  color: var(--vo2-pink-500);
  font-weight: var(--fw-semi);
}

.vo2-license-pay-card {
  border-radius: 18px;
  padding: 1.25rem;
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
  text-align: center;
}

.vo2-license-pay-card__price {
  font-size: var(--fs-small);
  color: var(--fg-3);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.vo2-license-status {
  border-radius: var(--r-card);
  padding: 1rem 1.1rem;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  margin-bottom: 0.75rem;
}

.vo2-license-status__label {
  font-size: var(--fs-caption);
  color: var(--fg-4);
  margin-bottom: 0.35rem;
}

.vo2-license-status__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.vo2-license-status__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
}

.vo2-license-status__badge--ok {
  background: rgba(60, 198, 125, 0.15);
  color: var(--vo2-green-600, #198754);
}

.vo2-license-status__badge--expired {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.vo2-license-doc-preview {
  border-radius: var(--r-card);
  padding: 1rem;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  text-align: center;
  margin-bottom: 0.75rem;
}

.vo2-license-doc-preview img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  border-radius: var(--r-md);
  object-fit: contain;
}

/* —— Embedded wizard (profile tab — license) —— */
.vo2-wizard--embed {
  min-height: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-card);
  box-shadow: var(--nm-raised);
  background: var(--surface-1);
  overflow: hidden;
}

.vo2-wizard--embed .vo2-wizard__topbar {
  padding: 0.85rem 1rem 0;
}

.vo2-wizard--embed .vo2-wizard__header {
  padding: 0.25rem 1rem 0.75rem;
}

.vo2-wizard--embed .vo2-wizard__body {
  padding: 0.25rem 1rem 1.25rem;
}

.vo2-wizard--embed .vo2-wizard__title {
  font-size: 1.15rem;
}

.vo2-role-cards--license {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .vo2-role-cards--license {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vo2-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.vo2-pick-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.vo2-pick-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vo2-pick-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--r-pill);
  padding: 0.55rem 1rem;
  background: var(--surface-0);
  box-shadow: var(--nm-raised-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  color: var(--fg-2);
  transition: box-shadow var(--dur-2) var(--ease-out), color var(--dur-2);
}

.vo2-pick-chip:hover span {
  color: var(--vo2-pink-500);
}

.vo2-pick-chip.is-selected span {
  color: var(--vo2-pink-500);
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 2px rgba(223, 32, 99, 0.45);
}

.vo2-pick-chip.is-disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}

.vo2-pick-counter {
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semi);
  color: var(--fg-3);
  margin-top: 0.75rem;
}

.vo2-pay-panel {
  border-radius: var(--r-card);
  padding: 1.25rem 1rem;
  background: var(--surface-0);
  box-shadow: var(--nm-inset-sm);
  text-align: center;
}

.vo2-pay-panel__price {
  font-size: var(--fs-small);
  color: var(--fg-3);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.vo2-license-status {
  border-radius: var(--r-card);
  padding: 1rem 1.1rem;
  background: var(--surface-1, #fff);
  box-shadow: var(--nm-raised-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
  margin-bottom: 0.85rem;
}

.vo2-license-status__label {
  font-size: var(--fs-caption);
  color: var(--fg-3, #6c757d);
  margin-bottom: 0.35rem;
}

.vo2-license-doc-preview {
  border-radius: var(--r-card);
  padding: 1rem;
  background: var(--surface-1, #fff);
  box-shadow: var(--nm-raised-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
  text-align: center;
  margin-bottom: 0.85rem;
}

.vo2-license-doc-preview img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  border-radius: var(--r-md, 8px);
  object-fit: contain;
}
