:root {
  --bg: #0A0A0A;
  --btn: #C23A22;
  --ink: #F4F2EE;
  --muted: rgba(255,255,255,.58);
  --line: rgba(255,255,255,.14);
  --field: rgba(255,255,255,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Chakra Petch', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 72px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.72)),
    var(--photo, #0A0A0A) center / cover no-repeat;
}

.test-badge {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--btn);
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 8px;
  font-weight: 700;
}
.test-badge.show { display: block; }

.wrap {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(10,10,10,.82);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
.wrap.paid .col { display: none; }

.col { padding: 40px 36px; }
.col.left { border-right: 1px solid var(--line); }

.logo {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 3px;
  font-size: 22px;
  margin-bottom: 36px;
}
.logo span { color: var(--btn); }

.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.amount { font-size: 42px; font-weight: 600; letter-spacing: -1px; }

.items { margin-top: 28px; }
.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.item .desc { color: var(--muted); font-size: 12px; margin-top: 3px; }
.item .price { white-space: nowrap; }

.totals { margin-top: 8px; }
.totals .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
}
.totals .row.grand {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}
.field { margin-bottom: 14px; }
.input, #card-element {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  color: #fff;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.input:focus { border-color: rgba(255,255,255,.4); }
#card-element { min-height: 44px; }

.pay {
  width: 100%;
  margin-top: 8px;
  background: var(--btn);
  color: #fff;
  border: 0;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pay:disabled { opacity: .55; cursor: not-allowed; }

.err { min-height: 18px; margin-top: 8px; color: #ff6b6b; font-size: 13px; }
.legal { margin-top: 12px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.foot {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; }

.success {
  display: none;
  text-align: center;
  padding: 64px 40px;
  grid-column: 1 / -1;
}
.success.show { display: block; }
.tick {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 1.5px solid var(--btn);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--btn);
}
.success h2 { font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.success p { color: var(--muted); max-width: 440px; margin: 0 auto; line-height: 1.5; }

@media (max-width: 800px) {
  .wrap { grid-template-columns: 1fr; }
  .col.left { border-right: 0; border-bottom: 1px solid var(--line); }
  .amount { font-size: 34px; }
}
