.ahcc-launch { position: fixed; right: 18px; bottom: 96px; z-index: 9999; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 30px; background: #0f1724; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 10px 24px rgba(15,23,36,.35); transition: transform .25s ease, opacity .25s ease; animation: ahcc-pop .6s cubic-bezier(.2,.9,.3,1.3) both 1s; }
.ahcc-launch svg { width: 18px; height: 18px; }
.ahcc-launch:hover { transform: translateY(-3px); }
.ahcc-launch.hide { opacity: 0; pointer-events: none; transform: scale(.8); }
@keyframes ahcc-pop { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
.ahcc-box { position: fixed; right: 18px; bottom: 96px; z-index: 10000; width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,36,.3); opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; transition: opacity .28s ease, transform .28s ease; font-size: 14px; color: #1b2330; }
.ahcc-box.on { opacity: 1; transform: none; pointer-events: auto; }
.ahcc-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, #0f1724, #3a0d12 70%, #e3202a); }
.ahcc-head small { display: block; opacity: .75; font-size: 11px; }
.ahcc-close { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.ahcc-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7fb; display: flex; flex-direction: column; gap: 10px; }
.ahcc-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; line-height: 1.45; animation: ahcc-in .25s ease both; }
.ahcc-msg.bot { background: #fff; border: 1px solid #e8ecf2; border-bottom-left-radius: 4px; }
.ahcc-msg.me { align-self: flex-end; background: #e3202a; color: #fff; border-bottom-right-radius: 4px; }
.ahcc-msg a { color: #e3202a; font-weight: 600; }
.ahcc-msg small { display: block; margin-top: 6px; color: #7a8597; }
@keyframes ahcc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ahcc-results { display: grid; gap: 6px; margin-top: 8px; }
.ahcc-card { display: flex; gap: 10px; align-items: center; padding: 6px; border: 1px solid #eef1f5; border-radius: 10px; text-decoration: none !important; color: #1b2330 !important; transition: background .2s ease; }
.ahcc-card:hover { background: #fff5f5; }
.ahcc-card img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.ahcc-card b { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 600; }
.ahcc-card em { font-style: normal; font-size: 12px; color: #0f1724; font-weight: 700; }
.ahcc-card i { font-style: normal; font-weight: 600; }
.ahcc-card i.in { color: #15803d; }
.ahcc-card i.out { color: #6b7280; }
.ahcc-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: #fff; }
.ahcc-quick button { border: 1px solid #f0c9cb; background: #fff; color: #e3202a; border-radius: 20px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.ahcc-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.ahcc-form input { flex: 1; padding: 10px 12px; border: 1px solid #dde2ea; border-radius: 12px; font-size: 14px; }
.ahcc-form button { padding: 0 16px; border: 0; border-radius: 12px; background: #e3202a; color: #fff; font-weight: 700; cursor: pointer; }
.ahcc-dots { display: inline-flex; gap: 4px; }
.ahcc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa5b5; animation: ahcc-b 1s infinite ease-in-out; }
.ahcc-dots i:nth-child(2) { animation-delay: .15s; }
.ahcc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ahcc-b { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@media (max-width: 768px) { .ahcc-launch { bottom: 84px; right: 12px; padding: 10px 13px; } .ahcc-launch span { display: none; } .ahcc-box { right: 12px; bottom: 84px; height: 70vh; } }
/* Robot avatar launcher */
.ahcc-launch { padding: 0; width: 62px; height: 62px; border-radius: 50%; background: transparent; box-shadow: 0 10px 26px rgba(15,23,36,.4); overflow: visible; }
.ahcc-launch .ahcc-bot { width: 62px; height: 62px; border-radius: 50%; animation: ahcc-bob 3s ease-in-out infinite; }
.ahcc-tip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: #0f1724; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 14px 14px 4px 14px; box-shadow: 0 8px 22px rgba(15,23,36,.18); animation: ahcc-tipin .5s ease both 2s; }
.ahcc-tip b { color: #e3202a; }
@keyframes ahcc-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ahcc-tipin { from { opacity: 0; transform: translate(10px,-50%); } to { opacity: 1; transform: translate(0,-50%); } }
.ahcc-head .ahcc-bot { width: 38px; height: 38px; flex: none; margin-right: 10px; }
.ahcc-head { gap: 4px; }
.ahcc-title { flex: 1; }
.ahcc-speak { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 10px; width: 32px; height: 32px; cursor: pointer; margin-right: 6px; font-size: 15px; }
.ahcc-speak.on { background: #e3202a; }
.ahcc-mic { flex: none; width: 42px; border: 0; border-radius: 12px; background: #f1f3f7; color: #0f1724; cursor: pointer; display: grid; place-items: center; }
.ahcc-mic svg { width: 20px; height: 20px; }
.ahcc-mic.on { background: #e3202a; color: #fff; animation: ahcc-pulse 1s ease-in-out infinite; }
@keyframes ahcc-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(227,32,42,.5); } 50% { box-shadow: 0 0 0 8px rgba(227,32,42,0); } }
@media (max-width: 768px) { .ahcc-launch { width: 54px; height: 54px; } .ahcc-launch .ahcc-bot { width: 54px; height: 54px; } .ahcc-tip { display: none; } }

/* bot animation: blink, antenna glow, wave + look on hover */
.ahcc-bot .ahcc-eyes{transform-box:fill-box;transform-origin:center;animation:ahcc-blink 4.5s infinite}
.ahcc-bot .ahcc-ant{animation:ahcc-glow 1.8s ease-in-out infinite}
.ahcc-bot .ahcc-arm{transform-box:fill-box;transform-origin:50% 10%;transition:transform .3s}
.ahcc-bot .ahcc-pupil{transition:transform .3s}
.ahcc-launch:hover .ahcc-arm,.ahcc-launch:focus-visible .ahcc-arm,.ahcc-launch.wave .ahcc-arm{animation:ahcc-wave .9s ease-in-out infinite}
.ahcc-launch:hover .ahcc-pupil{animation:ahcc-look 1.2s ease-in-out infinite}
@keyframes ahcc-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes ahcc-glow{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes ahcc-wave{0%,100%{transform:rotate(-150deg)}50%{transform:rotate(-110deg)}}
@keyframes ahcc-look{0%,100%{transform:translate(0,-1.5px)}50%{transform:translate(0,1.5px)}}
@media (prefers-reduced-motion:reduce){.ahcc-bot *{animation:none!important}}
