/* P2P On — fluxo em etapas, redes, carteira, PIX, envio, conclusão e 2FA */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flow { position: relative; min-height: 560px; }
.step-tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--green); background: rgba(42,245,166,.08); border: 1px solid rgba(42,245,166,.25); padding: 2px 8px; border-radius: 999px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.stage-head .card-title { margin: 0; }
.block { margin-bottom: 18px; }
.label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.btn-lg { padding: 15px 18px; font-size: 15.5px; margin-top: 4px; }
.link { background: none; border: 0; padding: 0; color: var(--cyan); font: 600 12.5px var(--font); cursor: pointer; }
.link:hover { text-decoration: underline; }
.mono, code { font-family: var(--mono); }

/* transições entre etapas */
.stage { animation: stage-in .38s cubic-bezier(.2,.8,.2,1); }
.stage.leaving { animation: stage-out .2s ease forwards; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stage-out { to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(2px); } }
.stage > * { animation: item-in .45s cubic-bezier(.2,.8,.2,1) both; }
.stage > *:nth-child(2) { animation-delay: .04s; }
.stage > *:nth-child(3) { animation-delay: .08s; }
.stage > *:nth-child(4) { animation-delay: .12s; }
.stage > *:nth-child(5) { animation-delay: .16s; }
.stage > *:nth-child(6) { animation-delay: .2s; }
.stage > *:nth-child(7) { animation-delay: .24s; }
@keyframes item-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* moeda */
.seg-btn { display: inline-flex; align-items: center; gap: 8px; }
.mini-coin { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #05121f; }

/* redes */
.nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.net { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke); color: var(--text); font: 600 13.5px var(--font);
  transition: transform .18s, border-color .2s, background .2s, box-shadow .2s; animation: item-in .35s both; }
.net:hover { transform: translateY(-2px); border-color: var(--stroke-2); background: rgba(255,255,255,.05); }
.net:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.net > svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.net small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.net[aria-checked="true"] { border-color: rgba(42,245,166,.6); background: linear-gradient(180deg, rgba(42,245,166,.09), rgba(31,182,255,.04)); box-shadow: 0 0 0 4px rgba(42,245,166,.08), 0 10px 26px -14px rgba(42,245,166,.6); }
.net[aria-checked="true"] > svg { transform: scale(1.12) rotate(-6deg); }
.net .tick { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #04111d; display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.net .tick svg { width: 13px; height: 13px; }
.net[aria-checked="true"] .tick { transform: scale(1); }

/* carteira */
.wallet-field { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--stroke); transition: border-color .2s, box-shadow .2s; }
.wallet-field:focus-within { border-color: rgba(31,182,255,.5); box-shadow: 0 0 0 4px rgba(31,182,255,.08); }
.wallet-field.ok { border-color: rgba(42,245,166,.55); }
.wallet-field.bad { border-color: rgba(255,92,122,.6); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wf-net { width: 26px; height: 26px; flex: none; }
.wallet-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 14px var(--mono); padding: 6px 0; }
.wf-status { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.wf-status.ok { background: var(--grad); color: #04111d; animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
.wf-status.bad { background: rgba(255,92,122,.18); color: var(--red); }
.wf-status.busy { border: 2px solid var(--muted); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.wallet-tools { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.wallet-tools .bad-msg { color: #ffb3c1; }
.wallet-btns { display: inline-flex; gap: 14px; }

/* cotação */
.quote { margin-top: 0; }
.dest { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); }
.dest-logo { width: 34px; height: 34px; flex: none; }
.dest-info { display: grid; gap: 2px; min-width: 0; }
.dest-info code { font-size: 13px; overflow-wrap: anywhere; color: var(--text); }
.chip { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--stroke); color: var(--muted); }
.ack { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.ack input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--stroke-2); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ack input:checked { background: var(--grad); border-color: transparent; }
.ack input:checked::after { content: "✓"; color: #04111d; font-weight: 800; font-size: 13px; animation: pop .25s; }
.ack input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ack b { color: var(--text); }
.flow .actions { display: flex; gap: 10px; margin-top: 16px; }
.flow .actions .btn-primary { flex: 1; }

/* PIX */
.timer { font: 700 15px var(--mono); padding: 6px 12px; border-radius: 10px; background: rgba(255,200,87,.08); border: 1px solid rgba(255,200,87,.3); color: var(--amber); }
.pix { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
@media (max-width: 560px) { .pix { grid-template-columns: 1fr; justify-items: center; } }
.qr-wrap { position: relative; width: 236px; height: 236px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px -18px rgba(42,245,166,.55); animation: qr-in .6s cubic-bezier(.2,.9,.3,1.3) both; overflow: hidden; }
.qr-wrap img { width: 220px; height: 220px; display: block; image-rendering: pixelated; }
@keyframes qr-in { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }
.qr-scan { position: absolute; left: 8px; right: 8px; height: 3px; top: 8px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--green), transparent); box-shadow: 0 0 14px var(--green); animation: scan 2.6s ease-in-out infinite; opacity: .8; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(218px); } }
.pix-info { display: grid; gap: 12px; margin: 0; }
.pix-info dt { font-size: 11.5px; color: var(--muted); }
.pix-info dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pix-info dd.big { font: 700 26px var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pix-info dd.mono { font-size: 12.5px; }
.copy-box { margin-top: 18px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
@media (max-width: 560px) { .copy-row { grid-template-columns: 1fr; } }
.copy-row textarea { resize: none; background: rgba(255,255,255,.03); border: 1px dashed var(--stroke-2); border-radius: 12px; color: var(--text); font: 12px/1.45 var(--mono); padding: 10px 12px; outline: 0; word-break: break-all; }
.btn.copied { background: var(--panel-2); color: var(--green); box-shadow: inset 0 0 0 1px rgba(42,245,166,.5); }
.demo-pay { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 16px 0 8px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: #ffe3a3; background: rgba(255,200,87,.07); border: 1px solid rgba(255,200,87,.3); }
.pix-none { margin: 16px 0; padding: 14px; border-radius: 12px; background: var(--panel-2); color: var(--muted); }

/* enviando */
.route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin: 26px 0 22px; }
.node { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.node svg { width: 52px; height: 52px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); animation: bob 2.4s ease-in-out infinite; }
.node:nth-child(3) svg { animation-delay: .4s; }
.node:nth-child(5) svg { animation-delay: .8s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.track { position: relative; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); }
.track i { position: absolute; top: -3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: travel 1.8s linear infinite; }
.track i:nth-child(2) { animation-delay: .6s; }
.track i:nth-child(3) { animation-delay: 1.2s; }
.track.t2 i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 9px); opacity: 0; } }
.sending-text { text-align: center; font-size: 16px; margin: 0 0 8px; }
.addr-pill { display: block; width: fit-content; max-width: 100%; margin: 0 auto 14px; padding: 8px 14px; border-radius: 12px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--stroke); overflow-wrap: anywhere; text-align: center; }

/* concluído */
.done-hero { text-align: center; margin: 10px 0 18px; }
.done-hero h3 { margin: 12px 0 4px; font-size: 24px; }
.done-hero p { margin: 0; }
.done-check { width: 84px; height: 84px; animation: celebrate .6s 1s cubic-bezier(.3,1.6,.5,1); }
.done-check circle { fill: rgba(42,245,166,.1); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s ease forwards; }
.done-check path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s ease forwards; }
.flow.failed .done-check circle { stroke: var(--red); fill: rgba(255,92,122,.1); }
.flow.failed .done-check path { stroke: var(--red); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes celebrate { 50% { transform: scale(1.12); } }
.summary { display: grid; margin: 0 0 18px; border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; }
.summary > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--stroke); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); font-size: 13px; flex: none; }
.summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.summary dd.mono { font-size: 12.5px; }
.net-cell { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.net-cell svg { width: 20px; height: 20px; flex: none; }

/* destino no stepper e histórico */
.dest-mini { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--stroke); animation: rise .35s ease; }
.dest-mini svg { width: 28px; height: 28px; flex: none; }
.dest-mini div { display: grid; min-width: 0; }
.dest-mini code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li.just-done .dot { animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
.table td .net-cell { justify-content: flex-start; }
.table tbody tr { animation: item-in .3s both; }

/* aviso de 2FA e modal */
.warn-2fa { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; font-size: 13.5px; color: #ffc2cf; background: rgba(255,92,122,.08); border-bottom: 1px solid rgba(255,92,122,.25); }
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3,7,14,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 380px; padding: 28px 26px 22px; text-align: center; animation: modal-in .4s cubic-bezier(.2,.9,.3,1.2); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.modal h2 { margin: 12px 0 6px; font-size: 20px; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.modal .shield { width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #04111d; font-size: 26px; box-shadow: 0 14px 34px -12px rgba(42,245,166,.7); }
.otp { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.otp input { width: 46px; height: 56px; text-align: center; font: 700 22px var(--mono); color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--stroke-2); border-radius: 12px; outline: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.otp input:focus { border-color: rgba(42,245,166,.6); box-shadow: 0 0 0 4px rgba(42,245,166,.1); transform: translateY(-2px); }
.otp.bad input { border-color: rgba(255,92,122,.6); animation: shake .35s; }
.modal .qr-wrap { width: 196px; height: 196px; margin: 0 auto 14px; }
.modal .qr-wrap img { width: 180px; height: 180px; }
.secret-line { font: 12px var(--mono); word-break: break-all; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); margin: 0 0 14px; }
.modal .muted.small { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { .qr-scan, .track i { display: none; } }

/* ---------- Etapa 1 · conversor (cartões empilhados) ---------- */
.cv { display: grid; gap: 14px; }
.cv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.cv-title { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.4px; }
.cv-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke); font-variant-numeric: tabular-nums; }
.cv-live i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(42,245,166,.25); border-top-color: var(--green); animation: spin 1.1s linear infinite; }
.cv-live.stale i { border-top-color: var(--amber); }

.cv-box { position: relative; padding: 16px 18px 18px; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--stroke); }
.cv-box-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 10px; }
.cv-box-top > label, .cv-lbl { font-size: 14px; color: var(--muted); }

.cv-row.field { display: flex; align-items: center; gap: 12px; padding: 4px 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.cv-row.field.estimated { opacity: 1; }
.cv-row.estimated .cv-amt { color: var(--muted); }
.cv-coin { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #05121f;
  box-shadow: 0 0 0 4px rgba(42,245,166,.08), 0 8px 22px -8px rgba(42,245,166,.55); }
.coin-brl { background: linear-gradient(135deg, #5ff5c8, #19b98d); font-size: 16px; letter-spacing: -.5px; }
.cv-coin.coin-usdc { box-shadow: 0 0 0 4px rgba(39,117,202,.12), 0 8px 22px -8px rgba(39,117,202,.6); }
.cv-id { display: grid; line-height: 1.2; }
.cv-id b { font-size: 17px; }
.cv-id span { font-size: 13px; color: var(--muted); }
.cv-amt { flex: 1; min-width: 0; text-align: right; background: transparent; border: 0; outline: 0; color: var(--text); padding: 4px 0;
  font: 700 34px/1.1 var(--font); letter-spacing: -.8px; font-variant-numeric: tabular-nums; transition: color .2s; }
.cv-amt::placeholder { color: rgba(232,238,248,.35); }
.cv-row:focus-within .cv-amt { color: var(--text); }

.cv-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.cv-chip { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.03); color: var(--text);
  font: 600 13.5px var(--font); cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.cv-chip:hover { background: rgba(255,255,255,.07); border-color: rgba(42,245,166,.4); }

.cv-swap { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #04111d; background: linear-gradient(135deg, #5ff5c8, #2bd4a8);
  border: 5px solid var(--bg-2); box-shadow: 0 0 22px -2px rgba(42,245,166,.55); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.cv-swap svg { width: 18px; height: 18px; }
.cv-swap:hover { transform: translate(-50%, 50%) rotate(180deg); }
.cv-swap:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.cv-seg { display: inline-flex; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--stroke); }
.cv-seg .seg-btn { padding: 6px 14px; border-radius: 11px; font-size: 14px; }
.cv-seg .mini-coin { border-radius: 50%; }

.cv-net-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.cv-net-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; cursor: pointer; color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke-2); font: 650 14.5px var(--font); }
.cv-net-btn:hover { background: rgba(255,255,255,.07); }
.cv-net-ic { width: 22px; height: 22px; }
.cv-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.cv-net-btn[aria-expanded="true"] .cv-chev { transform: rotate(180deg); }
.cv-net-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: min(440px, 80vw); padding: 10px; border-radius: 16px;
  background: #0d1729; border: 1px solid var(--stroke-2); box-shadow: var(--shadow); animation: item-in .2s ease; }
.cv-req { font-size: 13.5px; font-weight: 600; color: var(--green); }

.cv .wallet-field { padding: 6px 6px 6px 12px; }
.cv-paste { flex: none; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.05);
  color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.cv-paste:hover { background: rgba(255,255,255,.1); }
.cv .wallet-tools { flex-direction: column; gap: 10px; margin-top: 12px; }
.cv .wallet-btns { flex-wrap: wrap; gap: 8px; }
.cv .wallet-btns:not(:has(:not([hidden]))) { display: none; }

.cv-rate { padding: 13px 18px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--stroke); font-size: 14px; }
.cv-rate-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.cv-more { background: none; border: 0; padding: 0; color: var(--green); font: 650 14px var(--font); cursor: pointer; white-space: nowrap; }
.cv-details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); animation: item-in .25s ease; }
.cv-details dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; }
.cv-details dt { font-size: 11.5px; color: var(--muted); }
.cv-details dd { margin: 2px 0 0; font: 600 13.5px var(--mono); }
.cv-details p { margin: 0; }

.cv-cta { border-radius: 16px; padding: 17px 18px; font-size: 16.5px; margin-top: 2px; }
.cv > p { margin: 0; }

@media (max-width: 600px) {
  .cv-title { font-size: 21px; }
  .cv-box { padding: 14px; }
  .cv-amt { font-size: 28px; }
  .cv-coin { width: 40px; height: 40px; }
  .cv-presets .cv-chip { padding: 9px 4px; font-size: 13px; }
  .cv-box-top { flex-wrap: wrap; }
  .cv-details dl { grid-template-columns: 1fr 1fr; }
}
