:root {
  color-scheme: light;
  --ink: #16213a;
  --muted: #68738a;
  --line: #dfe5ef;
  --panel: rgba(255, 255, 255, 0.94);
  --blue: #0070ba;
  --blue-dark: #003087;
  --yellow: #ffc439;
  --danger: #a22323;
  --success: #087a45;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(0,112,186,.16), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255,196,57,.18), transparent 33%),
    #f3f6fb;
}
.shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card {
  width: min(100%, 510px);
  border: 1px solid rgba(210,220,235,.9);
  border-radius: 24px;
  padding: 30px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(31, 49, 82, .14);
  backdrop-filter: blur(18px);
}
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--blue), var(--blue-dark)); font-weight: 900; font-size: 23px; }
.eyebrow { margin: 0 0 3px; color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(25px, 6vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.order-box { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbff; }
.product { margin: 0; font-weight: 800; }
.muted { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.price { white-space: nowrap; font-size: 21px; }
.field { display: grid; gap: 8px; margin: 22px 0 16px; font-size: 14px; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
input { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; font: inherit; color: var(--ink); outline: none; background: white; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,112,186,.1); }
.state { border-radius: 12px; padding: 11px 13px; margin-bottom: 14px; font-size: 13px; line-height: 1.45; }
.state.checking { background: #eef4fb; color: #315077; }
.state.available { background: #e9f8f0; color: var(--success); }
.state.unavailable { background: #fff0f0; color: var(--danger); }
.paypal-button { width: 100%; min-height: 58px; border: 0; border-radius: 14px; background: var(--yellow); color: #111827; display: flex; justify-content: center; align-items: center; gap: 13px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.paypal-button:not(:disabled):hover { filter: brightness(.98); transform: translateY(-1px); }
.paypal-button:disabled { cursor: not-allowed; opacity: .55; }
.paypal-word { font-size: 20px; font-style: italic; letter-spacing: -.06em; }
.paypal-word i { color: var(--blue-dark); font-style: italic; }
.paypal-word b { color: var(--blue); }
.error { margin: 14px 0 0; padding: 12px; color: var(--danger); background: #fff0f0; border: 1px solid #ffd0d0; border-radius: 12px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.fine-print { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.55; }
.status-card { text-align: center; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 34px; font-weight: 900; }
.status-icon.pending { color: #315077; background: #eef4fb; }
.status-icon.paid { color: var(--success); background: #e9f8f0; }
.status-icon.failed { color: var(--danger); background: #fff0f0; }
.details { margin: 24px 0; padding: 0; border-top: 1px solid var(--line); text-align: left; }
.details div { display: grid; grid-template-columns: 95px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.secondary-link { display: inline-flex; color: var(--blue-dark); text-decoration: none; font-weight: 800; }
@media (max-width: 520px) { .card { padding: 23px; border-radius: 19px; } .order-box { align-items: flex-start; } }


[hidden] { display: none !important; }
.home-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid #d7e0ec;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  color: #315077;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31,49,82,.05);
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.home-button:not(:disabled):hover {
  border-color: #9fb4cf;
  background: #f7faff;
  color: var(--blue-dark);
  transform: translateY(-1px);
}
.home-button:focus-visible {
  outline: 3px solid rgba(0,112,186,.16);
  outline-offset: 2px;
}


.amount-field { margin-bottom: 14px; }
.email-field { margin-top: 14px; }
.money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.money-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,112,186,.1);
}
.money-input > span {
  padding-left: 15px;
  color: var(--muted);
  font-weight: 800;
}
.money-input input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.money-input:has(input:disabled) {
  background: #f2f5f9;
  opacity: .8;
}
.money-input input:disabled { background: transparent; cursor: not-allowed; }
