* {
  box-sizing: border-box;
}

:root {
  --bg: #06070d;
  --panel: #111421;
  --panel-2: #171b2c;
  --text: #f7f8ff;
  --muted: #aab0c4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #a730f9;
  --accent-2: #4c6ae0;
  --good: #5ee1a4;
  --danger: #ff6b81;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(167, 48, 249, 0.26), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgba(76, 106, 224, 0.24), transparent 30rem),
    linear-gradient(180deg, #05060b 0%, #0a0d17 50%, #05060b 100%);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 138px;
  height: auto;
  display: block;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.hero-copy {
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--good);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 720px;
}

.step {
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.step small {
  color: var(--muted);
  line-height: 1.35;
}

.panel {
  background: linear-gradient(180deg, rgba(23, 27, 44, 0.96), rgba(12, 15, 26, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.form-panel {
  padding: 24px;
}

.section-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.payment-field {
  grid-column: 1 / -1;
}

label {
  color: #dfe3f2;
  font-size: 13px;
  font-weight: 700;
}

.field-label {
  color: #dfe3f2;
  font-size: 13px;
  font-weight: 700;
}

input:not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-options > .payment-card {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 13px 14px 13px 44px;
  overflow: hidden;
  color: #eef2ff;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.payment-card::before,
.payment-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.payment-card::before {
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
}

.payment-card::after {
  left: 21px;
  top: 50%;
  width: 9px;
  height: 9px;
  background: #fff;
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.payment-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}

.payment-card input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute !important;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

.payment-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-card strong,
.payment-card small {
  display: block;
  white-space: normal;
}

.payment-card strong {
  font-size: 14px;
  line-height: 1.15;
}

.payment-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.payment-card.is-selected,
.payment-card:has(input:checked) {
  border-color: rgba(167, 48, 249, 0.9);
  background: linear-gradient(135deg, rgba(167, 48, 249, 0.24), rgba(76, 106, 224, 0.18));
  box-shadow: 0 12px 34px rgba(76, 106, 224, 0.16);
}

.payment-card.is-selected::before,
.payment-card:has(input:checked)::before {
  border-color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.payment-card.is-selected::after,
.payment-card:has(input:checked)::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.payment-card:focus-within,
.payment-card:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(167, 48, 249, 0.2);
}

.payment-card-wide {
  grid-column: 1 / -1;
}

input:not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(167, 48, 249, 0.9);
  box-shadow: 0 0 0 3px rgba(167, 48, 249, 0.18);
}

.submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  margin-top: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.summary {
  position: sticky;
  top: 22px;
  padding: 22px;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--good);
  background: rgba(94, 225, 164, 0.12);
  border: 1px solid rgba(94, 225, 164, 0.25);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-name {
  margin: 18px 0 8px;
  font-size: 28px;
}

.price-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 0 0 18px;
}

.price {
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.term {
  color: var(--muted);
  margin-bottom: 6px;
}

.features {
  list-style: none;
  padding: 18px 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features li {
  display: flex;
  gap: 10px;
  color: #d8dcec;
  line-height: 1.45;
  margin: 11px 0;
}

.features li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.support-box {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.result {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(94, 225, 164, 0.35);
  background: rgba(94, 225, 164, 0.1);
  border-radius: 8px;
}

.result.is-visible {
  display: block;
}

.result h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.result p {
  margin: 0 0 14px;
  color: #dce7e8;
  line-height: 1.55;
}

.payment-instructions {
  margin: 0 0 14px;
  padding: 13px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef2ff;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  background: #fff;
  color: #111421;
}

.action-link.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.fine-print {
  margin: 14px 0 0;
  color: #8f96ad;
  font-size: 12px;
  line-height: 1.5;
}

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

  .summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .payment-options {
    grid-template-columns: 1fr;
  }
}

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .brand img {
    width: 122px;
  }

  .back-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .checkout-grid {
    gap: 18px;
  }

  .hero-copy {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.06;
  }

  .lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .steps {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-panel,
  .summary {
    padding: 16px;
  }

  .section-title {
    margin-bottom: 16px;
    font-size: 20px;
  }

  input:not([type="radio"]),
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .payment-card,
  .payment-card:hover {
    min-height: 62px;
    transform: none;
  }

  .submit {
    min-height: 56px;
  }

  .plan-name {
    font-size: 24px;
  }

  .price {
    font-size: 44px;
  }

  .features {
    padding: 14px 0;
    margin: 14px 0;
  }

  .features li {
    margin: 9px 0;
  }

  .actions {
    flex-direction: column;
  }

  .action-link {
    width: 100%;
    min-height: 48px;
  }
}
