/* Sign-in, registration and auth gate in the public website design (mba web):
   white Navbar bar, eyebrow + display heading intro, white rounded-[1.5rem] card with line border,
   rounded-xl fields with a brand focus ring and a solid brand CTA with shadow-cta. */

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #ffffff;
  color: #0b0f19;
  font-family: var(--font);
  line-height: 1.65;
}

.auth-shell.auth-shell-premium {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(255, 107, 0, 0.08), transparent 70%),
    linear-gradient(180deg, #fff1e6 0%, #ffffff 340px);
}

/* ---- Intro + card ---- */
.auth-stage {
  flex: 1 0 auto;
  display: grid;
  align-content: start;
  gap: 22px;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 26px 16px 0;
}
.auth-intro .auth-hero { margin: 0; }
.auth-intro .auth-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6b00;
}
.auth-intro h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0b0f19;
}
.auth-intro .auth-lead {
  margin: 0;
  max-width: 38rem;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.65;
  color: #5b6578;
}
.auth-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}
.auth-checks li::before { content: "\2713"; margin-right: 6px; color: #ff6b00; font-weight: 800; }
[dir="rtl"] .auth-checks li::before { margin-right: 0; margin-left: 6px; }

.auth-card.auth-card-premium {
  position: relative;
  width: auto;
  margin: 0;
  padding: 24px 22px 12px;
  border: 1px solid #e4e9f2;
  border-radius: 24px;
  background: #ffffff;
  color: #0b0f19;
  box-shadow: 0 8px 24px rgba(11, 15, 25, 0.08);
  animation: authCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.auth-card-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0b0f19;
}
.auth-premium:has(#tab-otp[hidden]) .auth-card-title,
.auth-premium:has(#phoneStep[hidden]) .auth-card-title { display: none; }
.auth-card-premium .auth-gate-card { padding: 6px 2px 4px; background: none; border: 0; box-shadow: none; backdrop-filter: none; text-align: center; }
.auth-gate-actions { display: grid; gap: 10px; margin-top: 22px; }
.auth-card-premium .auth-gate-secondary {
  min-height: 48px;
  background: #ffffff;
  color: #0b0f19;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 250ms, color 250ms;
}
.auth-card-premium .auth-gate-secondary:hover { border-color: #ff6b00; color: #9a3d00; }
.auth-gate-foot { margin-top: 18px; }
.auth-gate-foot a { color: #ff6b00; font-weight: 700; }
.auth-card-premium .auth-gate-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: #fff1e6; font-size: 26px; }

/* Hero still rendered inside the card when the view has no hero markers (e.g. gate). */
.auth-card-premium .auth-hero { margin-bottom: 16px; }
.auth-card-premium .auth-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ff6b00; }
.auth-card-premium h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: #0b0f19; }
.auth-card-premium h2 { color: #0b0f19; }
.auth-card-premium .auth-lead { margin: 0; color: #5b6578; font-size: 15px; line-height: 1.6; }

/* Segmented mode switch (mobile / password) */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid #e4e9f2;
}
.auth-tabs:has(.auth-tab:only-child) { display: none; }
.auth-tab {
  appearance: none;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 250ms, color 250ms, box-shadow 250ms;
}
.auth-tab.active { background: #ffffff; color: #0b0f19; font-weight: 700; box-shadow: 0 1px 2px rgba(11, 15, 25, 0.08), 0 0 0 1px #e4e9f2; }
.auth-tab:hover:not(.active) { color: #0b0f19; }
.auth-tab:focus-visible { outline: 2px solid #ff6b00; outline-offset: 2px; }

.auth-panel[hidden] { display: none !important; }
.auth-panel.active { display: block; animation: authPanelIn 0.25s ease both; }
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Fields: white, rounded-xl, surface-line border, brand focus ring */
.auth-card-premium .field { display: grid; gap: 7px; margin-bottom: 14px; }
.auth-card-premium .field label { color: #334155; font-weight: 600; font-size: 14px; }
.auth-card-premium input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.auth-card-premium select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d5dce8;
  border-radius: 12px;
  background: #ffffff;
  color: #0b0f19;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 250ms, box-shadow 250ms;
}
.auth-card-premium input::placeholder { color: #94a3b8; font-weight: 500; }
.auth-card-premium input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-card-premium select:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

/* Phone field: one control with country prefix, divider and digits */
.phone-row {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid #d5dce8;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 250ms, box-shadow 250ms;
}
.phone-row:focus-within { border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18); }
.auth-card-premium .phone-row select,
.auth-card-premium .phone-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  min-height: 52px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.auth-card-premium .phone-row select {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0 26px 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #0b0f19;
  border-right: 1px solid #e4e9f2;
  border-radius: 12px 0 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6578' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}
.auth-card-premium .phone-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.auth-card-premium .phone-row select:focus,
.auth-card-premium .phone-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus { box-shadow: none; border-color: transparent; }
.auth-card-premium .phone-row select:focus { border-right-color: #e4e9f2; }
[dir="rtl"] .auth-card-premium .phone-row select { border-right: 0; border-left: 1px solid #e4e9f2; border-radius: 0 12px 12px 0; padding: 0 14px 0 26px; background-position: left 8px center; }

.auth-helper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: #5b6578;
  font-size: 13.5px;
  font-weight: 500;
}
.auth-helper svg { flex: none; color: #ff6b00; }

/* Primary CTA (ui/Button primary: solid brand, rounded-xl, shadow-cta, lift on hover) */
.auth-cta,
.auth-card-premium .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0 !important;
  border-radius: 12px !important;
  background: #ff6b00 !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.35);
  transition: transform 200ms, background 200ms, box-shadow 200ms;
}
.auth-cta .auth-cta-label::after { content: " \2192"; }
[dir="rtl"] .auth-cta .auth-cta-label::after { content: " \2190"; }
.auth-cta:hover,
.auth-card-premium .btn-primary:hover { background: #e85f00 !important; transform: translateY(-2px); }
.auth-cta:active { transform: scale(0.98); }
.auth-cta:focus-visible { outline: 2px solid #ff6b00; outline-offset: 2px; }
.auth-cta.is-loading,
.auth-cta:disabled {
  background: #ffb27a !important;
  box-shadow: none;
  cursor: wait;
  transform: none;
}
.auth-card-premium .btn-ghost {
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid #e4e9f2 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0b0f19 !important;
  font-weight: 700;
  box-shadow: none;
}
.auth-card-premium .btn-ghost:hover:not(:disabled) { border-color: #ff6b00 !important; color: #ff6b00 !important; }
.auth-card-premium .btn-ghost:disabled { color: #5b6578 !important; opacity: 1; cursor: default; }

/* OTP step */
.auth-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff6b00;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.auth-back:hover { color: #e85f00; }
.auth-otp-copy {
  position: relative;
  margin: 0 0 4px;
  padding-left: 54px;
  min-height: 42px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.35;
}
.auth-otp-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff1e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / 21px no-repeat;
}
.auth-otp-copy strong { display: block; font-size: 17px; font-weight: 800; color: #0b0f19; }
[dir="rtl"] .auth-otp-copy { padding-left: 0; padding-right: 54px; }
[dir="rtl"] .auth-otp-copy::before { left: auto; right: 0; }

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 14px;
  direction: ltr;
}
.auth-card-premium .otp-boxes input {
  min-height: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #d5dce8;
  border-radius: 12px;
  background: #ffffff;
  color: #0b0f19;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}
.auth-card-premium .otp-boxes input:not(:placeholder-shown) { background: #fff1e6; border-color: rgba(255, 107, 0, 0.45); }
.auth-card-premium .otp-boxes input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}
.auth-card-premium .otp-boxes input[aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }

.auth-or { text-align: center; color: #5b6578; margin: 14px 0; font-size: 13.5px; }
.auth-error { min-height: 1.25em; margin: 10px 0 0; color: #dc2626; font-size: 13.5px; font-weight: 600; }
.auth-card-premium .help { color: #5b6578; }
.auth-card-premium .password-field { position: relative; }
.auth-card-premium .password-field input { padding-right: 76px; }
.auth-card-premium .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #ff6b00;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-switch,
.signup-footer {
  margin: 16px 0 10px;
  padding-top: 14px;
  border-top: 1px solid #e4e9f2;
  color: #5b6578;
  text-align: center;
  font-size: 14.5px;
}
.auth-switch a,
.signup-footer a { color: #ff6b00; font-weight: 700; text-decoration: none; }
.auth-switch a:hover,
.signup-footer a:hover { color: #e85f00; }
.auth-card-premium form .signup-footer { border-top: 0; padding-top: 0; }
.auth-card-premium form .signup-footer a { color: #0b0f19; font-weight: 700; }

.auth-success { text-align: center; padding: 24px 8px 12px; animation: authPanelIn 0.3s ease both; }
.auth-success h3 { margin: 14px 0 6px; color: #0b0f19; }
.auth-success-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(22, 163, 74, 0.25);
  border-top-color: #16a34a;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-card-premium .alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.auth-card-premium .alert-error { background: #fef2f2; border: 1px solid rgba(220, 38, 38, 0.22); color: #b91c1c; }
.auth-card-premium .alert-success { background: #ecfdf5; border: 1px solid rgba(22, 163, 74, 0.22); color: #166534; }

/* Footer under the card */
.auth-foot {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px 0;
  text-align: center;
}
.auth-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: #0b0f19;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 250ms;
}
.auth-explore:hover { color: #ff6b00; }
[dir="rtl"] .auth-explore span { display: inline-block; transform: scaleX(-1); }
.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #5b6578;
  font-size: 12.5px;
  font-weight: 500;
}

@media (max-width: 360px) {
  .auth-stage { padding: 20px 12px 0; }
  .auth-intro h1 { font-size: 28px; }
  .auth-tab { font-size: 13px; padding: 8px 6px; white-space: nowrap; }
  .auth-card.auth-card-premium { padding: 20px 16px 8px; }
  .otp-boxes { gap: 6px; }
  .auth-card-premium .otp-boxes input { min-height: 50px; height: 50px; font-size: 20px; }
}

@media (min-width: 960px) {
  .auth-stage {
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    align-content: center;
    gap: 56px;
    width: min(1180px, 100%);
    padding: 64px 24px 0;
  }
  .auth-stage:not(:has(.auth-intro)) { grid-template-columns: 460px; justify-content: center; }
  .auth-intro h1 { font-size: 52px; }
  .auth-intro .auth-lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card.auth-card-premium,
  .auth-panel.active,
  .auth-success { animation: none; }
  .auth-success-ring { animation-duration: 1.6s; }
  .auth-cta:active,
  .auth-cta:hover { transform: none; }
}

/* ---- Light onboarding (readable contrast) ---- */
.auth-body-light {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
.auth-shell-light {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 106, 0, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(37, 99, 235, 0.1), transparent 50%),
    #f1f5f9 !important;
}
.auth-card-light {
  position: relative;
  width: min(960px, 100%);
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  color: #0f172a !important;
  animation: authCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-card-light .brand-name { color: #0f172a !important; font-weight: 800; letter-spacing: -0.02em; }
.auth-card-light .brand-sub { color: #64748b !important; }
.auth-card-light .auth-brand { color: inherit; text-decoration: none; }
.auth-card-light h1,
.auth-card-light h2,
.auth-card-light h3 {
  color: #0f172a !important;
  letter-spacing: -0.03em;
}
.auth-card-light .help,
.auth-card-light p {
  color: #475569 !important;
}
.auth-card-light .lang-row a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
}
.auth-card-light .lang-row a.active {
  background: rgba(255, 106, 0, 0.12);
  color: #c2410c;
}
.auth-card-light input:not([type="hidden"]):not([type="radio"]):not(.mba-cat-radio),
.auth-card-light select,
.auth-card-light textarea {
  background: #fff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 12px !important;
}
.auth-card-light input::placeholder,
.auth-card-light textarea::placeholder {
  color: #94a3b8 !important;
}
.auth-card-light input:not([type="hidden"]):not([type="radio"]):not(.mba-cat-radio):focus,
.auth-card-light select:focus,
.auth-card-light textarea:focus {
  outline: none;
  border-color: #ff6a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}
.auth-card-light .field label { color: #334155 !important; }
.auth-card-light .btn-ghost {
  background: #fff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
.auth-card-light .btn-primary {
  background: linear-gradient(135deg, #ff6a00, #f97316) !important;
  color: #fff !important;
  border: 0 !important;
}
.auth-card-light .onboard-steps span {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}
.auth-card-light .onboard-steps span.done {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
}
.auth-card-light .onboard-steps span.on {
  background: #ff6a00 !important;
  color: #fff !important;
  border-color: #ff6a00 !important;
}
.auth-card-light .country-tile {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
.auth-card-light .country-tile strong { color: #0f172a !important; }
.auth-card-light .country-tile .help { color: #64748b !important; }
.auth-card-light .country-tile.selected {
  border-color: #ff6a00 !important;
  background: #fff7ed !important;
}
.auth-card-light .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 16px auto 8px;
}
.auth-card-light .category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 170px;
  height: 100%;
  padding: 24px 20px 20px;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}
.auth-card-light .category-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.auth-card-light .category-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  display: none;
}
.auth-card-light .category-card-icon {
  display: flex;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff7ed;
  color: #ff6a00;
}
.auth-card-light .category-card-icon svg,
.auth-card-light .category-card svg,
.auth-card-light svg.category-card-svg {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex: none;
}
.auth-card-light .category-card-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.auth-card-light .category-card-desc {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.auth-card-light .category-card:hover {
  border-color: #fb923c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.auth-card-light .category-card.selected,
.auth-card-light .category-card:has(.category-radio:checked) {
  border-color: #ff6a00;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.22), 0 8px 20px rgba(255, 106, 0, 0.12);
}
.auth-card-light .category-card.selected .category-card-check,
.auth-card-light .category-card:has(.category-radio:checked) .category-card-check {
  display: block;
}
.auth-card-light .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.auth-card-light .alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* hidden must beat .btn display */
.auth-card-light [hidden],
.auth-card-premium [hidden],
#onboardForm [hidden],
.btn[hidden] {
  display: none !important;
}

.onboard-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}
.onboard-actions .btn-block { flex: 1; }

@media (max-width: 720px) {
  .auth-card-light .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .auth-card-light { padding: 20px 16px 16px; border-radius: 20px; }
  .onboard-actions { flex-wrap: wrap; }
  .onboard-actions .btn-ghost { width: 100%; order: 2; }
}
@media (max-width: 520px) {
  .auth-card-light .category-grid { grid-template-columns: 1fr; }
}

/* Invoice / bill format picker on onboarding (light) */
.auth-card-light .tpl-chooser {
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden;
}
.auth-card-light .tpl-chooser-current {
  color: #0f172a !important;
}
.auth-card-light .tpl-chooser-kicker { color: #64748b !important; }
.auth-card-light .tpl-chooser-name { color: #0f172a !important; font-weight: 800; }
.auth-card-light .tpl-chooser-badge {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa;
}
.auth-card-light .tpl-chooser-thumb {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
.auth-card-light .tpl-card {
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
}
.auth-card-light .tpl-card.is-selected {
  border-color: #ff6a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18) !important;
}
.auth-card-light .tpl-card-meta strong { color: #0f172a !important; }
.auth-card-light .tpl-card-meta span { color: #64748b !important; }
.auth-card-light .tpl-card-meta em { color: #c2410c !important; font-style: normal; font-weight: 700; }
.auth-card-light .tpl-chooser-preview { display: none !important; }
.auth-card-light .tpl-chooser-panel[hidden] { display: none !important; }
.auth-card-light .tpl-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .auth-card-light .tpl-picker { grid-template-columns: 1fr; }
}
