/* *{box-sizing:border-box}
body{margin:0;font-family:Segoe UI,Arial;background:#f4f1fb}

#chatbotBtn{
position:fixed;bottom:20px;right:20px;
width:60px;height:60px;border-radius:50%;
border:none;background:#6b2fb9;color:#fff;
font-size:24px;box-shadow:0 10px 25px rgba(0,0,0,.3);
}

#chatWindow{
position:fixed;bottom:-100%;right:20px;
width:380px;max-width:95%;height:560px;
background:#fff;border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,.35);
display:flex;flex-direction:column;
transition:bottom .4s ease;
}
#chatWindow.open{bottom:90px}

.chat-header{
background:#6b2fb9;color:#fff;
padding:14px;display:flex;
justify-content:space-between;align-items:center;
border-radius:18px 18px 0 0;
}

#chatClose{background:none;border:none;color:#fff;font-size:18px}

#chatBody{
flex:1;padding:14px;overflow-y:auto;
background:#f9f7ff
}

.chat-message{
margin:10px 0;padding:12px 16px;
border-radius:16px;max-width:85%;
font-size:14px
}
.user{background:#e6ddff;margin-left:auto}
.bot{background:#fff;border:1px solid #ddd}

.chat-input{
display:flex;padding:10px;border-top:1px solid #eee
}
.chat-input input{
flex:1;padding:10px;border-radius:10px;border:1px solid #ccc
}
.chat-input button{
margin-left:6px;background:#6b2fb9;color:#fff;
border:none;border-radius:10px;padding:0 18px
}

@media(max-width:480px){
#chatWindow{right:0;width:100%;height:100%;border-radius:0}
#chatWindow.open{bottom:0}
} */
*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Segoe UI', Arial, sans-serif;
  background:linear-gradient(135deg,#f4f1fb,#efe9ff);
  -webkit-font-smoothing:antialiased;
}

/* Floating Button */
#chatbotBtn{
  position:fixed;
  bottom:20px;
  right:20px;
  width:65px;
  height:65px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg,#6b2fb9,#8e4df0);
  color:#fff;
  font-size:26px;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  transition:all .3s ease;
  z-index:10000;
}

#chatbotBtn:hover{
  transform:scale(1.08);
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}

/* Chat Window */
#chatWindow{
  position:fixed;
  bottom:-120%;
  right:20px;
  width:380px;
  max-width:95%;
  height:600px;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(12px);
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  display:flex;
  flex-direction:column;
  transition:all .4s cubic-bezier(.25,.8,.25,1);
  opacity:0;
  transform:translateY(20px);
  z-index:9999;
}

#chatWindow.open{
  bottom:90px;
  opacity:1;
  transform:translateY(0);
}

/* Header */
.chat-header{
  background:linear-gradient(135deg,#6b2fb9,#8e4df0);
  color:#fff;
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:20px 20px 0 0;
  font-size:15px;
  font-weight:600;
  letter-spacing:.3px;
}

.header-right{
  display:flex;
  gap:8px;
  align-items:center;
}

.lang-btn{
  background:#fff;
  color:#6b2fb9;
  border:none;
  font-size:11px;
  padding:5px 8px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  transition:all .2s ease;
}

.lang-btn:hover{
  background:#f0e7ff;
}

#chatClose{
  background:none;
  border:none;
  color:#fff;
  font-size:18px;
  cursor:pointer;
  transition:transform .2s ease;
}

#chatClose:hover{
  transform:scale(1.2);
}

/* Quick Buttons */
.quick-buttons{
  padding:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  background:#f3ecff;
  border-bottom:1px solid #eee;
}

.quick-buttons button{
  padding:7px 12px;
  border:none;
  background:#6b2fb9;
  color:white;
  border-radius:20px;
  font-size:12px;
  cursor:pointer;
  transition:all .2s ease;
}

.quick-buttons button:hover{
  background:#8e4df0;
  transform:translateY(-2px);
}

/* Chat Body */
#chatBody{
  flex:1;
  padding:16px;
  overflow-y:auto;
  background:#f9f7ff;
  scroll-behavior:smooth;
}

/* Custom Scrollbar */
#chatBody::-webkit-scrollbar{
  width:6px;
}
#chatBody::-webkit-scrollbar-thumb{
  background:#cbb7ff;
  border-radius:10px;
}
#chatBody::-webkit-scrollbar-track{
  background:transparent;
}

/* Messages */
.chat-message{
  margin:12px 0;
  padding:12px 16px;
  border-radius:18px;
  max-width:85%;
  font-size:14px;
  line-height:1.5;
  animation:fadeIn .3s ease;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(5px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.user{
  background:linear-gradient(135deg,#e6ddff,#d4c4ff);
  margin-left:auto;
  border-bottom-right-radius:6px;
}

.bot{
  background:#fff;
  border:1px solid #eee;
  border-bottom-left-radius:6px;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

/* Input */
.chat-input{
  display:flex;
  padding:12px;
  border-top:1px solid #eee;
  background:#fff;
}

.chat-input input{
  flex:1;
  padding:12px;
  border-radius:12px;
  border:1px solid #ddd;
  outline:none;
  font-size:14px;
  transition:all .2s ease;
}

.chat-input input:focus{
  border-color:#8e4df0;
  box-shadow:0 0 0 3px rgba(142,77,240,.15);
}

.chat-input button{
  margin-left:8px;
  background:linear-gradient(135deg,#6b2fb9,#8e4df0);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:0 20px;
  cursor:pointer;
  font-weight:600;
  transition:all .2s ease;
}

.chat-input button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 15px rgba(107,47,185,.3);
}
.typing-indicator{
  display:inline-flex;
  gap:4px;
  padding:10px 14px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:18px;
  margin:10px 0;
}

.typing-indicator span{
  width:6px;
  height:6px;
  background:#6b2fb9;
  border-radius:50%;
  animation:blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2){
  animation-delay:.2s;
}
.typing-indicator span:nth-child(3){
  animation-delay:.4s;
}

@keyframes blink{
  0%{opacity:.2;}
  20%{opacity:1;}
  100%{opacity:.2;}
}

/* Mobile */
@media(max-width:480px){
  #chatWindow{
    right:0;
    width:100%;
    height:100%;
    border-radius:0;
  }

  #chatWindow.open{
    bottom:0;
  }
}