/* Social Nexa — payment bot animation (laptop + bot scanning payment alerts). Shared by social checkout and subscriptions. */
.pb { --pb-red: #e8263e; --pb-ok: #17a34a; --pb-warn: #d98a00; position: relative; display: grid; justify-items: center; gap: 10px; margin: 6px auto 4px; width: 100%; max-width: 360px; text-align: center; }
.pb-stage { position: relative; width: 300px; max-width: 100%; height: 182px; }
.pb-laptop { position: absolute; left: 50%; bottom: 0; width: 236px; transform: translateX(-50%); }
.pb-screen { position: relative; height: 146px; border-radius: 12px 12px 4px 4px; padding: 8px; background: #1b0c12; border: 3px solid #2c1820; box-shadow: 0 18px 40px -18px rgba(232, 38, 62, .55); overflow: hidden; transition: background .4s; }
.pb-base { height: 10px; margin: 0 -18px; border-radius: 0 0 14px 14px; background: linear-gradient(#d9d2d5, #b9afb3); position: relative; }
.pb-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 46px; height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #9d9296; }
.pb-bar { display: flex; align-items: center; gap: 4px; font: 600 10px/1 var(--font-body, system-ui); color: #f3d9de; letter-spacing: .3px; }
.pb-bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; }
.pb-bar i:nth-child(2) { background: #febc2e; } .pb-bar i:nth-child(3) { background: #28c840; margin-right: 4px; }
.pb-live { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: var(--pb-red); color: #fff; font-size: 9px; }
.pb-live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #fff; vertical-align: 1px; animation: pb-blink 1s steps(2) infinite; }
.pb-look { margin: 7px 0 5px; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); font: 600 10.5px/1.2 var(--font-body, system-ui); color: #ffd3da; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-look b { color: #fff; }
.pb-feed { position: relative; height: 82px; overflow: hidden; }
.pb-rows { display: grid; gap: 5px; animation: pb-feed 2.4s linear infinite; }
.pb-row { display: grid; grid-template-columns: 14px 1fr 34px; align-items: center; gap: 6px; height: 16px; padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, .05); }
.pb-row i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.pb-row s { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); text-decoration: none; }
.pb-row u { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); text-decoration: none; }
.pb-scan { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(transparent, rgba(255, 90, 110, .35), transparent); border-bottom: 1px solid rgba(255, 120, 135, .8); animation: pb-scan 1.6s ease-in-out infinite alternate; }
.pb-hit { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; margin-top: -15px; border-radius: 8px; background: var(--pb-ok); color: #fff; font: 700 13px/1 var(--font-body, system-ui); transform: scale(.4); opacity: 0; }
.pb-hit svg { flex: none; }
/* bot */
.pb-bot { position: absolute; right: -2px; bottom: 6px; width: 64px; height: 76px; animation: pb-float 2.6s ease-in-out infinite; }
.pb-bot .pb-ant { position: absolute; left: 50%; top: 0; width: 2px; height: 12px; margin-left: -1px; background: #c9bfc3; }
.pb-bot .pb-ant::after { content: ""; position: absolute; left: -4px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pb-red); box-shadow: 0 0 0 0 rgba(232, 38, 62, .6); animation: pb-ping 1.4s ease-out infinite; }
.pb-head { position: absolute; left: 6px; top: 12px; width: 52px; height: 40px; border-radius: 14px; background: linear-gradient(#ffffff, #efe7ea); border: 2px solid #e2d6da; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .35); }
.pb-face { position: absolute; inset: 7px 7px; border-radius: 9px; background: #1b0c12; display: flex; align-items: center; justify-content: center; gap: 9px; }
.pb-eye { width: 7px; height: 9px; border-radius: 4px; background: #ff5a6e; animation: pb-look 3.2s ease-in-out infinite, pb-wink 4s infinite; transition: all .3s; }
.pb-body { position: absolute; left: 16px; top: 54px; width: 32px; height: 20px; border-radius: 8px 8px 10px 10px; background: linear-gradient(#ffffff, #e9e0e3); border: 2px solid #e2d6da; }
.pb-body::after { content: ""; position: absolute; left: 50%; top: 5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--pb-red); }
.pb-paper { position: absolute; left: -2px; bottom: 18px; width: 50px; height: 62px; padding: 7px 6px; border-radius: 6px; background: #fff; border: 1px solid #eadfe3; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .35); transform: rotate(-8deg); display: grid; align-content: start; gap: 4px; }
.pb-paper b { font: 800 8px/1 var(--font-body, system-ui); color: var(--pb-red); text-align: left; }
.pb-paper i { height: 4px; border-radius: 2px; background: #eee3e6; }
.pb-paper i:nth-of-type(2) { width: 70%; }
.pb-paper em { margin-top: 2px; white-space: nowrap; letter-spacing: -.2px; font: 700 8.5px/1 var(--font-body, system-ui); font-style: normal; color: #2b1a20; text-align: left; }
/* text under the stage */
.pb-status { min-height: 22px; margin: 0; font: 600 15px/1.35 var(--font-body, system-ui); color: var(--text, #1d1215); }
.pb-status span { display: inline-block; animation: pb-in .35s ease; }
.pb-meta { margin: -4px 0 0; font-size: 13px; color: var(--muted, #6b5f63); font-variant-numeric: tabular-nums; }
.pb-steps { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 0; padding: 0; list-style: none; }
.pb-steps li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--pb-red) 8%, transparent); color: var(--muted, #6b5f63); }
.pb-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .45; }
.pb-steps li.on { color: var(--pb-red); } .pb-steps li.on::before { opacity: 1; animation: pb-blink 1s steps(2) infinite; }
.pb-steps li.ok { color: var(--pb-ok); background: color-mix(in srgb, var(--pb-ok) 10%, transparent); } .pb-steps li.ok::before { opacity: 1; }

/* done */
.pb.is-done .pb-screen { background: #0f2a1a; border-color: #1c4a2e; box-shadow: 0 18px 40px -18px rgba(23, 163, 74, .6); }
.pb.is-done .pb-rows, .pb.is-done .pb-scan { animation-play-state: paused; opacity: .25; }
.pb.is-done .pb-scan { display: none; }
.pb.is-done .pb-hit { animation: pb-pop .5s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.pb.is-done .pb-live { background: var(--pb-ok); } .pb.is-done .pb-live::before { animation: none; }
.pb.is-done .pb-eye { width: 9px; height: 5px; border-radius: 9px 9px 0 0; background: transparent; border: 2px solid #4ade80; border-bottom: 0; animation: none; }
.pb.is-done .pb-ant::after, .pb.is-done .pb-body::after { background: var(--pb-ok); animation: none; }
.pb.is-done .pb-bot { animation: pb-jump .6s ease 2; }
.pb.is-done .pb-status { color: var(--pb-ok); }
.pb-confetti { position: absolute; inset: 0; pointer-events: none; }
.pb-confetti i { position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-radius: 2px; opacity: 0; animation: pb-burst .9s ease-out forwards; }
/* manual review */
.pb.is-review .pb-scan { animation-duration: 3s; }
.pb.is-review .pb-live { background: var(--pb-warn); }
.pb.is-review .pb-eye { background: #ffc24a; }
.pb.is-review .pb-ant::after { background: var(--pb-warn); }
:root[data-theme="dark"] .pb-head, :root[data-theme="dark"] .pb-body { background: linear-gradient(#3a2a30, #2a1c21); border-color: #4b363e; }
:root[data-theme="dark"] .pb-paper { background: #2a1c21; border-color: #4b363e; }
:root[data-theme="dark"] .pb-paper em { color: #f3e6ea; } :root[data-theme="dark"] .pb-paper i { background: #46323a; }

@keyframes pb-feed { to { transform: translateY(-21px); } }
@keyframes pb-scan { from { transform: translateY(0); } to { transform: translateY(60px); } }
@keyframes pb-blink { 50% { opacity: 0; } }
@keyframes pb-float { 50% { transform: translateY(-5px); } }
@keyframes pb-ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(232, 38, 62, 0); } }
@keyframes pb-look { 0%, 40% { transform: translateX(0); } 50%, 80% { transform: translateX(-3px); } 100% { transform: translateX(0); } }
@keyframes pb-wink { 0%, 92%, 100% { height: 9px; } 95% { height: 2px; } }
@keyframes pb-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes pb-pop { to { transform: scale(1); opacity: 1; } }
@keyframes pb-jump { 40% { transform: translateY(-12px); } }
@keyframes pb-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(260deg); } }
@media (max-width: 380px) { .pb-stage { transform: scale(.9); transform-origin: top center; margin-bottom: -16px; } }
@media (prefers-reduced-motion: reduce) { .pb *, .pb *::before, .pb *::after { animation: none !important; } .pb.is-done .pb-hit { transform: none; opacity: 1; } }
