:root {
  --cor: #e8466b;
  --bg: #0c0c0f;
  --bg2: #15151a;
  --bg3: #1e1e25;
  --linha: #2a2a33;
  --txt: #f4f4f6;
  --txt2: #a4a4b0;
  --ok: #2fbf71;
  --ouro: #f5c451;
  --raio: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
input, textarea, select { font: inherit; color: var(--txt); background: var(--bg3); border: 1px solid var(--linha); border-radius: 12px; padding: 13px 14px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--cor); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: 14px; background: var(--cor); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .01em; transition: transform .12s, filter .12s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.sec { background: var(--bg3); color: var(--txt); border: 1px solid var(--linha); }
.btn.ghost { background: none; color: var(--txt2); font-weight: 500; font-size: 14px; padding: 10px; }
.btn.ouro { background: linear-gradient(135deg, #f7d26a, #d89a2b); color: #241500; }
.muted { color: var(--txt2); }
.small { font-size: 13px; }
.hide { display: none !important; }
.erro { color: #ff7b8f; font-size: 14px; min-height: 0; }
.erro:empty { display: none; }

/* ---------- sheet (checkout) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.66); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet { width: 100%; max-width: 480px; max-height: 94vh; overflow: auto; background: var(--bg2); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { margin: 0 0 4px; font-size: 19px; }
.sheet .fechar { float: right; width: 34px; height: 34px; border-radius: 50%; background: var(--bg3); font-size: 18px; line-height: 34px; text-align: center; margin: -4px -4px 0 8px; }
.linhas { margin: 14px 0; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; }
.linhas div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--linha); }
.linhas div:last-child { border-bottom: 0; }
.linhas .total { font-weight: 800; background: var(--bg3); }
.bump { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1.5px dashed var(--cor); border-radius: 14px; margin: 10px 0; cursor: pointer; background: color-mix(in srgb, var(--cor) 8%, transparent); }
.bump input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cor); flex: none; }
.bump b { display: block; }
.bump .preco { color: var(--cor); font-weight: 800; white-space: nowrap; }
.campos { display: grid; gap: 10px; margin: 12px 0; }
.pix-box { text-align: center; }
.pix-box img { width: 220px; height: 220px; margin: 12px auto; border-radius: 12px; background: #fff; padding: 8px; }
.pix-code { font-size: 12px; word-break: break-all; background: var(--bg3); border-radius: 10px; padding: 10px; color: var(--txt2); max-height: 64px; overflow: hidden; margin: 8px 0 12px; user-select: all; -webkit-user-select: all; }
.aguardando { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 4px; color: var(--txt2); font-size: 14px; }
.spin { width: 16px; height: 16px; border: 2px solid var(--linha); border-top-color: var(--cor); border-radius: 50%; animation: gira .8s linear infinite; }
.passos { text-align: left; font-size: 14px; color: var(--txt2); margin: 12px 0 0; padding-left: 18px; }
.selo-seguro { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--txt2); margin-top: 12px; }
.pago { text-align: center; padding: 18px 0; }
.pago .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); margin: 0 auto 12px; display: grid; place-items: center; font-size: 34px; color: #fff; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.teste-tag { display: inline-block; background: #ffcf3f; color: #222; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(40px); opacity: .4 } }
@keyframes gira { to { transform: rotate(360deg) } }
@keyframes pop { from { transform: scale(.3) } }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #fff; color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 80; animation: fade .2s; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
