#mh-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Poppins, sans-serif;
}

#mh-chat-toggle {
  background: #f9d342;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0,0,0,.45);
}

#mh-chat-box {
  display: none;
  width: 340px;
  height: 520px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,.55);
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}

#mh-chat-box.open { display: block; }

#mh-chat-header{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px;
  background: rgba(10,10,10,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#mh-chat-title{ font-weight: 700; font-size: 14px; }
#mh-chat-subtitle{ font-size: 11px; opacity: 0.75; margin-top: 2px; }

#mh-chat-close{
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.85;
}
#mh-chat-close:hover{ opacity: 1; }

/* Quick buttons */
#mh-chat-quick{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mh-qbtn{
  border: 1px solid rgba(249,211,66,0.35);
  background: rgba(249,211,66,0.12);
  color: #fff;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.mh-qbtn:hover{
  transform: translateY(-1px);
  background: rgba(249,211,66,0.18);
  border-color: rgba(249,211,66,0.55);
}

#mh-chat-messages {
  padding: 12px;
  height: 350px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(249,211,66,0.08), transparent 60%),
    rgba(0,0,0,0.25);
}

#mh-chat-messages .bot {
  background: rgba(255,255,255,0.07);
  padding: 9px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  white-space: pre-wrap;
}

#mh-chat-messages .user {
  background: rgba(249,211,66,0.20);
  color: #fff;
  padding: 9px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-align: right;
  border: 1px solid rgba(249,211,66,0.35);
  white-space: pre-wrap;
}

#mh-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.85);
}

#mh-chat-form input {
  flex: 1;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

#mh-chat-form button {
  background: #f9d342;
  border: none;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  color: #111;
}
#mh-chat-form button:disabled { opacity: 0.6; cursor: not-allowed; }

#mh-chat-hp { position:absolute; left:-9999px; width:1px; height:1px; }

@media (max-width: 480px){
  #mh-chat{ right: 12px; bottom: 12px; }
  #mh-chat-box{ width: calc(100vw - 24px); height: 72vh; }
  #mh-chat-messages{ height: calc(72vh - 160px); }
}
