:root {
  --bill-accent: #6d3df5;
  --bill-accent-strong: #5427d8;
  --bill-ink: #211a2e;
  --bill-muted: #797181;
  --bill-border: #e8e3ef;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
}

body.bg-gray-50-custom {
  color: var(--bill-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 61, 245, 0.1), transparent 24rem),
    radial-gradient(circle at 90% 20%, rgba(217, 70, 143, 0.08), transparent 22rem),
    #f7f5fa;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main.container-custom {
  display: grid;
  width: min(960px, calc(100% - 32px));
  max-width: none;
  min-height: 100vh;
  padding: 44px 0;
  place-items: center;
}

.max-w-lg {
  position: relative;
  width: min(620px, 100%);
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--bill-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 28px 85px rgba(45, 31, 70, 0.11);
}

.max-w-lg::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--bill-accent), #d9468f);
  content: "";
}

.billing-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--bill-accent-strong);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.max-w-lg h2 {
  margin-bottom: 8px;
  color: var(--bill-ink);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.billing-intro {
  max-width: 430px;
  margin: 0 auto 28px;
  color: var(--bill-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.max-w-lg label {
  display: block;
  margin-bottom: 8px;
  color: #4b4358;
  font-size: 0.78rem;
  font-weight: 780;
}

#customAmount {
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--bill-border);
  border-radius: 15px;
  color: var(--bill-ink);
  background: #fbfafd;
  font-size: 1.05rem;
  font-weight: 720;
  outline: none;
}

#customAmount:focus {
  border-color: rgba(109, 61, 245, 0.52);
  box-shadow: 0 0 0 4px rgba(109, 61, 245, 0.09);
}

.overflow-x-auto-custom {
  overflow: visible;
}

.space-x-3-custom {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.space-x-3-custom > * + * {
  margin-left: 0;
}

.space-x-3-custom button {
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid #ded6f8;
  border-radius: 12px;
  color: var(--bill-accent-strong);
  background: #f4f0ff;
  font-size: 0.72rem;
  font-weight: 780;
}

.space-x-3-custom button:hover {
  color: #fff;
  border-color: var(--bill-accent);
  background: var(--bill-accent);
  transform: translateY(-1px);
}

#paypal-button-container {
  min-height: 46px;
  margin-top: 22px;
}

#errorMsg {
  padding: 9px 12px;
  border-radius: 11px;
  color: #a13448;
  background: #ffedf1;
}

#toast {
  border-radius: 999px;
  background: #18815f;
  box-shadow: 0 16px 40px rgba(45, 31, 70, 0.16);
  font-size: 0.76rem;
  font-weight: 760;
}

.billing-empty-wrap {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.billing-empty {
  width: min(500px, 100%);
  padding: 38px 30px;
  border: 1px solid var(--bill-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 85px rgba(45, 31, 70, 0.1);
  text-align: center;
}

.billing-empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 18px;
  color: var(--bill-accent-strong);
  background: #f1edff;
  font-size: 1.3rem;
}

.billing-empty h2 {
  margin: 0;
  color: var(--bill-ink);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.billing-empty p {
  margin: 9px 0 0;
  color: var(--bill-muted);
  font-size: 0.8rem;
}

@media (max-width: 620px) {
  main.container-custom {
    align-items: start;
    padding: 20px 0;
  }

  .max-w-lg {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .space-x-3-custom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
