
.ai-launcher{position:fixed;right:18px;bottom:171px;z-index:1200;width:62px;height:62px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#090e27;box-shadow:0 10px 28px rgba(0,0,0,.38);cursor:pointer;color:#fff;overflow:hidden}
.ai-icon{width:100%;height:100%;display:block;border-radius:50%;background:transparent url('../img/hp-premium-v5/bot-float.webp') center/contain no-repeat;color:transparent;font-size:0;box-shadow:none}
.ai-launcher:hover{transform:translateY(-2px)}
.ai-greeting{position:fixed;right:94px;bottom:184px;z-index:1201;width:min(260px,calc(100vw - 120px));padding:12px 14px 13px;border:1px solid rgba(104,212,255,.22);border-radius:16px;background:rgba(7,15,29,.97);box-shadow:0 18px 50px rgba(0,0,0,.4);display:none;color:#fff}
.ai-greeting.show{display:block;animation:aiIn .22s ease}
.ai-greeting strong,.ai-greeting span{display:block}.ai-greeting strong{font-size:.92rem;line-height:1.2}.ai-greeting span{margin-top:3px;color:#aebbd0;font-size:.78rem;line-height:1.35}
.ai-greeting-close{position:absolute;right:7px;top:4px;border:0;background:transparent;color:#8190a7;font-size:18px;cursor:pointer}
.ai-chat{position:fixed;right:18px;bottom:16px;z-index:1205;width:min(420px,calc(100vw - 36px));height:min(700px,calc(100dvh - 32px));display:none;flex-direction:column;overflow:hidden;border:1px solid rgba(104,212,255,.2);border-radius:22px;background:#071021;color:#fff;box-shadow:0 28px 100px rgba(0,0,0,.55)}
.ai-chat.open{display:flex}
.ai-chat-head{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:14px 15px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(6,14,28,.98)}
.ai-chat-head .ai-icon{width:48px;height:48px;flex:0 0 48px}
.ai-chat-title{flex:1;min-width:0}.ai-chat-title strong{display:block;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-chat-title small{display:block;margin-top:2px;color:#8998af;font-size:.72rem}
.ai-chat-close{border:0;background:transparent;color:#b3bfd0;font-size:28px;line-height:1;cursor:pointer;padding:3px 5px}
.ai-chat-messages{flex:1;min-height:0;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.ai-row{display:flex;align-items:flex-end;gap:8px;max-width:100%}.ai-row.user{justify-content:flex-end}
.ai-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#142042 center/cover no-repeat;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.ai-avatar.assistant{background-image:url('../img/hp-premium-v5/bot-float.webp')}
.ai-avatar.user{background-image:url('../img/hp-premium-v5/user-avatar.webp')}
.ai-msg{max-width:78%;padding:10px 12px;border-radius:15px;line-height:1.45;font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}.ai-msg.assistant{align-self:flex-start;background:#121e33;color:#edf3fc;border-top-left-radius:5px}.ai-msg.user{align-self:flex-end;background:linear-gradient(135deg,#5b34f2,#1661d8);color:#fff;border-top-right-radius:5px}
.ai-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:0 12px 8px;flex:0 0 auto}.ai-suggestion{padding:7px 10px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:#0d182b;color:#dbe5f1;font-size:.72rem;cursor:pointer}
.ai-wa{display:block;margin:0 12px 8px;padding:11px 12px;border-radius:11px;background:#163825;color:#bbf4c9;font-size:.83rem;text-align:center;font-weight:800;text-decoration:none;flex:0 0 auto}
.ai-status{min-height:17px;padding:0 13px 3px;color:#8291a8;font-size:.68rem;flex:0 0 auto}.ai-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.08);background:#081324;flex:0 0 auto;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.ai-chat-input{flex:1;min-width:0;max-height:120px;min-height:44px;padding:11px 12px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:#0b1628;color:#fff;resize:none;outline:none;font:inherit;font-size:.88rem;line-height:1.3}.ai-chat-input:focus{border-color:rgba(92,190,255,.45)}
.ai-send{width:48px;height:44px;flex:0 0 48px;border:0;border-radius:14px;background:linear-gradient(135deg,#7c3aed,#06b6d4);color:#fff;font-size:20px;cursor:pointer}.ai-send:disabled{opacity:.6}
@keyframes aiIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:700px){.ai-launcher{right:12px;bottom:159px;width:58px;height:58px}.ai-greeting{right:82px;bottom:162px;width:min(210px,calc(100vw - 100px));padding:10px 12px}.ai-chat{left:8px;right:8px;bottom:8px;width:auto;height:calc(100dvh - 16px);max-height:none;border-radius:20px}.ai-chat-head{padding:13px 14px}.ai-chat-messages{padding:12px}.ai-avatar{width:32px;height:32px;flex-basis:32px}.ai-msg{font-size:.86rem;max-width:84%}.ai-suggestions{padding-inline:10px}.ai-suggestion{font-size:.69rem}.ai-wa{margin-inline:10px}.ai-chat-form{padding-inline:9px}}
@media(max-width:430px){.ai-chat-title strong{font-size:.92rem}.ai-chat-title small{font-size:.67rem}.ai-chat-head .ai-icon{width:44px;height:44px;flex-basis:44px}.ai-chat-close{font-size:26px}.ai-greeting strong{font-size:.86rem}.ai-greeting span{font-size:.74rem}}
@media(prefers-reduced-motion:reduce){.ai-greeting.show{animation:none}.ai-launcher:hover{transform:none}}
