:root {
  --bg-0: #070b1a;
  --bg-1: #0b1127;
  --panel: rgba(18, 26, 58, 0.94);
  --panel-2: rgba(28, 38, 79, 0.96);
  --line: rgba(106, 110, 190, 0.24);
  --line-strong: rgba(106, 110, 190, 0.42);
  --text: #f6f3ff;
  --soft: #aeb5db;
  --muted: #636a8f;
  --accent: #64d8ff;
  --violet: #7c5cff;
  --pink: #ff5ea8;
  --grad-main: linear-gradient(90deg, #8f4ff2 0%, #c255f5 45%, #ff5ea8 100%);
  --grad-topbar: linear-gradient(90deg, rgba(31, 28, 60, 0.96), rgba(10, 14, 35, 0.96));
  --shadow-panel: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(124, 92, 255, 0.1);
  --pp-blue: #003087;
  --pp-sky:  #009cde;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at 15% 12%, rgba(168, 85, 247, 0.16), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 94, 168, 0.14), transparent 20%),
    linear-gradient(180deg, #090d1d 0%, #0a1127 52%, #070b1a 100%);
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ── Topbar ─────────────────────────────────────────── */
.checkout-shell { min-height: 100vh; }

.checkout-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  min-height: 68px;
  background: var(--grad-topbar);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.checkout-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.checkout-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}

.checkout-nav {
  display: flex;
  gap: 0;
  flex: 1;
  align-items: stretch;
  height: 100%;
}

.checkout-nav a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(132, 116, 235, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.checkout-nav a:hover {
  border-color: rgba(132, 116, 235, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.checkout-signout {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 116, 235, 0.25);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.checkout-signout:hover {
  border-color: rgba(132, 116, 235, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

/* ── Content shell ──────────────────────────────────── */
.checkout-content {
  width: min(760px, calc(100% - 40px));
  margin: 36px auto 0;
}

.checkout-content h1 {
  margin: 0 0 22px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 18px rgba(124, 92, 255, 0.18);
}

/* ── Recipient bar ──────────────────────────────────── */
.recipient-bar {
  margin-bottom: 28px;
}

.recipient-toggle {
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  color: var(--soft);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.recipient-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(36, 47, 95, 0.98);
}

.recipient-panel { margin-top: 6px; }

.checkout-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

/* ── Package card ───────────────────────────────────── */
.package-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.package-header {
  background: linear-gradient(90deg, #2f3f8b 0%, #3e3a7e 52%, #4d356f 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.package-price {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  padding: 18px 20px 4px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(100, 216, 255, 0.18);
}

.package-duration {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.package-description {
  text-align: center;
  color: var(--soft);
  padding: 16px 40px 22px;
  line-height: 1.65;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  white-space: pre-wrap;
}

.coupon-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
  padding: 14px;
  box-shadow: var(--shadow-panel);
}

.coupon-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.coupon-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--grad-main);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.coupon-btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.coupon-btn:disabled,
.paypal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coupon-status {
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.84rem;
}

/* ── Payment grid ───────────────────────────────────── */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.payment-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-panel);
}

/* PayPal wordmark */
.paypal-wordmark {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pp-pay { color: var(--pp-blue); }
.pp-pal { color: var(--pp-sky); }

.paypal-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.stripe-message {
  margin: 10px auto 4px;
  min-height: 22px;
  max-width: 360px;
}

.paypal-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 14px;
  background: var(--grad-main);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px rgba(194, 85, 245, 0.2);
  transition: transform 0.15s, filter 0.15s;
}

.paypal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Info card */
.info-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.info-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.info-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
  font-size: 0.88rem;
}

.info-card strong {
  color: var(--text);
}

/* ── Result box ─────────────────────────────────────── */
.checkout-result {
  margin-top: 24px;
  min-height: 80px;
  background: rgba(10, 14, 35, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #b8ccff;
  padding: 10px 12px;
  white-space: pre-wrap;
  font-size: 0.84rem;
  line-height: 1.6;
  box-shadow: var(--shadow-panel);
}

/* ── Footer ─────────────────────────────────────────── */
.checkout-footer {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto 28px;
}

.checkout-footer a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.83rem;
}

.checkout-footer a:hover { color: var(--text); }

.hidden { display: none; }

@media (max-width: 680px) {
  .checkout-topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .checkout-nav {
    width: 100%;
    flex-wrap: wrap;
    height: auto;
    gap: 4px;
  }

  .checkout-nav a {
    padding: 6px 10px;
    border-bottom: none;
  }

  .coupon-controls {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .package-description {
    padding: 16px 18px 20px;
  }

  .package-price {
    font-size: 1.7rem;
  }
}

