:root {
  --checkout-width: 1120px;
  --glass: rgba(15, 17, 24, 0.88);
  --co-accent: #3b82f6;
  --co-accent-soft: #93c5fd;
  --co-warm: rgba(245, 158, 11, 0.14);
  --success: #22c55e;
}

.checkout-page {
  min-height: 100vh;
  background: var(--bg, #0a0c10);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(59, 130, 246, 0.14) 0%, transparent 70%),
    radial-gradient(circle at 10% 22%, var(--co-warm), transparent 36%),
    radial-gradient(circle at 90% 12%, rgba(239, 68, 68, 0.08), transparent 32%),
    linear-gradient(180deg, #0a0c10 0%, #0f1117 55%, #0a0c10 100%);
}

.checkout-shell {
  max-width: var(--checkout-width);
  margin: 0 auto;
  padding: 32px 24px 92px;
}

.checkout-stage {
  display: grid;
  gap: 18px;
}

.checkout-stage-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Prominent logo above the fold (Stripe-hosted page branding is API-limited; this stays on your domain). */
.checkout-hero-brand {
  margin: 0 0 8px;
}

.checkout-hero-logo {
  display: inline-block;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.2);
  vertical-align: middle;
}

.checkout-stage-title {
  margin: 0;
  font-family: "Sora", var(--font);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 42%, #f59e0b 88%, #f8fafc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checkout-card,
.checkout-fact {
  background: var(--glass);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.checkout-card-primary {
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
}

.checkout-card-top {
  display: grid;
  gap: 14px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.checkout-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--co-accent-soft);
  background: rgba(59, 130, 246, 0.1);
  margin-bottom: 10px;
}

.checkout-card-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.checkout-card-top h2 {
  margin: 0;
  font-family: "Sora", var(--font);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #eef2ff;
}

.checkout-card-copy {
  margin: 0;
  color: #9fb0c7;
  font-size: 14px;
  line-height: 1.76;
}

.checkout-card-body {
  padding: 0;
}

.checkout-box {
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
  box-shadow: none;
  overflow: visible;
}

#account-panel,
#registration-verify,
#stripe-embed {
  padding: 28px;
}

.checkout-plan-toggle,
.checkout-account-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 2;
}

.checkout-plan-chip,
.checkout-account-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 24, 0.72);
  color: #a9b8ce;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: "Sora", var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  position: relative;
  z-index: 3;
}

.checkout-plan-chip:hover,
.checkout-account-chip:hover {
  transform: translateY(-1px);
}

.checkout-plan-chip.is-active {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.16);
  color: #d9ffe8;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.checkout-account-toggle {
  margin: 22px 0 18px;
}

.checkout-account-chip.is-active {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.14);
  color: #eef2ff;
}

.checkout-plan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(8, 13, 24, 0.88));
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.checkout-plan-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  min-height: 100%;
}

.co-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--co-accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-plan-heading,
.checkout-account-copy h3 {
  margin: 0;
  color: #eef2ff;
  font-family: "Sora", var(--font);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.checkout-plan-heading {
  width: 100%;
  text-align: left;
}

.checkout-plan-sub,
.checkout-account-copy p,
.co-price-note,
.co-check span,
.co-secure,
.co-back {
  color: #97a9c4;
}

.checkout-plan-sub,
.checkout-account-copy p,
.co-price-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.76;
}

.checkout-plan-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  align-self: end;
}

.co-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.co-price-amount {
  font-family: "Sora", var(--font);
  font-size: clamp(44px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 32%, #3b82f6 68%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.co-price-period {
  font-size: 17px;
  font-weight: 500;
  color: #dce4ff;
}

.co-price-note {
  max-width: 340px;
  text-align: right;
}

.co-price-note-secondary {
  color: #c9d3e8;
}

.checkout-account-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.co-field-group {
  display: grid;
  gap: 12px;
}

.co-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(7, 11, 22, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: #eef2ff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.co-input[hidden] {
  display: none;
}

.co-input::placeholder {
  color: rgba(160, 176, 201, 0.46);
}

.co-input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.co-email-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 15, 28, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.12);
  margin: 18px 0;
}

.co-email-box svg {
  flex-shrink: 0;
  color: #cfd8ee;
}

.checkout-email-stack {
  display: grid;
  gap: 4px;
}

.checkout-email-label {
  color: #93a6c4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-email-stack strong {
  color: #ecf1ff;
  font-size: 14px;
  line-height: 1.4;
}

.co-checks {
  display: grid;
  gap: 12px;
}

.co-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  margin-left: 2px;
}

.co-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--co-accent);
}

.co-check span {
  font-size: 13px;
  line-height: 1.7;
}

.co-check a {
  color: #d3dbff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.co-error {
  display: none;
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
  color: #fecdd3;
  font-size: 13px;
  line-height: 1.6;
}

.co-error.visible {
  display: block;
}

.checkout-verify-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.checkout-verify-copy h3 {
  margin: 0;
  color: #eef2ff;
  font-family: "Sora", var(--font);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.checkout-verify-copy p {
  margin: 0;
  color: #97a9c4;
  font-size: 14px;
  line-height: 1.76;
}

.checkout-verify-copy strong {
  color: #eef2ff;
}

.checkout-verify-form {
  display: grid;
  gap: 16px;
}

.checkout-verify-field {
  margin-bottom: 0;
}

.checkout-verify-field label {
  display: block;
  margin-bottom: 8px;
  color: #dce4ff;
  font-size: 13px;
  font-weight: 600;
}

.checkout-verify-actions {
  margin-top: 14px;
  text-align: center;
}

#submit-btn {
  margin-top: 18px;
}

.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  margin-bottom: 16px;
}

.co-back:hover {
  color: #eef2ff;
}

#stripe-mount {
  min-height: 520px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.checkout-facts {
  max-width: 860px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.checkout-fact {
  border-radius: 22px;
  padding: 18px;
}

.checkout-fact strong {
  display: block;
  margin-bottom: 8px;
  color: #eef2ff;
  font-family: "Sora", var(--font);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.checkout-fact p {
  margin: 0;
  color: #94a7c3;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 940px) {
  .checkout-plan-hero,
  .checkout-facts {
    grid-template-columns: 1fr;
  }

  .checkout-plan-price {
    justify-items: start;
  }

  .co-price-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .checkout-shell {
    padding: 28px 16px 72px;
  }

  .checkout-card-primary,
  .checkout-fact {
    border-radius: 22px;
  }

  .checkout-card-top,
  #account-panel,
  #registration-verify,
  #stripe-embed {
    padding-left: 20px;
    padding-right: 20px;
  }

  .checkout-stage-title {
    font-size: clamp(34px, 13vw, 52px);
  }

  .checkout-plan-toggle,
  .checkout-account-toggle {
    grid-template-columns: 1fr;
  }

  .checkout-plan-heading,
  .checkout-account-copy h3,
  .checkout-verify-copy h3 {
    font-size: 24px;
  }

  .co-price-amount {
    font-size: 42px;
  }
}
