/* Chatbot AI */
.ai-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  color: #06210f;
  background: linear-gradient(135deg, var(--green), var(--green2));
  box-shadow: 0 18px 50px rgba(34, 197, 94, 0.3);
  font-size: 28px;
}
.ai-chat-toggle:hover { transform: translateY(-2px); }
.ai-chat-toggle { display:grid; place-items:center; }
.ai-chat-toggle-icon { font-size: 28px; line-height:1; color:#06210f; }
.ai-chat {
  position: fixed;
  right: 22px;
  bottom: 98px;
  width: min(390px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 140px));
  display: none;
  flex-direction: column;
  z-index: 119;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(10, 20, 15, 0.98), rgba(9, 19, 14, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}
.ai-chat.is-open { display: flex; }
.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-chat-brand { display:flex; align-items:center; gap:12px; }
.ai-chat-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #06210f;
  font-size: 20px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.28);
}
.ai-chat-title { font-weight: 800; }
.ai-chat-sub { font-size: 12px; color: var(--muted); }
.ai-chat-close {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; font-size: 18px;
}
.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 18px; display:flex; flex-direction:column; gap:12px;
}
.ai-bubble {
  max-width: 88%; padding: 13px 15px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap;
}
.ai-bubble.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
}
.ai-bubble.user {
  align-self: flex-end;
  color: #06210f;
  background: linear-gradient(135deg, var(--green), var(--green2));
}
.ai-quick-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top: 2px; }
.ai-chip {
  padding: 10px 12px; border-radius: 999px; border:1px solid rgba(255,255,255,0.08); cursor:pointer;
  background: rgba(255,255,255,0.04); color: var(--text); font: inherit; font-size: 13px;
}
.ai-chat-form { padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.ai-chat-input-wrap { display:flex; gap:10px; }
.ai-chat-input {
  flex:1; min-height: 54px; max-height: 120px; resize: none; padding: 14px 16px; border-radius: 16px;
  border:1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: var(--text); font: inherit; outline: none;
}
.ai-chat-send {
  min-width: 54px; height: 54px; border:0; border-radius: 16px; cursor:pointer;
  color:#06210f; background: linear-gradient(135deg, var(--green), var(--green2)); font-size: 20px;
}
.ai-typing::after { content: ""; animation: dots 1.2s infinite; }
@keyframes dots { 0% { content: ""; } 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }
@media (max-width: 720px) {
  .ai-chat { right: 12px; left: 12px; width: auto; bottom: 86px; height: min(70vh, 620px); }
  .ai-chat-toggle { right: 12px; bottom: 90px; }
}
