.nfm-ai20{position:fixed;z-index:999999;font-family:tahoma,Arial,sans-serif;direction:rtl;--radius:clamp(112px,18vw,176px)}
.nfm-ai20 *{box-sizing:border-box}
.nfm-pos-bottom_left{left:var(--nfm-x);bottom:var(--nfm-y)}.nfm-pos-bottom_right{right:var(--nfm-x);bottom:var(--nfm-y)}.nfm-pos-top_left{left:var(--nfm-x);top:var(--nfm-y)}.nfm-pos-top_right{right:var(--nfm-x);top:var(--nfm-y)}
.nfm-ai20-toggle{all:unset!important;width:82px!important;height:82px!important;min-width:82px!important;min-height:82px!important;max-width:82px!important;max-height:82px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;position:relative!important;overflow:hidden!important;background:radial-gradient(circle at 28% 18%,#fff 0 6%,#9ff7ff 14%,#6557ff 42%,#ff35d2 72%,#00e5ff 100%)!important;border:2px solid rgba(255,255,255,.9)!important;box-shadow:0 0 0 9px rgba(0,229,255,.16),0 0 36px rgba(0,229,255,.9),0 0 88px rgba(255,53,210,.62),inset 0 0 22px rgba(255,255,255,.5)!important;transition:.45s cubic-bezier(.16,1,.3,1)!important;z-index:1000004!important}
.nfm-ai20-toggle .nfm-ring{position:absolute;inset:-45%;background:conic-gradient(from 0deg,transparent,rgba(255,255,255,.95),transparent 28%,rgba(255,255,255,.6),transparent 70%);animation:nfmSpin 2.4s linear infinite}
.nfm-ai20-toggle .nfm-halo{position:absolute;inset:9px;border-radius:50%;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.65);backdrop-filter:blur(6px)}
.nfm-ai20-toggle i{position:relative;z-index:2;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,255,255,.18));font-style:normal;font-size:30px;color:#fff;text-shadow:0 5px 18px rgba(0,0,0,.25);overflow:hidden;box-shadow:inset 0 0 18px rgba(255,255,255,.4)}
.nfm-ai20-toggle i img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.nfm-ai20.open .nfm-ai20-toggle{transform:scale(.9) rotate(135deg)!important;box-shadow:0 0 0 11px rgba(255,53,210,.17),0 0 46px rgba(0,229,255,1),0 0 96px rgba(255,53,210,.72)!important}
@keyframes nfmSpin{to{transform:rotate(360deg)}}
.nfm-ai20-panel{position:fixed;inset:0;pointer-events:none;opacity:0;z-index:1000000;transition:.32s ease}
.nfm-ai20.open .nfm-ai20-panel{pointer-events:auto;opacity:1;background:radial-gradient(circle at center,rgba(255,255,255,.52),rgba(188,248,255,.22) 34%,rgba(255,255,255,0) 68%);backdrop-filter:blur(4px)}
.nfm-ai20-item{--angle:calc((360deg / var(--total)) * var(--i) - 90deg);position:fixed;left:50%;top:50%;width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%!important;text-decoration:none!important;color:#082f49!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(236,254,255,.70));border:1px solid rgba(255,255,255,.9);box-shadow:0 20px 55px rgba(14,165,233,.22),inset 0 0 24px rgba(255,255,255,.75);transform:translate(0,0) scale(.15);opacity:0;transition:transform .58s cubic-bezier(.16,1,.3,1),opacity .25s,box-shadow .25s}
.nfm-ai20.open .nfm-ai20-item{opacity:1;transform:rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1);transition-delay:calc(var(--i)*.045s)}
.nfm-ai20.open .nfm-ai20-item:hover{transform:rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1.08);box-shadow:0 0 0 8px rgba(34,211,238,.16),0 28px 70px rgba(217,70,239,.28)}
.nfm-ai20-icon{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;background:linear-gradient(145deg,#fff,#dffbff);box-shadow:inset 0 0 15px rgba(255,255,255,.95),0 12px 28px rgba(6,182,212,.22);overflow:hidden}
.nfm-ai20-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.nfm-ai20-item b{font-size:12px;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#0f172a}
.nfm-ai20-chat{position:fixed;right:24px;bottom:24px;width:min(420px,calc(100vw - 28px));height:560px;max-height:calc(100vh - 42px);display:none;flex-direction:column;overflow:hidden;border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(236,254,255,.88));border:1px solid rgba(255,255,255,.7);box-shadow:0 30px 90px rgba(15,23,42,.32),0 0 0 1px rgba(125,211,252,.35);backdrop-filter:blur(22px) saturate(170%);z-index:1000005}
.nfm-ai20-chat.show{display:flex;animation:nfmChat .3s ease}
@keyframes nfmChat{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
.nfm-ai20-chat-head{padding:16px;background:linear-gradient(135deg,#06b6d4,#7c3aed,#ff2bd6);color:#fff;display:flex;align-items:center;gap:12px}.nfm-ai20-chat-head strong{display:block;font-size:18px}.nfm-ai20-chat-head small{opacity:.92}.nfm-agent-avatar{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.24);border:1px solid rgba(255,255,255,.55);overflow:hidden}.nfm-agent-avatar img{width:100%;height:100%;object-fit:cover}.nfm-chat-close{margin-right:auto;border:0;background:rgba(255,255,255,.22);color:#fff;border-radius:14px;width:34px;height:34px;font-size:22px;cursor:pointer}
.nfm-ai20-chat-body{padding:16px;flex:1;overflow:auto;background:radial-gradient(circle at 15% 0,rgba(34,211,238,.16),transparent 38%),#fbfdff}
.nfm-msg{padding:11px 13px;margin:8px 0;border-radius:18px;max-width:88%;line-height:1.9;font-size:13px;box-shadow:0 10px 24px rgba(24,95,133,.08);clear:both}.nfm-msg.bot{background:#fff;border-bottom-right-radius:6px;margin-left:auto}.nfm-msg.user{background:linear-gradient(135deg,#dff8ff,#f4e6ff);margin-right:auto;border-bottom-left-radius:6px}.nfm-msg.notice{background:#ecfeff;color:#075985;font-weight:800}
.nfm-msg.typing{background:#fff;color:#64748b}.nfm-msg.typing i{width:6px;height:6px;border-radius:50%;background:#64748b;display:inline-block;margin:0 2px;animation:nfmTyping 1s infinite}.nfm-msg.typing i:nth-child(2){animation-delay:.15s}.nfm-msg.typing i:nth-child(3){animation-delay:.3s}@keyframes nfmTyping{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-5px);opacity:1}}
.nfm-ai20-voice-note{font-size:12px;color:#0f766e;padding:0 14px 6px;min-height:20px}
.nfm-ai20-chat-input{display:flex;gap:8px;padding:12px;background:#fff;border-top:1px solid #e0f2fe}.nfm-ai20-chat-input input{flex:1;min-width:0;border:1px solid #bae6fd;border-radius:17px;padding:0 12px;outline:none}.nfm-ai20-chat-input input:focus{border-color:#22d3ee;box-shadow:0 0 0 4px rgba(34,211,238,.16)}.nfm-ai20-chat-input button{border:0;border-radius:17px;padding:10px 13px;cursor:pointer;background:#06b6d4;color:#fff;font-weight:800}
.nfm-mic{min-width:50px!important;height:48px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px;background:linear-gradient(135deg,#06b6d4,#7c3aed)!important;box-shadow:0 12px 30px rgba(124,58,237,.35)!important;position:relative;overflow:hidden}.nfm-mic em{display:none;align-items:end;gap:2px;height:18px}.nfm-mic em i{width:3px;height:7px;background:#fff;border-radius:99px;animation:nfmEq .55s infinite ease-in-out}.nfm-mic em i:nth-child(2){height:14px;animation-delay:.1s}.nfm-mic em i:nth-child(3){height:10px;animation-delay:.2s}.nfm-mic em i:nth-child(4){height:16px;animation-delay:.3s}.nfm-mic.listening{min-width:86px!important;animation:nfmPulse 1s infinite;box-shadow:0 0 0 8px rgba(6,182,212,.18),0 18px 45px rgba(124,58,237,.45)!important}.nfm-mic.listening em{display:flex}@keyframes nfmEq{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1.3)}}@keyframes nfmPulse{50%{transform:scale(1.04)}}
@media(max-width:768px){.nfm-ai20{--radius:122px}.nfm-ai20-toggle{width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important}.nfm-ai20-toggle i{width:50px;height:50px}.nfm-ai20-item{width:92px;height:92px;margin:-46px 0 0 -46px}.nfm-ai20-icon{width:42px;height:42px}.nfm-ai20-item b{font-size:10.5px;max-width:76px}.nfm-ai20-chat{right:10px;bottom:10px;width:calc(100vw - 20px);height:78vh}}
@media(max-width:420px){.nfm-ai20{--radius:104px}.nfm-ai20-item{width:78px;height:78px;margin:-39px 0 0 -39px}.nfm-ai20-icon{width:34px;height:34px}.nfm-ai20-item b{font-size:9px;max-width:64px}}
/* v20 سازمانی: ظاهر تمیزتر و اپ‌بانکی‌تر */
.nfm-ai20-panel:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 50% 48%,rgba(14,165,233,.20),rgba(168,85,247,.12) 32%,transparent 62%);pointer-events:none}
.nfm-ai20-chat{border:1px solid rgba(255,255,255,.85)!important;box-shadow:0 30px 90px rgba(15,23,42,.22),0 0 0 1px rgba(14,165,233,.10)!important}
.nfm-ai20-chat-head{background:linear-gradient(135deg,#051937,#0ea5e9 52%,#7c3aed)!important;color:#fff!important}
.nfm-ai20-chat-head small{color:rgba(255,255,255,.82)!important}
.nfm-ai20-toggle:after{content:"";position:absolute;inset:7px;border-radius:50%;border:1px solid rgba(255,255,255,.75);box-shadow:inset 0 0 25px rgba(255,255,255,.38);pointer-events:none}
.nfm-ai20-item{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.nfm-ai20-item b{font-weight:900!important}
.nfm-msg.notice{border:1px solid #bae6fd!important}


/* v23: باز شدن دقیقاً وسط صفحه مثل نسخه 20 + ضد زیرلایه */
.nfm-ai20{z-index:2147483600!important;isolation:isolate!important;transform:none!important;contain:none!important;}
.nfm-ai20-panel{position:fixed!important;inset:0!important;z-index:2147483601!important;pointer-events:none!important;}
.nfm-ai20.open .nfm-ai20-panel{pointer-events:auto!important;opacity:1!important;}
.nfm-ai20-toggle{z-index:2147483603!important;position:relative!important;}
.nfm-ai20-item{position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;z-index:2147483602!important;}
.nfm-ai20-chat{z-index:2147483604!important;}
body.nfm-ai20-lock{overflow-x:hidden!important;}
@media(max-width:480px){.nfm-ai20{--radius:98px!important}.nfm-ai20-item{width:76px!important;height:76px!important;margin:-38px 0 0 -38px!important}}
