/* RAJ PREMIUM PANEL V10.87 — smooth popups + Quick Links NEW badge.
   Loaded last on every inner page (user, reseller and admin). Visual/motion only: no layout or workflow changes. */

/* ---------- Popups: a closed popup is fully hidden (not just transparent), so the phone does not keep drawing it ---------- */
html body:not(#rajx) :is(.rup-ov,.th-ov):not(.on){visibility:hidden;transition:opacity .2s ease,visibility 0s linear .2s!important}
html body:not(#rajx) :is(.rup-ov,.th-ov).on{visibility:visible;transition:opacity .2s ease,visibility 0s linear 0s!important}
/* the popup cards scale in on their own GPU layer (crisp text, no shimmer while they move) */
html body:not(#rajx) :is(.pn-mb,.guest-auth-box,.sx-box,.mo>.mb,.rup-box,.th-box,.raj-nt,.zp-card){-webkit-backface-visibility:hidden;backface-visibility:hidden}
/* backdrop stays put while the page behind it is touched / scrolled */
html body:not(#rajx) :is(.rup-ov,.th-ov,.raj-nt-ov,.pn-mo,.guest-auth-mo,.sx-mo,.mo,.zp-ov){overscroll-behavior:contain}

/* ---------- Admin > Quick Links: NEW badge switch ---------- */
html body:not(#rajx) .ql-nb{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:8px 10px 8px 12px;border-radius:12px;background:rgba(34,211,238,.05);border:1px solid rgba(34,211,238,.22)}
html body:not(#rajx) .ql-nb-t{display:flex;flex-direction:column;gap:2px;min-width:0}
html body:not(#rajx) .ql-nb-t b{font-size:11px;letter-spacing:.8px;color:#f2f6fb}
html body:not(#rajx) .ql-nb-t small{font-size:10.5px;color:#9fb0c6;line-height:1.35}
html body:not(#rajx) button.ql-sw.ql-sw-sm,html body:not(#rajx) .ql-cb{height:26px!important;font-size:10px!important;padding:0 10px 0 4px!important;gap:6px}
html body:not(#rajx) button.ql-sw.ql-sw-sm i,html body:not(#rajx) .ql-cb i{width:17px;height:17px}
/* add-new form: the checkbox is drawn as the same ON / OFF switch */
html body:not(#rajx) .ql-nb-add{margin:10px 0 0;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body:not(#rajx) .ql-nb-add input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
html body:not(#rajx) .ql-cb{flex:0 0 auto;display:inline-flex;align-items:center;border-radius:20px;border:1px solid rgba(248,113,113,.5);background:rgba(248,113,113,.1);color:#fca5a5;-webkit-text-fill-color:#fca5a5;font-weight:800;letter-spacing:.7px;line-height:1}
html body:not(#rajx) .ql-cb i{border-radius:50%;background:#f87171;box-shadow:0 0 4px rgba(248,113,113,.5)}
html body:not(#rajx) .ql-cb .ql-cb-on{display:none}
html body:not(#rajx) .ql-nb-add input:checked+.ql-cb{border-color:rgba(74,222,128,.55);background:rgba(74,222,128,.12);color:#86efac;-webkit-text-fill-color:#86efac}
html body:not(#rajx) .ql-nb-add input:checked+.ql-cb i{background:#4ade80;box-shadow:0 0 4px rgba(74,222,128,.5)}
html body:not(#rajx) .ql-nb-add input:checked+.ql-cb .ql-cb-on{display:inline}
html body:not(#rajx) .ql-nb-add input:checked+.ql-cb .ql-cb-off{display:none}
html body:not(#rajx) .ql-nb-add input:focus-visible+.ql-cb{outline:2px solid rgba(34,211,238,.6);outline-offset:2px}
/* preview of the badge next to the link name (same look as in the sidebar) */
html body:not(#rajx) .ql-head .ql-new-pv{flex:none;font-style:normal;font-size:8px;line-height:1;font-weight:800;letter-spacing:.6px;color:#04121a;-webkit-text-fill-color:#04121a;background:#22d3ee;border-radius:20px;padding:3px 6px;box-shadow:0 0 8px rgba(34,211,238,.4)}
html body:not(#rajx) .ql-head .ql-name{flex:0 1 auto}
html body:not(#rajx) .ql-head .ql-new-pv+button.ql-sw,html body:not(#rajx) .ql-head .ql-name+button.ql-sw{margin-left:auto!important}
html body:not(#rajx) .ql-nb-add .ql-nb-t b,html body:not(#rajx) .ql-nb-add .ql-nb-t small{text-transform:none}
html body:not(#rajx) .ql-nb-add .ql-nb-t b{text-transform:uppercase}
html body:not(#rajx) .ql-nb-add .ql-nb-t small{letter-spacing:0;font-weight:400}

/* ---------- V10.89 Buy Keys: product name on each card, bolder and a little bigger (nothing else changes) ---------- */
html body:not(#rajx) .pn h3.pn-t{font-size:16px!important;font-weight:800!important;letter-spacing:.9px!important;line-height:1.3!important;overflow-wrap:anywhere}
@media (min-width:700px){html body:not(#rajx) .pn h3.pn-t{font-size:17px!important}}
