.ai-chat-widget{position:fixed;right:24px;bottom:24px;z-index:9999;font-family:system-ui,-apple-system,sans-serif}
.ai-chat-float{width:62px;height:62px;border-radius:50%;border:none;background:var(--accent,#b88a44);color:#fff;cursor:pointer;box-shadow:0 8px 30px rgba(0,0,0,.3);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:1px;display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s}
.ai-chat-float:hover{transform:scale(1.07);box-shadow:0 12px 40px rgba(0,0,0,.4)}
.ai-chat-panel{position:absolute;right:0;bottom:78px;width:min(380px,calc(100vw - 32px));height:520px;max-height:calc(100vh - 120px);background:#10161b;border:1px solid rgba(255,255,255,.12);border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.55);display:none;flex-direction:column;overflow:hidden}
.ai-chat-widget.open .ai-chat-panel{display:flex}
.ai-chat-header{background:#07090b;border-bottom:1px solid rgba(255,255,255,.08);padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:12px 12px 0 0}
.ai-chat-header-left{display:flex;align-items:center;gap:12px}
.ai-chat-avatar{width:36px;height:36px;border-radius:50%;background:var(--accent,#b88a44);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.ai-chat-header strong{display:block;color:#fff;font-size:15px}
.ai-chat-header span{display:block;color:var(--accent,#b88a44);font-size:11px;margin-top:2px}
.ai-chat-header button{background:transparent;color:#aaa;border:1px solid rgba(255,255,255,.12);border-radius:6px;width:30px;height:30px;cursor:pointer;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center}
.ai-chat-header button:hover{color:#fff;border-color:rgba(255,255,255,.3)}
.ai-chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.ai-chat-message{max-width:88%;padding:12px 14px;line-height:1.6;font-size:14px;border-radius:12px;white-space:pre-wrap;animation:msgIn .2s ease}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.ai-chat-message.assistant{align-self:flex-start;background:rgba(255,255,255,.06);color:#e9e0d2;border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:2px}
.ai-chat-message.user{align-self:flex-end;background:rgba(184,138,68,.2);color:#fff;border:1px solid rgba(184,138,68,.35);border-bottom-right-radius:2px}
.ai-chat-typing{align-self:flex-start;color:#888;font-size:13px;padding:8px 4px}
.ai-chat-form{border-top:1px solid rgba(255,255,255,.08);padding:12px;display:flex;gap:8px;background:#07090b;border-radius:0 0 12px 12px}
.ai-chat-form input{flex:1;background:#1c232d;border:1px solid rgba(255,255,255,.10);border-radius:8px;color:#fff;padding:11px 13px;outline:none;font-size:14px;font-family:inherit}
.ai-chat-form input::placeholder{color:#666}
.ai-chat-form input:focus{border-color:var(--accent,#b88a44)}
.ai-chat-form button{background:var(--accent,#b88a44);border:none;border-radius:8px;color:#fff;padding:0 16px;cursor:pointer;font-weight:700;font-size:13px;transition:opacity .2s}
.ai-chat-form button:hover{opacity:.85}
.ai-chat-form button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:560px){.ai-chat-widget{right:14px;bottom:14px}.ai-chat-panel{position:fixed;inset:auto 10px 88px 10px;width:auto;height:70vh}}
