/* =====================================================================
   ProjetoMS — Doações (checkout). Usa os tokens de site.css.
   ===================================================================== */
[hidden] { display: none !important; }
.small { font-size: 13px; }

.shop-section { padding-top: 34px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.shop-builder { display: flex; flex-direction: column; gap: 30px; min-width: 0; }

.shop-step-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 0 0 16px; }
.shop-step-title small { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text-mute); }
.step-num { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font: 900 15px/1 var(--font-body); color: #2a1500; background: linear-gradient(180deg, #ffc15a, var(--orange)); }
.shop-note { margin: 12px 0 0; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Cards de VIP ---------- */
.vip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 10px; }
.vip-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; border-radius: var(--r-lg); cursor: pointer;
    background: linear-gradient(180deg, rgba(14, 46, 86, .9), rgba(5, 24, 47, .95)); border: 1.5px solid var(--line);
    transition: border-color .2s, transform .2s, box-shadow .2s; outline: none; }
.vip-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.vip-card:focus-visible { box-shadow: var(--ring); }
.vip-card.is-featured { border-color: rgba(249, 195, 67, .55); background: linear-gradient(180deg, rgba(36, 44, 62, .95), rgba(10, 26, 47, .97)); }
.vip-card.is-selected { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 151, 0, .22), var(--shadow-sm); }
.vip-card.is-blocked { opacity: .55; cursor: not-allowed; }
.vip-ribbon { position: absolute; top: -13px; left: 20px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px;
    font: 900 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #2a1d00; background: linear-gradient(180deg, #ffe08a, var(--gold)); }
.vip-head { display: flex; align-items: center; gap: 14px; }
.vip-icon { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--navy-750); border: 1px solid var(--line-strong); color: var(--blue-light); }
.vip-card.is-featured .vip-icon { color: var(--gold); border-color: rgba(249, 195, 67, .5); }
.vip-icon .icon { width: 26px; height: 26px; }
.vip-head h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.vip-card.is-featured h3 { color: var(--gold-soft); }
.vip-price { margin: 2px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--white); line-height: 1.1; }
.vip-price small { font: 700 14px var(--font-body); color: var(--text-mute); }
.vip-check { margin-left: auto; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--line-strong); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.vip-card.is-selected .vip-check { background: var(--orange); border-color: var(--orange); color: #2a1500; }
.vip-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--text-dim); }
.vip-perks li { display: flex; gap: 8px; align-items: flex-start; }
.vip-perks .icon { color: var(--green); margin-top: 3px; }
.vip-perks b { color: var(--white); }
.vip-char { padding-top: 12px; border-top: 1px solid var(--line); cursor: default; }
.vip-char label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 6px; }
.vip-char .select { width: 100%; }

.vip-mode { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(2, 11, 24, .45); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(2, 11, 24, .6); border: 1px solid var(--line); }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px;
    font: 800 14.5px/1.15 var(--font-body); color: var(--text-dim); text-align: center; transition: background-color .2s, color .2s; }
.seg-opt input:checked + span { color: #2a1500; background: linear-gradient(180deg, #ffb43a, var(--orange)); }
.seg-opt input:focus-visible + span { box-shadow: var(--ring); }
.seg-opt.is-disabled { cursor: not-allowed; opacity: .5; }
.seg-hint { margin: 10px 2px 0; font-size: 13.5px; color: var(--text-dim); }
.seg-hint.is-warn { color: var(--amber); }

/* ---------- Moedas ---------- */
.coin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.coin-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg);
    background: var(--surface-2); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.coin-card.is-on { border-color: rgba(40, 184, 255, .65); box-shadow: 0 0 0 3px rgba(40, 184, 255, .14); }
.coin-card.is-mp.is-on { border-color: rgba(255, 151, 0, .7); box-shadow: 0 0 0 3px rgba(255, 151, 0, .14); }
.coin-head { display: flex; align-items: center; gap: 12px; }
.coin-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--navy-750); border: 1px solid var(--line-strong); color: var(--blue-light); }
.coin-card.is-mp .coin-icon { color: var(--orange); }
.coin-head h3 { margin: 0; font-size: 18px; font-weight: 900; font-family: var(--font-body); }
.coin-rate { margin: 2px 0 0; font-size: 12.5px; color: var(--text-mute); }
.coin-body { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.coin-card:not(.is-on) .coin-body { opacity: .45; }
.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: rgba(2, 11, 24, .6); }
.stepper-btn { display: flex; align-items: center; justify-content: center; border: 0; background: rgba(17, 55, 99, .55); color: var(--white); cursor: pointer; min-height: 50px; }
.stepper-btn:hover { background: rgba(17, 55, 99, .95); }
.stepper-btn:focus-visible { outline: none; box-shadow: inset var(--ring); }
.stepper-input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--white); text-align: center; font: 800 22px/1 var(--font-display); padding: 8px 4px; }
.stepper-input:focus { outline: none; background: rgba(2, 11, 24, .85); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(2, 11, 24, .5); color: var(--text-dim); font: 800 12.5px/1 var(--font-body); cursor: pointer; }
.chip:hover, .chip.is-active { border-color: var(--line-strong); color: var(--white); background: rgba(17, 55, 99, .7); }
.coin-label { font-size: 13px; font-weight: 800; color: var(--text-dim); margin: 0 0 -4px; }
.money-field { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 10px; }
.money-prefix { font: 800 16px/1 var(--font-body); color: var(--text-mute); }
.stepper.is-money .stepper-input { width: 100%; max-width: 170px; text-align: left; padding-left: 0; }
.stepper.is-money:focus-within { border-color: var(--blue-light); box-shadow: var(--ring); }
.stepper.is-money .money-field:focus-within { background: rgba(2, 11, 24, .85); }
.stepper.is-money .stepper-input:focus { background: transparent; }
.coin-get { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(2, 11, 24, .5); border: 1px dashed var(--line-strong); }
.coin-get small { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.coin-get b { font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: var(--gold); }
.coin-card.is-mp .coin-get b { color: var(--orange); }
.coin-get span { font-size: 14px; font-weight: 800; color: var(--blue-light); }
.coin-get span:empty { display: none; }
.coin-card.is-invalid .coin-get { border-color: rgba(255, 181, 71, .7); }
.coin-card.is-invalid .coin-get span { color: var(--amber); }
.coin-limits { margin: 0; font-size: 12px; color: var(--text-mute); }

/* Interruptor */
.switch { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 50px; height: 28px; border-radius: 999px; background: rgba(2, 11, 24, .8); border: 1px solid var(--line-strong); position: relative; transition: background-color .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-mute); transition: transform .2s, background-color .2s; }
.switch input:checked + .switch-ui { background: linear-gradient(180deg, #ffb43a, var(--orange)); border-color: #ffb347; }
.switch input:checked + .switch-ui::after { transform: translateX(22px); background: #2a1500; }
.switch input:focus-visible + .switch-ui { box-shadow: var(--ring); }

/* ---------- Resumo ---------- */
.shop-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-card { padding: 22px 20px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(10, 37, 70, .95), rgba(4, 22, 44, .97)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.sum-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.sum-title .icon { color: var(--orange); }
.sum-lines { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px dashed var(--line-strong); display: grid; gap: 10px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.sum-lines li span { color: var(--text); font-weight: 700; }
.sum-lines li small { display: block; font-weight: 600; font-size: 12px; color: var(--text-mute); }
.sum-lines li b { white-space: nowrap; color: var(--white); }
.sum-lines .sum-empty { color: var(--text-mute); font-size: 14px; display: block; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14.5px; color: var(--text-dim); }
.sum-row b { color: var(--white); white-space: nowrap; }
.sum-row.is-green b { color: var(--green); }
.sum-cashback { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(32, 223, 143, .4); background: rgba(32, 223, 143, .06); font-size: 13.5px; cursor: pointer; }
.sum-cashback small { color: var(--green); font-weight: 800; }
.sum-cashback.is-off { opacity: .55; cursor: not-allowed; }
.pay-methods { border: 0; padding: 0; margin: 14px 0 8px; display: grid; gap: 8px; }
.pay-methods legend { font-weight: 900; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.pay-opt { position: relative; cursor: pointer; display: block; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(2, 11, 24, .5); transition: border-color .2s, background-color .2s; }
.pay-box > .icon { width: 26px; height: 26px; color: var(--blue-light); }
.pay-box b { display: block; font-size: 15px; color: var(--white); }
.pay-box small { display: block; font-size: 12.5px; color: var(--text-mute); }
.pay-tag { margin-left: auto; font-style: normal; font: 900 11px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: var(--text-dim); border: 1px solid var(--line-strong); white-space: nowrap; }
.pay-tag.is-green { color: var(--green); border-color: rgba(32, 223, 143, .5); }
.pay-opt input:checked + .pay-box { border-color: var(--orange); background: rgba(255, 151, 0, .07); }
.pay-opt input:focus-visible + .pay-box { box-shadow: var(--ring); }
.pay-opt.is-disabled { cursor: not-allowed; opacity: .5; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 4px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.sum-total span { font-weight: 900; font-size: 15px; }
.sum-total b { font-family: var(--font-display); font-size: 32px; color: var(--gold); white-space: nowrap; }
.sum-info { margin: 0 0 12px; font-size: 13px; color: var(--text-mute); }
.sum-errors { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 93, 98, .55); background: rgba(255, 93, 98, .08); color: #ffc1c3; font-size: 13.5px; }
.sum-secure { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; color: var(--text-mute); }
.sum-secure .icon { margin-top: 2px; color: var(--green); }
.sum-links { margin: 10px 0 0; font-size: 13.5px; }
.sum-links a { display: inline-flex; gap: 6px; align-items: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.btn.is-loading { pointer-events: none; opacity: .75; }

.sum-bar { display: none; }

/* ---------- Modal de pagamento ---------- */
.pay-modal { z-index: 1000; align-items: flex-start; overflow-y: auto; padding: 28px 16px; }
.pay-card { position: relative; max-width: 560px; text-align: left; margin: auto; }
.pay-card h2 { justify-content: flex-start; font-family: var(--font-display); }
.pay-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(2, 11, 24, .6); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pay-summary { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(2, 11, 24, .45); border: 1px solid var(--line); font-size: 14px; }
.pay-summary .sum-row { padding: 3px 0; }
.pay-summary .sum-row.is-total b { font-family: var(--font-display); font-size: 22px; color: var(--gold); }
.pay-installments { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }
.pay-installments table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.pay-installments td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.pay-installments td:last-child { text-align: right; }
.pay-message { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.pay-message.is-error { border: 1px solid rgba(255, 93, 98, .6); background: rgba(255, 93, 98, .08); color: #ffd0d1; }
.pay-message.is-info { border: 1px solid var(--line-strong); background: rgba(40, 184, 255, .08); }
.pay-message.is-success { border: 1px solid rgba(32, 223, 143, .5); background: rgba(32, 223, 143, .08); }
#cardPaymentBrick_container { min-height: 60px; }
.fake-brick { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px dashed var(--amber); }
.fake-brick .field select, .fake-brick .field input { width: 100%; }

/* ---------- Pedido / recibo / histórico ---------- */
.order-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.order-status { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface-2); }
.order-status .os-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(40, 184, 255, .12); color: var(--blue-light); }
.order-status .os-icon .icon { width: 28px; height: 28px; }
.order-status.tone-success { border-color: rgba(32, 223, 143, .55); }
.order-status.tone-success .os-icon { background: rgba(32, 223, 143, .14); color: var(--green); }
.order-status.tone-warn { border-color: rgba(255, 181, 71, .6); }
.order-status.tone-warn .os-icon { background: rgba(255, 181, 71, .14); color: var(--amber); }
.order-status.tone-error { border-color: rgba(255, 93, 98, .6); }
.order-status.tone-error .os-icon { background: rgba(255, 93, 98, .14); color: var(--red); }
.order-status h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; }
.order-status p { margin: 0; color: var(--text-dim); }
.spin { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.receipt { padding: 22px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); }
.receipt h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; }
.receipt dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14.5px; }
.receipt dt { color: var(--text-mute); font-weight: 700; }
.receipt dd { margin: 0; color: var(--white); word-break: break-word; }
.receipt .items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.receipt .items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(2, 11, 24, .45); border: 1px solid var(--line); }
.receipt .items small { display: block; color: var(--text-mute); }
.receipt .items .badge { align-self: center; }
.pix-box { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.pix-box img { width: 220px; height: 220px; background: #fff; padding: 10px; border-radius: 14px; image-rendering: pixelated; }
.pix-box textarea { width: 100%; min-height: 92px; font: 600 12px/1.4 Consolas, monospace; color: var(--text); background: rgba(2, 11, 24, .6); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; resize: none; }
.history .table td, .history .table th { white-space: nowrap; }
.history .table td.wrap { white-space: normal; min-width: 180px; }
.sub-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.sub-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 14.5px; }
.sub-card dt { color: var(--text-mute); font-weight: 700; }
.sub-card dd { margin: 0; }
@media print {
    .site-header, .site-footer, .no-print, .page-hero { display: none !important; }
    body { background: #fff; color: #000; }
    .receipt { border: 1px solid #ccc; background: #fff; }
    .receipt dd, .receipt h3 { color: #000; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    .shop-summary { position: static; }
    .sum-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(3, 19, 38, .97); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 24px rgba(0, 0, 0, .4); }
    .sum-bar small { display: block; font-size: 12px; color: var(--text-mute); font-weight: 800; }
    .sum-bar b { font-family: var(--font-display); font-size: 22px; color: var(--gold); }
    .sum-bar.is-hidden { display: none; }
    .page-shop .site-footer { padding-bottom: 90px; }
}
@media (max-width: 720px) {
    .vip-grid, .coin-grid { grid-template-columns: minmax(0, 1fr); }
    .shop-step-title { font-size: 21px; }
    .vip-price { font-size: 26px; }
    .pix-box { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .pay-modal { padding: 0; }
    .pay-card { max-width: none; min-height: 100%; border-radius: 0; }
    .sub-card { grid-template-columns: minmax(0, 1fr); }
    .receipt dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
    .receipt dd { margin-bottom: 8px; }
}
