:root {
  --bg: #0d0c09;
  --panel: #17140f;
  --gold: #f7c85b;
  --gold-soft: #ffe7a0;
  --text: #fff7df;
  --muted: rgba(255, 247, 223, .68);
  --line: rgba(247, 200, 91, .2);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(247, 200, 91, .16), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(255, 231, 160, .1), transparent 28%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.checkout-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand small {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .16em;
}

.checkout-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 34px;
}

.plan-panel,
.form-panel,
.success-view > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

.plan-panel,
.form-panel {
  padding: clamp(24px, 4vw, 42px);
}

.eyebrow,
.step-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 16px 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: .96;
}

h2 {
  margin: 10px 0 24px;
  font-size: clamp(30px, 4vw, 46px);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 200, 91, .08);
}

.price-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.price-box strong {
  color: var(--gold-soft);
  font-size: 28px;
}

.coupon-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: -12px 0 26px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 255, 102, .22);
  border-radius: 8px;
  background: rgba(185, 255, 102, .08);
}

.coupon-summary[hidden] {
  display: none;
}

.coupon-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coupon-summary strong {
  color: #b9ff66;
  text-align: right;
}

ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  color: rgba(255, 247, 223, .86);
}

li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

form {
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font: 700 15px inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 200, 91, .14);
}

textarea {
  resize: vertical;
}

.coupon-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.coupon-field button {
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid rgba(247, 200, 91, .38);
  background: rgba(247, 200, 91, .13);
  color: var(--gold-soft);
}

.coupon-message {
  min-height: 20px;
  margin: -7px 0 0;
  color: #b9ff66;
  font-size: 13px;
  font-weight: 850;
}

.coupon-message.error {
  color: #ffb0a8;
}

button,
.success-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #090806;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .72;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.success-view {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 6, 4, .82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.success-view[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.success-view > div {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #090806;
  font-size: 28px;
  font-weight: 900;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.success-actions a:last-child {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
  border: 1px solid var(--line);
}

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

  .coupon-field > div {
    grid-template-columns: 1fr;
  }

  .coupon-field button {
    min-height: 48px;
  }
}
