/* ===== LIVE CHAT ===== */
.chat-widget{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:3000;
}
.chat-toggle{
  width:64px;
  height:64px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  background:linear-gradient(135deg,#53a8ff,#77d0ff);
  color:#05101c;
  font-size:28px;
  box-shadow:0 16px 40px rgba(0,0,0,.28);
}
.chat-box{
  width:360px;
  max-width:calc(100vw - 28px);
  height:520px;
  max-height:calc(100vh - 110px);
  margin-bottom:14px;
  background:linear-gradient(180deg,rgba(14,31,59,.98),rgba(7,18,32,.98));
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
}
.chat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.chat-header strong{
  display:block;
  color:#fff;
  font-size:16px;
}
.chat-header small{
  color:#9fb1c9;
  font-size:12px;
}
.chat-close{
  width:34px;
  height:34px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.chat-messages{
  flex:1;
  padding:16px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.chat-message{
  max-width:86%;
  padding:12px 14px;
  border-radius:16px;
  line-height:1.55;
  font-size:14px;
}
.chat-message.bot{
  background:rgba(255,255,255,.06);
  color:#eaf2ff;
  align-self:flex-start;
  border:1px solid rgba(255,255,255,.08);
}
.chat-message.user{
  background:linear-gradient(135deg,#53a8ff,#77d0ff);
  color:#05101c;
  align-self:flex-end;
}
.chat-quick-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.chat-quick{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-size:12px;
}
.chat-form{
  display:flex;
  gap:10px;
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.08);
}
.chat-form input{
  flex:1;
  min-width:0;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#fff;
  border-radius:14px;
  padding:12px 14px;
  outline:none;
}
.chat-form input::placeholder{
  color:#8ea6c4;
}
.chat-form button{
  border:none;
  padding:0 16px;
  border-radius:14px;
  background:linear-gradient(135deg,#53a8ff,#77d0ff);
  color:#05101c;
  font-weight:800;
  cursor:pointer;
}
.chat-footer{
  padding:0 16px 16px;
}
.chat-footer a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:14px;
  background:#25D366;
  color:#fff;
  font-weight:800;
  text-decoration:none;
}
@media (max-width: 767px){
  .chat-widget{
    right:14px;
    bottom:14px;
  }
  .chat-toggle{
    width:58px;
    height:58px;
    font-size:24px;
  }
  .chat-box{
    width:min(100vw - 20px, 360px);
    height:66vh;
  }
}
.chat-box[hidden]{
  display:none !important;
}

.chat-messages{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}

.chat-typing{
  opacity:.8;
  font-style:italic;
}