/* BestMom Profile v1.0 */
:root {
  --bmp-pink:    #E8457A;
  --bmp-purple:  #7C3AED;
  --bmp-teal:    #0D9488;
  --bmp-blue:    #0EA5E9;
  --bmp-orange:  #F97316;
  --bmp-green:   #22C55E;
  --bmp-bg:      #F8F4F9;
  --bmp-surface: #FFFFFF;
  --bmp-border:  #EDE8F0;
  --bmp-text:    #1A1A2E;
  --bmp-muted:   #7B7B9D;
  --bmp-radius:  16px;
  --bmp-shadow:  0 2px 16px rgba(0,0,0,0.07);
}

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

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

/* ── GUEST WALL ── */
.bmp-guest-wall {
  text-align: center; padding: 64px 24px;
  background: var(--bmp-surface);
  border-radius: var(--bmp-radius);
  margin: 24px 0;
}
.bmp-guest-icon  { font-size: 56px; margin-bottom: 16px; }
.bmp-guest-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.bmp-guest-sub   { color: var(--bmp-muted); font-size: 15px; margin-bottom: 24px; }
.bmp-guest-btn {
  display: inline-block; padding: 12px 32px;
  background: var(--bmp-pink); color: #fff;
  border-radius: 20px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: opacity .15s;
}
.bmp-guest-btn:hover { opacity: .88; }

/* ── HERO ── */
.bmp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2D1B69 0%, #0E0E1A 100%);
  padding: 24px 20px 20px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 16px;
}
.bmp-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,69,122,0.25) 0%, transparent 70%);
  pointer-events: none;
  transition: background .4s;
}
.bmp-hero-content {
  display: flex; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}
.bmp-avatar-wrap { position: relative; flex-shrink: 0; }
.bmp-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bmp-pink), var(--bmp-purple));
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,0.3);
  font-size: 36px; overflow: hidden;
}
.bmp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bmp-avatar-initials {
  font-size: 28px; font-weight: 800; color: #fff;
}
.bmp-avatar-edit-btn {
  position: absolute; bottom: -2px; right: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bmp-pink); border: 2px solid #fff;
  font-size: 12px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.bmp-hero-info { flex: 1; min-width: 0; }
.bmp-name-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.bmp-name { font-size: 22px; font-weight: 800; color: #fff; }
.bmp-edit-inline-btn {
  background: rgba(255,255,255,0.15); border: none;
  border-radius: 8px; padding: 3px 7px; font-size: 13px;
  cursor: pointer; color: #fff; transition: background .15s;
}
.bmp-edit-inline-btn:hover { background: rgba(255,255,255,0.25); }
.bmp-level-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 12px; margin-bottom: 6px;
}
.bmp-stage-pill {
  font-size: 12px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 3px 10px; border-radius: 10px;
  display: inline-block;
}

/* Level progress */
.bmp-level-progress-wrap {
  position: relative; z-index: 1;
  margin-top: 16px;
}
.bmp-level-progress-bar {
  height: 7px; background: rgba(255,255,255,0.15);
  border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
.bmp-level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bmp-pink), #FF9EBA);
  border-radius: 4px;
  transition: width .6s ease;
  width: 0%;
}
.bmp-level-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.6);
}

/* ── SECTIONS ── */
.bmp-section {
  background: var(--bmp-surface);
  border-radius: var(--bmp-radius);
  padding: 18px 16px;
  margin: 0 0 12px;
  box-shadow: var(--bmp-shadow);
}
.bmp-section-title {
  font-size: 14px; font-weight: 700;
  color: var(--bmp-text); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.bmp-hint { font-size: 11px; color: var(--bmp-muted); font-weight: 400; }

/* ── BIO ── */
.bmp-bio-section { padding: 14px 16px; }
.bmp-bio-row { display: flex; align-items: flex-start; gap: 8px; }
.bmp-bio-text {
  flex: 1; font-size: 14px; color: var(--bmp-muted);
  line-height: 1.6; margin: 0;
}
.bmp-bio-text.has-content { color: var(--bmp-text); }

/* ── STATS GRID ── */
.bmp-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.bmp-stat-card {
  border-radius: 12px; padding: 14px 8px;
  text-align: center;
}
.bmp-stat-val  { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.bmp-stat-lbl  { font-size: 11px; font-weight: 600; opacity: .8; }
.bmp-stat-pink   { background: rgba(232,69,122,0.10); color: var(--bmp-pink); }
.bmp-stat-purple { background: rgba(124,58,237,0.10); color: var(--bmp-purple); }
.bmp-stat-teal   { background: rgba(13,148,136,0.10); color: var(--bmp-teal); }
.bmp-stat-blue   { background: rgba(14,165,233,0.10); color: var(--bmp-blue); }
.bmp-stat-orange { background: rgba(249,115,22,0.10); color: var(--bmp-orange); }
.bmp-stat-green  { background: rgba(34,197,94,0.10);  color: var(--bmp-green); }

/* ── STAGE PILLS ── */
.bmp-stage-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bmp-stage-btn {
  padding: 8px 16px; border-radius: 20px;
  border: 2px solid var(--bmp-border);
  background: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; color: var(--bmp-text);
  font-family: inherit;
}
.bmp-stage-btn:hover  { border-color: var(--bmp-pink); color: var(--bmp-pink); }
.bmp-stage-btn.active {
  background: var(--bmp-pink); color: #fff; border-color: var(--bmp-pink);
}

/* ── TAGS ── */
.bmp-tags-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bmp-tag-btn {
  padding: 7px 14px; border-radius: 16px;
  border: 2px solid var(--bmp-border);
  background: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s; color: var(--bmp-text);
  font-family: inherit;
}
.bmp-tag-btn.active {
  color: #fff; border-color: transparent;
}

/* ── BADGES ── */
.bmp-badges-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.bmp-badge-item {
  display: flex; flex-direction: column; align-items: center;
  width: 72px; gap: 4px;
}
.bmp-badge-emoji { font-size: 32px; }
.bmp-badge-name  { font-size: 10px; text-align: center; color: var(--bmp-muted); font-weight: 600; }

/* ── MOOD BARS ── */
.bmp-mood-bars { display: flex; flex-direction: column; gap: 10px; }
.bmp-mood-row  { display: flex; align-items: center; gap: 10px; }
.bmp-mood-label { width: 90px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.bmp-mood-bar-bg {
  flex: 1; height: 8px; background: var(--bmp-border);
  border-radius: 4px; overflow: hidden;
}
.bmp-mood-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--bmp-pink), var(--bmp-purple));
  transition: width .5s ease;
}
.bmp-mood-count { font-size: 11px; color: var(--bmp-muted); width: 24px; text-align: right; }

/* ── ACTIVITY LIST ── */
.bmp-activity-list { display: flex; flex-direction: column; gap: 0; }
.bmp-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--bmp-border);
}
.bmp-activity-item:last-child { border-bottom: none; }
.bmp-activity-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(232,69,122,0.10); color: var(--bmp-pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.bmp-activity-text { flex: 1; }
.bmp-activity-action { font-size: 13px; font-weight: 600; }
.bmp-activity-time   { font-size: 11px; color: var(--bmp-muted); }
.bmp-activity-pts {
  font-size: 13px; font-weight: 700; color: var(--bmp-pink);
  white-space: nowrap;
}

/* ── COMMUNITY POSTS ── */
.bmp-posts-list { display: flex; flex-direction: column; gap: 10px; }
.bmp-post-preview {
  background: var(--bmp-bg); border-radius: 12px;
  padding: 12px 14px;
}
.bmp-post-preview-text {
  font-size: 13px; line-height: 1.5;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: var(--bmp-text); margin-bottom: 6px;
}
.bmp-post-preview-meta {
  display: flex; gap: 12px; font-size: 11px; color: var(--bmp-muted);
}

/* ── EMPTY STATE ── */
.bmp-empty-state {
  text-align: center; padding: 20px 0;
  font-size: 13px; color: var(--bmp-muted);
}

/* ── MODAL ── */
.bmp-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
}
.bmp-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.bmp-modal-sheet {
  position: relative; z-index: 1;
  background: #fff; width: 100%; max-width: 680px;
  border-radius: 20px 20px 0 0; padding: 24px 20px;
  animation: bmp-sheet-up .25s ease;
}
@keyframes bmp-sheet-up {
  from { transform: translateY(100%); } to { transform: translateY(0); }
}
.bmp-modal-title  { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.bmp-modal-input  {
  width: 100%; border: 1px solid var(--bmp-border);
  border-radius: 12px; padding: 12px; font-family: inherit;
  font-size: 14px; resize: none; box-sizing: border-box;
}
.bmp-modal-input:focus { outline: none; border-color: var(--bmp-pink); }
.bmp-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.bmp-modal-cancel {
  padding: 9px 20px; border-radius: 10px;
  border: 1px solid var(--bmp-border); background: #fff;
  font-family: inherit; cursor: pointer; font-size: 14px;
}
.bmp-modal-save {
  padding: 9px 24px; border-radius: 10px;
  background: var(--bmp-pink); color: #fff; border: none;
  font-family: inherit; font-weight: 700; cursor: pointer; font-size: 14px;
}

/* ── EMOJI GRID ── */
.bmp-emoji-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 8px; max-height: 300px; overflow-y: auto;
}
.bmp-emoji-btn {
  font-size: 28px; padding: 8px; border: 2px solid transparent;
  border-radius: 10px; background: var(--bmp-bg);
  cursor: pointer; transition: all .12s; text-align: center;
}
.bmp-emoji-btn:hover { border-color: var(--bmp-pink); background: rgba(232,69,122,0.07); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .bmp-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .bmp-modal-sheet { max-height: 90vh; overflow-y: auto; }
}



/* ══════════════════════════════════════════
   QUICK LINKS — Horizontal Slider
══════════════════════════════════════════ */
.bmp-quicklinks-section { padding-bottom: 8px; }

.bmp-ql-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px 10px !important;
}
.bmp-ql-more-btn {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #E8457A !important;
  text-decoration: none !important;
  padding: 5px 13px !important;
  border-radius: 20px !important;
  background: #fff0f5 !important;
  border: 1.5px solid #ffc8d8 !important;
}

/* scroll wrapper */
.bmp-ql-slider-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 4px 16px 20px !important;
}
.bmp-ql-slider-wrap::-webkit-scrollbar { display: none !important; }

/* row of cards */
.bmp-ql-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: max-content !important;
}

/* single card */
.bmp-ql-slide {
  display: flex !important;
  flex-direction: column !important;
  width: 138px !important;
  min-width: 138px !important;
  max-width: 138px !important;
  border-radius: 22px !important;
  padding: 18px 14px 14px !important;
  text-decoration: none !important;
  color: #fff !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;
  box-sizing: border-box !important;
  transition: transform .18s !important;
  -webkit-tap-highlight-color: transparent !important;
}
.bmp-ql-slide:active { transform: scale(0.95) !important; }

/* colours */
.bmp-ql-slide--tools     { background: linear-gradient(145deg,#FF6B9D,#C13361) !important; }
.bmp-ql-slide--audio     { background: linear-gradient(145deg,#A78BFA,#5B21B6) !important; }
.bmp-ql-slide--community { background: linear-gradient(145deg,#34D399,#047857) !important; }

/* decorative circles */
.bmp-ql-slide::before {
  content: '' !important;
  position: absolute !important;
  top: -18px !important; right: -18px !important;
  width: 80px !important; height: 80px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.13) !important;
  pointer-events: none !important;
}
.bmp-ql-slide::after {
  content: '' !important;
  position: absolute !important;
  bottom: -28px !important; left: -14px !important;
  width: 72px !important; height: 72px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.07) !important;
  pointer-events: none !important;
}

.bmp-ql-slide-icon {
  font-size: 32px !important;
  margin-bottom: 10px !important;
  position: relative !important;
  z-index: 1 !important;
  line-height: 1 !important;
}
.bmp-ql-slide-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin-bottom: 4px !important;
  position: relative !important;
  z-index: 1 !important;
}
.bmp-ql-slide-sub {
  font-size: 11px !important;
  color: rgba(255,255,255,.75) !important;
  font-weight: 500 !important;
  margin-bottom: 14px !important;
  flex: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}
.bmp-ql-slide-arrow {
  align-self: flex-end !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #fff !important;
  position: relative !important;
  z-index: 1 !important;
}
