/* Plaquinhas · cartão de crédito (card.js). Usa as cores da tela que o recebe (--p, --ink, --mut, --line). */
.pqc { display: grid; gap: 12px; }
.pqc-card { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1.586; perspective: 1000px; margin: 0 auto 4px; animation: pqc-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.pqc-card .fr, .pqc-card .bk { position: absolute; inset: 0; border-radius: 18px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #312e81, #6d28d9 55%, #db2777); box-shadow: 0 22px 40px -18px rgba(30, 27, 75, .65); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .6s cubic-bezier(.2, .8, .2, 1), background .4s; overflow: hidden; }
.pqc-card .fr:before { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.pqc-card .bk { transform: rotateY(180deg); padding: 0; }
.pqc-card.flip .fr { transform: rotateY(-180deg); }
.pqc-card.flip .bk { transform: rotateY(0); }
.pqc-card .chip { position: absolute; left: 20px; top: 22px; width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #fde68a, #d97706); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pqc-card .br { position: absolute; right: 20px; top: 20px; font-weight: 900; font-size: 18px; letter-spacing: .5px; font-style: italic; }
.pqc-card .num { position: absolute; left: 20px; right: 20px; top: 46%; font: 600 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.5px; white-space: nowrap; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pqc-card .nm, .pqc-card .ex { position: absolute; bottom: 16px; min-width: 0; }
.pqc-card .nm { left: 20px; right: 92px; }
.pqc-card .ex { right: 20px; text-align: right; }
.pqc-card small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; opacity: .75; margin-bottom: 3px; }
.pqc-card .nm b, .pqc-card .ex b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .5px; }
.pqc-card .bar { position: absolute; left: 0; right: 0; top: 24px; height: 40px; background: #111827; }
.pqc-card .cv { position: absolute; left: 20px; right: 20px; top: 82px; height: 36px; border-radius: 6px; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 6px, #e2e8f0 6px, #e2e8f0 12px); display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; }
.pqc-card .cv b { color: #111827; font: 700 15px ui-monospace, Menlo, monospace; letter-spacing: 2px; }
.pqc-card.is-visa .fr, .pqc-card.is-visa .bk { background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #0ea5e9); }
.pqc-card.is-master .fr, .pqc-card.is-master .bk { background: linear-gradient(135deg, #111827, #374151 55%, #b45309); }
.pqc-card.is-amex .fr, .pqc-card.is-amex .bk { background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #5eead4); }
.pqc-card.is-elo .fr, .pqc-card.is-elo .bk { background: linear-gradient(135deg, #0b0b0b, #1f2937 60%, #ca8a04); }
.pqc-card.is-hipercard .fr, .pqc-card.is-hipercard .bk { background: linear-gradient(135deg, #7f1d1d, #dc2626 60%, #f87171); }
.pqc-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.pqc-f > span { font-size: 13px; font-weight: 700; color: var(--ink, #1e1b4b); }
.pqc-f input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line, #e9e5f5); background: #fff; font: 600 16px/1.2 inherit; font-family: inherit; color: var(--ink, #1e1b4b); outline: 0; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.pqc-f input:focus { border-color: var(--p, #6d28d9); box-shadow: 0 0 0 4px rgba(109, 40, 217, .12); }
.pqc-f.is-bad input { border-color: #dc2626; animation: pqc-shake .35s; }
.pqc-r3 { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
.pqc-modes { display: grid; gap: 8px; }
.pqc-mode { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line, #e9e5f5); background: #fff; text-align: left; font: inherit; color: var(--ink, #1e1b4b); cursor: pointer; transition: border-color .2s, background .2s, transform .12s; }
.pqc-mode:active { transform: scale(.98); }
.pqc-mode i { font-style: normal; font-size: 22px; flex: 0 0 auto; }
.pqc-mode span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pqc-mode b { font-size: 14.5px; }
.pqc-mode small { font-size: 12.5px; color: var(--mut, #64748b); line-height: 1.4; }
.pqc-mode em { position: absolute; right: 10px; top: -9px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--p, #6d28d9), var(--p2, #db2777)); padding: 2px 8px; border-radius: 999px; }
.pqc-mode.on { border-color: var(--p, #6d28d9); background: rgba(109, 40, 217, .05); }
.pqc-insts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pqc-insts .pqc-note, .pqc-insts .pqc-warn { grid-column: 1 / -1; margin: 0; }
.pqc-inst { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line, #e9e5f5); background: #fff; text-align: left; font: inherit; color: var(--ink, #1e1b4b); cursor: pointer; transition: border-color .2s, background .2s, transform .12s; animation: pqc-in .3s both; }
.pqc-inst:active { transform: scale(.97); }
.pqc-inst b { font-size: 14px; }
.pqc-inst span { font-size: 13.5px; font-weight: 700; }
.pqc-inst small { font-size: 11.5px; color: var(--mut, #64748b); }
.pqc-inst.is-free small { color: #16a34a; font-weight: 700; }
.pqc-inst.on { border-color: var(--p, #6d28d9); background: rgba(109, 40, 217, .06); }
.pqc-note { font-size: 12.5px; color: var(--mut, #64748b); line-height: 1.5; margin: 0; }
.pqc-warn { font-size: 13px; color: #b45309; margin: 0; }
.pqc-safe { padding: 10px 12px; border-radius: 12px; background: rgba(22, 163, 74, .07); color: #166534; }
.pqc-ld { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.pqc-ld i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pqc-dot 1s infinite; }
.pqc-ld i:nth-child(2) { animation-delay: .15s; }
.pqc-ld i:nth-child(3) { animation-delay: .3s; }
/* escolha PIX / cartão */
.pqc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: 16px; background: var(--bg, #f6f4fb); }
.pqc-pick button { border: 0; background: transparent; min-height: 46px; border-radius: 12px; font: 700 14px/1.1 inherit; font-family: inherit; color: var(--mut, #64748b); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .2s, color .2s, box-shadow .2s; }
.pqc-pick button small { font-size: 11px; font-weight: 600; opacity: .85; }
.pqc-pick button.on { background: #fff; color: var(--p, #6d28d9); box-shadow: 0 1px 3px rgba(30, 27, 75, .12); }
/* renovação automática ligada (Minha plaquinha) */
.pqc-auto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(109, 40, 217, .08), rgba(219, 39, 119, .06)); border: 1px solid rgba(109, 40, 217, .18); }
.pqc-auto i { font-style: normal; font-size: 24px; animation: pqc-spin 6s linear infinite; }
.pqc-auto b { display: block; font-size: 14.5px; }
.pqc-auto small { display: block; font-size: 12.5px; color: var(--mut, #64748b); line-height: 1.45; }
.pqc-auto.is-bad { background: rgba(220, 38, 38, .06); border-color: rgba(220, 38, 38, .25); }
.pqc-auto.is-bad i { animation: none; }
@keyframes pqc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pqc-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pqc-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pqc-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .pqc-r3 { grid-template-columns: 1fr 1fr; } .pqc-r3 .pqc-f:last-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .pqc-card, .pqc-inst, .pqc-auto i { animation: none; } .pqc-card .fr, .pqc-card .bk { transition: none; } }
@media (max-width: 600px) { .pqc-card { max-width: 250px; } .pqc-card .num { font-size: 15px; } }
