﻿/* АКСИ — общий плавающий чат поддержки для всех 27 лендингов экосистемы.
   Палитра не завязана на переменные конкретного лендинга (у сервисов они
   расходятся или вовсе не объявлены локально) — использует ту же тёмную
   тему бренда АКСИ, что и общий движок блога (aksi/blog/engine.php),
   поэтому виджет выглядит одинаково и предсказуемо на любой странице. */
/* bottom:78px — над плавающей кнопкой переключателя сервисов (.aksi-switch
   в aksi.css сидит в том же углу, right:20px;bottom:20px), а не поверх неё. */
.aksi-sup-fab{position:fixed;right:20px;bottom:78px;z-index:9998;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#7C3AFF,#5B21B6);color:#fff;border:0;cursor:pointer;font-family:'Onest',system-ui,sans-serif;font-weight:700;font-size:14.5px;padding:13px 18px;border-radius:30px;box-shadow:0 14px 34px -12px rgba(124,58,255,.55)}
.aksi-sup-fab:hover{filter:brightness(1.08)}
.aksi-sup-fab svg{width:20px;height:20px}
.aksi-sup-fab .aksi-sup-pulse{width:8px;height:8px;border-radius:50%;background:#34D399;box-shadow:0 0 0 3px rgba(52,211,153,.25)}
.aksi-sup-panel{position:fixed;right:20px;bottom:20px;z-index:9999;width:min(390px,calc(100vw - 32px));height:min(600px,calc(100dvh - 40px));background:#15121F;border:1px solid rgba(255,255,255,.08);border-radius:18px;box-shadow:0 30px 70px -24px rgba(0,0,0,.6);display:none;flex-direction:column;overflow:hidden;font-family:'Onest',system-ui,sans-serif}
.aksi-sup-panel.on{display:flex}
.aksi-sup-head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:linear-gradient(135deg,#241052,#3A1A7A);color:#fff;flex:none}
.aksi-sup-head .aksi-sh-av{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.aksi-sup-head .aksi-sh-av svg{width:22px;height:22px}
.aksi-sup-head .aksi-sh-nm{font-weight:800;font-size:15px;line-height:1.15}
.aksi-sup-head .aksi-sh-st{font-size:11.5px;color:#C9BCF5;display:flex;align-items:center;gap:6px}
.aksi-sup-head .aksi-sh-st .aksi-dot{width:7px;height:7px;border-radius:50%;background:#34D399}
.aksi-sup-head .aksi-sh-x{margin-left:auto;background:transparent;border:0;color:#fff;cursor:pointer;font-size:22px;line-height:1;opacity:.8;padding:2px 6px}
.aksi-sup-head .aksi-sh-x:hover{opacity:1}
.aksi-sup-body{flex:1;overflow-y:auto;padding:16px;background:#0F0D18;display:flex;flex-direction:column;gap:12px}
.aksi-sup-msg{max-width:84%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;color:#F0E6FF}
.aksi-sup-msg.bot{align-self:flex-start;background:#1A1729;border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:4px}
.aksi-sup-msg.me{align-self:flex-end;background:#7C3AFF;color:#fff;border-bottom-right-radius:4px}
.aksi-sup-msg a{color:inherit;text-decoration:underline}
.aksi-sup-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 15px;background:#1A1729;border:1px solid rgba(255,255,255,.08);border-radius:14px;border-bottom-left-radius:4px}
.aksi-sup-typing i{width:7px;height:7px;border-radius:50%;background:#8B7DA8;animation:aksiSupDot 1.2s infinite}
.aksi-sup-typing i:nth-child(2){animation-delay:.2s}.aksi-sup-typing i:nth-child(3){animation-delay:.4s}
@keyframes aksiSupDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.aksi-sup-chips{display:flex;gap:7px;flex-wrap:wrap;padding:0 16px 10px;background:#0F0D18;flex:none}
.aksi-sup-chips button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#C9BCF5;cursor:pointer;font:inherit;font-size:12px;font-weight:600;padding:7px 11px;border-radius:20px}
.aksi-sup-chips button:hover{border-color:#7C3AFF}
.aksi-sup-foot{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(255,255,255,.08);background:#15121F;flex:none}
.aksi-sup-foot textarea{flex:1;resize:none;border:1px solid rgba(255,255,255,.12);border-radius:11px;padding:11px 13px;font-family:inherit;font-size:14px;max-height:110px;color:#F0E6FF;background:#0F0D18}
.aksi-sup-foot textarea::placeholder{color:#6B5D88}
.aksi-sup-foot textarea:focus{outline:none;border-color:#7C3AFF;box-shadow:0 0 0 3px rgba(124,58,255,.25)}
.aksi-sup-send{appearance:none;border:0;cursor:pointer;background:#7C3AFF;color:#fff;border-radius:11px;width:44px;flex:none;display:grid;place-items:center}
.aksi-sup-send:hover{filter:brightness(1.08)}.aksi-sup-send svg{width:20px;height:20px}
.aksi-sup-send[disabled]{opacity:.5;cursor:default}
.aksi-sup-note{font-size:10.5px;color:#9487BC;text-align:center;padding:0 12px 10px;background:#15121F;flex:none}
@media(max-width:480px){
  .aksi-sup-panel{right:8px;bottom:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px)}
  .aksi-sup-fab{right:14px;bottom:64px;padding:12px 15px}.aksi-sup-fab .aksi-lbl{display:none}
}
