.float-btns {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-fab {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  border: none;
  outline: none;
}

.wa-fab:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.wa-fab svg { width: 30px; height: 30px; fill: white; }

.wa-fab::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 16px;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--blue-deep);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--blue-deep);
}

.wa-fab:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

.wa-notif {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #FF3B30;
  border-radius: 50%;
  border: 2px solid white;
  animation: notifBounce 1.5s ease-in-out infinite;
}

@keyframes notifBounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.wa-chat {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 340px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(8,45,78,0.18), 0 4px 16px rgba(0,0,0,0.1);
  z-index: 9998;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}

.wa-chat.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.wa-header {
  background: linear-gradient(135deg, #075E54, #128C7E);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 44px; height: 44px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.wa-header-info { flex: 1; }
.wa-header-info strong { display: block; color: white; font-size: 15px; font-family: 'DM Sans', sans-serif; }
.wa-status { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.8); font-size: 12px; font-family: 'DM Sans', sans-serif; }
.wa-status-dot { width: 8px; height: 8px; background: #25D366; border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.wa-close-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 20px; line-height: 1;
  padding: 4px; transition: color .2s;
}

.wa-close-btn:hover { color: white; }

.wa-messages {
  background: #ECE5DD url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='.03'%3E%3Ccircle cx='200' cy='200' r='180' fill='%23075E54'/%3E%3C/g%3E%3C/svg%3E");
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.wa-messages::-webkit-scrollbar { width: 4px; }
.wa-messages::-webkit-scrollbar-track { background: transparent; }
.wa-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

.msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  animation: msgPop .25s ease;
}

@keyframes msgPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.msg-bot {
  background: white;
  color: #1a1a1a;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  align-self: flex-start;
}

.msg-time {
  font-size: 10px;
  color: #999;
  text-align: right;
  margin-top: 3px;
  display: block;
}

.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.wa-chip {
  background: white;
  border: 1.5px solid #25D366;
  color: #075E54;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}

.wa-chip:hover { background: #25D366; color: white; transform: scale(1.04); }
.wa-chip:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.msg-typing {
  background: white;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: none;
}

.msg-typing.show { display: flex; gap: 4px; align-items: center; }
.dot-typing {
  width: 7px; height: 7px;
  background: #999;
  border-radius: 50%;
  animation: typing .9s ease-in-out infinite;
}

.dot-typing:nth-child(2) { animation-delay: .15s; }
.dot-typing:nth-child(3) { animation-delay: .3s; }

@keyframes typing { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

.wa-footer {
  padding: 12px 14px;
  background: #F0F0F0;
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e0e0e0;
}

.wa-input {
  flex: 1;
  background: white;
  border: none;
  border-radius: 22px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  color: #1a1a1a;
}

.wa-input::placeholder { color: #aaa; }

.wa-send {
  width: 40px; height: 40px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}

.wa-send:hover { background: #1ebe5d; transform: scale(1.08); }
.wa-send svg { width: 18px; height: 18px; fill: white; }

.wa-open-btn {
  display: block;
  background: #25D366;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  transition: background .2s;
  border: none;
  cursor: pointer;
  width: 100%;
}

.wa-open-btn:hover { background: #1ebe5d; }
