/* ═══════════════════════════════════════════
   BestMom Community — Styles v1.0
   RTL · Mobile-first · BestMom brand
═══════════════════════════════════════════ */

:root {
  --bmc-pink:    #E8457A;
  --bmc-purple:  #7C3AED;
  --bmc-bg:      #F8F4F9;
  --bmc-surface: #FFFFFF;
  --bmc-border:  #EDE8F0;
  --bmc-text:    #1A1A2E;
  --bmc-muted:   #7B7B9D;
  --bmc-radius:  16px;
  --bmc-shadow:  0 2px 12px rgba(0,0,0,0.07);
}

#bmc-app {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bmc-bg);
  min-height: 60vh;
  direction: ltr;
  color: var(--bmc-text);
  max-width: 700px;
  margin: 0 auto;
}

/* ── LOADING ── */
.bmc-loading-screen {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
}
.bmc-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--bmc-border);
  border-top-color: var(--bmc-pink);
  border-radius: 50%;
  animation: bmc-spin 0.7s linear infinite;
}
@keyframes bmc-spin { to { transform: rotate(360deg); } }

/* ── TOPBAR ── */
.bmc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bmc-surface);
  border-bottom: 1px solid var(--bmc-border);
  position: sticky; top: 0; z-index: 50;
}
.bmc-topbar-brand {
  font-weight: 800; font-size: 17px; color: var(--bmc-pink);
  display: flex; align-items: center; gap: 6px;
}
.bmc-topbar-actions {
  display: flex; align-items: center; gap: 10px;
}
.bmc-notif-btn {
  background: none; border: none; font-size: 20px;
  cursor: pointer; position: relative; padding: 4px;
  border-radius: 8px; transition: background .15s;
}
.bmc-notif-btn:hover { background: var(--bmc-bg); }
.bmc-notif-badge {
  position: absolute; top: -2px; left: -2px;
  background: var(--bmc-pink); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.bmc-user-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
}
.bmc-user-chip img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bmc-pink);
}
.bmc-user-chip-initial {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bmc-pink), var(--bmc-purple));
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.bmc-chip-level {
  font-size: 11px; color: var(--bmc-muted);
  background: var(--bmc-bg);
  padding: 2px 8px; border-radius: 10px;
  border: 1px solid var(--bmc-border);
}

/* ── ROOMS STRIP ── */
.bmc-rooms-strip {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; background: var(--bmc-surface);
  border-bottom: 1px solid var(--bmc-border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bmc-rooms-strip::-webkit-scrollbar { display: none; }
.bmc-room-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  border: 2px solid var(--bmc-border);
  background: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all .15s; color: var(--bmc-text);
  flex-shrink: 0;
}
.bmc-room-btn:hover { border-color: var(--bmc-pink); color: var(--bmc-pink); }
.bmc-room-btn.active {
  background: var(--bmc-pink); color: #fff;
  border-color: var(--bmc-pink);
}

/* ── LAYOUT ── */
.bmc-layout { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* ── COMPOSE CARD ── */
.bmc-compose-card {
  background: var(--bmc-surface);
  border-radius: var(--bmc-radius);
  box-shadow: var(--bmc-shadow);
  overflow: hidden;
}
.bmc-compose-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; cursor: pointer;
}
.bmc-compose-preview img,
.bmc-compose-preview .bmc-user-chip-initial {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
}
.bmc-compose-placeholder {
  flex: 1; background: var(--bmc-bg);
  border: 1px solid var(--bmc-border);
  border-radius: 20px; padding: 9px 16px;
  font-size: 14px; color: var(--bmc-muted);
}
.bmc-compose-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bmc-compose-type-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.bmc-type-btn {
  padding: 6px 14px; border-radius: 20px;
  border: 2px solid var(--bmc-border);
  background: #fff; font-size: 13px; cursor: pointer;
  font-weight: 600; transition: all .15s; color: var(--bmc-text);
}
.bmc-type-btn.active, .bmc-type-btn:hover {
  border-color: var(--bmc-pink); color: var(--bmc-pink);
  background: rgba(232,69,122,0.05);
}
.bmc-compose-textarea {
  width: 100%; border: 1px solid var(--bmc-border);
  border-radius: 12px; padding: 12px;
  font-family: inherit; font-size: 14px; resize: none;
  min-height: 90px;
  transition: border-color .15s;
}
.bmc-compose-textarea:focus { outline: none; border-color: var(--bmc-pink); }

/* Poll inputs */
.bmc-poll-options { display: flex; flex-direction: column; gap: 8px; }
.bmc-poll-option-row { display: flex; gap: 8px; align-items: center; }
.bmc-poll-option-input {
  flex: 1; border: 1px solid var(--bmc-border);
  border-radius: 10px; padding: 9px 12px;
  font-family: inherit; font-size: 13px;
}
.bmc-poll-option-input:focus { outline: none; border-color: var(--bmc-pink); }
.bmc-poll-remove-btn {
  background: none; border: none; font-size: 16px;
  cursor: pointer; color: var(--bmc-muted); padding: 4px;
}
.bmc-add-option-btn {
  background: none; border: 1px dashed var(--bmc-border);
  border-radius: 10px; padding: 8px 14px;
  font-size: 13px; cursor: pointer; color: var(--bmc-muted);
  font-family: inherit; transition: all .15s;
}
.bmc-add-option-btn:hover { border-color: var(--bmc-pink); color: var(--bmc-pink); }

/* Image upload */
.bmc-img-upload-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px dashed var(--bmc-border);
  border-radius: 12px; cursor: pointer;
  font-size: 13px; color: var(--bmc-muted);
  transition: all .15s;
}
.bmc-img-upload-label:hover { border-color: var(--bmc-pink); color: var(--bmc-pink); }
.bmc-img-preview {
  width: 100%; max-height: 200px; object-fit: cover;
  border-radius: 10px; margin-top: 4px;
}

.bmc-compose-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.bmc-room-select {
  border: 1px solid var(--bmc-border); border-radius: 10px;
  padding: 7px 12px; font-family: inherit; font-size: 13px;
  background: #fff;
}
.bmc-room-select:focus { outline: none; border-color: var(--bmc-pink); }
.bmc-compose-actions { display: flex; gap: 8px; }
.bmc-cancel-btn {
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--bmc-border); background: #fff;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.bmc-submit-btn {
  padding: 8px 20px; border-radius: 10px;
  background: var(--bmc-pink); color: #fff;
  border: none; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: opacity .15s;
}
.bmc-submit-btn:hover { opacity: .88; }
.bmc-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Login prompt */
.bmc-login-prompt {
  padding: 16px; text-align: center;
  color: var(--bmc-muted); font-size: 14px;
}
.bmc-login-link {
  color: var(--bmc-pink); font-weight: 700; text-decoration: none;
}

/* ── POST CARD ── */
.bmc-post-card {
  background: var(--bmc-surface);
  border-radius: var(--bmc-radius);
  box-shadow: var(--bmc-shadow);
  overflow: hidden;
  animation: bmc-slide-in .25s ease;
}
@keyframes bmc-slide-in {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}
.bmc-post-header {
  display: flex; align-items: flex-start;
  padding: 14px 16px 10px; gap: 10px;
}
.bmc-post-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--bmc-border);
}
.bmc-post-avatar-init {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bmc-pink), var(--bmc-purple));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bmc-post-meta { flex: 1; min-width: 0; }
.bmc-post-author-name { font-weight: 700; font-size: 14px; }
.bmc-post-author-badges {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px;
}
.bmc-level-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(232,69,122,0.1); color: var(--bmc-pink);
}
.bmc-audio-badge {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(124,58,237,0.1); color: var(--bmc-purple);
}
.bmc-post-time { font-size: 11px; color: var(--bmc-muted); margin-top: 1px; }
.bmc-post-menu {
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--bmc-muted); padding: 4px;
  border-radius: 6px; transition: background .15s; margin-right: auto;
}
.bmc-post-menu:hover { background: var(--bmc-bg); }

.bmc-post-body { padding: 0 16px 12px; }
.bmc-post-text {
  font-size: 14px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word;
}
.bmc-post-image {
  width: 100%; max-height: 340px;
  object-fit: cover; border-radius: 10px;
  margin-top: 10px; cursor: zoom-in;
  display: block;
}

/* Room pill on post */
.bmc-post-room-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
  background: var(--bmc-bg);
  border: 1px solid var(--bmc-border);
  margin-bottom: 8px; color: var(--bmc-muted);
}

/* ── POLL ── */
.bmc-poll-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bmc-poll-opt {
  position: relative; border-radius: 10px;
  border: 2px solid var(--bmc-border);
  background: #fff; cursor: pointer;
  overflow: hidden; transition: border-color .15s;
  min-height: 42px;
}
.bmc-poll-opt:hover:not(.voted) { border-color: var(--bmc-pink); }
.bmc-poll-opt.selected { border-color: var(--bmc-pink); }
.bmc-poll-opt.voted { cursor: default; }
.bmc-poll-fill {
  position: absolute; top:0; right:0; bottom:0;
  background: rgba(232,69,122,0.10);
  transition: width .4s ease; pointer-events: none;
}
.bmc-poll-opt-inner {
  position: relative; display: flex; align-items: center;
  padding: 10px 14px; gap: 8px; z-index: 1;
}
.bmc-poll-opt-text { font-size: 13px; font-weight: 600; flex: 1; }
.bmc-poll-opt-pct {
  font-size: 12px; font-weight: 700; color: var(--bmc-pink);
  opacity: 0; transition: opacity .2s;
}
.bmc-poll-opt.voted .bmc-poll-opt-pct { opacity: 1; }
.bmc-poll-total { font-size: 11px; color: var(--bmc-muted); margin-top: 4px; }

/* ── POST ACTIONS ── */
.bmc-post-actions {
  display: flex; align-items: center; gap: 0;
  padding: 4px 10px 12px;
  border-top: 1px solid var(--bmc-border);
}
.bmc-action-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 10px;
  background: none; border: none;
  font-size: 13px; color: var(--bmc-muted);
  cursor: pointer; font-family: inherit; font-weight: 600;
  transition: all .15s;
}
.bmc-action-btn:hover { background: var(--bmc-bg); color: var(--bmc-text); }
.bmc-action-btn.liked { color: var(--bmc-pink); }
.bmc-action-btn.liked .bmc-like-icon { animation: bmc-pop .25s ease; }
@keyframes bmc-pop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* ── COMMENTS MODAL ── */
.bmc-comments-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.bmc-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.bmc-modal-sheet {
  position: relative; z-index: 1;
  background: #fff; width: 100%; max-width: 700px;
  border-radius: 20px 20px 0 0;
  max-height: 80vh; display: flex; flex-direction: column;
  animation: bmc-sheet-up .25s ease;
}
@keyframes bmc-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.bmc-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--bmc-border);
  flex-shrink: 0;
}
.bmc-modal-title { font-weight: 700; font-size: 16px; }
.bmc-modal-close {
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--bmc-muted); padding: 4px;
}
.bmc-modal-comments-list {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.bmc-comment-item {
  display: flex; gap: 10px; align-items: flex-start;
}
.bmc-comment-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.bmc-comment-avatar-init {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bmc-pink), var(--bmc-purple));
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bmc-comment-bubble {
  background: var(--bmc-bg); border-radius: 12px;
  padding: 10px 12px; flex: 1; min-width: 0;
}
.bmc-comment-name { font-weight: 700; font-size: 12px; margin-bottom: 3px; }
.bmc-comment-text { font-size: 13px; line-height: 1.5; word-break: break-word; }
.bmc-comment-time { font-size: 11px; color: var(--bmc-muted); margin-top: 4px; }
.bmc-comments-empty {
  text-align: center; color: var(--bmc-muted);
  font-size: 14px; padding: 24px 0;
}
.bmc-modal-compose {
  padding: 12px 16px;
  border-top: 1px solid var(--bmc-border);
  display: flex; gap: 10px; align-items: flex-end;
  flex-shrink: 0;
}
.bmc-comment-input {
  flex: 1; border: 1px solid var(--bmc-border);
  border-radius: 12px; padding: 10px 14px;
  font-family: inherit; font-size: 13px;
  resize: none; min-height: 42px; max-height: 120px;
}
.bmc-comment-input:focus { outline: none; border-color: var(--bmc-pink); }
.bmc-comment-send {
  background: var(--bmc-pink); border: none; color: #fff;
  border-radius: 12px; padding: 10px 16px;
  font-size: 14px; cursor: pointer;
  transition: opacity .15s;
}
.bmc-comment-send:hover { opacity: .88; }
.bmc-comment-send:disabled { opacity: .5; cursor: not-allowed; }
.bmc-comment-login-note {
  color: var(--bmc-muted); font-size: 13px; padding: 12px 16px;
  border-top: 1px solid var(--bmc-border); text-align: center;
}

/* ── NOTIFICATIONS PANEL ── */
.bmc-notif-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.3);
}
.bmc-notif-panel {
  position: fixed; top: 56px; left: 16px;
  width: 300px; max-height: 400px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 100; display: flex; flex-direction: column;
  overflow: hidden; animation: bmc-fade-in .18s ease;
}
@keyframes bmc-fade-in { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.bmc-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--bmc-border);
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.bmc-notif-header button {
  background: none; border: none; font-size: 16px;
  cursor: pointer; color: var(--bmc-muted);
}
.bmc-notif-list { overflow-y: auto; flex: 1; }
.bmc-notif-item {
  padding: 12px 16px; border-bottom: 1px solid var(--bmc-border);
  font-size: 13px; line-height: 1.4;
}
.bmc-notif-item.unread { background: rgba(232,69,122,0.04); }
.bmc-notif-item-msg { color: var(--bmc-text); }
.bmc-notif-item-time { font-size: 11px; color: var(--bmc-muted); margin-top: 3px; }
.bmc-notif-empty {
  text-align: center; color: var(--bmc-muted);
  font-size: 13px; padding: 24px 16px;
}

/* ── LIGHTBOX ── */
.bmc-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.bmc-lightbox-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85); cursor: pointer;
}
.bmc-lightbox-img {
  position: relative; max-width: 95vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  cursor: default;
}

/* ── LOAD MORE ── */
.bmc-load-more-wrap { text-align: center; padding: 8px 0 24px; }
.bmc-load-more-btn {
  background: #fff; border: 1px solid var(--bmc-border);
  border-radius: 20px; padding: 10px 28px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; color: var(--bmc-text);
  transition: all .15s;
}
.bmc-load-more-btn:hover { border-color: var(--bmc-pink); color: var(--bmc-pink); }

/* ── EMPTY ── */
.bmc-feed-empty {
  text-align: center; padding: 48px 16px;
  background: var(--bmc-surface); border-radius: var(--bmc-radius);
}
.bmc-empty-icon { font-size: 48px; margin-bottom: 12px; }
.bmc-empty-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.bmc-empty-sub { color: var(--bmc-muted); font-size: 14px; }

/* ── DELETE MENU ── */
.bmc-post-menu-dropdown {
  position: absolute; background: #fff;
  border: 1px solid var(--bmc-border);
  border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 30; min-width: 130px; overflow: hidden;
}
.bmc-post-menu-item {
  padding: 10px 16px; font-size: 13px; cursor: pointer;
  font-family: inherit; border: none; background: none;
  width: 100%; text-align: right; display: block;
  transition: background .12s;
}
.bmc-post-menu-item:hover { background: var(--bmc-bg); }
.bmc-post-menu-item.danger { color: #EF4444; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .bmc-modal-sheet { max-height: 90vh; }
  .bmc-notif-panel { width: calc(100vw - 32px); left: 16px; }
}

/* Profile chip link */
.bmc-profile-chip-link {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: inherit;
}

/* Chip as anchor */
a.bmc-user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════════════ */
.bmc-bottomnav {
  display: flex;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1.5px solid #f0e8ff;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bmc-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  position: relative;
  transition: color .15s;
}
.bmc-nav-btn.is-active { color: #E8457A; }
.bmc-nav-btn svg { transition: transform .15s; }
.bmc-nav-btn.is-active svg { transform: scale(1.1); }
.bmc-nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  background: #E8457A; color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════
   PANELS (Friends / Groups / Messages)
═══════════════════════════════════════════════════ */
.bmc-panel {
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
  /* display controlled by JS */
}
.bmc-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1.5px solid #f5f0ff;
}
.bmc-panel-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a1d2e;
}

/* ═══════════════════════════════════════════════════
   FRIENDS
═══════════════════════════════════════════════════ */
.bmc-friends-tabs {
  display: flex;
  border-bottom: 1.5px solid #f0e8ff;
  background: #fff;
}
.bmc-ftab {
  flex: 1;
  padding: 10px 6px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2.5px solid transparent;
  transition: color .15s;
}
.bmc-ftab.is-active { color: #E8457A; border-bottom-color: #E8457A; }
.bmc-ftab-count {
  background: #E8457A; color: #fff;
  border-radius: 8px; padding: 1px 5px;
  font-size: 10px; margin-left: 3px;
}
.bmc-ftab-content {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.bmc-friend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #faf5ff;
  transition: opacity .3s;
}
.bmc-friend-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0e8ff;
  flex-shrink: 0;
}
.bmc-friend-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1a1d2e;
}
.bmc-add-friend-btn,
.bmc-accept-btn,
.bmc-friend-msg-btn {
  background: linear-gradient(135deg, #E8457A, #C13361);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.bmc-friend-remove-btn,
.bmc-decline-btn {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.bmc-friend-status-tag {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f0fdf4; color: #16a34a;
}
.bmc-tag-pending { background: #fefce8; color: #ca8a04; }

/* ═══════════════════════════════════════════════════
   GROUPS
═══════════════════════════════════════════════════ */
.bmc-create-group-btn {
  background: linear-gradient(135deg, #E8457A, #C13361);
  color: #fff; border: none;
  border-radius: 20px; padding: 7px 16px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.bmc-groups-list {
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bmc-group-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #f0e8ff;
  border-radius: 16px;
  padding: 12px 14px;
}
.bmc-group-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.bmc-group-body { flex: 1; min-width: 0; }
.bmc-group-name { font-size: 14px; font-weight: 800; color: #1a1d2e; }
.bmc-group-meta { font-size: 11px; color: #aaa; margin-top: 2px; }
.bmc-group-desc { font-size: 12px; color: #6b7280; margin-top: 4px; }
.bmc-join-group-btn {
  background: linear-gradient(135deg, #E8457A, #C13361);
  color: #fff; border: none;
  border-radius: 20px; padding: 7px 14px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.bmc-leave-group-btn {
  background: #f5f5f5; color: #888;
  border: 1px solid #e5e7eb;
  border-radius: 20px; padding: 7px 14px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}

/* Create group modal */
.bmc-modal-overlay { position: fixed; inset: 0; z-index: 200; }
.bmc-cg-sheet { max-height: 85vh; overflow-y: auto; }
.bmc-cg-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bmc-cg-emoji-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.bmc-cg-emoji-btn {
  width: 40px; height: 40px;
  border-radius: 12px; border: 2px solid #f0e8ff;
  background: #faf5ff; font-size: 20px;
  cursor: pointer; transition: border-color .15s;
}
.bmc-cg-emoji-btn.selected { border-color: #E8457A; background: #fff0f5; }
.bmc-cg-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e0d9ff;
  border-radius: 12px; font-size: 14px;
  font-family: inherit; box-sizing: border-box;
}
.bmc-cg-textarea { resize: none; }
.bmc-cg-privacy-row { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.bmc-cg-submit {
  background: linear-gradient(135deg, #E8457A, #C13361);
  color: #fff; border: none;
  border-radius: 14px; padding: 13px;
  font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit;
}

/* ═══════════════════════════════════════════════════
   MESSAGES & CHAT
═══════════════════════════════════════════════════ */
.bmc-conversations-list {
  overflow-y: auto;
  flex: 1;
}
.bmc-conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #faf5ff;
  cursor: pointer;
  transition: background .12s;
}
.bmc-conv-row:hover { background: #faf5ff; }
.bmc-conv-avatar {
  width: 46px; height: 46px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #f0e8ff; flex-shrink: 0;
}
.bmc-conv-body { flex: 1; min-width: 0; }
.bmc-conv-name {
  font-size: 14px; font-weight: 800; color: #1a1d2e;
  display: flex; align-items: center; gap: 8px;
}
.bmc-conv-unread {
  background: #E8457A; color: #fff;
  border-radius: 8px; padding: 1px 6px;
  font-size: 11px; font-weight: 800;
}
.bmc-conv-last { font-size: 12px; color: #aaa; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.bmc-chat-window {
  position: absolute;
  inset: 0; bottom: 56px;
  background: #faf5ff;
  display: flex; flex-direction: column;
  z-index: 50;
}
.bmc-chat-topbar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 10px 14px;
  border-bottom: 1.5px solid #f0e8ff;
}
.bmc-chat-back {
  background: none; border: none; cursor: pointer; color: #E8457A; padding: 4px;
}
.bmc-chat-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.bmc-chat-name { font-size: 15px; font-weight: 800; color: #1a1d2e; }
.bmc-chat-messages {
  flex: 1; overflow-y: auto;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.bmc-msg { display: flex; flex-direction: column; }
.bmc-msg-mine { align-items: flex-end; }
.bmc-msg-theirs { align-items: flex-start; }
.bmc-msg-bubble {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.4;
}
.bmc-msg-mine .bmc-msg-bubble {
  background: linear-gradient(135deg,#E8457A,#C13361);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bmc-msg-theirs .bmc-msg-bubble {
  background: #fff;
  color: #1a1d2e;
  border: 1.5px solid #f0e8ff;
  border-bottom-left-radius: 4px;
}
.bmc-msg-time { font-size: 10px; color: #bbb; margin-top: 3px; padding: 0 4px; }

.bmc-chat-input-bar {
  display: flex; gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1.5px solid #f0e8ff;
}
.bmc-chat-input {
  flex: 1; border: 1.5px solid #e0d9ff;
  border-radius: 22px; padding: 10px 16px;
  font-size: 14px; font-family: inherit;
  outline: none;
}
.bmc-chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#E8457A,#C13361);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   EMPTY PANELS
═══════════════════════════════════════════════════ */
.bmc-empty-panel {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 50px 20px; text-align: center;
  color: #aaa; gap: 10px;
}
.bmc-empty-panel .bmc-empty-icon { font-size: 48px; }
.bmc-empty-panel p { font-size: 14px; }
.bmc-signin-btn {
  display: inline-block;
  background: linear-gradient(135deg,#E8457A,#C13361);
  color: #fff; text-decoration: none;
  padding: 10px 24px; border-radius: 20px;
  font-weight: 800; font-size: 14px; margin-top: 8px;
}

/* Make app relative for chat absolute positioning */
#bmc-shell { position: relative; }

/* ── Panel loading + login wall ── */
.bmc-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.bmc-spinner-sm {
  width: 32px; height: 32px;
  border: 3px solid #f0e8ff;
  border-top-color: #E8457A;
  border-radius: 50%;
  animation: bmc-spin .7s linear infinite;
}
.bmc-panel-login-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}
.bmc-panel-login-wall .bmc-empty-icon { font-size: 52px; }
.bmc-panel-login-wall p { font-size: 15px; color: #6b7280; font-weight: 500; }
