:root {
  --bg: #030817;
  --bg-2: #08142e;
  --bg-3: #0d1d46;
  --card: rgba(12, 22, 52, 0.72);
  --text: #eef4ff;
  --muted: #a9b7d6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #62b0ff;
  --accent-2: #86d3ff;
  --accent-3: #9a7bff;
  --danger: #ffd5d5;
  --danger-bg: rgba(255, 89, 89, 0.14);
  --danger-line: rgba(255, 125, 125, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(98, 176, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(154, 123, 255, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  color: #071020;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(98, 176, 255, 0.3);
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
}

.card {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.choice-heading,
.section-title {
  margin: 0 0 10px;
  font-size: 15px;
}

.choice-subtext,
.small,
.mini-note {
  color: var(--muted);
  font-size: 13px;
}

.spacer-10 {
  height: 10px;
}

.amount-box {
  background: linear-gradient(180deg, rgba(98, 176, 255, 0.16), rgba(154, 123, 255, 0.08));
  border: 1px solid rgba(98, 176, 255, 0.24);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 24px rgba(98, 176, 255, 0.08);
}

.amount {
  font-size: 34px;
  font-weight: 800;
  margin-top: 2px;
}

#paypal-button-container,
#card-button-container {
  margin-top: 8px;
}

.error {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
}

.error.show {
  display: block;
}

.summary-list {
  margin-top: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row span {
  color: var(--muted);
}

.total-row {
  border-bottom: 0;
  padding-bottom: 0;
}

/* SUCCESS SCREEN */
.confirmation-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 25%),
    linear-gradient(180deg, #071120 0%, #0a1730 100%);
}

.confirmation-screen.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.success-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.82);
  animation: twinkle 3s infinite ease-in-out;
}

.success-shooting-star {
  position: absolute;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
  transform: rotate(-48deg);
  opacity: 0;
}

.success-shooting-star.one {
  top: 5%;
  right: 21%;
  animation: successShoot 7s linear infinite;
}

.success-shooting-star.two {
  top: 12%;
  right: 8%;
  animation: successShoot 8.5s linear infinite 2.5s;
}

.success-shooting-star.three {
  top: 18%;
  right: 38%;
  animation: successShoot 9s linear infinite 4.2s;
}

.success-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  padding: 40px 24px;
  text-align: center;
}

.success-content h1 {
  margin: 0 0 30px;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.55),
    0 0 26px rgba(255, 255, 255, 0.18);
}

.success-content p {
  margin: 0;
  font-size: clamp(21px, 2.7vw, 31px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.93);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

@keyframes successShoot {
  0% {
    transform: translate(0, 0) rotate(-48deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  32% {
    transform: translate(-240px, 240px) rotate(-48deg);
    opacity: 0;
  }
  100% {
    transform: translate(-240px, 240px) rotate(-48deg);
    opacity: 0;
  }
}

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

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 20px, 1100px);
    margin: 20px auto;
  }

  .brand h1 {
    font-size: 24px;
  }

  .amount {
    font-size: 28px;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .success-content h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .success-content p {
    font-size: clamp(18px, 5vw, 24px);
  }
}
