/* Zait Chatbot Widget — ABUZ8 AI */
.zait-chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #c9a84c, #e8d48b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
  z-index: 9999;
  transition: all 0.3s;
}
.zait-chat-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(201,168,76,0.4); }
.zait-chat-toggle svg { width: 26px; height: 26px; fill: #0a1628; }

.zait-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 370px;
  height: 520px;
  max-height: 75vh;
  background: #0d1a30;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zaitSlideUp 0.25s ease-out;
}
@keyframes zaitSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.zait-chat-header {
  padding: 16px 20px;
  background: #0a1628;
  border-bottom: 1px solid #1a2e50;
  display: flex;
  align-items: center;
  gap: 12px;
}
.zait-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #1a8a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #0a1628;
}
.zait-chat-title { flex: 1; }
.zait-chat-title strong { display: block; font-size: 13px; color: #f5f0e8; }
.zait-chat-title span { font-size: 10px; color: #1a8a7a; text-transform: uppercase; letter-spacing: 1.5px; }

.zait-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zait-chat-messages::-webkit-scrollbar { width: 4px; }
.zait-chat-messages::-webkit-scrollbar-track { background: transparent; }
.zait-chat-messages::-webkit-scrollbar-thumb { background: #1a2e50; border-radius: 4px; }

.zait-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
.zait-msg a { color: #c9a84c; text-decoration: underline; }
.zait-msg-agent {
  background: rgba(26,46,80,0.5);
  align-self: flex-start;
  color: #e8e4d8;
  border-bottom-left-radius: 4px;
}
.zait-msg-user {
  background: #c9a84c;
  align-self: flex-end;
  color: #0a1628;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.zait-thinking::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #8a9aaa;
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: zaitSpin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes zaitSpin { to { transform: rotate(360deg); } }

.zait-quick-actions {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #1a2e50;
}
.zait-quick-actions button {
  background: rgba(26,46,80,0.4);
  border: 1px solid #1a2e50;
  color: #8a9aaa;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.zait-quick-actions button:hover {
  border-color: #c9a84c;
  color: #c9a84c;
  background: rgba(201,168,76,0.06);
}

.zait-chat-input {
  padding: 12px 16px;
  background: #0a1628;
  border-top: 1px solid #1a2e50;
  display: flex;
  gap: 8px;
}
.zait-chat-input input {
  flex: 1;
  background: rgba(26,46,80,0.3);
  border: 1px solid #1a2e50;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e8e4d8;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.zait-chat-input input:focus { border-color: #1a8a7a; }
.zait-chat-input input::placeholder { color: #4a5a6a; }
.zait-chat-input button {
  background: #c9a84c;
  border: none;
  cursor: pointer;
  color: #0a1628;
  font-size: 16px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background 0.2s;
}
.zait-chat-input button:hover { background: #e8d48b; }

@media (max-width: 480px) {
  .zait-chat-window {
    right: 10px;
    left: 10px;
    bottom: 80px;
    width: auto;
    height: 70vh;
  }
  .zait-chat-toggle {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}
