/* Modais do creator: pagamento Pix (pay.js) e "Minhas surpresas" (history.js).
   Separado do creator.css para respeitar o limite de ~300 linhas por arquivo. */

/* ---------- pagamento Pix ---------- */
.pay-card { position: relative; width: 100%; max-width: 440px; padding: 30px 22px 24px; display: grid; gap: 14px; }
.pay-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0; padding-right: 40px; }
.pay-title .icon { color: var(--accent); }
.pay-body, .pay-form, .pay-success { display: grid; gap: 12px; }
.pay-card input[type="email"], .pay-card input[type="text"], .pay-card .link-output, .pix-code {
  width: 100%; font: 400 1rem/1.45 var(--sans); color: var(--ink);
  background: rgb(8 4 20 / 0.45); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.pix-code { font: 500 0.78rem/1.4 ui-monospace, monospace; resize: none; word-break: break-all; color: var(--muted); }
.pay-lead { margin: 0; font-weight: 600; }
.pix-qr { justify-self: center; width: 220px; height: 220px; padding: 10px; border-radius: 16px; background: #ffffff; image-rendering: pixelated; }
.pay-waiting { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pay-success { text-align: center; justify-items: stretch; }
.pay-check {
  justify-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(74 222 128 / 0.15); color: #4ade80;
}
.pay-check .icon { width: 28px; height: 28px; }
.pay-success .actions .btn { flex: 1 1 160px; }

/* Opt-in do histórico no pagamento */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-align: left; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check > span { display: grid; gap: 4px; font-size: 0.92rem; }
.check .hint { font-size: 0.8rem; }

/* ---------- Minhas surpresas ---------- */
.history-card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.pay-card .code-input { font: 700 1.5rem/1 var(--sans); letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history-item { display: grid; gap: 10px; padding: 14px; border-radius: 18px; text-align: left; }
.history-head { display: grid; gap: 2px; min-width: 0; }
.history-to { overflow-wrap: anywhere; }
.history-meta { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.history-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.history-tags .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 0.75rem; }
.history-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.history-actions .btn { flex: 1 1 auto; min-height: 38px; padding: 0 12px; }
.history-item .status { margin: 0; font-size: 0.85rem; }
.btn.danger { color: #fda4af; }
.btn.danger.confirm { border-color: #fb7185; background: rgb(251 113 133 / 0.15); }
.history-body > .btn { justify-self: center; }
.pay-agree { text-align: center; font-size: 0.78rem; }
.pay-agree a { color: var(--ink); text-underline-offset: 3px; }
