:root {
  --bg0: #0a1210;
  --bg1: #10241c;
  --brand: #1fa37a;
  --brand-hi: #3dd4a0;
  --accent: #f2b134;
  --text: #f3f7f5;
  --dim: #8fa398;
  --line: rgba(61, 212, 160, 0.22);
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(31, 163, 122, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(242, 177, 52, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg1), var(--bg0) 55%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
}

.stage {
  width: min(420px, 100%);
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

h1 {
  margin: 0;
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sub {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.98rem;
  line-height: 1.45;
}

.sub strong {
  color: var(--text);
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amount-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 18px 4px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 16, 14, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amount-wrap:focus-within {
  border-color: var(--brand-hi);
  box-shadow: 0 0 0 3px rgba(61, 212, 160, 0.18);
}

.amount-wrap .currency {
  font: 700 1.35rem/1 Outfit, "DM Sans", sans-serif;
  color: var(--dim);
}

.field input {
  appearance: none;
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 700 1.55rem/1.2 Outfit, "DM Sans", sans-serif;
  outline: none;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field input[type=number] { -moz-appearance: textfield; }

.fx {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 36, 28, 0.55);
}

.charge {
  margin: 0;
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
}

.fx-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fx-label {
  color: var(--dim);
  font-size: 0.9rem;
}

#cop {
  font-family: Outfit, "DM Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
}

.fx-meta {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.82rem;
}

.fx-note {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.4;
}

.hint {
  margin: 0;
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
}

.pay {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  font: 700 1.05rem/1 Outfit, "DM Sans", sans-serif;
  letter-spacing: 0.03em;
  color: #062018;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

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

.pay:active:not(:disabled) {
  transform: translateY(0);
}

.pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hint {
  margin: 0;
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
}

.err {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  text-align: center;
}

.result {
  text-align: center;
  padding: 12px 0;
}

.result h1 {
  margin-bottom: 10px;
}

.result p {
  color: var(--dim);
  margin: 0 0 22px;
}

.result a {
  color: var(--brand-hi);
  font-weight: 600;
  text-decoration: none;
}

.result a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .pay, .field input { transition: none; }
}
