:root {
  --bg: #040107;
  --bg-soft: #0b0310;
  --panel: rgba(16, 7, 23, .84);
  --panel-strong: rgba(22, 8, 30, .94);
  --border: rgba(230, 125, 255, .16);
  --border-bright: rgba(242, 104, 255, .42);
  --text: #fff8ff;
  --muted: #b9a9c4;
  --pink: #f356ff;
  --violet: #9d5cff;
  --lavender: #d9a8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 76% 18%,
      rgba(132, 48, 190, .20),
      transparent 25%
    ),
    radial-gradient(
      circle at 23% 65%,
      rgba(119, 28, 141, .13),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #050108 0%,
      #08020d 42%,
      #040106 100%
    );
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .30;
  background:
    radial-gradient(circle at 8% 16%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 12%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 57% 8%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 81% 12%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 79%, #e6c8ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 76%, #fff 0 1px, transparent 1.4px);
}

.checkout-page {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 38px 0 80px;
}

.checkout-shell {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(24, 8, 32, .88),
      rgba(9, 4, 13, .84)
    );
  box-shadow:
    0 35px 110px rgba(0, 0, 0, .48),
    0 0 90px rgba(157, 92, 255, .07);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-block;
  text-decoration: none;
}

.checkout-brand-logo {
  display: block;
  width: min(190px, 55vw);
  height: auto;
}

.checkout-heading {
  max-width: 760px;
  margin: 46px 0 34px;
}

.eyebrow,
.order-label,
.payment-kicker {
  margin: 0;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.checkout-intro {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.checkout-layout {
  display: grid;
  grid-template-columns:
    minmax(280px, .72fr)
    minmax(500px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.order-card,
.payment-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
}

.order-card {
  position: sticky;
  top: 24px;
  padding: 26px;
  background:
    radial-gradient(
      circle at top right,
      rgba(188, 120, 255, .12),
      transparent 38%
    ),
    rgba(11, 3, 16, .88);
}

.order-plan {
  margin-top: 22px;
}

#plan-summary {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

.plan-access {
  display: inline-flex;
  margin: 13px 0 0;
  padding: 7px 11px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--text);
  background: rgba(157, 92, 255, .10);
  font-size: .82rem;
  font-weight: 700;
}

.order-divider {
  height: 1px;
  margin: 25px 0;
  background:
    linear-gradient(
      90deg,
      var(--border-bright),
      transparent
    );
}

.order-feature {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  margin: 20px 0;
}

.order-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(243, 86, 255, .34);
  border-radius: 50%;
  color: #f7a1ff;
  background: rgba(243, 86, 255, .08);
  font-size: .72rem;
  font-weight: 900;
}

.order-feature strong {
  display: block;
  color: var(--text);
  font-size: .88rem;
}

.order-feature p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.secure-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #a998b3;
  font-size: .74rem;
}

.secure-icon {
  color: var(--violet);
}

.payment-panel {
  padding: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(18, 7, 25, .96),
      rgba(8, 3, 12, .96)
    );
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .28),
    0 0 42px rgba(218, 72, 255, .06);
}

.payment-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 18px;
}

.payment-heading h2 {
  margin: 7px 0 0;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.stripe-badge {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--lavender);
  background: rgba(157, 92, 255, .08);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-message {
  margin: 0 4px 16px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.checkout-frame {
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.checkout-assurance {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(157, 92, 255, .05);
}

.checkout-assurance strong {
  font-size: .82rem;
}

.checkout-assurance p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

.checkout-account-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--lavender);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .checkout-page {
    width: min(100% - 20px, 1280px);
    padding: 16px 0 40px;
  }

  .checkout-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .checkout-heading {
    margin: 34px 0 26px;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }

  .order-card,
  .payment-panel {
    padding: 16px;
    border-radius: 17px;
  }

  .payment-heading {
    align-items: flex-start;
  }

  .checkout-frame {
    padding: 0;
  }
}
