#ava-chat {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 99999;
font-family: 'Inter', system-ui, sans-serif;
font-size: 14px;
line-height: 1.5;
}
.ava-toggle {
position: relative;
width: 56px;
height: 56px;
border-radius: 50%;
background: #6C63FF;
border: none;
cursor: pointer !important;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 24px rgba(108,99,255,.5);
transition: transform .2s ease, box-shadow .2s ease;
z-index: 2;
}
.ava-toggle:hover {
transform: translateY(-2px) scale(1.06);
box-shadow: 0 8px 32px rgba(108,99,255,.6);
}
.ava-toggle svg   { width: 22px; height: 22px; stroke: #fff; pointer-events: none; }
.ava-icon-chat,
.ava-icon-close   { display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ava-badge {
position: absolute;
top: -3px; right: -3px;
width: 18px; height: 18px;
background: #ff4757;
border-radius: 50%;
color: #fff;
font-size: 11px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #0A0A0A;
pointer-events: none;
}
.ava-bubble {
position: absolute;
bottom: 68px;
right: 0;
width: 232px;
background: #1A1A2E;
border: 1px solid rgba(108,99,255,.3);
border-radius: 16px 16px 4px 16px;
padding: 14px 14px 12px;
box-shadow: 0 8px 32px rgba(0,0,0,.45);
animation: ava-pop .3s cubic-bezier(.34,1.56,.64,1) both;
z-index: 1;
}
.ava-bubble p {
margin: 0 0 10px;
font-size: 13px;
line-height: 1.5;
color: rgba(255,255,255,.85);
padding-right: 16px;
}
.ava-bubble strong { color: #fff; }
.ava-bubble-close {
position: absolute;
top: 8px; right: 8px;
background: none;
border: none;
color: rgba(255,255,255,.4);
cursor: pointer;
font-size: 12px;
padding: 2px 5px;
line-height: 1;
border-radius: 4px;
}
.ava-bubble-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.ava-bubble-cta {
background: #6C63FF;
color: #fff;
border: none;
border-radius: 999px;
padding: 8px 16px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
width: 100%;
transition: background .15s;
font-family: inherit;
}
.ava-bubble-cta:hover { background: #5a52e0; }
.ava-window[hidden] { display: none !important; }
.ava-bubble[hidden] { display: none !important; }
.ava-window {
position: absolute;
bottom: 68px;
right: 0;
width: 340px;
height: 500px;
background: #0F0F1E;
border: 1px solid rgba(108,99,255,.2);
border-radius: 20px;
display: flex;
flex-direction: column;
box-shadow: 0 16px 56px rgba(0,0,0,.55);
animation: ava-pop .25s cubic-bezier(.34,1.56,.64,1) both;
overflow: hidden;
z-index: 1;
}
.ava-header {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: #1A1A2E;
border-bottom: 1px solid rgba(255,255,255,.06);
flex-shrink: 0;
}
.ava-avatar {
width: 34px; height: 34px;
border-radius: 50%;
background: linear-gradient(135deg, #6C63FF, #4ECDC4);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 700;
font-size: 14px;
flex-shrink: 0;
}
.ava-header-info { flex: 1; min-width: 0; }
.ava-header strong { display: block; color: #fff; font-size: 14px; }
.ava-status { font-size: 11px; color: rgba(255,255,255,.4); }
.ava-header-close {
width: 28px; height: 28px;
border-radius: 50%;
background: rgba(255,255,255,.06);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: background .15s;
}
.ava-header-close:hover { background: rgba(255,255,255,.14); }
.ava-header-close svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.7); pointer-events: none; }
.ava-messages {
flex: 1;
overflow-y: auto;
padding: 14px 12px;
display: flex;
flex-direction: column;
gap: 10px;
scroll-behavior: smooth;
}
.ava-messages::-webkit-scrollbar { width: 4px; }
.ava-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.ava-msg              { display: flex; }
.ava-msg-assistant    { justify-content: flex-start; }
.ava-msg-user         { justify-content: flex-end; }
.ava-msg-bubble {
max-width: 84%;
padding: 10px 13px;
border-radius: 16px;
font-size: 13.5px;
line-height: 1.55;
}
.ava-msg-assistant .ava-msg-bubble {
background: #1E1E35;
color: rgba(255,255,255,.88);
border-bottom-left-radius: 4px;
}
.ava-msg-user .ava-msg-bubble {
background: #6C63FF;
color: #fff;
border-bottom-right-radius: 4px;
}
.ava-msg-bubble a { color: #4ECDC4; text-decoration: underline; }
.ava-calendly-btn {
display: block;
margin-top: 10px;
background: linear-gradient(135deg, #6C63FF, #4ECDC4);
color: #fff !important;
text-decoration: none !important;
padding: 8px 14px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
text-align: center;
transition: opacity .15s;
}
.ava-calendly-btn:hover { opacity: .88; }
.ava-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.ava-typing span {
width: 6px; height: 6px;
border-radius: 50%;
background: rgba(255,255,255,.4);
animation: ava-bounce .9s infinite ease-in-out;
}
.ava-typing span:nth-child(2) { animation-delay: .15s; }
.ava-typing span:nth-child(3) { animation-delay: .3s; }
.ava-input-row {
display: flex;
gap: 8px;
padding: 10px 12px;
border-top: 1px solid rgba(255,255,255,.06);
flex-shrink: 0;
background: #0F0F1E;
}
.ava-input {
flex: 1;
background: #1A1A2E;
border: 1px solid rgba(255,255,255,.1);
border-radius: 999px;
padding: 9px 14px;
color: #fff;
font-size: 13.5px;
font-family: inherit;
outline: none;
transition: border-color .15s;
min-width: 0;
}
.ava-input::placeholder { color: rgba(255,255,255,.3); }
.ava-input:focus        { border-color: #6C63FF; }
.ava-send {
flex-shrink: 0;
width: 36px; height: 36px;
border-radius: 50%;
background: #6C63FF;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background .15s, transform .15s;
align-self: center;
}
.ava-send:hover      { background: #5a52e0; transform: scale(1.08); }
.ava-send:disabled   { opacity: .45; cursor: default; transform: none; }
.ava-send svg        { width: 16px; height: 16px; stroke: #fff; pointer-events: none; }
@keyframes ava-pop {
from { opacity: 0; transform: scale(.92) translateY(8px); }
to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes ava-bounce {
0%, 80%, 100% { transform: scale(.75); opacity: .35; }
40%            { transform: scale(1.1); opacity: 1; }
}
@media (max-width: 500px) {
#ava-chat    { bottom: 16px; right: 16px; }
.ava-window  {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
bottom: 0;
right: 0;
border-radius: 0;
border: none;
}
.ava-bubble  { width: 200px; right: 0; }
.ava-toggle  { position: fixed; bottom: 16px; right: 16px; }
}