/* AFRA 2027 UI: small Lucide-inspired controls, readable notifications, accessible mobile drawers. */
:root{--afra-n-blue:#184e80;--afra-n-red:#bf2345;--afra-n-line:#d9e5f1;--afra-n-ink:#153957}
.afra-n-bell{position:relative;display:inline-grid;place-items:center;flex-shrink:0;min-width:43px;min-height:43px;width:43px;height:43px;padding:0!important;border-radius:14px!important;border:1px solid #cedfed!important;background:rgba(245,250,255,.98)!important;color:var(--afra-n-blue)!important;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease!important}
.afra-n-bell:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(18,69,118,.13);background:#eaf4ff!important}
.afra-n-bell svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.85;fill:none;stroke-linecap:round;stroke-linejoin:round}
.afra-n-badge{position:absolute;top:-7px;left:-6px;min-width:19px;height:19px;display:grid;place-items:center;border-radius:50px;color:#fff;background:#c52242;font:800 10px/1 Vazirmatn,Tahoma,sans-serif;padding:0 3px;border:2px solid #fff}
.afra-n-badge[hidden],.afra-n-panel[hidden]{display:none!important}
.afra-n-panel{position:fixed;z-index:5000;top:85px;left:clamp(12px,3vw,45px);width:min(440px,calc(100vw - 24px));max-height:min(80vh,720px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #c6d9e9;border-radius:24px;background:rgba(255,255,255,.98);box-shadow:0 28px 85px rgba(10,35,65,.25);backdrop-filter:blur(24px);font-family:Vazirmatn,Tahoma,sans-serif;direction:rtl;animation:afraNAppear .22s ease both}
@keyframes afraNAppear{from{opacity:0;transform:translateY(-9px) scale(.97)}to{opacity:1;transform:none}}
.afra-n-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 21px;background:linear-gradient(120deg,#10355d,#1d5c92);color:white}
.afra-n-head h2{margin:2px 0 0!important;font-size:17px!important;line-height:1.6!important;color:white!important}
.afra-n-head small{font-size:11px;color:#cfe3f7}.afra-n-close{width:35px;height:35px;display:grid;place-items:center;color:white;background:rgba(255,255,255,.16);border:0;border-radius:11px;font:28px/1 Arial;cursor:pointer}
.afra-n-list{padding:15px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:12px}
.afra-n-item{padding:16px 17px;border:1px solid #dce9f4;border-radius:18px;background:linear-gradient(130deg,#f8fbff,#fff);box-shadow:0 5px 14px rgba(17,65,110,.04);color:#173a5a;min-width:0;overflow-wrap:anywhere;transition:transform .2s,box-shadow .2s}
.afra-n-item:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(17,65,110,.1)}
.afra-n-urgent,.afra-n-critical{border-right:4px solid #c42846}.afra-n-warning{border-right:4px solid #d18b19}.afra-n-success{border-right:4px solid #18876c}.afra-n-info{border-right:4px solid #317cbb}
.afra-n-item.afra-n-read{opacity:.77;background:#f5f7fa}.afra-n-item h3{font-size:15px!important;line-height:1.7!important;margin:7px 0!important;color:inherit!important}.afra-n-item p{white-space:pre-wrap;line-height:1.95;font-size:13px;color:#536e89;margin:0 0 12px;overflow-wrap:anywhere}
.afra-n-meta{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px;color:#6a859d}.afra-n-controls{display:flex;gap:8px;flex-wrap:wrap}.afra-n-controls>*{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 11px;border-radius:10px;background:#eaf3fb;border:1px solid #cfe1ef;font-size:11px;font-weight:750;color:#195384;cursor:pointer;text-decoration:none}
.afra-n-all{display:block;padding:14px 18px;text-align:center;text-decoration:none;color:#1b598b;font-size:12px;font-weight:850;background:#f1f7fd;border-top:1px solid #d9e6f1}.afra-n-empty{padding:28px 12px;text-align:center;color:#69819b;font-size:13px}
.afra-n-page{max-width:1000px;margin:35px auto;min-height:55vh;padding:0 16px;font-family:Vazirmatn,Tahoma,sans-serif}.afra-n-page h1{font-size:clamp(23px,4vw,36px);color:#143b62;margin-bottom:9px}.afra-n-page>p{color:#6b8198;margin-bottom:24px}.afra-n-page-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px}
.afra-n-icon,.afra-ui-icon{display:inline-grid;place-items:center;width:20px;height:20px;vertical-align:middle;flex:0 0 auto}.afra-ui-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
@media(max-width:650px){.afra-n-bell{min-width:40px;min-height:40px;width:40px;height:40px;border-radius:12px!important}.afra-n-panel{top:70px;left:10px;right:10px;width:auto;max-height:min(76vh,670px)}.afra-n-list{padding:10px}.afra-n-head{padding:14px}.afra-n-page{margin:22px auto}}
html[data-theme=dark] .afra-n-panel{background:#132b46;border-color:#355878}html[data-theme=dark] .afra-n-item{background:#1a3451;border-color:#385877;color:#e7f4ff}html[data-theme=dark] .afra-n-item p,html[data-theme=dark] .afra-n-meta{color:#b9cce1}html[data-theme=dark] .afra-n-all{background:#193959;color:#e4f3ff;border-color:#416387}html[data-theme=dark] .afra-n-bell{color:#ddecff!important;background:#1c3b5a!important;border-color:#436586!important}
@media(prefers-reduced-motion:reduce){.afra-n-panel,.afra-n-item,.afra-n-bell{animation:none!important;transition:none!important}}
.afra-n-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;position:relative;z-index:40;padding:11px clamp(16px,4vw,55px);background:linear-gradient(110deg,#173c65,#225f91);color:white;font:13px/1.8 Vazirmatn,Tahoma,sans-serif;box-shadow:0 10px 24px rgba(19,52,89,.13)}.afra-n-banner[hidden]{display:none!important}.afra-n-banner>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:1;min-width:0}.afra-n-banner strong{font-weight:900}.afra-n-banner>div>span:last-child{color:#daeafb}.afra-n-banner a{color:#fff;font-weight:800;padding:5px 12px;border:1px solid #ffffff45;border-radius:9px;text-decoration:none}.afra-n-banner button{display:grid;place-items:center;background:#ffffff23;color:#fff;border:0;border-radius:9px;min-width:30px;height:30px;font-size:22px;cursor:pointer}.afra-n-banner-dot{width:7px;height:7px;border-radius:50%;background:#ff6d85;box-shadow:0 0 0 5px #ff698533}
@media(max-width:650px){.afra-n-banner{padding:10px 14px;font-size:11px;gap:8px}.afra-n-banner>div{flex-basis:75%}.afra-n-banner a{font-size:11px}}
