.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 45;
  width: 58px;
  height: 58px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #4d8cff 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30,107,255,0.38);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
}
.chat-launcher__core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  animation: chatBob 2.8s ease-in-out infinite;
}
.chat-launcher .icon {
  width: 24px;
  height: 24px;
  animation: chatIconWiggle 4.8s ease-in-out infinite;
}
.chat-launcher__rings,
.chat-launcher__rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.chat-launcher__rings span {
  border: 2px solid rgba(77, 140, 255, 0.55);
  animation: chatRing 2.4s ease-out infinite;
}
.chat-launcher__rings span:last-child {
  animation-delay: 1.2s;
}
.chat-launcher__dot {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px #fff;
  animation: chatDot 1.6s ease-in-out infinite;
}
.chat-launcher:hover {
  transform: scale(1.07);
  box-shadow: 0 16px 36px rgba(30,107,255,0.5);
}
.chat-launcher:hover .chat-launcher__core,
.chat-launcher:hover .icon { animation-play-state: paused; }
.chat-launcher.is-open {
  transform: rotate(8deg) scale(0.96);
  background: var(--blue-deep);
}
.chat-launcher.is-open .chat-launcher__core,
.chat-launcher.is-open .icon,
.chat-launcher.is-open .chat-launcher__rings span { animation: none; }
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 148px;
  z-index: 46;
  width: min(380px, calc(100vw - 32px));
  height: 520px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.chat-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.chat-panel-head {
  padding: 12px 14px;
  background: var(--blue);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.chat-panel-head button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.2rem; }
.chat-status { font-size: 0.78rem; opacity: 0.9; }
.chat-panel-body { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-panel-form, .chat-panel-compose {
  padding: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  background: var(--bg);
}
@keyframes chatRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes chatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes chatIconWiggle {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-12deg); }
  82% { transform: rotate(10deg); }
  88% { transform: rotate(-6deg); }
  94% { transform: rotate(4deg); }
}
@keyframes chatDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(34,197,94,0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-launcher__core,
  .chat-launcher .icon,
  .chat-launcher__rings span,
  .chat-launcher__dot,
  .chat-panel {
    animation: none !important;
    transition: none !important;
  }
}
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: var(--radius);
  display: none;
}
.cookie-banner.open { display: block; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,16,30,0.45);
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}
.cookie-modal.open { display: grid; }
.cookie-modal .form-card { max-width: 540px; width: 100%; }
.cookie-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--card);
}
.cookie-choice input { width: auto; margin-top: 3px; flex-shrink: 0; }
.cookie-choice strong { display: block; font-size: 0.92rem; }
.cookie-choice small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 3px; line-height: 1.4; }
.cookie-choice-analytics {
  border-color: rgba(30, 107, 255, 0.35);
  background: var(--blue-soft, rgba(30, 107, 255, 0.08));
}
