:root {
  --bg: #15122b;
  --bg-2: #211c42;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f1ff;
  --muted: #b9b3d6;
  --accent: #e9c46a;
  --accent-ink: #1d1838;
  --ok: #8fd6a8;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg) 70%) fixed, var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 14px;
}

.price-box { border-color: var(--accent); }
.price { font-size: 1.6rem; font-weight: 700; color: var(--accent); }

.btn {
  display: block; width: 100%;
  padding: 16px; border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1.05rem;
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; text-align: center; text-decoration: none;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn + .btn { margin-top: 10px; }

.options { display: grid; gap: 10px; }
.option {
  padding: 15px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.option:hover, .option:focus-visible { border-color: var(--accent); outline: none; }

label { display: block; font-weight: 600; margin: 0 0 6px; }
input, select {
  width: 100%; padding: 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--text);
  font: inherit; font-size: 16px; /* 16px evita zoom automático no iPhone */
}
select option { color: #111; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-top: 12px; }
.check input { width: 20px; height: 20px; }

.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 1.4rem; cursor: pointer; padding: 0 4px; }
.progress { flex: 1; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .25s; }

[data-screen] { display: none; }
[data-screen].active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

ul.list { padding-left: 20px; margin: 0 0 12px; }
ul.list li { margin-bottom: 6px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.trust span { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* margin:auto no card centraliza e, se ele for mais alto que a tela, deixa rolar sem cortar o topo */
.modal {
  position: fixed; inset: 0; background: rgba(8, 6, 20, 0.75);
  display: none; padding: 16px; z-index: 10; overflow-y: auto; overscroll-behavior: contain;
}
.modal.open { display: flex; }
.modal .card { max-width: 448px; width: 100%; background: var(--bg-2); margin: auto; }

.error { color: #ffb4a8; font-size: 0.9rem; margin-top: 8px; min-height: 1.2em; }
footer { margin-top: 28px; text-align: center; font-size: 0.8rem; color: var(--muted); }
footer a { color: var(--muted); }

.spinner { width: 48px; height: 48px; margin: 40px auto 16px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pagamento */
.btn-sm { display: inline-block; width: auto; padding: 8px 14px; font-size: .9rem; }
.btn-dev { background: transparent; color: #ffb4a8; border: 1px dashed #ffb4a8; font-weight: 600; margin-top: 10px; }
.aviso-teste { background: #ffb4a8; color: #3a0d06; font-weight: 700; font-size: .78rem; text-align: center;
  padding: 6px 10px; border-radius: 8px; margin-bottom: 14px; letter-spacing: .02em; }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: 220px; height: 220px; margin: 4px auto 14px;
  display: grid; place-items: center; color: #333; font-size: .85rem; text-align: center; }
.qr svg { width: 100%; height: 100%; }
.copia { display: flex; gap: 8px; }
.copia input { font-size: 13px; font-family: ui-monospace, monospace; }
.copia .btn-sm { flex: none; margin: 0; }
.status-pix { margin: 12px 0 8px; font-size: .9rem; }
.status-pix .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulso 1.2s infinite; }
@keyframes pulso { 50% { opacity: .25; } }
