#kissbook-chat {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
}
#kbc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 8px 14px;
}
#kbc-header img {
  height: 36px;
  vertical-align: middle;
}
.kbc-actions button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  margin-left: 6px;
}
#kbc-main {
  display: flex;
  height: 500px;
}
#kbc-user-list {
  width: 200px;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 8px;
}
#kbc-chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#kbc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
#kbc-form {
  display: flex;
  padding: 6px;
  background: rgba(255,255,255,0.04);
}
#kbc-form input {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 6px;
  margin-right: 6px;
}
#kbc-form button {
  border: none;
  border-radius: 6px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  padding: 6px 12px;
}
#kbc-toolbar {
  display: flex;
  gap: 6px;
  padding: 6px;
  justify-content: center;
  background: rgba(255,255,255,0.03);
}
#kbc-toolbar button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  transition: transform .1s;
}
#kbc-toolbar button:hover { transform: scale(1.2); }

/* Notifications */
#kbc-btn-mp { position: relative; }
#kbc-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Popup générique */
.kbc-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  z-index: 9999;
  box-shadow: 0 0 14px rgba(0,0,0,.5);
}
.kbc-popup-header {
  display: flex; justify-content: space-between;
  font-weight: bold;
}
.kbc-popup.shake { animation: shake .6s; }
@keyframes shake {
  0%,100%{transform:translate(-50%,-50%)}
  20%,60%{transform:translate(-52%,-50%)}
  40%,80%{transform:translate(-48%,-50%)}
}

/* Private chat popup */
.kbc-private {
  width: 400px;
  height: 420px;
  display: flex;
  flex-direction: column;
}
.kbc-private .messages {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.kbc-private .form {
  display: flex;
  gap: 6px;
  padding: 6px;
}
.kbc-private input { flex: 1; padding: 6px; border-radius: 4px; border: none; }
.kbc-private button { background:#38bdf8; border:none; border-radius:4px; color:#0f172a; font-weight:bold; cursor:pointer; }
.kbc-private button:hover { background:#7dd3fc; }
