/* Kx Puremode - checkout com e-mail, Pix e confirmação da licença.
   Reaproveita os cartões e campos de perfil.css. */

.checkout { position: relative; }
.co-login .auth-card { width: min(440px, 100%); text-align: left; }
.co-login .auth-submit { margin-top: 22px; }
.co-login-back { margin-top: 14px; font-size: 13px; text-align: center; }
.co-login-back a, .co-link { color: var(--red-soft); border-bottom: 1px solid rgba(255, 115, 135, .4); }

/* ---- cabeçalho ---- */
.co { max-width: var(--page); margin: 0 auto; padding: calc(var(--nav-h) + 36px) var(--gutter) clamp(80px, 9vw, 110px); }
.co-head { margin-bottom: 26px; animation: rise .6s var(--ease) both; }
.co-back { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--mut); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .4px; transition: color .2s ease; }
.co-back:hover { color: #fff; }
.co-back svg { width: 15px; height: 15px; }
.co-head h1 { margin: 10px 0 18px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; }
.co-steps { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.co-steps li { display: flex; align-items: center; gap: 9px; color: var(--dim); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .6px; transition: color .3s ease; }
.co-steps b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--hair-2); font-family: var(--mono); font-size: 11px; transition: border-color .3s ease, background .3s ease, color .3s ease; }
.co-steps li.on { color: #fff; }
.co-steps li.on b { border-color: rgba(255, 37, 64, .6); background: rgba(255, 37, 64, .16); color: var(--red-soft); box-shadow: 0 0 14px rgba(255, 37, 64, .25); }
.co-steps li.done b { border-color: rgba(255, 37, 64, .6); background: var(--red); color: #fff; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.co-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.co-main > .card:nth-child(2) { animation-delay: .06s; }
.co-side { position: sticky; top: calc(var(--nav-h) + 20px); animation: rise .62s var(--ease) .1s both; }

/* ---- dados ---- */
.co-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.co-fields .co-wide { grid-column: 1 / -1; }
.co-coupon-field { min-width: 0; }
.co-coupon-field .auth-field > span:first-child { display: flex; justify-content: space-between; align-items: center; }
.co-coupon-field .auth-field small { color: #8f8f98; font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.co-coupon-input { padding: 0; border-color: rgba(255, 255, 255, .22); background: linear-gradient(115deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .3)); }
.co-coupon-input:focus-within { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.co-coupon-input svg { flex: 0 0 18px; width: 18px; height: 18px; margin-left: 12px; margin-right: 0; color: #ededf0; }
.co-coupon-input input { min-width: 0; text-transform: uppercase; letter-spacing: 1px; padding-left: 10px; }
.co-coupon-input button { flex-shrink: 0; align-self: stretch; width: auto; min-width: 70px; height: auto; padding: 0 12px; border: 0; border-left: 1px solid rgba(255, 255, 255, .16); background: #eeeef0; color: #111114; font-size: 10px; font-weight: 800; letter-spacing: .7px; cursor: pointer; transition: background .2s; }
.co-coupon-input button:hover { background: #fff; color: #111114; }
.co-coupon-input button:disabled { opacity: .5; cursor: wait; }
.co-coupon-input button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.co-coupon-message { margin: 9px 0 0; font-size: 11.5px; line-height: 1.5; color: #8f8f98; }
.co-coupon-message[data-status="success"] { color: #fafafa; }
.co-coupon-message[data-status="error"] { color: #ffb7bd; }
.co-discount { display: grid; gap: 10px; margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--hair); }
.co-discount > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #a3a3ae; font-size: 12px; }
.co-discount strong { color: #fafafa; font-variant-numeric: tabular-nums; }
.co-discount-code { display: inline-flex; align-items: center; gap: 7px; }
.co-discount-code svg { width: 16px; height: 16px; color: #fff; }
.co-discount-code b { padding: 3px 7px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-size: 10px; letter-spacing: 1px; }
.co-hint { margin-top: 12px; color: #6f6f7b; font-size: 12.5px; }
.auth-input.invalid { border-color: rgba(255, 37, 64, .75); background: rgba(255, 37, 64, .07); }

/* ---- pagamento via Pix ---- */
.co-method { display: flex; align-items: center; gap: 12px; min-height: 64px; margin-top: 20px; padding: 0 16px; border: 1px solid rgba(255, 37, 64, .7); background: linear-gradient(110deg, rgba(255, 37, 64, .16), var(--ink) 60%), var(--ink); }
.co-method svg { width: 22px; height: 22px; color: var(--red-mid); }
.co-method b { display: block; font-family: var(--display); font-size: 15px; font-weight: 700; }
.co-method small { display: block; color: var(--mut); font-size: 12px; }
.co-panel { margin-top: 20px; }
.co-text { color: #a3a3ae; font-size: 14.5px; line-height: 1.6; }
.co-text b { color: #fff; font-weight: 600; }
.co-muted { color: var(--mut); }
.co-action { width: 100%; margin-top: 18px; }
.co-action b { font-weight: 800; }

/* ---- Pix ---- */
.pix { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; align-items: start; }
.pix-qr { display: grid; place-items: center; padding: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 37, 64, .5), 0 0 40px rgba(255, 37, 64, .18); }
.pix-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.pix-steps { display: grid; gap: 8px; margin: 0 0 4px; padding-left: 20px; color: #c4c4ce; font-size: 14px; }
.pix-steps b { color: #fff; font-weight: 600; }
.pix-code input { font-size: 11.5px; text-overflow: ellipsis; }
.pix-wait { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255, 176, 32, .28); background: linear-gradient(120deg, rgba(255, 176, 32, .08), rgba(255, 255, 255, .02)); }
.pix-wait p { color: #d8b98c; font-size: 13.5px; }
.pix-wait b { font-family: var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.pix-dot { flex-shrink: 0; width: 12px; height: 12px; border: 1.6px solid var(--amber); border-right-color: transparent; border-radius: 50%; animation: spin .85s linear infinite; }
.co-link { display: inline-block; margin-top: 14px; font-size: 13px; }
.co-dev { width: 100%; margin-top: 14px; border-style: dashed; color: var(--amber-soft); }

/* ---- resumo ---- */
.co-summary .card-body { background: linear-gradient(170deg, rgba(255, 37, 64, .08), rgba(10, 10, 14, .98) 50%), var(--carbon); }
.co-summary { background: linear-gradient(150deg, rgba(255, 37, 64, .6), rgba(255, 255, 255, .06) 44%, rgba(255, 255, 255, .03)); }
.co-product { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.co-product img { width: 46px; height: 28px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(255, 37, 64, .5)); }
.co-product strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; }
.co-product small { display: block; color: var(--mut); font-size: 12.5px; }
.co-includes, .co-trust { display: grid; gap: 9px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--hair); list-style: none; }
.co-includes li, .co-trust li { display: flex; gap: 9px; color: #c4c4ce; font-size: 13.5px; line-height: 1.45; }
.co-includes svg, .co-trust svg { width: 15px; height: 15px; margin-top: 2px; color: var(--red-mid); }
.co-trust li { color: #8d8d99; font-size: 12.5px; }
.co-trust b { color: #d6d6e0; font-weight: 600; }
.co-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--hair); }
.co-total span { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--mut); text-transform: uppercase; }
.co-total strong { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.8px; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 26px rgba(255, 37, 64, .4); }

/* ---- aprovado ---- */
.co-done { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 50px) var(--gutter) clamp(80px, 9vw, 110px); text-align: center; animation: rise .6s var(--ease) both; }
.done-orb { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 20px; }
.done-orb i { position: absolute; border-radius: 50%; }
.done-orb .ring-a { inset: 0; border: 1px solid transparent; border-top-color: var(--red); border-right-color: rgba(255, 37, 64, .3); animation: spin 7s linear infinite; }
.done-orb .ring-b { inset: 12px; border: 1px dashed rgba(255, 255, 255, .14); animation: spin-reverse 13s linear infinite; }
.done-orb svg { width: 52px; height: 52px; color: #fff; stroke-width: 2.4; filter: drop-shadow(0 0 16px rgba(255, 37, 64, .8)); }
.co-done h1 { margin: 10px 0 10px; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -1px; overflow-wrap: anywhere; }
.done-lead { max-width: 560px; color: #a3a3ae; font-size: 16px; }
.done-lead b { color: #fff; }
.done-key { width: 100%; margin-top: 26px; text-align: left; }
.key-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.key-row code { flex-grow: 1; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255, 37, 64, .35); background: rgba(255, 37, 64, .06); color: #fff; font-family: var(--mono); font-size: clamp(14px, 2.2vw, 18px); font-weight: 700; letter-spacing: 1px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.key-row .gbtn { flex-shrink: 0; height: 48px; }
.done-steps { width: 100%; margin-top: 26px; text-align: left; }
.done-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@media (max-width: 1000px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; order: -1; }
}
@media (max-width: 700px) {
  .co-fields { grid-template-columns: minmax(0, 1fr); }
  .pix { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pix-info { width: 100%; }
  .key-row { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .pix-dot { border-right-color: var(--amber); }
}
