/* Atheer AI floating chat widget - bottom left popup */
.atheer-ai-widget{position:fixed;left:22px;bottom:22px;z-index:9999;font-family:Tajawal,Arial,sans-serif;direction:rtl}
.atheer-ai-widget *{box-sizing:border-box}
.atheer-ai-widget-button{width:64px;height:64px;border:0;border-radius:24px;display:grid;place-items:center;cursor:pointer;color:#fff;background:linear-gradient(135deg,#065f46,#14b8a6);box-shadow:0 18px 45px rgba(6,95,70,.34);position:relative;transition:.24s transform,.24s box-shadow}
.atheer-ai-widget-button:hover{transform:translateY(-4px) scale(1.03);box-shadow:0 24px 58px rgba(6,95,70,.45)}
.atheer-ai-widget-button i{font-size:25px}.atheer-ai-widget-button:before{content:"";position:absolute;inset:-7px;border-radius:30px;border:2px solid rgba(20,184,166,.28);animation:atheerAiPing 1.8s infinite}.atheer-ai-widget-button .tip{position:absolute;left:74px;top:50%;transform:translateY(-50%);white-space:nowrap;background:rgba(15,23,42,.94);color:#fff;border-radius:999px;padding:9px 13px;font-size:13px;font-weight:800;opacity:0;pointer-events:none;transition:.2s}.atheer-ai-widget-button:hover .tip{opacity:1}@keyframes atheerAiPing{0%{transform:scale(.88);opacity:1}100%{transform:scale(1.25);opacity:0}}
.atheer-ai-widget-panel{position:absolute;left:0;bottom:82px;width:min(420px,calc(100vw - 28px));height:min(640px,calc(100vh - 118px));background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.9);border-radius:30px;overflow:hidden;box-shadow:0 30px 90px rgba(15,23,42,.24);backdrop-filter:blur(18px);display:none;transform-origin:left bottom}.atheer-ai-widget.is-open .atheer-ai-widget-panel{display:flex;flex-direction:column;animation:atheerAiOpen .22s ease-out}@keyframes atheerAiOpen{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.atheer-ai-widget-head{display:flex;align-items:center;gap:12px;padding:15px 16px;background:linear-gradient(135deg,rgba(6,95,70,.97),rgba(13,148,136,.94));color:#fff}.atheer-ai-widget-avatar{width:44px;height:44px;border-radius:17px;display:grid;place-items:center;background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);flex:0 0 auto}.atheer-ai-widget-title{flex:1;min-width:0}.atheer-ai-widget-title strong{display:block;font-weight:900}.atheer-ai-widget-title small{display:block;opacity:.86;margin-top:3px;font-size:12px}.atheer-ai-widget-close{width:38px;height:38px;border:0;border-radius:15px;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;display:grid;place-items:center;transition:.2s}.atheer-ai-widget-close:hover{background:rgba(255,255,255,.25)}
.atheer-ai-widget-messages{flex:1;overflow:auto;padding:16px;background:linear-gradient(180deg,rgba(248,250,252,.82),rgba(236,253,245,.55));scroll-behavior:smooth}.atheer-ai-w-msg{width:max-content;max-width:86%;padding:11px 14px;margin:0 0 10px;border-radius:19px;line-height:1.8;white-space:pre-wrap;box-shadow:0 10px 26px rgba(15,23,42,.07);font-size:14px}.atheer-ai-w-msg.bot{background:#fff;color:#0f172a;border-bottom-right-radius:6px}.atheer-ai-w-msg.user{margin-right:auto;background:linear-gradient(135deg,#059669,#14b8a6);color:white;border-bottom-left-radius:6px}.atheer-ai-w-msg.system{margin-inline:auto;background:rgba(15,23,42,.06);color:#64748b;font-size:12px;box-shadow:none}.atheer-ai-w-msg.loading{opacity:.72;animation:atheerAiPulse 1s ease-in-out infinite alternate}@keyframes atheerAiPulse{to{opacity:.42}}
.atheer-ai-widget-form{display:flex;gap:9px;padding:12px;background:rgba(255,255,255,.96);border-top:1px solid rgba(15,23,42,.08)}.atheer-ai-widget-form input{flex:1;min-width:0;border:1px solid rgba(15,23,42,.14);border-radius:17px;padding:12px 14px;outline:none;background:#fff;font-family:inherit;font-size:14px}.atheer-ai-widget-form input:focus{border-color:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}.atheer-ai-widget-form button{width:50px;border:0;border-radius:17px;background:linear-gradient(135deg,#059669,#14b8a6);color:#fff;cursor:pointer;box-shadow:0 14px 28px rgba(5,150,105,.22)}
.atheer-ai-widget-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.18);z-index:9998}.atheer-ai-widget.is-open + .atheer-ai-widget-backdrop{display:none}
@media(max-width:640px){.atheer-ai-widget{left:14px;bottom:14px}.atheer-ai-widget-button{width:58px;height:58px;border-radius:21px}.atheer-ai-widget-button .tip{display:none}.atheer-ai-widget-panel{left:0;bottom:72px;width:calc(100vw - 28px);height:min(620px,calc(100vh - 96px));border-radius:26px}.atheer-ai-w-msg{max-width:92%}}
