/* BAVEO account / apply / public-stub pages — same tokens as the index. */

.auth-page {
  min-height: calc(100vh - var(--nav-h) - 180px);
  padding: 48px 0 80px;
}

.auth-card {
  width: min(100%, 440px);
  margin-inline: auto;
  background: var(--glass-strong, var(--color-surface));
  border: 1px solid var(--glass-line, var(--color-border));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px 28px 28px;
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
}

.auth-card.public-card {
  width: min(100%, 640px);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--color-primary);
  font-weight: 600;
}

.auth-tabs a {
  min-height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.auth-tabs a.is-active {
  background: #fff;
  color: var(--color-ink);
  box-shadow: var(--shadow-xs);
}

.form-stack select,
.form-stack textarea,
.form-stack input[type="file"] {
  min-height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  background: #fff;
  width: 100%;
}

.form-stack .errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 500;
}

.form-stack legend {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.gender-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}

.gender-pick legend {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.gender-pick ul,
ul.baveo-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  grid-column: 1 / -1;
}

.gender-pick li,
ul.baveo-choice li {
  margin: 0;
  padding: 0;
}

.gender-pick-option,
.gender-pick li label,
ul.baveo-choice label {
  position: relative;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
  background: #fff;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.gender-pick-option input,
.gender-pick li input,
ul.baveo-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-stack label.gender-pick-option,
label.gender-pick-option {
  display: flex;
  margin-bottom: 0;
}

.form-stack label.gender-pick-option input[type="radio"],
label.gender-pick-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
  border: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.gender-pick-option:hover,
.gender-pick li label:hover,
ul.baveo-choice label:hover {
  border-color: var(--color-primary);
}

.form-stack label.gender-pick-option:has(input:checked),
label.gender-pick-option:has(input:checked),
.gender-pick-option:has(input:checked),
.gender-pick-option.is-on,
.gender-pick button.is-on,
.gender-pick li label:has(input:checked),
ul.baveo-choice label:has(input:checked) {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, #fff);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.flash-list {
  width: min(100%, 440px);
  margin: 0 auto 16px;
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.flash p {
  margin: 0;
}

.flash-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flash-wallet p {
  flex: 1 1 180px;
  min-width: 0;
}

.flash-wallet-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
  border-radius: 12px;
}

.flash-wallet-cta:hover {
  filter: brightness(0.96);
}

.dash-main .flash-list {
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
}

.flash-success,
.flash.success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.flash-error,
.flash.error {
  background: #fdecea;
  color: #b42318;
}

.flash-info,
.flash.info,
.flash-debug,
.flash.debug {
  background: var(--color-surface-lavender);
  color: var(--color-primary);
}

.account-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 8px 0 16px;
}

.account-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.account-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.account-meta dt {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.account-meta dd {
  margin: 0;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-surface-soft);
}

.status-pill.is-pending { color: var(--color-warning); background: #fff6e8; }
.status-pill.is-verified { color: var(--color-success); background: var(--color-success-soft); }
.status-pill.is-rejected,
.status-pill.is-suspended { color: #b42318; background: #fdecea; }

.nav-logout-form {
  display: inline-flex;
}

.plan-list,
.studio-links {
  display: grid;
  gap: 14px;
}

.plan-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  background: var(--color-surface-soft);
}

.plan-price {
  font-weight: 700;
  color: var(--color-primary);
}

.portfolio-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.portfolio-mini img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .auth-page { padding: 24px 0 56px; }
  .auth-card { padding: 24px 18px 22px; border-radius: 20px; }
  .auth-actions { grid-template-columns: 1fr; }
  .wallet-packs { grid-template-columns: 1fr 1fr; }
  .wallet-hero, .wallet-panel { padding: 18px; border-radius: 20px; }
}

.nav-actions .btn-baveo {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.875rem;
  white-space: nowrap;
  line-height: 1;
}

.nav-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.nav-text:hover {
  color: var(--color-ink);
}

.nav-logout-form {
  display: inline-flex;
  margin: 0;
}

.nav-logout,
button.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid #c0392b;
  border-radius: var(--radius-md);
  background: #fff;
  color: #c0392b;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  cursor: pointer;
}

.nav-logout:hover,
button.nav-logout:hover {
  background: #c0392b;
  color: #fff;
}

/* Header: ورود / حساب من must sit inside a box, not as loose text. */
.nav-actions .nav-login,
a.nav-login,
button.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.nav-actions .nav-login:hover,
a.nav-login:hover,
button.nav-login:hover {
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border-strong));
  background: var(--color-surface-soft);
}

.auth-card.wallet-card,
.auth-card.account-card {
  width: min(100%, 720px);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.wallet-hero,
.account-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wallet-hero-top,
.account-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-icon,
.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--color-surface-lavender);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wallet-kicker,
.account-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.wallet-balance {
  margin: 14px 0 4px;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-ink);
}

.wallet-balance-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.wallet-panel {
  margin-top: 16px;
  padding: 22px;
  border-radius: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.wallet-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.wallet-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallet-pack {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-height: 92px;
  padding: 14px 12px;
  text-align: start;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface-soft);
  color: var(--color-ink);
  cursor: pointer;
}

.wallet-pack:hover {
  border-color: var(--color-border-strong);
}

.wallet-pack.is-on {
  border-color: var(--color-primary);
  background: var(--color-surface-lavender);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
  color: var(--color-ink);
}

.wallet-pack strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.wallet-pack span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.wallet-pack em {
  margin-top: 6px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

.wallet-custom {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wallet-custom input {
  min-height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  background: #fff;
  width: 100%;
}

.wallet-confirm {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-surface-soft);
  border: 1px dashed var(--color-border-strong);
}

.wallet-confirm p {
  margin: 0 0 12px;
}

.wallet-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.wallet-ledger li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-surface-soft);
}

.wallet-ledger-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--color-primary);
}

.wallet-ledger-icon.is-debit {
  color: #b42318;
}

.wallet-ledger strong {
  display: block;
  font-size: 0.92rem;
}

.wallet-ledger small {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.wallet-amt.credit {
  color: var(--color-success);
  font-weight: 700;
  white-space: nowrap;
}

.wallet-amt.debit {
  color: #b42318;
  font-weight: 700;
  white-space: nowrap;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.account-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.account-mini:hover {
  border-color: var(--color-primary);
}

.account-mini strong {
  display: block;
  font-size: 1rem;
}

.account-mini span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.otp-hint {
  text-align: center;
  margin: 0 0 18px;
}

.otp-wrap {
  position: relative;
  direction: ltr;
  margin: 4px 0 8px;
}

.otp-wrap input,
.form-stack .otp-wrap input,
.form-stack input.otp-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0.02;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  z-index: 2;
  letter-spacing: 0;
  box-shadow: none;
}

.otp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.otp-cells span {
  min-height: 56px;
  border-radius: 16px;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-ink);
  box-shadow: var(--shadow-xs);
}

.otp-cells span.is-on {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.otp-cells span.is-filled {
  background: color-mix(in srgb, var(--color-primary) 8%, #fff);
}

.otp-resend {
  margin-top: 12px;
}

.otp-form .errorlist {
  text-align: center;
}

@media (max-width: 767px) {
  .otp-cells span { min-height: 48px; font-size: 1.15rem; border-radius: 14px; }
  .otp-cells { gap: 6px; }
}
