/* PaisaNow Patch 26: scoped badges, circular popover avatars, visible feedback, safe confirm and logout overlays. */
:root{--pn26-shadow:0 28px 90px rgba(15,23,42,.28);--pn26-blue:#1877f2;--pn26-ink:#101828;--pn26-muted:#526078}
.header-popover-panel [data-pn-live-auto-badge],
.header-popover-panel .has-live-badge>[data-pn-live-auto-badge],
.header-popover-panel a>[data-pn-live-auto-badge],
.header-show-more>[data-pn-live-auto-badge]{display:none!important}
.header-popover-panel .has-live-badge{position:static!important;padding-right:inherit!important}
.header-popover-panel .header-popover-item{position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;padding-right:12px!important}
.header-popover-avatar,
.header-popover-avatar.avatar,
.header-popover-item .avatar,
.header-popover-item .avatar.tiny,
.header-popover-item .mini-avatar{width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important;border-radius:50%!important;overflow:hidden!important;display:grid!important;place-items:center!important;background:#eef4ff!important;color:#1769e0!important;box-shadow:0 0 0 1px rgba(24,119,242,.12)!important}
.header-popover-avatar img,
.header-popover-item .avatar img,
.header-popover-item .avatar.tiny img,
.header-popover-item .mini-avatar img{width:100%!important;height:100%!important;display:block!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important}
.header-popover-copy{min-width:0!important;flex:1 1 auto!important}.header-show-more{white-space:normal!important;text-align:center!important}
.flash{z-index:100002!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}.flash[data-pn-feedback-ready="1"]{display:none!important}
.pn-feedback-stack{position:fixed;z-index:100003;top:max(78px,calc(env(safe-area-inset-top,0px) + 70px));right:18px;width:min(440px,calc(100vw - 28px));display:grid;gap:10px;pointer-events:none}.admin-body .pn-feedback-stack{top:18px;right:18px}.pn-feedback-toast{pointer-events:auto;position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 34px;gap:12px;align-items:start;min-height:62px;padding:14px 12px;border:1px solid rgba(15,23,42,.1);border-radius:18px;background:linear-gradient(135deg,#ffffff,#f7fbff 45%,#fff6e8);color:var(--pn26-ink);box-shadow:0 18px 48px rgba(15,23,42,.16);overflow:hidden;animation:pn26ToastIn .24s ease-out both}.pn-feedback-toast:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--pn26-blue)}.pn-feedback-toast.success:before{background:#16a34a}.pn-feedback-toast.error:before,.pn-feedback-toast.danger:before{background:#dc2626}.pn-feedback-toast.warning:before{background:#f59e0b}.pn-feedback-toast.info:before{background:#1877f2}.pn-feedback-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;color:#1769e0;font-weight:900}.pn-feedback-toast.success .pn-feedback-icon{background:#eafbf2;color:#15803d}.pn-feedback-toast.error .pn-feedback-icon,.pn-feedback-toast.danger .pn-feedback-icon{background:#fff0f0;color:#b42318}.pn-feedback-toast.warning .pn-feedback-icon{background:#fff7df;color:#9a6700}.pn-feedback-copy{min-width:0}.pn-feedback-title{display:block;margin:1px 0 3px;font-size:14px;line-height:1.25;color:#101828}.pn-feedback-message{margin:0;color:#526078;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.pn-feedback-close{width:32px;height:32px;border:0;border-radius:11px;background:rgba(15,23,42,.04);color:#667085;font-size:18px;line-height:1;cursor:pointer}.pn-feedback-close:hover,.pn-feedback-close:focus{background:#eaf1ff;color:#111827;outline:none}.pn-feedback-toast.is-leaving{animation:pn26ToastOut .18s ease-in both}
.pn26-confirm[hidden],.pn26-logout[hidden]{display:none!important}.pn26-confirm,.pn26-logout{position:fixed;inset:0;z-index:100004;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.78);backdrop-filter:blur(8px);color:#111827}.pn26-confirm-card,.pn26-logout-card{position:relative;width:min(430px,100%);padding:24px;border-radius:28px;background:linear-gradient(145deg,#ffffff 0%,#eff7ff 45%,#fff2df 100%);border:1px solid rgba(255,255,255,.72);box-shadow:var(--pn26-shadow);text-align:center;color:#111827;animation:pn26ModalIn .2s ease-out both}.pn26-confirm-icon,.pn26-logout-logo{width:70px;height:70px;margin:0 auto 14px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,#2563eb,#22c55e);color:#fff;font-size:28px;box-shadow:0 16px 40px rgba(37,99,235,.22)}.pn26-confirm-title,.pn26-logout-title{margin:0 0 8px;font:900 23px/1.15 Manrope,Inter,system-ui,sans-serif;color:#0f172a}.pn26-confirm-message,.pn26-logout-message{margin:0;color:#475569;font-size:14px;line-height:1.55}.pn26-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.pn26-btn{border:0;border-radius:14px;min-height:44px;padding:0 16px;font-weight:900;cursor:pointer}.pn26-btn.cancel{background:#fff;color:#334155;border:1px solid #dbe5f2}.pn26-btn.danger{background:linear-gradient(135deg,#dc2626,#f97316);color:#fff}.pn26-btn.primary{background:linear-gradient(135deg,#1877f2,#3b82f6);color:#fff}.pn26-logout-rings{position:relative;width:96px;height:96px;margin:0 auto 14px;display:grid;place-items:center}.pn26-logout-rings i{position:absolute;inset:0;border:2px solid rgba(24,119,242,.16);border-top-color:#1877f2;border-radius:50%;animation:pn26Spin 1.1s linear infinite}.pn26-logout-rings i:nth-child(2){inset:9px;border-top-color:#22c55e;animation-duration:1.5s;animation-direction:reverse}.pn26-logout-logo{position:relative;z-index:1;width:60px;height:60px;margin:0;border-radius:20px}.pn26-logout-progress{height:6px;margin-top:18px;border-radius:999px;background:#dbeafe;overflow:hidden}.pn26-logout-progress span{display:block;height:100%;width:42%;background:linear-gradient(90deg,#1877f2,#22c55e,#f59e0b);border-radius:999px;animation:pn26Progress 1.15s ease-in-out infinite}body.pn26-modal-open{overflow:hidden!important}body.pn26-logout-active .pn-safe-page-loader,body.pn26-logout-active #pn-loader,body.pn26-logout-active #pnAdminLoader{display:none!important;opacity:0!important;visibility:hidden!important}
@keyframes pn26ToastIn{from{opacity:0;transform:translateY(-10px) translateX(10px)}to{opacity:1;transform:none}}@keyframes pn26ToastOut{to{opacity:0;transform:translateY(-8px) translateX(8px)}}@keyframes pn26ModalIn{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:none}}@keyframes pn26Spin{to{transform:rotate(360deg)}}@keyframes pn26Progress{0%{transform:translateX(-110%)}100%{transform:translateX(260%)}}
@media(max-width:640px){.pn-feedback-stack{top:auto;left:10px;right:10px;bottom:max(76px,calc(env(safe-area-inset-bottom,0px) + 68px));width:auto}.admin-body .pn-feedback-stack{top:12px;left:10px;right:10px;bottom:auto}.pn-feedback-toast{grid-template-columns:36px minmax(0,1fr) 32px;padding:13px 10px;border-radius:16px}.pn-feedback-icon{width:34px;height:34px}.pn26-confirm,.pn26-logout{padding:14px}.pn26-confirm-card,.pn26-logout-card{border-radius:24px;padding:22px 18px}.pn26-confirm-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.pn-feedback-toast,.pn-feedback-toast.is-leaving,.pn26-confirm-card,.pn26-logout-card,.pn26-logout-rings i,.pn26-logout-progress span{animation:none!important}}

/* Patch 27: global feedback visibility, animated LIVE badge and auth inline notices. */
.pn-auth-inline-feedback{display:flex;align-items:flex-start;gap:10px;margin:10px 0 14px;padding:12px 13px;border-radius:15px;border:1px solid #dbeafe;background:linear-gradient(135deg,#ffffff,#eff6ff 52%,#fff7ed);color:#0f172a;font-weight:800;line-height:1.45;box-shadow:0 10px 26px rgba(15,23,42,.06)}
.pn-auth-inline-feedback i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:0 0 28px;background:#eef4ff;color:#1877f2}.pn-auth-inline-feedback.error{border-color:#fecaca;background:linear-gradient(135deg,#fff,#fff1f2 55%,#fff7ed)}.pn-auth-inline-feedback.error i{background:#fee2e2;color:#dc2626}.pn-auth-inline-feedback.success i{background:#dcfce7;color:#16a34a}.pn-auth-inline-feedback span{min-width:0;overflow-wrap:anywhere}
.flash{position:fixed!important;top:max(74px,calc(env(safe-area-inset-top,0px) + 68px))!important;right:18px!important;width:min(430px,calc(100vw - 28px))!important;padding:14px 16px!important;border-radius:18px!important;border:1px solid rgba(15,23,42,.1)!important;background:linear-gradient(135deg,#fff,#f7fbff 48%,#fff7ed)!important;color:#101828!important;box-shadow:0 18px 48px rgba(15,23,42,.14)!important;font-weight:800!important;line-height:1.45!important;z-index:100003!important}.flash.success{border-left:5px solid #16a34a!important}.flash.error,.flash.danger{border-left:5px solid #dc2626!important}.flash.warning{border-left:5px solid #f59e0b!important}.flash.info{border-left:5px solid #1877f2!important}
.production-label{position:relative;overflow:hidden;isolation:isolate;box-shadow:0 0 0 0 rgba(34,197,94,.34);animation:pn27LiveBadgePulse 1.75s ease-in-out infinite!important}.production-label i{position:relative;animation:pn27LiveDotBlink .9s ease-in-out infinite!important;filter:drop-shadow(0 0 6px rgba(34,197,94,.85))}.production-label:before{content:"";position:absolute;inset:-2px;background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.65) 46%,transparent 60%);transform:translateX(-120%);animation:pn27LiveSweep 2.4s ease-in-out infinite;z-index:-1}.production-label:after{content:"";position:absolute;inset:-5px;border-radius:999px;border:1px solid rgba(34,197,94,.3);animation:pn27LiveOuter 1.7s ease-in-out infinite;pointer-events:none}
.pn27-live-touch{animation:pn27LiveTouch .62s ease-out both}.pn27-sync-soft{transition:background-color .25s ease,box-shadow .25s ease}.pn27-sync-soft.is-live-updated{background-color:#eff6ff!important;box-shadow:0 0 0 2px rgba(24,119,242,.12)!important}
@keyframes pn27LiveBadgePulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.26);transform:translateZ(0)}50%{box-shadow:0 0 0 7px rgba(34,197,94,0);transform:translateY(-1px)}}
@keyframes pn27LiveDotBlink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.38;transform:scale(.72)}}
@keyframes pn27LiveSweep{0%,38%{transform:translateX(-130%)}58%,100%{transform:translateX(140%)}}
@keyframes pn27LiveOuter{0%{opacity:.78;transform:scale(.88)}100%{opacity:0;transform:scale(1.28)}}
@keyframes pn27LiveTouch{0%{transform:scale(1)}35%{transform:scale(1.08)}100%{transform:scale(1)}}
@media(max-width:640px){.flash{top:auto!important;left:10px!important;right:10px!important;bottom:max(76px,calc(env(safe-area-inset-bottom,0px) + 68px))!important;width:auto!important}}
@media(prefers-reduced-motion:reduce){.production-label,.production-label i,.production-label:before,.production-label:after,.pn27-live-touch{animation:none!important}}

/* Patch 28: public-session toast suppression fallback, fixed avatars and compact icon controls. */
body[data-page="home"] .flash.error:has(+ *),
body[data-page="login"] .flash.error,
body[data-page="register"] .flash.error{max-width:min(430px,calc(100vw - 28px))}
.header-popover-panel .header-popover-item .avatar,
.header-popover-panel .header-popover-item .mini-avatar,
.header-popover-panel .header-popover-avatar,
.header-popover-item .avatar,
.header-popover-item .mini-avatar,
.header-popover-avatar{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;flex:0 0 44px!important;border-radius:50%!important;overflow:hidden!important;display:grid!important;place-items:center!important;object-fit:cover!important;background:#eef4ff!important}
.header-popover-panel .header-popover-item img,
.header-popover-item .avatar img,
.header-popover-item .mini-avatar img,
.header-popover-avatar img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;display:block!important}
.pnrt-toast-stack{right:18px!important;top:max(78px,calc(env(safe-area-inset-top,0px) + 72px))!important}
.pnrt-premium-toast .pnrt-main{align-items:center!important}
.pnrt-avatar-wrap{box-sizing:border-box!important;position:relative!important;display:block!important;flex:0 0 58px!important;width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;border-radius:50%!important}
.pnrt-avatar{box-sizing:border-box!important;display:block!important;width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;overflow:hidden!important;background:#e2e8f0!important}
.pnrt-avatar-wrap>i{box-sizing:border-box!important;display:grid!important;place-items:center!important;line-height:1!important;border-radius:50%!important;aspect-ratio:1/1!important;flex:0 0 auto!important}
.pnrt-close,.pn-feedback-close,.modal-close,.popup-close,.close-modal,.report-post-close,.pwa-close-btn,.header-popover-close,[data-modal-close],[data-popup-close]{box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;line-height:1!important;aspect-ratio:1/1!important;flex:0 0 auto!important;padding:0!important;border-radius:50%!important;white-space:nowrap!important;vertical-align:middle!important;overflow:hidden!important}
.pnrt-close,.pn-feedback-close{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important}
.chat-shell .chat-header button:not(.button):not(.pn26-btn),
.chat-shell .conversation-header button:not(.button):not(.pn26-btn),
.chat-shell .chat-top button:not(.button):not(.pn26-btn),
.chat-header-actions button,
.chat-action-btn,
.chat-call-btn,
.call-audio-btn,
.call-video-btn,
button[data-call-type],
button[data-chat-action]{box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;line-height:1!important;aspect-ratio:1/1!important;flex:0 0 auto!important;padding:0!important;min-width:42px!important;min-height:42px!important;max-width:48px!important;max-height:48px!important;border-radius:50%!important;overflow:hidden!important;white-space:nowrap!important}
.chat-shell .chat-header button:not(.button):not(.pn26-btn) i,
.chat-shell .conversation-header button:not(.button):not(.pn26-btn) i,
.chat-header-actions button i,
.chat-action-btn i,
button[data-call-type] i,
button[data-chat-action] i{line-height:1!important;margin:0!important;display:block!important}
@media(max-width:700px){.pnrt-toast-stack{left:8px!important;right:8px!important;top:max(58px,calc(env(safe-area-inset-top,0px) + 54px))!important;width:auto!important}.pnrt-avatar-wrap,.pnrt-avatar{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important}.chat-shell .chat-header button:not(.button):not(.pn26-btn),.chat-shell .conversation-header button:not(.button):not(.pn26-btn),.chat-header-actions button,button[data-call-type],button[data-chat-action]{min-width:40px!important;min-height:40px!important;max-width:44px!important;max-height:44px!important}}

/* Patch 30: grouped duplicate notification chips in header and fresh-toast popups. */
.pn-header-repeat,.pnrt-repeat{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;margin-left:4px!important;padding:2px 7px!important;border-radius:999px!important;background:#eef4ff!important;color:#175cd3!important;font-style:normal!important;font-size:11px!important;font-weight:900!important;line-height:1.2!important;white-space:nowrap!important}
.header-popover-panel .header-popover-copy small{display:block!important;line-height:1.35!important}.header-popover-panel .header-popover-item{min-height:62px!important}.pnrt-repeat{background:#eaf7ff!important;color:#0369a1!important}


/* Phase 13: keep legacy duplicate toast systems hidden; the primary .pn-feedback-stack remains enabled. */
.pn-toast-region,.pn-toast,.pn-fetch-toast-stack,.pn-fetch-toast,.pn13g-admin-toast,.flash,.ai-toast,.admin-live-toast-stack,.admin-live-toast{display:none!important;visibility:hidden!important;pointer-events:none!important}
