/* Mandatory, non-dismissible update screen for stale web-app releases. */
html.magdy-update-verifying::after{content:'جارٍ التحقق من تحديثات المنصة…';direction:rtl;position:fixed;inset:0;display:grid;place-items:center;z-index:2147483647;background:#0c2144;color:#fff;font:700 clamp(17px,3vw,23px)/1.6 system-ui,Tahoma,sans-serif;text-align:center;padding:24px;box-sizing:border-box}
html.magdy-update-verifying body{pointer-events:none}
body.magdy-update-required{overflow:hidden!important}
body.magdy-update-required > :not(.magdy-update-gate){pointer-events:none!important;user-select:none!important}
.magdy-update-gate{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;direction:rtl;overflow:auto;overscroll-behavior:contain;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));box-sizing:border-box;background:rgba(7,19,43,.96);font-family:inherit}
.magdy-update-gate-panel{box-sizing:border-box;width:min(510px,100%);padding:clamp(22px,5vw,38px);border-radius:24px;background:#fff;color:#0c2144;text-align:center;box-shadow:0 22px 65px rgba(0,0,0,.36);border-top:6px solid #981630}
.magdy-update-gate-icon{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 12px;border-radius:18px;background:#f2e7ee;color:#981630;font-size:42px;font-weight:bold}
.magdy-update-gate-panel h2{color:#95112d;font-size:clamp(21px,4vw,27px);margin:0 0 10px}
.magdy-update-gate-panel p{font-size:15px;line-height:1.8;margin:0 0 16px}
.magdy-update-gate-status{background:#f1f5fc;color:#274670;padding:12px;border-radius:12px}
.magdy-update-gate-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:20px auto 14px}
.magdy-update-gate-actions button{border:0;border-radius:12px;min-height:46px;padding:12px 22px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.magdy-update-apply{background:#a60d2c;color:#fff}
.magdy-update-retry{background:#e9eef8;color:#12376d}
.magdy-update-gate-actions button:disabled{opacity:.65;cursor:progress}
.magdy-update-gate-actions button:focus-visible{outline:3px solid #f2aa0c;outline-offset:3px}
.magdy-update-gate-panel small{display:block;color:#61718e;font-size:12px;line-height:1.8}
@media(max-width:480px){.magdy-update-gate-panel{border-radius:17px;padding:22px 18px}}

/* V24: Accurate final 100% + estimated intermediate update progress. */
.magdy-update-progress[hidden]{display:none!important}
.magdy-update-progress{direction:rtl;margin:14px 0 2px;padding:6px 0 0}
.magdy-update-percent{font-size:clamp(30px,6vw,43px);line-height:1.25;color:#9a1734;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:.2px;margin-bottom:10px}
.magdy-update-progress-track{height:15px;width:100%;direction:ltr;overflow:hidden;background:#f0e9ef;border:1px solid #e6d4dc;border-radius:999px;box-shadow:inset 0 1px 3px #32102514}
.magdy-update-bar-fill{height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,#c85e77,#aa153b);transition:width .16s linear}
.magdy-update-progress-caption{font-size:11px;line-height:1.6;color:#65738d;margin-top:8px}
@media(prefers-reduced-motion:reduce){.magdy-update-bar-fill{transition:none}}
