/* 🔔 CHAT FLOAT BUTTON */
#global-chat-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #000000;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

#global-chat-unread {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
}

/* 💬 CHAT POPUP */
#global-chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 330px;
  height: 440px;
  background: #fff;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  z-index: 10000;
}

/* HEADER */
.chat-header {
  background: #000000;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

/* CHAT BODY */
#chat-box {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f8f9fa;
}

/* EMPTY */
#chat-empty {
  text-align: center;
  margin-top: 80px;
  color: #888;
}

.chat-empty-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

/* MESSAGE */
.chat-msg {
  max-width: 75%;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
}

.chat-me {
  align-self: flex-end;
  text-align: right;
}

.chat-me .chat-bubble {
  background: #000000;
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.chat-other {
  align-self: flex-start;
  text-align: left;
}

.chat-other .chat-bubble {
  background: #e9ecef;
  color: #000;
  border-radius: 16px 16px 16px 4px;
}

.chat-bubble {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-time {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* INPUT */
.chat-input {
  display: flex;
  padding: 8px;
  border-top: 1px solid #ddd;
  gap: 6px;
}

.chat-input button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
}

#emoji-box {
  position: absolute;
  bottom: 60px;
  right: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  z-index: 10001;
}

