:root {
  --bg-0: #0a0908;
  --bg-1: #14110e;
  --bg-2: #1c1814;
  --ink: #f4efe6;
  --muted: #a89b88;
  --line: rgba(212, 175, 105, 0.22);
  --gold: #d4af69;
  --gold-2: #f0d9a0;
  --danger: #e07070;
  --ok: #7dba7a;
  --radius: 14px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 175, 105, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 55, 20, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg-0), #120f0c 40%, #0b0a09);
  line-height: 1.45;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top,
.wrap,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.brand {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  color: var(--gold-2);
  text-decoration: none;
}

.secure {
  color: var(--muted);
  font-size: 0.85rem;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  align-items: start;
}

.success-wrap {
  grid-template-columns: 1fr;
  max-width: 560px;
  padding-top: 4rem;
}

.panel {
  background: linear-gradient(160deg, rgba(28, 24, 20, 0.95), rgba(16, 13, 11, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: rise 0.55s ease both;
}

.summary {
  animation-delay: 0.05s;
}

.form-panel,
.pay-panel,
.success-panel {
  animation-delay: 0.15s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 1.85rem;
  color: var(--ink);
}

.desc,
.hint {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}

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

.price-row strong {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--gold-2);
}

.perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.perks li {
  position: relative;
  padding-left: 1.15rem;
  color: #d8d0c3;
  font-size: 0.95rem;
}

.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
}

label span {
  font-size: 0.85rem;
  color: #cfc4b2;
}

label em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 105, 0.28);
  background: rgba(8, 7, 6, 0.65);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 105, 0.15);
}

textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
}

.cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-decoration: none;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #1a140c;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cta:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.cta.secondary {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid rgba(212, 175, 105, 0.45);
  margin-top: 0.75rem;
}

.error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.qr-box {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0 auto 1rem;
  width: fit-content;
  animation: softPulse 2.4s ease-in-out infinite;
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 105, 0.15);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 105, 0);
  }
}

.emv-label {
  margin-top: 0.25rem;
}

.status-box {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.status-box p {
  margin: 0;
  color: var(--muted);
}

.status-box[data-state="paid"] p {
  color: var(--ok);
}

.status-box[data-state="failed"] p {
  color: var(--danger);
}

.pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 105, 0.55);
  animation: blink 1.4s infinite;
  flex-shrink: 0;
}

.status-box[data-state="paid"] .pulse {
  background: var(--ok);
  animation: none;
}

@keyframes blink {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 105, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 105, 0);
  }
}

.foot {
  text-align: center;
  padding: 0 1.25rem 2.5rem;
}

.foot a,
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
}

.success-panel {
  text-align: center;
}

.success-panel .cta {
  margin-top: 0.5rem;
}

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

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