/* جرس الإشعارات وقائمته */
#xbell{position:fixed;top:calc(.7rem + env(safe-area-inset-top,0px));left:calc(.9rem + env(safe-area-inset-left,0px));z-index:60;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1.5px solid #cfe6e4;border-radius:15px;background:#fff;color:var(--deep);cursor:pointer;box-shadow:0 4px 14px rgba(11,93,115,.16);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .12s,background .15s}
#xbell[hidden]{display:none}
#xbell:active{transform:scale(.92)}
#xbell svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#xbell .xbd{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e53935;color:#fff;font-weight:800;font-size:.72rem;line-height:20px;font-family:inherit;font-style:normal;text-align:center;box-shadow:0 0 0 2px #fff}
#xbell .xbd[hidden]{display:none}
#xnp{position:fixed;top:calc(4.1rem + env(safe-area-inset-top,0px));left:calc(.9rem + env(safe-area-inset-left,0px));z-index:90;width:min(380px,calc(100vw - 1.8rem));max-height:min(70vh,560px);overflow:auto;overscroll-behavior:contain;background:#fff;color:var(--ink);border-radius:20px;box-shadow:0 18px 56px rgba(0,20,40,.35);padding:.9rem .9rem 1rem;animation:xnin .2s cubic-bezier(.2,.9,.3,1.1) both}
#xnp[hidden]{display:none}
#xnp .xnh{display:flex;align-items:center;justify-content:space-between;margin:0 0 .5rem}
#xnp h3{margin:0;font-size:1.1rem}
#xnp .xnx{width:38px;height:38px;border:0;border-radius:12px;background:#eef5f5;color:var(--deep);font-size:1rem;cursor:pointer}
#xnp ul{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
#xnp li{display:flex;gap:.7rem;align-items:flex-start;padding:.8rem;border-radius:16px;background:#f4f9f9;border:1px solid #dcebea}
#xnp li.new{background:#fff7e0;border-color:#f3d98b}
#xnp li>i{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-style:normal;font-size:1.2rem;background:linear-gradient(135deg,#19b8e0,#2563eb);color:#fff}
#xnp li b{display:block;font-size:1rem;margin:0 0 .15rem}
#xnp li p{margin:0 0 .55rem;font-size:.92rem;line-height:1.75;color:#34505a}
#xnp li .btn{display:inline-block;margin:0;min-height:42px;padding:.5rem 1rem;font-size:.95rem}
#xnp .xne{margin:.6rem 0;text-align:center;color:#567;font-weight:700}
.xmore{display:flex;align-items:center;gap:.5rem;margin:.6rem 0 .2rem;font-weight:700;cursor:pointer}
.xmore input{width:20px;height:20px;flex:none}
@keyframes xnin{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:900px){
 #xbell{position:relative;top:auto;left:auto;flex:none;width:44px;height:44px;border:0;border-radius:14px;background:rgba(255,255,255,.13);color:#fff;box-shadow:none}
 #xbell .xbd{box-shadow:0 0 0 2px #073f57}
 #xnp{top:calc(60px + env(safe-area-inset-top,0px));left:.6rem;right:.6rem;width:auto;max-height:calc(100vh - 80px - env(safe-area-inset-top,0px))}
}
@media(prefers-reduced-motion:reduce){#xnp{animation:none}}
@media print{#xbell,#xnp{display:none!important}}
