:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(46, 229, 157, 0.22), transparent 34rem),
    linear-gradient(135deg, #0d1117 0%, #111827 48%, #07101d 100%);
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.card {
  width: min(100%, 560px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(12, 18, 30, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.eyebrow {
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.intro {
  margin: 0 0 28px;
  color: #a7b1c2;
  font-size: 16px;
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 22px;
}

.field span,
legend {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.field input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.amounts legend {
  grid-column: 1 / -1;
}

.amounts label {
  cursor: pointer;
}

.amounts input {
  position: absolute;
  opacity: 0;
}

.amounts span {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 800;
}

.amounts input:checked + span {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
  color: #fff;
}

.payment-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #a7b1c2;
  font-size: 13px;
}

.payment-note span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

button {
  height: 58px;
  cursor: pointer;
  border: 0;
  border-radius: 18px;
  background: #4ade80;
  color: #052e16;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.message {
  min-height: 22px;
  margin: 0;
  color: #bbf7d0;
  font-size: 14px;
}

.message.error {
  color: #fca5a5;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #f5f7fb;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.template-box {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #e2e8f0;
}

.template-head button {
  width: auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.template-box pre {
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
  color: #cbd5e1;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 520px) {
  .card {
    padding: 26px;
    border-radius: 22px;
  }

  .amounts {
    grid-template-columns: 1fr;
  }
}
