/* ==========================================================================
   Website assistant (floating chat)
   ========================================================================== */
.omni-chat { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 150; font-size: 15px; }
.omni-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding-inline: 8px 20px;
  border-radius: var(--radius-pill);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(20, 30, 52, 0.95), rgba(8, 14, 28, 0.95)) padding-box,
    linear-gradient(120deg, var(--gold-2), rgba(240, 169, 30, 0.3) 40%, rgba(61, 139, 255, 0.55) 75%, var(--ice)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(240, 169, 30, 0.6);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.omni-chat.is-ready .omni-chat__launcher { transform: none; opacity: 1; }
.omni-chat__launcher:hover { box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.8), 0 0 40px -8px rgba(240, 169, 30, 0.85); }
.omni-chat__launcher-orb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #1c1303;
  background: radial-gradient(circle at 35% 30%, #fff, #fff4dc 55%, var(--gold-3));
  box-shadow: 0 0 16px rgba(255, 227, 163, 0.6);
}
.omni-chat__launcher-orb .icon { width: 20px; height: 20px; fill: currentColor; stroke-width: 1; }
.omni-chat__launcher-text { font-weight: 500; white-space: nowrap; }
.omni-chat.is-open .omni-chat__launcher { display: none; }

.omni-chat__panel {
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 40px));
  border-radius: var(--radius-l);
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.97), rgba(5, 10, 20, 0.98));
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 80px -30px rgba(240, 169, 30, 0.35);
  overflow: hidden;
  animation: omni-chat-in 360ms var(--ease-out);
}
@keyframes omni-chat-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.omni-chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; border-block-end: 1px solid var(--line); }
.omni-chat__mark { width: 34px; height: 34px; object-fit: contain; }
.omni-chat__who { flex: 1; min-width: 0; }
.omni-chat__title { margin: 0; color: var(--text); font-weight: 500; line-height: 1.2; }
.omni-chat__status { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.omni-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success, #5fe0a4); box-shadow: 0 0 8px var(--success, #5fe0a4); }
.omni-chat__icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text-2); }
.omni-chat__icon-btn:hover { color: var(--text); background: rgba(207, 226, 255, 0.08); }
.omni-chat__icon-btn .icon { width: 18px; height: 18px; }

.omni-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.omni-chat__msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; line-height: 1.5; font-size: 14.5px; overflow-wrap: anywhere; }
.omni-chat__msg p { margin: 0; }
.omni-chat__msg p + p, .omni-chat__msg p + ul, .omni-chat__msg ul + p { margin-block-start: 8px; }
.omni-chat__msg ul { margin: 6px 0 0; padding-inline-start: 18px; }
.omni-chat__msg li + li { margin-block-start: 3px; }
.omni-chat__msg a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; unicode-bidi: isolate; }
.omni-chat__msg--bot { align-self: flex-start; color: var(--text-2); background: rgba(207, 226, 255, 0.06); border: 1px solid var(--line); border-end-start-radius: 6px; }
.omni-chat__msg--bot strong { color: var(--text); }
.omni-chat__msg--me { align-self: flex-end; color: #1c1303; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-end-end-radius: 6px; }
.omni-chat__msg.is-error { color: #ffd5cd; background: rgba(220, 70, 50, 0.14); border-color: rgba(255, 120, 100, 0.3); }
.omni-chat__typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.omni-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: omni-chat-dot 1.1s infinite ease-in-out; }
.omni-chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.omni-chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes omni-chat-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.omni-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.omni-chat__chip { padding: 7px 12px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border); background: rgba(207, 226, 255, 0.05); color: var(--text-2); font-size: 13px; text-align: start; }
.omni-chat__chip:hover { color: var(--text); border-color: rgba(255, 201, 90, 0.45); background: rgba(240, 169, 30, 0.08); }

.omni-chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 8px 8px 8px 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(3, 6, 13, 0.6); }
.omni-chat__form:focus-within { border-color: rgba(255, 201, 90, 0.55); box-shadow: 0 0 0 4px rgba(240, 169, 30, 0.12); }
.omni-chat__input { flex: 1; min-height: 24px; max-height: 140px; resize: none; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; line-height: 1.45; padding: 6px 0; }
.omni-chat__input::placeholder { color: var(--text-3); }
.omni-chat__send { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; color: #1c1303; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.omni-chat__send:disabled { opacity: 0.5; }
.omni-chat__send .icon { width: 18px; height: 18px; }
.omni-chat__notice { margin: 8px 16px 12px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.omni-chat__notice a { color: var(--text-2); }

@media (max-width: 560px) {
  .omni-chat { inset-block-end: 14px; inset-inline-end: 14px; }
  .omni-chat__launcher-text { display: none; }
  .omni-chat__launcher { padding-inline: 7px; width: 54px; justify-content: center; }
  .omni-chat.is-open { inset: 0; }
  .omni-chat__panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .omni-chat__panel { animation: none; }
  .omni-chat__typing i { animation: none; opacity: 0.6; }
}
