/* Checkout / success / recover — extends the marketing design system */

.checkout-body { min-height: 100vh; display: flex; flex-direction: column; }
.checkout-main { flex: 1; padding: 136px 0 96px; }

.checkout-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 7, 12, 0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.checkout-nav .nav__inner { justify-content: space-between; }
.back-link {
  font-size: 13.5px; color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.back-link:hover { color: var(--text); }

.checkout-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px;
  max-width: 940px; margin: 0 auto; align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  padding: 30px 28px;
}
.panel--glow {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0e0e17, #0a0a11) padding-box,
    linear-gradient(160deg, rgba(139,92,246,0.6), rgba(139,92,246,0.12) 45%, rgba(34,211,238,0.2)) border-box;
  box-shadow: var(--shadow-lg), 0 0 70px rgba(109, 40, 217, 0.14);
}

.panel h1 { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; margin-bottom: 6px; }
.panel .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 650; }
.summary-total { font-size: 17px; }
.summary-total .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.summary-includes { margin-top: 18px; display: grid; gap: 8px; }
.summary-includes li { display: flex; gap: 9px; font-size: 12.5px; color: var(--muted); align-items: flex-start; }
.summary-includes .check { color: var(--emerald); font-weight: 800; flex: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; color: var(--muted); letter-spacing: .01em; }
.field input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 12px 14px;
  font: inherit; font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(124,58,237,0.22); }
.field input::placeholder { color: var(--faint); }

.pay-block { margin-top: 22px; display: grid; gap: 12px; }
.pay-divider {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
  margin: 4px 0;
}
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn--full { width: 100%; }

.notice {
  border-radius: 10px; padding: 12px 15px; font-size: 13px; line-height: 1.55;
  margin-bottom: 18px; display: none;
}
.notice.is-visible { display: block; }
.notice--error { background: rgba(251,113,133,0.09); border: 1px solid rgba(251,113,133,0.35); color: #fecdd3; }
.notice--info { background: var(--violet-soft); border: 1px solid rgba(124,58,237,0.35); color: #d8ccff; }

.secure-note {
  margin-top: 18px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; color: var(--faint);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* ---------- Success page ---------- */
.success-panel { max-width: 640px; margin: 0 auto; text-align: center; }
.success-icon {
  width: 60px; height: 60px; margin: 0 auto 22px;
  border-radius: 18px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.4);
  display: grid; place-items: center;
  color: var(--emerald);
  box-shadow: 0 0 50px rgba(52,211,153,0.18);
}
.key-box {
  margin: 26px 0 8px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 12px;
  padding: 16px 18px;
}
.key-box code {
  flex: 1;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
  letter-spacing: .06em; color: #e9e4ff; text-align: center;
  word-break: break-all;
}
.copy-btn {
  flex: none;
  font-size: 12px; font-weight: 650;
  padding: 8px 14px; border-radius: 8px;
  background: var(--violet-soft); border: 1px solid rgba(124,58,237,0.4);
  color: #cdb9ff;
  transition: background .2s;
}
.copy-btn:hover { background: rgba(124,58,237,0.28); }
.key-note { font-size: 12.5px; color: var(--faint); margin-bottom: 26px; }
.next-steps { text-align: left; display: grid; gap: 13px; margin: 26px 0; }
.next-steps li { display: flex; gap: 13px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.next-steps .n {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  background: var(--violet-soft); border: 1px solid rgba(124,58,237,0.4);
  color: var(--violet-2); font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; margin-top: 1px;
}

/* ---------- Recover page ---------- */
.recover-panel { max-width: 480px; margin: 0 auto; }

.simple-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  font-size: 12px; color: var(--faint);
}

@media (max-width: 820px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-main { padding: 112px 0 72px; }
}
