#wz-chat-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #ffd700; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
  transition: transform .2s, box-shadow .2s;
}
#wz-chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,.55); }
#wz-chat-btn i { font-size: 22px; color: #1a1a1a; }
#wz-chat-btn .wz-badge {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #ef4444; border: 2px solid #0a0a0f;
  display: none;
}

#wz-chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 9001;
  width: 360px; max-width: calc(100vw - 32px);
  background: #16161f; border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; box-shadow: 0 16px 60px rgba(0,0,0,.7);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.97); opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
  font-family: 'Poppins', sans-serif;
}
#wz-chat-panel.open {
  transform: translateY(0) scale(1); opacity: 1; pointer-events: all;
}

.wz-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: #0f0f18;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.wz-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#7851a9,#ffd700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wz-chat-avatar i { font-size: 15px; color: #fff; }
.wz-chat-head-text { flex: 1; min-width: 0; }
.wz-chat-head-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.2; }
.wz-chat-head-sub { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }
.wz-chat-close {
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: 18px; cursor: pointer; padding: 4px; line-height: 1;
  transition: color .15s;
}
.wz-chat-close:hover { color: #fff; }

#wz-chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 340px; min-height: 120px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.wz-msg {
  max-width: 86%; padding: 10px 13px; border-radius: 14px;
  font-size: 13px; line-height: 1.55; word-break: break-word;
  animation: wzFadeUp .18s ease both;
}
@keyframes wzFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wz-msg.bot {
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.88);
  border-radius: 14px 14px 14px 4px; align-self: flex-start;
}
.wz-msg.bot a { color: #ffd700; text-decoration: none; }
.wz-msg.bot a:hover { text-decoration: underline; }
.wz-msg.user {
  background: #ffd700; color: #1a1a1a; font-weight: 500;
  border-radius: 14px 14px 4px 14px; align-self: flex-end;
}
.wz-msg.typing {
  display: flex; gap: 5px; padding: 12px 14px; align-items: center;
}
.wz-msg.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  animation: wzDot 1.2s ease-in-out infinite;
}
.wz-msg.typing span:nth-child(2) { animation-delay: .2s; }
.wz-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wzDot {
  0%,80%,100% { transform: scale(.6); opacity:.4; }
  40%          { transform: scale(1);  opacity:1; }
}

.wz-chat-foot {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; gap: 8px; align-items: flex-end;
}
#wz-chat-input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; color: #fff; font-family: 'Poppins', sans-serif;
  font-size: 16px; padding: 10px 13px; resize: none; outline: none;
  line-height: 1.45; max-height: 100px; overflow-y: auto;
  transition: border-color .15s;
}
#wz-chat-input::placeholder { color: rgba(255,255,255,.3); }
#wz-chat-input:focus { border-color: rgba(255,215,0,.4); }
#wz-chat-send {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: #ffd700; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
}
#wz-chat-send:hover { background: #ffe033; }
#wz-chat-send:active { transform: scale(.94); }
#wz-chat-send i { font-size: 14px; color: #1a1a1a; }
#wz-chat-send:disabled { opacity: .4; cursor: default; }

.wz-chat-starters {
  padding: 0 14px 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.wz-starter {
  font-size: 11.5px; font-family: 'Poppins', sans-serif;
  padding: 5px 11px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.wz-starter:hover { background: rgba(255,215,0,.1); border-color: rgba(255,215,0,.3); color: #ffd700; }
