/* Spendora Auth / Onboarding — static Mark polish (no Vite at runtime)
   Tokens align with Mark/Spendora + Spendora green primary. */

:root {
  --color-primary: #16a34a;
  --color-primary-strong: #15803d;
  --color-primary-soft: #ecfdf5;
  --color-danger: #ef4444;
  --color-danger-soft: #fef2f2;
  --color-ink: #0f172a;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-line: #e8eef7;
  --color-canvas: #f3f6fb;
  --color-surface: #ffffff;
  --radius-control: 10px;
  --radius-card: 16px;
  --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --focus-ring: 0 0 0 3px rgba(22, 163, 74, 0.24);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { font-family: var(--font-arabic); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Utilities used by auth / onboarding blades */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sr-only:focus, .focus\:not-sr-only:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-50 { z-index: 50; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: .5rem; }
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-9 { width: 2.25rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-9 { height: 2.25rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.min-h-touch, .min-h-11 { min-height: 44px; }
.mx-auto { margin-inline: auto; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-1\.5 { margin-top: .375rem; }
.mt-2 { margin-top: .5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-inline: .5rem; }
.px-3 { padding-inline: .75rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.py-1 { padding-block: .25rem; }
.py-2 { padding-block: .5rem; }
.py-3 { padding-block: .75rem; }
.py-3\.5 { padding-block: .875rem; }
.py-10 { padding-block: 2.5rem; }
.pe-12 { padding-inline-end: 3rem; }
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-xs { font-size: .75rem; line-height: 1.5; }
.text-sm { font-size: .875rem; line-height: 1.5; }
.text-base { font-size: 1rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-normal { font-weight: 400; }
.font-display, .font-sans { font-family: var(--font-sans); }
.leading-relaxed { line-height: 1.625; }
.tracking-\[-0\.02em\] { letter-spacing: -0.02em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shrink-0 { flex-shrink: 0; }
.rounded { border-radius: .25rem; }
.rounded-control, .rounded-lg { border-radius: var(--radius-control); }
.rounded-card, .rounded-\[14px\] { border-radius: var(--radius-card); }
.rounded-full { border-radius: 999px; }
.border { border: 1px solid var(--color-line); }
.border-t { border-top: 1px solid var(--color-line); }
.border-b { border-bottom: 1px solid var(--color-line); }
.border-line { border-color: var(--color-line); }
.border-danger { border-color: var(--color-danger); }
.border-danger\/30 { border-color: rgba(239, 68, 68, 0.3); }
.bg-canvas, .bg-\[\#f3f6fb\] { background: var(--color-canvas); }
.bg-surface { background: var(--color-surface); }
.bg-ink { background: var(--color-ink); }
.bg-primary { background: var(--color-primary); }
.bg-primary-soft { background: var(--color-primary-soft); }
.bg-danger-soft { background: var(--color-danger-soft); }
.text-white { color: #fff; }
.text-ink { color: var(--color-ink); }
.text-body { color: var(--color-body); }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-line { color: var(--color-line); }
.no-underline { text-decoration: none; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-ink:hover { color: var(--color-ink); }
.hover\:bg-canvas:hover { background: var(--color-canvas); }
.hover\:text-ink.hover\:underline:hover { color: var(--color-ink); text-decoration: underline; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.max-w-none { max-width: none; }
.max-w-sm { max-width: 24rem; }
.max-w-funnel, .max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.end-2 { inset-inline-end: .5rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.start-4 { inset-inline-start: 1rem; }
.top-4 { top: 1rem; }
.antialiased { -webkit-font-smoothing: antialiased; }

@media (min-width: 640px) {
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-6 { padding-inline: 1.5rem; }
  .sm\:py-14 { padding-block: 3.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:text-start { text-align: start; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-inline: 2rem; }
}

/* Buttons */
.btn, .btn-primary, .btn-ink, .btn-ghost, .onboarding-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.22);
}
.btn-primary:hover { background: var(--color-primary-strong); }
.btn-ink, .onboarding-continue {
  color: #fff;
  background: var(--color-ink);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}
.btn-ink:hover, .onboarding-continue:hover { background: #1e293b; }
.btn-ghost {
  border-color: var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
}
.w-full.btn-primary, .btn-primary.w-full, .onboarding-continue.w-full { width: 100%; }

/* Guest shell */
.guest-header { position: relative; background: var(--color-ink); color: #fff; }
.guest-header-bar {
  display: flex;
  height: 4rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.25rem;
}
.guest-brand { display: inline-flex; align-items: center; text-decoration: none; }
.guest-brand-wordmark { height: 32px; width: auto; object-fit: contain; }
.guest-logout {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-control);
  padding: .25rem .5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.guest-logout:hover { color: #fff; }
.guest-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem;
  background: var(--color-canvas);
}
.guest-main-inner { width: 100%; }
.guest-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-muted);
}
.guest-footer-bar {
  margin-inline: auto;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: .75rem;
}
.site-header { background: var(--color-ink); }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher-trigger {
  display: inline-flex;
  list-style: none;
  align-items: center;
  gap: .5rem;
  min-height: 36px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.lang-switcher-trigger::-webkit-details-marker { display: none; }
.lang-switcher-trigger::marker { content: ''; }
.lang-switcher-trigger:hover,
.lang-switcher[open] .lang-switcher-trigger {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}
.lang-switcher-code { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.lang-switcher-chevron { opacity: .72; transition: transform .18s ease; }
.lang-switcher[open] .lang-switcher-chevron { transform: rotate(180deg); }
.lang-flag {
  display: inline-flex;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
  background: #fff;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-switcher-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 70;
  min-width: 12.5rem;
  padding: .35rem;
  border-radius: 12px;
  border: 1px solid var(--color-line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}
.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: .625rem;
  border-radius: 10px;
  padding: .5rem .625rem;
  text-decoration: none;
  color: var(--color-ink);
}
.lang-switcher-option:hover { background: var(--color-canvas); }
.lang-switcher-option.is-active { background: var(--color-primary-soft); }
.lang-switcher-name { flex: 1; font-size: .875rem; font-weight: 600; }
.lang-switcher-meta { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--color-muted); }
.lang-switcher-option.is-active .lang-switcher-meta { color: var(--color-primary-strong); }

/* Auth forms */
.public-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-ink);
}
.public-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .875rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.public-input:hover {
  background: #fff;
  border-color: #c9d5e8;
}
.public-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: var(--focus-ring);
}
.public-input.is-invalid,
.public-input.border-danger {
  border-color: var(--color-danger);
  background: #fff;
}
.public-input--icon {
  padding-inline-start: 2.85rem;
}
.public-input--password {
  padding-inline-end: 3rem;
}
.auth-field-control {
  position: relative;
}
.auth-field-icon {
  position: absolute !important;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}
.auth-field-icon svg {
  display: block;
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
}
.auth-password-toggle {
  position: absolute;
  inset-inline-end: .65rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.auth-password-toggle svg {
  display: block;
  width: 1.25rem !important;
  height: 1.25rem !important;
}
.auth-password-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-ink);
}
.public-help {
  margin-top: .375rem;
  font-size: .75rem;
  color: var(--color-muted);
}
.public-error {
  margin-top: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-danger);
}
.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.section-eyebrow {
  margin: 0 0 1rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Login / register Mark split */
.auth-login-page,
.auth-register-page { background: var(--color-sidebar-top, #0b1426); }
.auth-login-page .site-header,
.auth-register-page .site-header { background: #0b1426; }
.auth-login-page .guest-main,
.auth-register-page .guest-main {
  align-items: stretch;
  padding: 0;
  background: var(--color-canvas);
}
.auth-login-page .guest-main-inner,
.auth-register-page .guest-main-inner {
  max-width: none;
  width: 100%;
}
.auth-login-page footer,
.auth-register-page footer,
.auth-checkout-page footer { display: none; }

.login-stage {
  display: grid;
  min-height: calc(100dvh - 4rem);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  background: var(--color-canvas);
}
.login-form-panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.75rem);
  background: #fff;
}
.login-form-inner { width: 100%; max-width: 464px; margin-inline: auto; }

/* Shared auth card (forgot/reset/2FA/checkout status) */
.auth-card {
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .auth-card { padding: 2rem; }
}
.auth-card-header { margin-bottom: 1.5rem; }
.auth-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-ink);
}
.auth-card-subtitle {
  margin: .5rem 0 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--color-muted);
}
.auth-card-body { margin: 0; }
.auth-card-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--color-muted);
}

/* Login / register: WowDash-flat panel (no nested card chrome) */
.login-card.auth-card,
.login-card.surface-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.login-card .auth-card-header { margin-bottom: 1.75rem; }
.login-card .auth-card-title {
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
}
.login-card .auth-card-subtitle {
  margin-top: .55rem;
  font-size: 1rem;
}
.login-card .auth-card-footer { margin-top: 1.75rem; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.auth-form-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .15rem;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  font-size: .875rem;
  color: var(--color-body);
  cursor: pointer;
}
.auth-check--start {
  align-items: flex-start;
  min-height: 0;
}
.auth-check input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: .35rem;
  accent-color: var(--color-primary);
}
.auth-check--start input[type='checkbox'] { margin-top: .15rem; }
.auth-check-note {
  display: block;
  margin-top: .35rem;
  font-size: .75rem;
}
.auth-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; color: var(--color-primary-strong); }
.auth-submit {
  margin-top: .35rem;
  min-height: 52px;
  border-radius: 12px;
  font-size: .95rem;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.register-stage .login-form-inner { max-width: 520px; }
.register-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.register-password-hint {
  margin: -.35rem 0 0;
  color: var(--color-muted);
  font-size: .75rem;
  line-height: 1.55;
}
.auth-legal-copy {
  color: var(--color-body);
  line-height: 1.55;
}
.auth-legal-copy .auth-link {
  text-decoration: underline;
  text-decoration-color: rgba(22, 163, 74, .35);
  text-underline-offset: 3px;
}
.auth-legal-copy .auth-link:hover {
  text-decoration-color: currentColor;
}
.login-brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(180deg, #0b1426 0%, #111c33 50%, #0e1a30 100%);
  color: #fff;
}
.login-brand-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -13rem;
  inset-inline-end: 14%;
  width: 9rem;
  height: 38rem;
  background: var(--color-primary);
  opacity: .85;
  transform: rotate(34deg);
}
[dir='rtl'] .login-brand-panel::before { transform: rotate(-34deg); }
.login-brand-copy { position: relative; z-index: 2; max-width: 31rem; }
.login-brand-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.login-brand-copy p {
  max-width: 35rem;
  margin-top: 1.25rem;
  color: #cbd5e1;
  font-size: .95rem;
  line-height: 1.8;
}
.login-dashboard {
  position: relative;
  z-index: 2;
  width: 108%;
  margin: 2rem -2% 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}
.login-dashboard img { display: block; width: 100%; height: auto; }
.login-proof {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 650;
}
.login-proof li { display: flex; align-items: center; gap: .55rem; }
.login-proof span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

/* Compact auth cards (2FA, reset, verify) */
.two-factor-form-inner { max-width: 29rem; }
.two-factor-card .auth-card-header { margin-bottom: 1.5rem; }
.two-factor-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .12);
}
.two-factor-icon svg { width: 1.5rem; height: 1.5rem; }
.two-factor-code {
  min-height: 60px;
  text-align: center;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-indent: .32em;
  font-variant-numeric: tabular-nums;
}
.two-factor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem 1rem;
  margin-top: 1.25rem;
  font-size: .875rem;
}
.two-factor-link-button {
  min-height: 44px;
  padding: .45rem .25rem;
  border: 0;
  background: transparent;
  color: var(--color-primary-strong);
  font-weight: 700;
  cursor: pointer;
}
.two-factor-link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.two-factor-link-button--muted { color: var(--color-muted); font-weight: 600; }
.two-factor-link-button--muted:hover { color: var(--color-ink); }
.two-factor-divider { width: 1px; height: 1rem; background: var(--color-line); }

.auth-compact .guest-main,
body:not(.auth-login-page):not(.auth-register-page):not(.auth-checkout-page) .guest-main {
  background: var(--color-canvas);
}

/* Status panel */
.spendora-status {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-line);
  padding: 1rem 1.1rem;
  font-size: .875rem;
}
.spendora-status--success {
  border-color: rgba(22, 163, 74, 0.25);
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}
.spendora-status--danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.spendora-status--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.spendora-status--neutral {
  background: var(--color-canvas);
  color: var(--color-body);
}
.opacity-90 { opacity: .9; }
.pb-4 { padding-bottom: 1rem; }
.mb-2 { margin-bottom: .5rem; }

/* Onboarding */
.onboarding-progress { display: flex; gap: .375rem; }
.onboarding-progress span {
  height: .375rem;
  flex: 1;
  border-radius: 999px;
  background: var(--color-line);
}
.onboarding-progress span.is-done { background: var(--color-primary); }
.onboarding-back {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-control);
  background: #e8eef7;
  color: var(--color-ink);
  transition: background-color .15s ease;
}
.onboarding-back:hover { background: #dbe4f0; }
.onboarding-option {
  position: relative;
  display: flex;
  min-height: 3rem;
  width: 100%;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: .875rem 1rem;
  text-align: start;
  box-shadow: var(--card-shadow);
  transition: border-color .15s ease, background-color .15s ease;
}
.onboarding-option.is-selected,
.onboarding-option:has(input:checked) {
  border: 2px solid var(--color-primary);
  background: var(--color-primary-soft);
}
.onboarding-chip {
  position: relative;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.onboarding-chip:has(input:checked),
.onboarding-chip.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}
.onboarding-chip input,
.onboarding-option input {
  pointer-events: none;
  position: absolute;
  opacity: 0;
}

@media (max-width: 959px) {
  .login-stage {
    grid-template-columns: 1fr;
  }
  .login-brand-panel { display: none; }
  .register-password-grid { grid-template-columns: 1fr; }
}

/* Checkout (guest shell, Mark tokens) */
.auth-checkout-page { background: #0b1426; }
.auth-checkout-page .site-header { position: relative; background: #0b1426; }
.auth-checkout-page .guest-main {
  align-items: stretch;
  padding: 0;
  background: var(--color-canvas);
}
.auth-checkout-page .guest-main-inner { max-width: none; width: 100%; }
.checkout-stage {
  display: grid;
  min-height: calc(100dvh - 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  overflow: hidden;
  background: var(--color-canvas);
}
.checkout-stage--solo {
  grid-template-columns: 1fr;
  justify-items: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22, 163, 74, 0.12), transparent 55%),
    var(--color-canvas);
}
.checkout-stage--solo .checkout-pay-panel {
  width: 100%;
  justify-content: center;
}
.checkout-stage--solo .checkout-pay-inner {
  max-width: 36rem;
}
.checkout-plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #163024 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.checkout-plan-chip__kicker {
  display: block;
  margin-bottom: .2rem;
  color: #86efac;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.checkout-plan-chip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.checkout-plan-chip span {
  display: block;
  margin-top: .2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: .8rem;
}
.checkout-plan-chip__price {
  margin: 0;
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #86efac;
}
.checkout-pay-panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--color-canvas);
}
.checkout-pay-inner { width: 100%; max-width: 34rem; margin-inline: auto; }
.checkout-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--color-ink);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
[dir='rtl'] .checkout-title { font-family: var(--font-arabic); line-height: 1.28; }
.checkout-subtitle { margin-top: .85rem; color: var(--color-muted); font-size: .95rem; line-height: 1.7; }
.checkout-pending {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--card-shadow);
  color: var(--color-body);
  font-size: .9rem;
  line-height: 1.55;
}
.checkout-pending a {
  display: inline-flex;
  margin-top: .55rem;
  color: var(--color-primary-strong);
  font-weight: 700;
}
.checkout-methods-label {
  margin-top: 2rem;
  margin-bottom: .85rem;
  color: var(--color-ink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.checkout-methods { display: grid; gap: .85rem; }
.checkout-method {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.checkout-method:hover {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: var(--card-shadow);
}
.checkout-method.is-primary {
  border-color: rgba(22, 163, 74, 0.45);
  background: linear-gradient(180deg, #fff, #f0fdf4);
}
.checkout-method-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .7rem;
}
.checkout-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  flex-shrink: 0;
}
.checkout-method-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}
.checkout-method-instructions {
  margin-top: .35rem;
  white-space: pre-line;
}
.checkout-method-heading h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: .98rem;
  font-weight: 800;
}
.checkout-method-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkout-method-copy p {
  margin-top: .55rem;
  color: var(--color-muted);
  font-size: .875rem;
  line-height: 1.6;
}
.checkout-method .btn-primary,
.checkout-method .btn-ghost { justify-self: start; min-height: 44px; }
.checkout-empty {
  padding: 1.5rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--color-muted);
  text-align: center;
  font-size: .9rem;
}
.checkout-trust {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: .78rem;
  line-height: 1.65;
}
.checkout-trust p + p { margin-top: .35rem; }
.checkout-summary-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, #0b1426 0%, #111c33 50%, #0e1a30 100%);
  color: #fff;
}
.checkout-summary-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -12rem;
  inset-inline-end: 18%;
  width: 7.5rem;
  height: 34rem;
  background: var(--color-primary);
  opacity: .85;
  transform: rotate(34deg);
}
[dir='rtl'] .checkout-summary-panel::before { transform: rotate(-34deg); }
.checkout-summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: #86efac;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.checkout-summary-kicker::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.checkout-summary-top h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.checkout-summary-top > p {
  margin-top: .65rem;
  color: #cbd5e1;
  font-size: .9rem;
  line-height: 1.6;
}
.checkout-price-block {
  padding: 1.35rem 0;
  border-block: 1px solid rgba(255, 255, 255, .12);
}
.checkout-price {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.055em;
  color: #fff;
}
.checkout-price-note {
  display: block;
  margin-top: .7rem;
  color: #86efac;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkout-includes p {
  margin-bottom: .85rem;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.checkout-includes ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.checkout-includes li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  color: #e2e8f0;
  font-size: .9rem;
  line-height: 1.5;
}
.checkout-includes li > span {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .1rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, .14);
  color: #4ade80;
}
.checkout-summary-foot {
  color: #94a3b8;
  font-size: .82rem;
  line-height: 1.65;
}
.ms-auto { margin-inline-start: auto; }
.list-none { list-style: none; }
.mt-6 { margin-top: 1.5rem; }

/* Checkout wizard: region → method */
.checkout-steps {
  display: flex;
  gap: .75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.checkout-steps li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.checkout-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--color-muted);
  font-size: .72rem;
}
.checkout-steps li.is-active { color: var(--color-ink); }
.checkout-steps li.is-active span {
  background: var(--color-primary);
  color: #fff;
}
.checkout-step[hidden] { display: none !important; }
.checkout-regions {
  display: grid;
  gap: .85rem;
}
.checkout-region {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--card-shadow);
  text-align: start;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.checkout-region:hover:not(:disabled) {
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.checkout-region:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.checkout-region-flag {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.checkout-region-flag[data-flag="globe"]::before { content: "GL"; }
.checkout-region-flag[data-flag="ma"]::before { content: "MA"; background: none; }
.checkout-region-flag[data-flag="eg"]::before { content: "EG"; }
.checkout-region-flag[data-flag="ma"] { background: #c1272d; }
.checkout-region-flag[data-flag="eg"] { background: #ce1126; }
.checkout-region-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.checkout-region-copy strong {
  color: var(--color-ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.checkout-region-copy em {
  color: var(--color-muted);
  font-style: normal;
  font-size: .86rem;
  line-height: 1.45;
}
.checkout-region-count {
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.checkout-step-toolbar {
  display: grid;
  gap: .85rem;
  margin-top: 1.5rem;
}
.checkout-back,
.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--color-muted);
  font-size: .88rem;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.checkout-back:hover,
.checkout-back-link:hover { color: var(--color-ink); }
.checkout-step-toolbar .checkout-methods-label { margin-top: 0; }
.checkout-method-group[hidden] { display: none !important; }
.checkout-method-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.checkout-method-logo {
  width: auto;
  max-width: 88px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-line);
  padding: .25rem .4rem;
}
.checkout-card-brands {
  display: inline-flex;
  gap: .35rem;
}
.checkout-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 1.55rem;
  padding: 0 .4rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.checkout-card-brand--visa { background: #1a1f71; color: #fff; }
.checkout-card-brand--mc { background: #111827; color: #fbbf24; }

/* Bank transfer checkout alignment */
.checkout-stage--bank .checkout-pay-inner { max-width: 34rem; }
.checkout-bank-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: .25rem;
}
.checkout-bank-card {
  margin-top: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--card-shadow);
}
.checkout-bank-card--highlight {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, #fff, #f8fdf9);
}
.checkout-bank-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-bank-label {
  margin: 0;
  color: var(--color-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkout-bank-value {
  margin: .4rem 0 0;
  color: var(--color-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.checkout-bank-help {
  margin: .4rem 0 0;
  color: var(--color-muted);
  font-size: .82rem;
  line-height: 1.55;
}
.checkout-bank-foot {
  margin-top: 1.25rem;
  text-align: center;
}
.checkout-bank-notice {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-primary-strong);
  font-size: .88rem;
  line-height: 1.55;
}
.checkout-bank-instructions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}
.checkout-bank-instructions p:last-child {
  margin: .45rem 0 0;
  white-space: pre-line;
  color: var(--color-body);
  font-size: .9rem;
  line-height: 1.6;
}
.checkout-bank-account-title {
  margin: .35rem 0 0;
  color: var(--color-ink);
  font-size: 1.1rem;
  font-weight: 800;
}
.checkout-bank-dl {
  margin: .85rem 0 0;
  display: grid;
  gap: .55rem;
}
.checkout-bank-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: .9rem;
}
.checkout-bank-dl dt { color: var(--color-muted); }
.checkout-bank-dl dd { margin: 0; color: var(--color-ink); font-weight: 700; text-align: end; }
.checkout-bank-form { margin-top: 1.1rem; display: grid; gap: 1rem; }
.checkout-bank-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-bank-form-grid--simple {
  grid-template-columns: 1fr;
}
.checkout-bank-field { display: grid; gap: .4rem; }
.checkout-bank-confirm {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--color-body);
  font-size: .9rem;
  line-height: 1.5;
}
.checkout-bank-confirm input { margin-top: .2rem; }
.checkout-pending--danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: #fef2f2;
  color: #991b1b;
}

/* Country-driven confirm checkout (reference shape) */
.checkout-confirm {
  display: grid;
  gap: 1.5rem;
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
}
.checkout-confirm__main { min-width: 0; }
.checkout-confirm-card {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.checkout-country-field {
  display: grid;
  gap: .45rem;
  margin-bottom: 1.35rem;
}
.checkout-country-field > span {
  color: var(--color-ink);
  font-size: .82rem;
  font-weight: 800;
}
.checkout-country-field em {
  color: var(--color-muted);
  font-style: normal;
  font-size: .78rem;
  line-height: 1.45;
}
.checkout-method-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.checkout-method-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 92px;
  padding: .9rem .7rem;
  border: 1.5px solid var(--color-line);
  border-radius: 14px;
  background: #fff;
  color: var(--color-ink);
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.checkout-method-tab img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.checkout-method-tab__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary-soft);
}
.checkout-method-tab:hover {
  border-color: rgba(22, 163, 74, 0.4);
}
.checkout-method-tab.is-active {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #fff, #f0fdf4);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18);
}
.checkout-stripe-brand {
  display: grid;
  gap: .2rem;
  margin-bottom: 1rem;
}
.checkout-stripe-brand strong {
  color: var(--color-ink);
  font-size: 1rem;
}
.checkout-stripe-brand span {
  color: var(--color-muted);
  font-size: .82rem;
}
.checkout-payment-element {
  margin-bottom: 1rem;
  min-height: 180px;
}
.checkout-stripe-error {
  margin: 0 0 .85rem;
  color: #b91c1c;
  font-size: .88rem;
  font-weight: 600;
}
.checkout-pay-btn { margin-top: .25rem; }
.checkout-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.checkout-trust-badges span {
  padding: .35rem .55rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #f8fafc;
}
.checkout-manual-copy {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: .92rem;
  line-height: 1.6;
}
.checkout-confirm__summary { min-width: 0; }
.checkout-summary-card {
  position: sticky;
  top: 1.25rem;
  padding: 1.35rem 1.3rem;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.checkout-summary-card .checkout-summary-kicker {
  display: block;
  margin-bottom: .55rem;
  color: var(--color-primary-strong);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.checkout-summary-card h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: 1.2rem;
  font-weight: 800;
}
.checkout-summary-card > p {
  margin: .4rem 0 0;
  color: var(--color-muted);
  font-size: .85rem;
}
.checkout-summary-features {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.checkout-summary-features li {
  position: relative;
  padding-inline-start: 1.1rem;
  color: var(--color-body);
  font-size: .85rem;
  line-height: 1.45;
}
.checkout-summary-features li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .45rem;
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: var(--color-primary);
}
.checkout-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}
.checkout-summary-total span {
  color: var(--color-muted);
  font-size: .85rem;
  font-weight: 700;
}
.checkout-summary-total strong {
  color: var(--color-primary-strong);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.checkout-summary-card .checkout-summary-foot {
  margin-top: .85rem;
  color: var(--color-muted);
  font-size: .78rem;
  line-height: 1.5;
}

@media (max-width: 959px) {
  .checkout-stage { grid-template-columns: 1fr; }
  .checkout-summary-panel { display: none; }
  .checkout-confirm { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; }
  .checkout-bank-grid,
  .checkout-bank-form-grid { grid-template-columns: 1fr; }
  .checkout-region { grid-template-columns: auto 1fr; }
  .checkout-region-count { grid-column: 2; }
}

.checkout-trial-notice {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-primary-strong, #166534);
  font-size: .88rem;
  line-height: 1.55;
}
.checkout-trial-notice p { margin: 0; }

.spendora-trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.55;
}
.spendora-trial-banner p { margin: 0; flex: 1 1 12rem; }
.spendora-trial-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.spendora-trial-banner a:hover { background: #16a34a; color: #fff; }
.spendora-trial-banner--last-day {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
