:root {
  --bg: #16151A;
  --card: #1E1D24;
  --card-2: #25242C;
  --border: rgba(255, 255, 255, 0.09);
  --text: #F4F4F6;
  --muted: #A3A2AD;
  --accent: #C5F24A;
  --accent-ink: #16151A;
  --accent-soft: rgba(197, 242, 74, 0.08);
  --accent-line: rgba(197, 242, 74, 0.55);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Layout ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.topbar strong { color: var(--text); font-weight: 600; }
.lock { color: var(--accent); margin-right: 6px; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

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

/* Mobile: summary first, checkout second (DOM order already matches) */
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page { padding: 20px 16px 48px; }
}

.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Order summary ---------- */

.line-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}
.line-item + .line-item { border-top: 1px solid var(--border); }
.line-item .name { font-weight: 600; }
.line-item .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.line-item .price { font-weight: 600; white-space: nowrap; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
}
.total-row .amount { color: var(--accent); font-size: 22px; }

.back-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.back-link:hover { color: var(--text); }

/* ---------- Order bump ---------- */

.bump {
  border: 2px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.bump-header {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bump-header .arrow { animation: nudge 1.1s ease-in-out infinite; display: inline-block; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

.bump-body { padding: 22px 24px 24px; }
.bump-headline { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.bump-desc { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M9 0a9 9 0 100 18A9 9 0 009 0zm4.2 6.7l-5 5a.9.9 0 01-1.3 0L4.8 9.6a.9.9 0 111.3-1.3l1.4 1.4 4.4-4.4a.9.9 0 111.3 1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M9 0a9 9 0 100 18A9 9 0 009 0zm4.2 6.7l-5 5a.9.9 0 01-1.3 0L4.8 9.6a.9.9 0 111.3-1.3l1.4 1.4 4.4-4.4a.9.9 0 111.3 1.4z'/></svg>") center / contain no-repeat;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 0 0 0 rgba(197, 242, 74, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(197, 242, 74, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(197, 242, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 242, 74, 0); }
}
.bump-note { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Included box (bundle page) ---------- */

.included {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.included-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.included-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 900; font-size: 16px; flex: none;
}
.included-title { margin: 0; font-size: 17px; font-weight: 700; }
.included-tag {
  margin-left: auto;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 4px 10px; border-radius: 999px;
}
.included .checks { margin: 0; }

/* ---------- Whop checkout column ---------- */

.checkout-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-height: 420px;
  position: relative;
}

/* The div Whop's loader mounts its iframe into */
.checkout-mount { width: 100%; min-height: 380px; overflow: hidden; }
.checkout-mount iframe { display: block; width: 100% !important; border: 0; max-width: 100%; }

.checkout-skeleton {
  position: absolute; inset: 8px;
  display: grid; place-items: center;
  color: var(--muted); font-size: 14px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.checkout-skeleton.is-hidden { opacity: 0; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 10px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .bump-header .arrow, .spinner { animation: none; }
}
