/* Ferramentas do Plano Completo: voz, videochamada, loja 360, gêmeo do golpista e guardião */
.px-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--f-mono, monospace); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; color: #fff; background: linear-gradient(100deg, rgba(255, 77, 141, .35), rgba(152, 16, 250, .35), rgba(56, 189, 248, .35)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 0 22px -6px rgba(152, 16, 250, .9); }
.px-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.px-hero { position: relative; overflow: hidden; }
.px-hero .wrap { position: relative; z-index: 1; }
.px-hero .px-badge { margin-bottom: 14px; }

/* objeto 3D fino: anéis de vidro girando */
.px-orb { position: relative; width: min(64vw, 260px); aspect-ratio: 1; margin: 18px auto 0; perspective: 800px; }
.px-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); transform-style: preserve-3d; animation: pxSpin 14s linear infinite; box-shadow: 0 0 30px -12px rgba(152, 16, 250, .9) inset; }
.px-orb i:nth-child(1) { transform: rotateX(70deg); border-color: rgba(255, 126, 179, .55); }
.px-orb i:nth-child(2) { transform: rotateY(70deg); border-color: rgba(192, 132, 252, .55); animation-duration: 18s; animation-direction: reverse; }
.px-orb i:nth-child(3) { transform: rotateX(35deg) rotateY(35deg); border-color: rgba(125, 211, 252, .55); animation-duration: 22s; }
.px-orb b { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(192, 132, 252, .55) 35%, rgba(56, 189, 248, .25) 65%, transparent 72%); filter: blur(.3px); box-shadow: 0 0 60px rgba(152, 16, 250, .55); animation: pxFloat 5s ease-in-out infinite; }
.px-orb svg { position: absolute; inset: 34%; width: 32%; height: 32%; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; z-index: 2; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .8)); }
@keyframes pxSpin { to { transform: rotateX(70deg) rotateZ(360deg); } }
.px-orb i:nth-child(2) { animation-name: pxSpin2; } @keyframes pxSpin2 { to { transform: rotateY(70deg) rotateZ(360deg); } }
.px-orb i:nth-child(3) { animation-name: pxSpin3; } @keyframes pxSpin3 { to { transform: rotateX(35deg) rotateY(35deg) rotateZ(360deg); } }
@keyframes pxFloat { 50% { transform: translateY(-6px) scale(1.03); } }

/* aviso de teste e trava do plano */
.px-preview { font-size: .86rem; padding: 10px 14px; border-radius: 14px; background: rgba(56, 189, 248, .08); box-shadow: 0 0 0 1px rgba(56, 189, 248, .35) inset; }
.px-lock { text-align: center; padding: 26px 18px; }
.px-lock h2 { margin: 6px 0 8px; }
.px-lock .fx-row { justify-content: center; }

/* legenda da exatidão */
.px-legend { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 4px 0 0; }
.px-legend span { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--text-dim, #aab); }
.px-legend span::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.px-legend .fato::before { background: #34d399; box-shadow: 0 0 10px #34d399; }
.px-legend .sinal::before { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.px-legend .alerta::before { background: #ff4d8d; box-shadow: 0 0 10px #ff4d8d; }
.px-legend .nao-sei::before { background: transparent; border: 1.5px dashed #94a3b8; }
.px-kind { display: inline-block; font: 600 .64rem/1 var(--f-mono, monospace); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 2px; background: rgba(255, 255, 255, .08); }
.px-kind.fato { color: #6ee7b7; } .px-kind.sinal { color: #fcd34d; } .px-kind.alerta { color: #ff8fb6; } .px-kind.nao-sei { color: #cbd5e1; }
.fx-item.nao-sei { box-shadow: 0 0 0 1px rgba(148, 163, 184, .5) inset; border: 1px dashed rgba(148, 163, 184, .35); }
.px-src { display: block; margin-top: 6px; font-size: .78rem; color: var(--text-dim, #aab); }
.px-limits { font-size: .88rem; }
.px-limits li { margin: 6px 0; }
.px-step { display: flex; gap: 10px; align-items: center; margin: 10px 0 0; font-size: .9rem; color: var(--text-dim, #aab); }
.px-step::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #c084fc; animation: pxRot .8s linear infinite; }
@keyframes pxRot { to { transform: rotate(360deg); } }

/* medidores */
.px-meters { display: grid; gap: 10px; }
.px-meter { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line, #223) inset; }
.px-meter header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.px-meter header b { font-size: .95rem; }
.px-meter header em { font: 600 .95rem/1 var(--f-mono, monospace); font-style: normal; white-space: nowrap; }
.px-meter p { margin: 6px 0 0; font-size: .86rem; color: var(--text-dim, #aab); }
.px-track { position: relative; height: 8px; margin-top: 10px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.px-track .zone { position: absolute; top: 0; bottom: 0; background: rgba(52, 211, 153, .25); }
.px-track .val { position: absolute; top: -3px; width: 4px; height: 14px; border-radius: 3px; background: #fff; box-shadow: 0 0 12px #fff; transform: translateX(-2px); transition: left 1s cubic-bezier(.2, .8, .2, 1); }
.px-meter.sinal { box-shadow: 0 0 0 1px rgba(251, 191, 36, .5) inset; }
.px-meter.alerta { box-shadow: 0 0 0 1px rgba(255, 77, 141, .55) inset; }
.px-meter.fato { box-shadow: 0 0 0 1px rgba(52, 211, 153, .45) inset; }
.px-meter.nao-sei { box-shadow: 0 0 0 1px rgba(148, 163, 184, .4) inset; }

/* palco de visualização */
.px-viz { position: relative; border-radius: 18px; overflow: hidden; background: #050a1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 60px -24px rgba(152, 16, 250, .8); transform: perspective(1000px) rotateX(3deg); }
.px-viz canvas { display: block; width: 100%; height: auto; }
.px-viz .scan { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: linear-gradient(#fff0, #fff, #fff0); box-shadow: 0 0 18px #c084fc, 0 0 40px #38bdf8; animation: pxScan 2.4s ease-in-out infinite; }
@keyframes pxScan { 0% { left: 0; } 50% { left: calc(100% - 2px); } 100% { left: 0; } }
.px-viz .cap { position: absolute; left: 10px; bottom: 8px; font: 600 .68rem/1 var(--f-mono, monospace); color: rgba(255, 255, 255, .75); letter-spacing: .05em; text-transform: uppercase; }
.px-viz .cap.r { left: auto; right: 10px; }

/* mapa de confiança 360 */
.px-map { position: relative; width: 100%; max-width: 520px; margin: 6px auto 0; aspect-ratio: 1; }
.px-map svg { width: 100%; height: 100%; overflow: visible; }
.px-map .ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.px-map .ring.r2 { stroke-dasharray: 3 6; animation: pxDash 30s linear infinite; }
@keyframes pxDash { to { stroke-dashoffset: -300; } }
.px-map .edge { stroke-width: 1.4; stroke-dasharray: 4 5; animation: pxDash 18s linear infinite; opacity: .8; }
.px-map .node circle { stroke-width: 1.6; transition: r .3s; }
.px-map .node text { font: 700 15px var(--f-display, sans-serif); fill: #fff; text-anchor: middle; }
.px-map .node text.v { font: 500 11.5px var(--f-mono, monospace); fill: rgba(255, 255, 255, .7); }
.px-map .node { cursor: pointer; opacity: 0; animation: pxIn .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.px-map .node:focus { outline: none; } .px-map .node:focus circle, .px-map .node.on circle { stroke-width: 3; }
.px-map .core { animation: pxPulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pxIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes pxPulse { 50% { transform: scale(1.06); } }
.c-fato { stroke: #34d399; fill: rgba(52, 211, 153, .16); } .e-fato { stroke: #34d399; }
.c-sinal { stroke: #fbbf24; fill: rgba(251, 191, 36, .14); } .e-sinal { stroke: #fbbf24; }
.c-alerta { stroke: #ff4d8d; fill: rgba(255, 77, 141, .18); } .e-alerta { stroke: #ff4d8d; }
.c-nao-sei { stroke: #94a3b8; fill: rgba(148, 163, 184, .06); stroke-dasharray: 3 3; } .e-nao-sei { stroke: #64748b; }
.px-map .node { transform-box: fill-box; transform-origin: center; }
.px-detail { min-height: 60px; }

/* linha do tempo do roteiro */
.px-tl { position: relative; margin: 8px 0 0; padding: 0 0 0 26px; list-style: none; }
.px-tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#ff4d8d, #9810fa, #38bdf8); border-radius: 2px; opacity: .7; }
.px-tl li { position: relative; padding: 10px 12px; margin: 0 0 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line, #223) inset; opacity: 0; transform: translateX(10px); animation: pxSlide .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.px-tl li::before { content: ""; position: absolute; left: -22px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: #0b1030; border: 2px solid #c084fc; }
.px-tl li.feito::before { background: #c084fc; box-shadow: 0 0 12px #c084fc; }
.px-tl li.agora { box-shadow: 0 0 0 1px rgba(255, 77, 141, .6) inset, 0 0 30px -12px rgba(255, 77, 141, .9); }
.px-tl li.agora::before { background: #ff4d8d; border-color: #ff4d8d; box-shadow: 0 0 14px #ff4d8d; animation: fxPulse 1.4s ease-in-out infinite; }
.px-tl li.prox { box-shadow: 0 0 0 1px rgba(56, 189, 248, .45) inset; }
.px-tl li b { display: block; margin-bottom: 3px; }
.px-tl li small { display: block; font-size: .8rem; color: var(--text-dim, #aab); margin-top: 4px; }
.px-tl .tag { display: inline-block; font: 600 .62rem/1 var(--f-mono, monospace); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin-bottom: 6px; }
.px-tl li.agora .tag { background: #ff4d8d; color: #fff; } .px-tl li.prox .tag { background: rgba(56, 189, 248, .25); }
@keyframes pxSlide { to { opacity: 1; transform: none; } }
mark.px-hit { background: rgba(255, 77, 141, .28); color: #fff; border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(255, 77, 141, .6); }
.px-quote { white-space: pre-wrap; font-size: .9rem; line-height: 1.5; max-height: 220px; overflow: auto; padding: 12px 14px; border-radius: 14px; background: rgba(2, 6, 23, .5); box-shadow: 0 0 0 1px var(--line, #223) inset; }
.px-bars { display: grid; gap: 6px; }
.px-bars div { display: grid; grid-template-columns: 9.5em 1fr 3em; gap: 8px; align-items: center; font-size: .82rem; }
.px-bars i { display: block; height: 6px; border-radius: 6px; background: var(--grad-brand); transform-origin: left; animation: pxGrow .9s cubic-bezier(.2, .8, .2, 1) both; }
.px-bars em { font-style: normal; text-align: right; font-family: var(--f-mono, monospace); color: var(--text-dim, #aab); }
@keyframes pxGrow { from { transform: scaleX(0); } }

/* semáforo do guardião */
.px-light { display: grid; justify-items: center; gap: 10px; padding: 18px 10px; text-align: center; }
.px-light .lamp { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font: 700 1.35rem/1.1 var(--f-display, sans-serif); color: #fff; position: relative; animation: pxIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.px-light .lamp::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid currentColor; opacity: .35; animation: pxRing 2.2s ease-out infinite; }
@keyframes pxRing { from { transform: scale(.85); opacity: .5; } to { transform: scale(1.25); opacity: 0; } }
.px-light.pare .lamp { background: radial-gradient(circle at 35% 30%, #ff9cc0, #ff4d8d 55%, #8a1240); box-shadow: 0 0 60px rgba(255, 77, 141, .7); color: #ffd6e5; }
.px-light.atencao .lamp { background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #7c4a03); box-shadow: 0 0 60px rgba(251, 191, 36, .6); color: #fff3c4; }
.px-light.sem .lamp { background: radial-gradient(circle at 35% 30%, #a7f3d0, #10b981 55%, #064e3b); box-shadow: 0 0 60px rgba(52, 211, 153, .5); color: #d1fae5; }
.px-light .lamp span { color: #fff; padding: 0 10px; }
.px-light h3 { margin: 6px 0 0; }
.px-check { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.px-check label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line, #223) inset; cursor: pointer; font-size: .92rem; }
.px-check input { margin-top: 3px; accent-color: #c084fc; }
.px-q { display: grid; gap: 8px; }
.px-q div { padding: 10px 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(152, 16, 250, .14), rgba(56, 189, 248, .08)); box-shadow: 0 0 0 1px rgba(192, 132, 252, .3) inset; font-size: .93rem; }
.px-grid a.glass { position: relative; }
.px-grid a.glass .px-badge { position: absolute; top: 12px; right: 12px; font-size: .58rem; padding: 5px 7px; }
.px-media { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 14px; background: #000; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .px-orb i, .px-orb b, .px-viz .scan, .px-map .ring.r2, .px-map .edge, .px-map .core, .px-light .lamp::after { animation: none; } .px-map .node, .px-tl li { animation: none; opacity: 1; transform: none; } }
.fx > *, [data-px-tool] > * { min-width: 0; }
.px-meter header { flex-wrap: wrap; }
