/* DWARG Register — ultra-premium SaaS signup v2 */

:root {
  --reg-primary: #2563eb;
  --reg-secondary: #4f46e5;
  --reg-accent: #f59e0b;
  --reg-bg: #eef2f8;
  --reg-surface: #ffffff;
  --reg-text: #0f172a;
  --reg-muted: #64748b;
  --reg-success: #16a34a;
  --reg-danger: #ef4444;
  --reg-radius-card: 28px;
  --reg-radius-input: 14px;
  --reg-radius-btn: 14px;
  --reg-shadow-card: 0 32px 64px -24px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --reg-shadow-btn: 0 12px 32px rgba(37, 99, 235, 0.38);
  --reg-gradient-brand: linear-gradient(160deg, #0f172a 0%, #1e3a8a 38%, #2563eb 72%, #4f46e5 100%);
  --reg-gradient-btn: linear-gradient(135deg, #2563eb 0%, #4338ca 55%, #4f46e5 100%);
  --reg-whatsapp: #25d366;
  --reg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-primary: var(--reg-primary);
  --brand-gradient: var(--reg-gradient-btn);
  --page-bg: var(--reg-bg);
  --card-bg: var(--reg-surface);
  --text: var(--reg-text);
  --text-muted: var(--reg-muted);
  --border: #e2e8f0;
  --success: var(--reg-success);
  --danger: var(--reg-danger);
  --radius-input: var(--reg-radius-input);
  --ease: var(--reg-ease);
}

*, *::before, *::after { box-sizing: border-box; }

body.register-page {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--reg-bg);
  color: var(--reg-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

body.register-page .lp-footer,
body.register-page .lp-mobile-cta,
body.register-page .wa-float-btn,
body.register-page .nav,
body.register-page .mobile-menu,
body.register-page .noise { display: none !important; }

/* Minimal topbar */
.register-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.register-topbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-left: max(1.5rem, calc(env(safe-area-inset-left, 0px) + 1rem));
  padding-right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 1rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.register-topbar__brand img {
  height: 34px;
  width: auto;
  display: block;
}

.register-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.register-topbar__hint {
  font-size: 0.84rem;
  color: var(--reg-muted);
}

.register-topbar__login {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--reg-primary);
  text-decoration: none;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.04);
  transition: background 0.2s, border-color 0.2s;
}

.register-topbar__login:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
}

/* Main layout */
.register-main {
  padding: 72px 0 2.5rem;
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
}

.register-split { position: relative; }

.register-split__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 10% 0%, rgba(37, 99, 235, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 45% at 95% 100%, rgba(79, 70, 229, 0.08), transparent 45%),
    var(--reg-bg);
}

.register-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  animation: regBlobFloat 20s ease-in-out infinite;
}

.register-blob--1 { width: 480px; height: 480px; background: rgba(37, 99, 235, 0.2); top: -10%; right: 0; }
.register-blob--2 { width: 360px; height: 360px; background: rgba(245, 158, 11, 0.14); bottom: 5%; left: 30%; animation-delay: -7s; }
.register-blob--3 { width: 280px; height: 280px; background: rgba(79, 70, 229, 0.16); top: 40%; left: -8%; animation-delay: -14s; }

.register-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

@keyframes regBlobFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -14px); }
}

@media (prefers-reduced-motion: reduce) {
  .register-blob { animation: none; }
}

.register-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.75rem;
  padding-bottom: 0;
  padding-left: max(1.25rem, calc(env(safe-area-inset-left, 0px) + 0.75rem));
  padding-right: max(1.25rem, calc(env(safe-area-inset-right, 0px) + 0.75rem));
  box-sizing: border-box;
  min-width: 0;
}

/* Split card */
.checkout-layout.register-split__grid {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  border-radius: var(--reg-radius-card);
  overflow: hidden;
  box-shadow: var(--reg-shadow-card);
  background: var(--reg-surface);
  min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  .checkout-layout.register-split__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 22px;
  }
  .register-form-panel { order: 1; }
  .register-brand-panel { order: 2; }
}

/* —— Brand panel —— */
.register-brand-panel {
  background: var(--reg-gradient-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.register-brand-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 68%);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.register-brand__inner {
  position: relative;
  z-index: 1;
  padding: 2.75rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.register-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: #fff;
}

.register-brand__logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.register-brand__logo-text {
  display: flex;
  flex-direction: column;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.register-brand__logo-text small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.15rem;
}

.register-brand__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.register-brand__subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 26rem;
}

.register-brand__features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.register-brand__features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}

.register-brand__features .fa-circle-check {
  color: var(--reg-accent);
  font-size: 0.9rem;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.register-brand__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.register-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.register-plan-summary {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.register-plan-summary__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.2rem;
}

.register-plan-summary__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.register-plan-summary__duration {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.register-testimonial {
  margin: auto 0 0;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.register-testimonial__avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.register-testimonial__body {
  flex: 1;
  min-width: 0;
}

.register-testimonial__quote {
  margin: 0;
  padding: 0;
  border: none;
}

.register-testimonial__quote p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(255, 255, 255, 0.94);
}

.register-testimonial__quote p::before {
  content: "\201C";
  color: var(--reg-accent);
  font-weight: 700;
  margin-right: 0.1em;
}

.register-testimonial__quote p::after {
  content: "\201D";
  color: var(--reg-accent);
  font-weight: 700;
  margin-left: 0.1em;
}

.register-testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.65rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

.register-testimonial__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.register-testimonial__meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
}

.register-brand__preview { display: none; }

@media (max-width: 1100px) {
  .register-brand__inner { padding: 2rem 1.5rem; }
  .register-testimonial { margin-top: 1.25rem; }
}

/* —— Form panel —— */
.register-form-panel {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.register-glass-card {
  flex: 1;
  overflow: hidden;
  padding: 2rem 2.25rem 1.5rem;
  background: transparent;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.register-form-hero {
  margin-bottom: 1.25rem;
  text-align: left;
}

.register-form-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--reg-primary);
}

.register-form-hero__title {
  margin: 0 0 0.3rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--reg-text);
}

.register-form-hero__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--reg-muted);
  line-height: 1.5;
}

.register-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

body.register-page .auth-panel,
body.register-page .checkout-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.register-billing-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.register-billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.register-billing-head .checkout-section-title { margin: 0; }

.register-offer-pill {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-radius: 999px;
}

.register-offer-pill strong { font-size: 0.82rem; }

.register-form-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 0.85rem 1.25rem 1.15rem;
  font-size: 0.78rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.register-form-footer a {
  color: var(--reg-muted);
  text-decoration: none;
  font-weight: 500;
}

.register-form-footer a:hover { color: var(--reg-primary); }
.register-form-footer__sep { color: #cbd5e1; }

.checkout-sticky {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

/* Alerts */
.register-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--reg-radius-input);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.register-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.register-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Sections — flat inside form panel */
.register-section,
.checkout-card.register-section {
  background: var(--reg-surface);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.checkout-card:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); }

.checkout-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.checkout-section-title--sm {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

/* Premium auth tabs */
body.register-page .register-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-bottom: 1.15rem;
  padding: 0.3rem;
  background: #f3f4f6;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

body.register-page .register-auth-tabs .auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--reg-text);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  min-width: 0;
  transition: background 0.25s var(--reg-ease), color 0.25s var(--reg-ease), box-shadow 0.25s var(--reg-ease), transform 0.25s var(--reg-ease);
  white-space: nowrap;
}

body.register-page .register-auth-tabs .auth-tab-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.85);
  color: var(--reg-primary);
}

body.register-page .register-auth-tabs .auth-tab-btn.is-active {
  background: var(--reg-gradient-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32), 0 1px 2px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

body.register-page .register-auth-tabs .auth-tab-btn.is-active .register-auth-tabs__icon--wa {
  color: #fff;
}

body.register-page .register-auth-tabs__icon {
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.25s var(--reg-ease);
}

body.register-page .register-auth-tabs__icon--wa {
  color: var(--reg-whatsapp);
}

body.register-page .register-auth-tabs .auth-tab-btn:not(.is-active) .register-auth-tabs__icon:not(.register-auth-tabs__icon--wa) {
  color: var(--reg-primary);
}

body.register-page .register-tab-panels {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
}

body.register-page .register-tab-panels > .auth-panel {
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--reg-ease), transform 0.28s var(--reg-ease), visibility 0.28s;
  pointer-events: none;
  min-width: 0;
}

body.register-page .register-tab-panels > .auth-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  body.register-page .register-tab-panels > .auth-panel,
  body.register-page .register-auth-tabs .auth-tab-btn {
    transition: none;
  }
}

@media (max-width: 400px) {
  body.register-page .register-auth-tabs .auth-tab-btn {
    font-size: 0.74rem;
    gap: 0.3rem;
    padding: 0.6rem 0.35rem;
  }

  body.register-page .register-auth-tabs__icon {
    font-size: 0.9rem;
  }
}

/* Mode — segmented control */
.checkout-mode-toggle {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  background: #f1f5f9;
  border-radius: 12px;
}

.checkout-mode-btn {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 0;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--reg-muted);
  cursor: pointer;
  transition: all 0.2s var(--reg-ease);
}

.checkout-mode-btn i { font-size: 0.95rem; color: var(--reg-primary); }

.checkout-mode-btn.is-active {
  background: #fff;
  color: var(--reg-text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.checkout-mode-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--reg-success);
  font-weight: 500;
}

/* Pricing compact */
.checkout-plan-picker { margin-bottom: 0.65rem; }

.checkout-plan-picker__label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--reg-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.checkout-select,
.checkout-select--icon {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 2.25rem 0.65rem 2.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-select:focus {
  outline: none;
  border-color: var(--reg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background-color: #fff;
}

.checkout-hint { font-size: 0.72rem; color: var(--reg-muted); margin: 0.25rem 0 0; }

.checkout-summary-plan {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-summary-duration {
  margin: 0.1rem 0 0.55rem;
  font-size: 0.78rem;
  color: var(--reg-muted);
}

.checkout-price-breakdown--compact {
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.checkout-price-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.22rem 0;
  font-size: 0.82rem;
  color: var(--reg-muted);
}

.checkout-price-line > span:first-child {
  min-width: 0;
  flex: 1;
}

.checkout-price-line > span:last-child {
  flex-shrink: 0;
  text-align: right;
}

.checkout-price-line__old { text-decoration: line-through; }

.checkout-price-line--discount span:last-child,
.checkout-price-line--coupon span:last-child {
  color: var(--reg-success);
  font-weight: 600;
}

.checkout-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.checkout-price-total > span:first-child {
  font-weight: 700;
  font-size: 0.84rem;
  min-width: 0;
  flex: 1;
}

.checkout-price-total__amount {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--reg-primary);
  flex-shrink: 0;
  text-align: right;
}

.checkout-coupon-field__label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--reg-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.checkout-coupon-row { display: flex; gap: 0.45rem; min-width: 0; }

.checkout-coupon-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.86rem;
  background: #f8fafc;
}

.checkout-coupon-input:focus {
  outline: none;
  border-color: var(--reg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkout-coupon-btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  background: var(--reg-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.checkout-coupon-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.checkout-coupon-msg { min-height: 1rem; margin-top: 0.25rem; font-size: 0.76rem; }
.checkout-coupon-msg .is-success { color: var(--reg-success); }
.checkout-coupon-msg .is-error { color: var(--reg-danger); }

/* Offer — compact inline */
.register-section--offer {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.04));
  border-color: rgba(37, 99, 235, 0.12);
}

.register-offer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-offer-label {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.checkout-offer-valid {
  margin: 0;
  font-size: 0.74rem;
  color: var(--reg-muted);
}

.checkout-offer-note {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  color: var(--reg-muted);
}

.checkout-offer-countdown--inline { margin: 0; flex-shrink: 0; }
.checkout-offer-countdown--inline .offer-countdown__grid {
  display: flex;
  gap: 0.35rem;
}

.checkout-offer-countdown--inline .offer-countdown__unit {
  min-width: 2.5rem;
  padding: 0.35rem 0.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkout-offer-countdown--inline .offer-countdown__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--reg-primary);
  line-height: 1.1;
}

.checkout-offer-countdown--inline .offer-countdown__name {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--reg-muted);
  text-transform: uppercase;
}

/* Form */
.checkout-card--form {
  padding: 1.15rem 1.15rem 1.25rem;
}

.checkout-form-header--slim {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.checkout-form-intro {
  margin: 0;
  font-size: 0.82rem;
  color: var(--reg-muted);
  line-height: 1.5;
}

.checkout-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.checkout-form-fields--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.75rem;
}

.checkout-form-fields--grid .checkout-field:nth-child(3),
.checkout-form-fields--grid .checkout-field:nth-child(4) {
  /* email + password stay in grid */
}

@media (max-width: 640px) {
  .checkout-form-fields--grid { grid-template-columns: 1fr; }
}

.checkout-field { display: flex; flex-direction: column; gap: 0.32rem; }

.checkout-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--reg-text);
}

.checkout-required { color: var(--reg-danger); }

.checkout-input-wrap {
  position: relative;
  display: block;
}

.checkout-input-wrap:focus-within .checkout-input {
  border-color: var(--reg-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.checkout-input-wrap.is-invalid .checkout-input {
  border-color: var(--reg-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.checkout-input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  font-size: 1rem;
  line-height: 1;
  color: #94a3b8;
  pointer-events: none;
}

body.register-page .checkout-input-wrap .checkout-input-icon {
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.checkout-input-wrap:focus-within .checkout-input-icon { color: var(--reg-primary); }

.checkout-input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem 0.75rem 2.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--reg-radius-input);
  background: #f8fafc;
  color: var(--reg-text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

body.register-page .checkout-input-wrap .checkout-select--icon {
  padding-left: 2.75rem;
  line-height: 1.4;
}

.checkout-input:focus { outline: none; }
.checkout-input-wrap--password .checkout-input { padding-right: 2.75rem; }

.checkout-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
}

.checkout-password-toggle:hover {
  color: var(--reg-primary);
  background: rgba(37, 99, 235, 0.08);
}

.checkout-field-hint { font-size: 0.72rem; color: var(--reg-muted); }
.checkout-field-error { font-size: 0.74rem; font-weight: 500; color: var(--reg-danger); min-height: 0; }

/* CTA */
.checkout-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 54px;
  padding: 0.9rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--reg-gradient-btn);
  border: none;
  border-radius: var(--reg-radius-btn);
  cursor: pointer;
  box-shadow: var(--reg-shadow-btn);
  transition: transform 0.2s var(--reg-ease), box-shadow 0.2s, opacity 0.2s;
}

.checkout-pay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.45);
}

.checkout-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.checkout-pay-btn--whatsapp {
  background: linear-gradient(135deg, #22c55e, #128c7e);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.32);
}

.checkout-pay-btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: checkout-spin 0.7s linear infinite;
}

.checkout-pay-btn.is-loading .checkout-pay-btn__icon { display: none; }

@keyframes checkout-spin { to { transform: rotate(360deg); } }

.checkout-pay-note {
  text-align: center;
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--reg-muted);
}

/* Trust — compact strip */
.checkout-trust-panel {
  margin-top: 0.85rem;
  padding: 0.65rem 0;
  background: transparent;
  border: none;
  border-top: 1px dashed var(--border);
}

.checkout-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  justify-content: center;
}

.checkout-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--reg-muted);
}

.checkout-trust-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--reg-primary);
  font-size: 0.7rem;
}

.register-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  font-size: 0.74rem;
  color: var(--reg-muted);
}

.register-security-note i { color: var(--reg-success); }

.register-signin-hint {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--reg-muted);
}

.register-signin-hint a {
  color: var(--reg-primary);
  font-weight: 600;
  text-decoration: none;
}

/* WhatsApp panel */
body.register-page .whatsapp-register-note {
  font-size: 0.84rem;
  color: var(--reg-muted);
  margin-bottom: 0.75rem;
}

body.register-page .whatsapp-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  margin-bottom: 0.75rem;
}

body.register-page .whatsapp-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

body.register-page .otp-input-group {
  display: flex;
  justify-content: center;
  gap: clamp(0.2rem, 2vw, 0.45rem);
  margin: 0.85rem 0;
  width: 100%;
  max-width: 100%;
  padding: 0 0.1rem;
  box-sizing: border-box;
}

body.register-page .otp-digit {
  flex: 1 1 0;
  min-width: 0;
  max-width: 2.85rem;
  width: auto;
  height: 3rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

body.register-page .otp-digit:focus {
  outline: none;
  border-color: var(--reg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.register-page .otp-resend-btn {
  color: var(--reg-primary);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .register-glass-card { padding: 1.5rem 1.25rem 1rem; }
  .register-offer-compact { flex-direction: column; align-items: flex-start; }
  .register-brand-panel { min-width: 0; }
}

@media (max-width: 767px) {
  .checkout-mode-toggle {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.35rem;
  }

  .checkout-mode-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 0.9rem;
    font-size: 0.86rem;
    text-align: left;
  }

  .checkout-mode-btn span {
    display: inline;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
  }

  .checkout-mode-btn i {
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .register-topbar__inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: max(1rem, calc(env(safe-area-inset-left, 0px) + 0.65rem));
    padding-right: max(1rem, calc(env(safe-area-inset-right, 0px) + 0.65rem));
  }
  .register-topbar__hint { display: none; }
  .register-wrap {
    padding-top: 1rem;
    padding-left: max(0.75rem, calc(env(safe-area-inset-left, 0px) + 0.5rem));
    padding-right: max(0.75rem, calc(env(safe-area-inset-right, 0px) + 0.5rem));
  }
  .register-form-hero__title { font-size: 1.4rem; }
  .register-glass-card { padding: 1.25rem 1rem 0.85rem; }
  .register-section { padding: 0.9rem 0.95rem; border-radius: 14px; }
  .checkout-input { min-height: 52px; font-size: 16px; }
  body.register-page .otp-digit { max-width: 2.5rem; height: 2.75rem; font-size: 1rem; }
  .checkout-offer-countdown--inline .offer-countdown__grid {
    width: 100%;
    max-width: 100%;
  }
  .checkout-offer-countdown--inline .offer-countdown__unit {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 380px) {
  .register-glass-card { padding: 1.1rem 0.75rem 0.75rem; }
  .register-section { padding: 0.8rem 0.75rem; }
  body.register-page .otp-digit { max-width: 2.15rem; height: 2.5rem; font-size: 0.95rem; }
  .checkout-mode-btn { padding: 0.72rem 0.8rem; font-size: 0.82rem; }
}

/* Processing page */
.processing-page {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.spinner-ring {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--reg-primary);
  border-radius: 50%;
  animation: checkout-spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
