/*
Theme Name: Black Book
Theme URI: https://blackbook.social
Author: Black Book
Author URI: https://blackbook.social
Description: A premium social networking theme with geo-location grid, dating/booking system, friend networks, groups, badges, and rich user profiles. The ultimate private social platform.
Version: 10.13.139
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blackbook
Tags: social, networking, dating, profiles, geo-location, mobile-first, dark
*/

/* ============================================================
   BLACK BOOK THEME - MASTER STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&family=Bangers&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --bb-black:        #000000;
  --bb-dark:         #0a0a0a;
  --bb-card:         #111111;
  --bb-card-hover:   #1a1a1a;
  --bb-border:       #222222;
  --bb-gold:         #c0392b;
  --bb-gold-light:   #e74c3c;
  --bb-gold-dark:    #922b21;
  --bb-accent:       #c0392b;
  --bb-red:          #e53e3e;
  --bb-green:        #38a169;
  --bb-blue:         #3182ce;
  --bb-text:         #f0f0f0;
  --bb-text-muted:   #b0b0b0;
  --bb-text-dim:     #909090;
  --bb-online:       #48bb78;
  --bb-radius:       12px;
  --bb-radius-sm:    8px;
  --bb-radius-lg:    20px;
  --bb-shadow:       0 4px 24px rgba(0,0,0,0.6);
  --bb-shadow-gold:  0 4px 24px rgba(192,57,43,0.25);
  --bb-transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
  --bb-font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bb-font-display: 'Playfair Display', Georgia, serif;
  --bb-sidebar-w:    260px;
  --bb-topbar-h:     60px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bb-font);
  background: var(--bb-black);
  color: var(--bb-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--bb-gold); text-decoration: none; transition: var(--bb-transition); }
a:hover { color: var(--bb-gold-light); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: var(--bb-font);
  font-size: 1rem;
  outline: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bb-dark); }
::-webkit-scrollbar-thumb { background: var(--bb-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bb-gold-dark); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bb-font);
  font-weight: 800;
  line-height: 1.2;
  color: var(--bb-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--bb-text); }

/* ---- Layout ---- */
.bb-app {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

.bb-sidebar {
  width: var(--bb-sidebar-w);
  background: var(--bb-dark);
  border-right: 1px solid var(--bb-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  /* Perf fix: only animate transform (not all) to avoid layout/paint on mobile */
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.bb-main {
  margin-left: var(--bb-sidebar-w);
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: calc(100vw - var(--bb-sidebar-w));
}

.bb-topbar {
  height: var(--bb-topbar-h);
  background: var(--bb-dark);
  border-bottom: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.bb-notifications-wrap { position: relative; }
.bb-notif-badge { position: absolute; top: -5px; right: -5px; background: var(--bb-red); color: white; font-size: 0.75rem; font-weight: 700; padding: 2px 5px; border-radius: 10px; border: 2px solid var(--bb-dark); }
.bb-notif-dropdown { position: absolute; top: 100%; right: 0; width: 320px; background: var(--bb-card); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); margin-top: 0.75rem; box-shadow: var(--bb-shadow); display: none; z-index: 1000; }
.bb-notif-dropdown.active { display: block; }
.bb-notif-header { padding: 1rem; border-bottom: 1px solid var(--bb-border); display: flex; justify-content: space-between; align-items: center; }
.bb-notif-header span { font-weight: 700; font-size: 0.9rem; }
.bb-notif-header button { background: none; border: none; color: var(--bb-gold); font-size: 0.75rem; cursor: pointer; }
.bb-notif-list { max-height: 400px; overflow-y: auto; }
.bb-notif-item { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; gap: 0.75rem; transition: var(--bb-transition); color: inherit; text-decoration: none; }
.bb-notif-item:hover { background: rgba(255,255,255,0.02); }
.bb-notif-item.unread { background: rgba(192,57,43,0.05); }
.bb-notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bb-dark); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.bb-notif-content { flex: 1; font-size: 0.85rem; line-height: 1.4; }
.bb-notif-time { font-size: 0.7rem; color: var(--bb-text-dim); margin-top: 0.25rem; }
.bb-notif-loading { padding: 2rem; text-align: center; color: var(--bb-text-dim); font-size: 0.85rem; }

.bb-content {
  padding: 1.5rem;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* ---- Logo ---- */
.bb-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bb-dark);
}

.bb-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--bb-dark);
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.bb-logo-text {
  font-family: var(--bb-font);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---- Message Push Toast ---- */
.bb-msg-push-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bb-card, #111111);
  border: 1px solid rgba(192,57,43,0.35);
  border-left: 3px solid var(--bb-gold, #c0392b);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  color: var(--bb-text, #fff);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
  cursor: pointer;
}
.bb-msg-push-toast--in {
  transform: translateY(0);
  opacity: 1;
}
.bb-msg-push-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bb-gold, #c0392b);
}
.bb-msg-push-body {
  flex: 1;
  min-width: 0;
}
.bb-msg-push-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bb-text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-msg-push-preview {
  font-size: 0.75rem;
  color: var(--bb-text-dim, #888);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.bb-msg-push-close {
  background: none;
  border: none;
  color: var(--bb-text-dim, #888);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
}
.bb-msg-push-close:hover { color: var(--bb-text, #fff); }
@media (max-width: 600px) {
  .bb-msg-push-toast { right: 0.75rem; left: 0.75rem; min-width: unset; max-width: unset; }
}

/* ---- Navigation ---- */
.bb-nav {
  padding: 1rem 0;
  flex: 1;
}

.bb-nav-section {
  margin-bottom: 1.5rem;
}

.bb-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bb-text-dim);
  padding: 0 1.25rem;
  margin-bottom: 0.4rem;
}

.bb-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--bb-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--bb-transition);
  position: relative;
  cursor: pointer;
}

.bb-nav-item:hover,
.bb-nav-item.active {
  color: var(--bb-gold);
  background: rgba(192,57,43,0.08);
}

.bb-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--bb-gold);
  border-radius: 0 2px 2px 0;
}

.bb-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes bb-pulse-badge {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.bb-nav-badge {
  margin-left: auto;
  background: var(--bb-gold);
  color: var(--bb-black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ---- Cards ---- */
.bb-card {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  transition: var(--bb-transition);
}

.bb-card:hover { border-color: rgba(192,57,43,0.3); }

.bb-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bb-text);
  font-family: var(--bb-font);
}

.bb-card-body { padding: 1.5rem; }

/* ---- Buttons ---- */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--bb-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--bb-transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.bb-btn-primary {
  background: linear-gradient(135deg, var(--bb-gold), var(--bb-gold-dark));
  color: var(--bb-black);
}
.bb-btn-primary:hover {
  background: linear-gradient(135deg, var(--bb-gold-light), var(--bb-gold));
  transform: translateY(-1px);
  box-shadow: var(--bb-shadow-gold);
  color: var(--bb-black);
}

.bb-btn-outline {
  background: transparent;
  color: var(--bb-gold);
  border: 1px solid var(--bb-gold);
}
.bb-btn-outline:hover {
  background: rgba(192,57,43,0.1);
  color: var(--bb-gold-light);
}

.bb-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--bb-text-muted);
  border: 1px solid var(--bb-border);
}
.bb-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--bb-text);
}

.bb-btn-danger {
  background: var(--bb-red);
  color: white;
}
.bb-btn-danger:hover { background: #c53030; transform: translateY(-1px); }

.bb-btn-success {
  background: var(--bb-green);
  color: white;
}
.bb-btn-success:hover { background: #2f855a; transform: translateY(-1px); }

.bb-btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.bb-btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.bb-btn-full { width: 100%; }
.bb-btn-icon { padding: 0.5rem; width: 36px; height: 36px; }

/* ---- Forms ---- */
.bb-form-group { margin-bottom: 1.25rem; }

.bb-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.bb-input,
.bb-textarea,
.bb-select {
  width: 100%;
  background: var(--bb-black);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  color: var(--bb-text);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: var(--bb-transition);
}

.bb-input:focus,
.bb-textarea:focus,
.bb-select:focus {
  border-color: var(--bb-gold);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.bb-textarea { resize: vertical; min-height: 100px; }

.bb-select { cursor: pointer; }
.bb-select option { background: var(--bb-dark); }

/* ---- Avatar ---- */
.bb-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bb-border);
}
.bb-avatar-sm { width: 40px !important; height: 40px !important; }
.bb-avatar-md { width: 56px !important; height: 56px !important; }
.bb-avatar-lg { width: 80px !important; height: 80px !important; }
.bb-avatar-xl { width: 120px !important; height: 120px !important; }
.bb-avatar-xxl { width: 160px !important; height: 160px !important; }

.bb-avatar-xs  { width: 28px !important; height: 28px !important; }
.bb-avatar-xxl { border-width: 3px !important; border-color: var(--bb-gold) !important; }

.bb-avatar-online { position: relative; }
.bb-avatar-online::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--bb-online);
  border-radius: 50%;
  border: 2px solid var(--bb-card);
}

/* ---- Profile Grid (Grindr-style) ---- */
.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 3px;
  /* Perf: isolate grid repaints from the rest of the page */
  contain: layout style;
}

.bb-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bb-card);
}

.bb-grid-item img:not(.bb-mp-badge-heart) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bb-grid-item:hover img { transform: scale(1.05); }

.bb-grid-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.45rem 0.35rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 65%, transparent 100%);
  opacity: 1; /* Always visible without hovering */
  pointer-events: none;
  transition: var(--bb-transition);
}

.bb-grid-item:hover .bb-grid-item-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.65) 75%, transparent 100%);
}

.bb-grid-item-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-grid-item-distance {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.bb-grid-item-online {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--bb-online);
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.5);
  animation: bb-pulse-online 2s ease-in-out infinite;
}
@keyframes bb-pulse-online {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,100,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(0,200,100,0); }
}
.bb-grid-item-mutual {
  font-size: 0.6rem;
  color: var(--bb-gold);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ---- Profile Page ---- */
.bb-profile-hero {
  position: relative;
  background: var(--bb-card);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.bb-profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #111111, #1a1a1a);
  position: relative;
  overflow: hidden;
}

.bb-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
}

.bb-profile-info {
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: -50px;
  position: relative;
}

.bb-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.bb-profile-avatar-wrap .bb-avatar-xxl {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.bb-profile-details { flex: 1; padding-top: 60px; }

.bb-profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bb-text);
  margin-bottom: 0.2rem;
}

.bb-profile-handle {
  font-size: 0.85rem;
  color: var(--bb-text-dim);
  margin-bottom: 0.5rem;
}

.bb-profile-bio {
  font-size: 0.9rem;
  color: var(--bb-text-muted);
  margin-bottom: 0;
  max-width: 500px;
}

.bb-profile-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.bb-profile-stat { text-align: center; }
.bb-profile-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bb-gold);
  display: block;
}
.bb-profile-stat-label {
  font-size: 0.7rem;
  color: var(--bb-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Tabs ---- */
.bb-tabs-wrap {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: visible;
  margin-bottom: 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.bb-tabs-wrap > .bb-tabs {
  background: var(--bb-dark);
  border-bottom: 1px solid var(--bb-border);
  margin-bottom: 0;
  padding: 0 0.5rem;
  border-radius: var(--bb-radius) var(--bb-radius) 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bb-tabs-wrap > .bb-tabs::-webkit-scrollbar { display: none; }

.bb-tabs-wrap > .bb-tab-content {
  padding: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.bb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bb-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bb-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bb-text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--bb-transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.bb-tab:hover { color: var(--bb-text-muted); }
.bb-tab.active {
  color: var(--bb-gold);
  border-bottom-color: var(--bb-gold);
}

.bb-tab-content { display: none; }
.bb-tab-content.active { display: block; }

/* ---- Activity Wall ---- */
.bb-activity-post {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--bb-transition);
}

.bb-activity-post:hover { border-color: rgba(192,57,43,0.2); }

.bb-activity-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bb-activity-meta {
  flex: 1;
}

.bb-activity-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bb-text);
}

.bb-activity-time {
  font-size: 0.75rem;
  color: var(--bb-text-dim);
}

.bb-activity-text {
  font-size: 0.9rem;
  color: var(--bb-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.bb-activity-actions {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bb-border);
}

.bb-activity-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--bb-text-dim);
  cursor: pointer;
  transition: var(--bb-transition);
  background: none;
  border: none;
}

.bb-activity-action:hover { color: var(--bb-gold); }

/* ---- Photo Grid ---- */
.bb-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.bb-photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: var(--bb-card);
}

.bb-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bb-photo-item:hover img { transform: scale(1.08); }

/* ---- Video Grid ---- */
.bb-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bb-video-item {
  border-radius: var(--bb-radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--bb-card);
  cursor: pointer;
}

.bb-video-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}

.bb-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: var(--bb-transition);
}

.bb-video-play svg {
  width: 40px;
  height: 40px;
  fill: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.bb-video-item:hover .bb-video-play { background: rgba(0,0,0,0.2); }

/* ---- Badges ---- */
.bb-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.bb-badge-gold    { background: rgba(192,57,43,0.15); color: var(--bb-gold); border-color: rgba(192,57,43,0.3); }
.bb-badge-silver  { background: rgba(192,192,192,0.1); color: #c0c0c0; border-color: rgba(192,192,192,0.3); }
.bb-badge-bronze  { background: rgba(205,127,50,0.1); color: #cd7f32; border-color: rgba(205,127,50,0.3); }
.bb-badge-blue    { background: rgba(49,130,206,0.1); color: #63b3ed; border-color: rgba(49,130,206,0.3); }
.bb-badge-red     { background: rgba(229,62,62,0.1); color: #fc8181; border-color: rgba(229,62,62,0.3); }
.bb-badge-purple  { background: rgba(128,90,213,0.1); color: #b794f4; border-color: rgba(128,90,213,0.3); }
.bb-badge-green   { background: rgba(56,161,105,0.1); color: #68d391; border-color: rgba(56,161,105,0.3); }

/* ---- Rating Stars ---- */
.bb-stars {
  display: inline-flex;
  gap: 2px;
}

.bb-star {
  font-size: 1rem;
  cursor: pointer;
  color: var(--bb-border);
  transition: var(--bb-transition);
}

.bb-star.filled { color: var(--bb-gold); }
.bb-star:hover { color: var(--bb-gold-light); }

/* ---- Date Booking ---- */
.bb-date-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bb-date-type {
  background: var(--bb-card);
  border: 2px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--bb-transition);
  text-align: center;
}

.bb-date-type:hover { border-color: rgba(192,57,43,0.4); }
.bb-date-type.selected { border-color: var(--bb-gold); background: rgba(192,57,43,0.08); }

.bb-date-type-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.bb-date-type-name { font-size: 0.85rem; font-weight: 700; color: var(--bb-text); }
.bb-date-type-desc { font-size: 0.75rem; color: var(--bb-text-dim); margin-top: 0.25rem; }

/* ---- Booking Status ---- */
.bb-booking-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.bb-status-pending  { background: rgba(255,165,0,0.1); color: #ffa500; border: 1px solid rgba(255,165,0,0.3); }
.bb-status-confirmed{ background: rgba(56,161,105,0.1); color: var(--bb-green); border: 1px solid rgba(56,161,105,0.3); }
.bb-status-denied   { background: rgba(229,62,62,0.1); color: var(--bb-red); border: 1px solid rgba(229,62,62,0.3); }

.bb-status-icon { font-size: 1rem; }

/* ---- Calendar ---- */
.bb-calendar {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
}

.bb-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bb-border);
}

.bb-calendar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bb-text);
  font-family: var(--bb-font);
}

.bb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.75rem;
}

.bb-cal-day-name {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bb-text-dim);
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.bb-cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--bb-transition);
  color: var(--bb-text-muted);
}

.bb-cal-day:hover { background: rgba(192,57,43,0.1); color: var(--bb-gold); }
.bb-cal-day.available { color: var(--bb-gold); font-weight: 600; }
.bb-cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background: var(--bb-gold);
  border-radius: 50%;
}
.bb-cal-day.selected { background: var(--bb-gold); color: var(--bb-black); font-weight: 700; }
.bb-cal-day.disabled { color: var(--bb-text-dim); cursor: not-allowed; opacity: 0.4; }
.bb-cal-day.today { border: 1px solid var(--bb-gold-dark); }
.bb-cal-day.empty { cursor: default; }
/* Availability editor: future dates clickable but not yet marked */
.bb-cal-day.open { color: var(--bb-text); cursor: pointer; opacity: 0.85; }
.bb-cal-day.open:hover { background: rgba(255,255,255,0.06); color: var(--bb-text); }

/* ---- Friend Web ---- */
#bb-friend-web-wrap {
  width: 100%;
  background: var(--bb-card);
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  min-height: 500px;
  max-height: 90vh;
}
#bb-friend-web {
  width: 100%;
  min-height: 500px;
  position: relative;
  display: block;
}

/* ---- Groups ---- */
.bb-group-card {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  transition: var(--bb-transition);
  cursor: pointer;
}

.bb-group-card:hover { border-color: rgba(192,57,43,0.3); transform: translateY(-2px); }

.bb-group-cover {
  height: 260px;
  background: linear-gradient(135deg, var(--bb-gold-dark), var(--bb-black));
  position: relative;
  overflow: hidden;
}
.bb-group-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-group-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .bb-group-cover {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }
}

.bb-group-info { padding: 1.25rem 1.25rem 1.5rem; }
.bb-group-name { font-size: 1.05rem; font-weight: 700; color: var(--bb-text); margin-bottom: 0.4rem; }
.bb-group-meta { font-size: 0.8rem; color: var(--bb-text-dim); line-height: 1.5; }

/* ---- Spotify ---- */
.bb-spotify-widget {
  background: #111111;
  border: 1px solid #222222;
  border-radius: var(--bb-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bb-spotify-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bb-border);
}

.bb-spotify-info { flex: 1; min-width: 0; }
.bb-spotify-track {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-spotify-artist { font-size: 0.78rem; color: var(--bb-text-dim); }

.bb-spotify-logo {
  color: #1db954;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---- Notifications / Toasts ---- */
.bb-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bb-toast {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--bb-text);
  box-shadow: var(--bb-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 260px;
  animation: slideIn 0.3s ease;
}

.bb-toast-success { border-left: 3px solid var(--bb-green); }
.bb-toast-error   { border-left: 3px solid var(--bb-red); }
.bb-toast-info    { border-left: 3px solid var(--bb-gold); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ---- Modal ---- */
.bb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bb-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.bb-modal {
  background: var(--bb-dark);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.bb-modal-overlay.open .bb-modal { transform: scale(1); }

.bb-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb-modal-title { font-size: 1.1rem; font-weight: 700; font-family: var(--bb-font); }

.bb-modal-close {
  background: none;
  border: none;
  color: var(--bb-text-dim);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.2rem;
  transition: var(--bb-transition);
}
.bb-modal-close:hover { color: var(--bb-text); }

.bb-modal-body { padding: 1.5rem; }
.bb-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bb-border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ---- Social Links ---- */
.bb-social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bb-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--bb-border);
  color: var(--bb-text-muted);
  transition: var(--bb-transition);
  background: var(--bb-card);
}

.bb-social-link:hover { border-color: var(--bb-gold); color: var(--bb-gold); }
.bb-social-link.instagram:hover { border-color: #e1306c; color: #e1306c; }
.bb-social-link.twitter:hover   { border-color: #1da1f2; color: #1da1f2; }
.bb-social-link.tiktok:hover    { border-color: #ff0050; color: #ff0050; }
.bb-social-link.snapchat:hover  { border-color: #fffc00; color: #fffc00; }
.bb-social-link.onlyfans:hover  { border-color: #00aff0; color: #00aff0; }

/* ---- Utility ---- */
.bb-divider {
  height: 1px;
  background: var(--bb-border);
  margin: 1.25rem 0;
}

.bb-text-gold   { color: var(--bb-gold); }
.bb-text-muted  { color: var(--bb-text-muted); }
.bb-text-dim    { color: var(--bb-text-dim); }
.bb-text-green  { color: var(--bb-green); }
.bb-text-red    { color: var(--bb-red); }

.bb-flex        { display: flex; }
.bb-flex-center { display: flex; align-items: center; justify-content: center; }
.bb-gap-1       { gap: 0.5rem; }
.bb-gap-2       { gap: 1rem; }
.bb-gap-3       { gap: 1.5rem; }
.bb-mt-1        { margin-top: 0.5rem; }
.bb-mt-2        { margin-top: 1rem; }
.bb-mt-3        { margin-top: 1.5rem; }
.bb-mb-1        { margin-bottom: 0.5rem; }
.bb-mb-2        { margin-bottom: 1rem; }
.bb-mb-3        { margin-bottom: 1.5rem; }

.bb-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.bb-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bb-text-muted);
  margin-bottom: 1rem;
  font-family: var(--bb-font);
}

.bb-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--bb-text-muted);
}

.bb-empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.bb-empty-state-text { font-size: 0.9rem; }

/* ---- Admin Panel ---- */
.bb-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.bb-admin-table th,
.bb-admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bb-border);
  font-size: 0.85rem;
}

.bb-admin-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bb-text-dim);
}

.bb-admin-table td { color: var(--bb-text-muted); }
.bb-admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- Hamburger / Mobile Toggle ---- */
.bb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.bb-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bb-text-muted);
  border-radius: 2px;
  transition: var(--bb-transition);
}

/* ---- Mobile Overlay ---- */
.bb-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
  /* Perf fix: use opacity instead of display for GPU-composited fade */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --bb-sidebar-w: 0px;
  }

  .bb-sidebar {
    transform: translateX(-260px);
    width: 260px;
  }

  .bb-sidebar.open {
    transform: translateX(0);
  }

  .bb-sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .bb-main { margin-left: 0; max-width: 100vw; }

  .bb-hamburger { display: flex; }

  .bb-content { padding: 1rem; }

  .bb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .bb-profile-info { flex-direction: column; margin-top: -30px; }
  .bb-profile-details { padding-top: 0; }

  .bb-date-types { grid-template-columns: repeat(2, 1fr); }

  .bb-photo-grid { grid-template-columns: repeat(3, 1fr); }

  .bb-video-grid { grid-template-columns: 1fr; }

  .bb-profile-stats { gap: 1rem; }

  #bb-friend-web-wrap { max-height: 80vh; min-height: 400px; }
  #bb-friend-web { min-height: 400px; }

  .bb-modal { max-width: 100%; border-radius: var(--bb-radius); }

  .bb-grid-2, .bb-grid-3 { grid-template-columns: 1fr; }

  /* ---- Admin page responsive fixes ---- */
  #bb-admin-bookings .bb-card,
  #bb-admin-users .bb-card,
  #bb-admin-orders .bb-card,
  #bb-admin-lottery .bb-card { overflow-x: hidden; }

  /* Collapse all inline 2-col grids in admin tabs */
  .bb-tab-content [style*="grid-template-columns:1fr 1fr"],
  .bb-tab-content [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .bb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .bb-profile-cover { height: 140px; }

  .bb-tabs { gap: 0; }
  .bb-tab { padding: 0.65rem 0.9rem; font-size: 0.8rem; }
}

/* ---- Login / Register Pages ---- */
.bb-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1500 0%, var(--bb-black) 70%);
  padding: 1.5rem;
}

.bb-auth-card {
  background: var(--bb-dark);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--bb-shadow);
}

.bb-auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.bb-auth-logo .bb-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
}
.bb-auth-logo .bb-logo-icon svg {
  width: 40px;
  height: 40px;
}

.bb-auth-logo .bb-logo-text {
  font-size: 2rem;
  display: block;
}

.bb-auth-subtitle {
  font-size: 0.85rem;
  color: var(--bb-text-dim);
  text-align: center;
  margin-top: 0.25rem;
}

/* ---- Sidebar User Card ---- */
.bb-sidebar-user {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--bb-transition);
}

.bb-sidebar-user:hover { background: rgba(255,255,255,0.03); }

.bb-sidebar-user-info { flex: 1; min-width: 0; }
.bb-sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-sidebar-user-handle {
  font-size: 0.75rem;
  color: var(--bb-text-dim);
}

/* ---- Notification dot ---- */
.bb-notif-dot {
  width: 8px;
  height: 8px;
  background: var(--bb-gold);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---- Search Bar ---- */
.bb-search-bar {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.bb-search-bar input {
  width: 100%;
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  color: var(--bb-text);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.85rem;
}

.bb-search-bar input:focus { border-color: var(--bb-gold); }

.bb-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bb-text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ---- Geo Filter ---- */
.bb-geo-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  margin-bottom: 1rem;
}

.bb-geo-filter label {
  font-size: 0.8rem;
  color: var(--bb-text-dim);
  white-space: nowrap;
}

.bb-geo-filter input[type="range"] {
  flex: 1;
  accent-color: var(--bb-gold);
}

.bb-geo-distance {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bb-gold);
  min-width: 50px;
  text-align: right;
}

/* ---- Pulse animation for online ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.bb-online-pulse { animation: pulse 2s infinite; }

/* ---- Shimmer loading ---- */
.bb-shimmer {
  background: linear-gradient(90deg, var(--bb-card) 25%, var(--bb-card-hover) 50%, var(--bb-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Profile Layout Fixes ---- */
/* SoundCloud banner: 2480x520px = 4.769:1 ratio. Use aspect-ratio so it scales
   perfectly at every viewport width. min-height keeps it usable on very narrow screens. */
.bb-profile-hero { position: relative; aspect-ratio: 1952 / 806; min-height: 200px; max-height: 600px; background-size: cover; background-position: center; border-radius: var(--bb-radius); margin-bottom: 1.5rem; display: flex; align-items: flex-end; padding: 1.5rem; overflow: hidden; }
.bb-profile-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); z-index: 1; }
.bb-profile-hero-content { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 1.5rem; width: 100%; }
.bb-profile-avatar { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--bb-dark); background: var(--bb-dark); object-fit: cover; box-shadow: var(--bb-shadow); }
.bb-profile-info { flex: 1; margin-bottom: 0.5rem; }
.bb-profile-name { font-size: 1.6rem; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.75rem; }
.bb-profile-meta { color: var(--bb-text-muted); font-size: 0.95rem; }
.bb-profile-actions { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; }
.bb-badge-plus { background: linear-gradient(135deg, var(--bb-gold), var(--bb-gold-dark)); color: var(--bb-black); font-size: 0.75rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; vertical-align: middle; }
.bb-profile-cover-btn { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: rgba(0,0,0,0.65) !important; border-color: rgba(255,255,255,0.4) !important; color: #fff !important; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bb-avatar-edit-btn { position: absolute; bottom: 5px; right: 5px; background: var(--bb-gold); color: var(--bb-black); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
  /* On tablets: keep aspect-ratio but ensure enough height for avatar */
  .bb-profile-hero { min-height: 200px; max-height: none; padding: 1rem; }
  .bb-profile-hero-content { flex-direction: column; align-items: center; text-align: center; }
  .bb-profile-avatar { width: 80px; height: 80px; display: block; }
  .bb-profile-actions { justify-content: center; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  /* ---- Nuclear overflow fix ---- */
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  .bb-main, .bb-content { overflow-x: hidden !important; }

  /* ---- Profile hero ---- */
  .bb-profile-hero { aspect-ratio: unset !important; min-height: 260px !important; max-height: none; padding: 0.75rem; width: 100% !important; box-sizing: border-box !important; }
  .bb-profile-avatar { width: 80px !important; height: 80px !important; display: block !important; }
  .bb-profile-avatar-wrap { overflow: visible !important; }
  .bb-profile-name { font-size: 1.2rem !important; flex-wrap: wrap; gap: 0.4rem; }
  .bb-profile-meta { font-size: 0.85rem; }
  .bb-profile-actions { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .bb-profile-actions .bb-btn { flex: 1 1 auto; min-width: 120px; font-size: 0.85rem; padding: 0.5rem 0.75rem; }

  /* ---- Tabs: horizontally scrollable, no wrapping ---- */
  .bb-tabs-wrap > .bb-tabs,
  .bb-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .bb-tabs::-webkit-scrollbar { display: none; }
  .bb-tab { flex-shrink: 0; padding: 0.6rem 0.85rem; font-size: 0.8rem; white-space: nowrap; }

  /* ---- Vibes grid: 2 columns on small screens ---- */
  .bb-vibes-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  .bb-vibe-pill { padding: 0.5rem 0.6rem; font-size: 0.8rem; }

  /* ---- Prevent any child from overflowing the profile wrap ---- */
  .bb-profile-wrap { overflow-x: hidden; max-width: 100vw; }
  .bb-profile-wrap * { max-width: 100%; box-sizing: border-box; }

  /* ---- Recommendation avatars row ---- */
  .bb-rec-avatars-wrap { flex-wrap: wrap; }
  .bb-rec-avatars { flex-wrap: wrap; }

  /* ---- Stats grid ---- */
  .bb-profile-stats { flex-wrap: wrap; gap: 0.75rem; }

  /* ---- Anthem bar ---- */
  .bb-anthem-bar { flex-direction: column; gap: 0.5rem; }
  .bb-anthem-bar-embed { width: 100%; }
}

/* ---- Recommendation Badge & Button ---- */
.bb-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(192,57,43,0.15);
  color: var(--bb-gold);
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  vertical-align: middle;
  font-family: var(--bb-font);
  letter-spacing: 0.03em;
  cursor: default;
  transition: var(--bb-transition);
}
.bb-btn-recommend {
  background: rgba(255,255,255,0.06);
  color: var(--bb-text-muted);
  border: 1px solid var(--bb-border);
}
.bb-btn-recommend:hover {
  background: rgba(192,57,43,0.12);
  color: var(--bb-gold);
  border-color: rgba(192,57,43,0.4);
}
.bb-btn-recommend.bb-rec-active {
  background: rgba(192,57,43,0.18);
  color: var(--bb-gold);
  border-color: var(--bb-gold);
}
.bb-btn-recommend.bb-rec-active:hover {
  background: rgba(192,57,43,0.08);
  color: var(--bb-text-muted);
  border-color: var(--bb-border);
}

/* ---- Recommender Avatars Row ---- */
.bb-rec-avatars-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bb-rec-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.bb-rec-avatars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0.5rem;
}
.bb-rec-avatar-link {
  display: block;
  margin-right: -6px;
  border-radius: 50%;
  border: 2px solid var(--bb-dark);
  transition: transform 0.15s ease, z-index 0s;
  position: relative;
  z-index: 1;
}
.bb-rec-avatar-link:hover {
  transform: translateY(-3px) scale(1.1);
  z-index: 10;
}
.bb-rec-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.bb-rec-more {
  margin-left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bb-text-muted);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--bb-border);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ---- Cruise Tab (Profile Visitors) ---- */
.bb-cruise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-cruise-item {
  border-bottom: 1px solid var(--bb-border);
}
.bb-cruise-item:last-child { border-bottom: none; }
.bb-cruise-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  color: var(--bb-text);
  text-decoration: none;
  transition: var(--bb-transition);
}
.bb-cruise-link:hover {
  background: rgba(255,255,255,0.03);
  color: var(--bb-gold);
}
.bb-cruise-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bb-border);
}
.bb-cruise-info {
  flex: 1;
  min-width: 0;
}
.bb-cruise-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-cruise-loc {
  font-size: 0.78rem;
  color: var(--bb-text-muted);
  margin-top: 2px;
}
.bb-cruise-loc i { margin-right: 3px; }
.bb-cruise-time {
  font-size: 0.75rem;
  color: var(--bb-text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Tag Picker Styles ---- */
.bb-tag-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.bb-tag { padding: 0.4rem 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid var(--bb-border); border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: var(--bb-transition); }
.bb-tag:hover { border-color: var(--bb-gold); }
.bb-tag.active { background: var(--bb-gold); color: var(--bb-black); border-color: var(--bb-gold); }
.bb-settings-section-title { font-size: 1rem; color: var(--bb-gold); margin: 1.5rem 0 1rem; border-bottom: 1px solid var(--bb-border); padding-bottom: 0.5rem; }

/* ============================================================
   PROFILE SKINS & ANIMATED BORDERS
   ============================================================ */

/* --- Profile Skins --- */
/* ============================================================
   Summer BBQ 26 — cartoon flame border
   ============================================================ */
.bb-skin-bbq {
  position: relative;
  padding: 18px !important;
  border-radius: 18px !important;
  margin: 28px 12px 12px !important;
  background: linear-gradient(160deg, #1a0800 0%, #2d1000 100%) !important;
  border: 3px solid #ff6a00 !important;
  overflow: visible !important;
  box-shadow: 0 0 0 3px #ff4500, 0 0 20px rgba(255,100,0,0.5) !important;
}

/* ---- Hotdog emoji sits above the card ---- */
.bb-skin-bbq::after {
  content: '🌭';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  z-index: 30;
  filter: drop-shadow(0 0 8px #ff4500);
  animation: bb-hotdog-bob 1.2s ease-in-out infinite alternate;
}
@keyframes bb-hotdog-bob {
  from { transform: translateX(-50%) translateY(0px); }
  to   { transform: translateX(-50%) translateY(-5px); }
}

/* ---- Flame layer: multiple pseudo-flame tongues via box-shadow trick ---- */
.bb-skin-bbq::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 30px;
  z-index: -1;
  /* Layered radial blobs that look like cartoon flame tongues */
  background:
    radial-gradient(ellipse 18px 32px at 10%  0%,   #ff4500 0%, transparent 70%),
    radial-gradient(ellipse 14px 26px at 22%  -4%,  #ffd700 0%, transparent 70%),
    radial-gradient(ellipse 20px 36px at 35%  0%,   #ff6a00 0%, transparent 70%),
    radial-gradient(ellipse 14px 28px at 48%  -6%,  #ff4500 0%, transparent 70%),
    radial-gradient(ellipse 18px 34px at 62%  0%,   #ffd700 0%, transparent 70%),
    radial-gradient(ellipse 14px 26px at 75%  -4%,  #ff6a00 0%, transparent 70%),
    radial-gradient(ellipse 20px 36px at 90%  0%,   #ff4500 0%, transparent 70%),
    /* sides */
    radial-gradient(ellipse 32px 18px at 0%   18%,  #ff6a00 0%, transparent 70%),
    radial-gradient(ellipse 28px 14px at -4%  35%,  #ffd700 0%, transparent 70%),
    radial-gradient(ellipse 32px 18px at 0%   52%,  #ff4500 0%, transparent 70%),
    radial-gradient(ellipse 28px 14px at -4%  70%,  #ff6a00 0%, transparent 70%),
    radial-gradient(ellipse 32px 18px at 100% 18%,  #ffd700 0%, transparent 70%),
    radial-gradient(ellipse 28px 14px at 104% 35%,  #ff4500 0%, transparent 70%),
    radial-gradient(ellipse 32px 18px at 100% 52%,  #ff6a00 0%, transparent 70%),
    radial-gradient(ellipse 28px 14px at 104% 70%,  #ffd700 0%, transparent 70%),
    /* bottom */
    radial-gradient(ellipse 18px 28px at 15%  100%, #ff4500 0%, transparent 70%),
    radial-gradient(ellipse 14px 22px at 30%  104%, #ffd700 0%, transparent 70%),
    radial-gradient(ellipse 18px 28px at 50%  100%, #ff6a00 0%, transparent 70%),
    radial-gradient(ellipse 14px 22px at 70%  104%, #ff4500 0%, transparent 70%),
    radial-gradient(ellipse 18px 28px at 85%  100%, #ffd700 0%, transparent 70%);
  animation: bb-flames-flicker1 0.18s ease-in-out infinite alternate,
             bb-flames-shift    2.4s linear        infinite;
  filter: blur(1.5px);
}

@keyframes bb-flames-flicker1 {
  0%   { transform: scaleY(1)    scaleX(1);    opacity: 0.92; filter: blur(1px)   brightness(1.1); }
  33%  { transform: scaleY(1.06) scaleX(0.97); opacity: 1;    filter: blur(1.5px) brightness(1.3); }
  66%  { transform: scaleY(0.96) scaleX(1.03); opacity: 0.95; filter: blur(2px)   brightness(1.0); }
  100% { transform: scaleY(1.08) scaleX(0.96); opacity: 1;    filter: blur(1px)   brightness(1.4); }
}
@keyframes bb-flames-shift {
  0%   { background-position: 0%   0%;   }
  50%  { background-position: 100% 50%;  }
  100% { background-position: 0%   100%; }
}

.bb-skin-femboy { --bb-skin-bg: #ff85a2; --bb-skin-border: #f06292; border: 8px solid var(--bb-skin-border) !important; background: linear-gradient(135deg, #fce4ec, #f8bbd0) !important; padding: 10px !important; border-radius: 20px !important; box-shadow: 0 0 20px rgba(240, 98, 146, 0.4) !important; margin: 10px !important; }
.bb-skin-femboy::after { content: '🎀'; position: absolute; bottom: -15px; right: 15px; font-size: 2rem; z-index: 10; }

.bb-skin-bisexual { --bb-skin-bg: #2c3e50; --bb-skin-border: #d60270; border: 8px solid transparent !important; border-image: linear-gradient(to bottom, #d60270 40%, #9b4f96 20%, #0038a8 40%) 1 !important; background: #000000 !important; padding: 10px !important; margin: 10px !important; }

.bb-skin-dom { --bb-skin-bg: #000; --bb-skin-border: #333; border: 10px solid #111 !important; background: #050505 !important; box-shadow: inset 0 0 50px rgba(255,0,0,0.1), 0 0 20px rgba(0,0,0,0.8) !important; padding: 10px !important; border-radius: 5px !important; margin: 10px !important; }
.bb-skin-dom::before { content: '⛓️'; position: absolute; top: 10px; right: 10px; font-size: 1.5rem; opacity: 0.5; }

.bb-skin-sub { --bb-skin-bg: #1a1a1a; --bb-skin-border: #555; border: 6px dashed #444 !important; background: #000000 !important; padding: 12px !important; border-radius: 30px !important; margin: 10px !important; }

/* --- Animated Avatar Borders --- */
.bb-border-rainbow { position: relative; padding: 6px !important; border-radius: 50% !important; background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff) !important; background-size: 400% 400% !important; animation: bb-rainbow 3s linear infinite !important; }
@keyframes bb-rainbow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.bb-border-neon { position: relative; padding: 4px !important; border-radius: 50% !important; background: #000 !important; box-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff !important; animation: bb-neon-pulse 1.5s ease-in-out infinite alternate !important; }
@keyframes bb-neon-pulse { from { box-shadow: 0 0 5px #0ff, 0 0 10px #0ff; } to { box-shadow: 0 0 15px #0ff, 0 0 30px #0ff, 0 0 40px #0ff; } }

/* Flame 26 avatar border — wrapper spins, image counter-spins to stay upright */
.bb-border-fire {
  position: relative;
  padding: 5px !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, #ff4500, #ff8c00, #ffd700, #ff8c00, #ff4500, #ff6a00, #ffd700, #ff4500) !important;
  animation: bb-flame26-spin 0.8s linear infinite, bb-flame26-flicker 0.2s ease-in-out infinite alternate !important;
  box-shadow: 0 0 12px #ff4500, 0 0 24px #ff8c00 !important;
}
/* Counter-rotate the avatar image so it stays still */
.bb-border-fire img,
.bb-border-fire .bb-profile-avatar,
.bb-border-fire .bb-avatar {
  animation: bb-flame26-counter 0.8s linear infinite !important;
  transform-origin: center center !important;
}
@keyframes bb-flame26-spin    { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes bb-flame26-counter { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }
@keyframes bb-flame26-flicker { 0% { box-shadow: 0 0 8px #ff4500, 0 0 16px #ff8c00; } 100% { box-shadow: 0 0 18px #ff4500, 0 0 36px #ffd700; } }

.bb-border-gold { position: relative; padding: 6px !important; border-radius: 50% !important; background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c) !important; background-size: 200% 200% !important; animation: bb-gold-shine 2s linear infinite !important; }
@keyframes bb-gold-shine { 0% { background-position: 0% 0%; } 100% { background-position: 200% 200%; } }

.bb-border-hearts { position: relative; padding: 6px !important; border-radius: 50% !important; background: #ff4d6d !important; }
.bb-border-hearts::after { content: '❤️'; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 14px; animation: bb-heart-float 2s ease-in-out infinite; }
@keyframes bb-heart-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

/* Selection UI */
.bb-unlockable-item { border: 2px solid var(--bb-border); border-radius: 12px; padding: 1rem; cursor: pointer; transition: var(--bb-transition); text-align: center; background: var(--bb-darker); position: relative; }
.bb-unlockable-item:hover { border-color: var(--bb-gold); transform: translateY(-2px); }
.bb-unlockable-item.active { border-color: var(--bb-gold); background: rgba(192,57,43,0.1); }
.bb-unlockable-item.locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }
.bb-unlockable-item.locked::after { content: '🔒'; position: absolute; top: 5px; right: 5px; font-size: 0.8rem; }
.bb-skin-preview { height: 60px; border-radius: 8px; margin-bottom: 0.5rem; }
.bb-border-preview { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center; background: #333; }

/* ---- Profile Photo Grid ---- */
.bb-profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.bb-profile-photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: var(--bb-card);
  -webkit-tap-highlight-color: transparent;
}
.bb-profile-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.bb-profile-photo-item:hover img,
.bb-profile-photo-item:active img { transform: scale(1.06); }
.bb-profile-photo-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1.4rem;
  color: #fff;
}
.bb-profile-photo-item:hover .bb-profile-photo-zoom,
.bb-profile-photo-item:active .bb-profile-photo-zoom { opacity: 1; }
@media (max-width: 600px) {
  .bb-profile-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* ---- User Anthem Banner ---- */
.bb-anthem-banner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(30,215,96,0.12), rgba(30,215,96,0.04));
  border: 1px solid rgba(30,215,96,0.3);
  border-radius: var(--bb-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.bb-anthem-icon { font-size: 1.8rem; color: #1ED760; }
.bb-anthem-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #1ED760; font-weight: 700; }
.bb-anthem-title { font-size: 0.95rem; font-weight: 600; color: var(--bb-text); }
.bb-anthem-embed { width: 100%; }
.bb-anthem-embed iframe { border-radius: 8px; }

/* ---- Anthem Bar ---- */
.bb-anthem-bar {
  background: linear-gradient(135deg, rgba(30,215,96,0.10), rgba(30,215,96,0.03));
  border: 1px solid rgba(30,215,96,0.25);
  border-radius: var(--bb-radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bb-anthem-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bb-anthem-bar-icon { font-size: 1.5rem; color: #1ED760; flex-shrink: 0; }
.bb-anthem-bar-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #1ED760; font-weight: 700; }
.bb-anthem-bar-title { font-size: 0.9rem; font-weight: 600; color: var(--bb-text); }
.bb-anthem-bar-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bb-anthem-play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1ED760;
  color: #000;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.bb-anthem-play-btn:hover { transform: scale(1.1); }
.bb-anthem-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.bb-anthem-progress {
  height: 100%;
  width: 0%;
  background: #1ED760;
  border-radius: 2px;
  transition: width 0.5s linear;
}
.bb-anthem-time { font-size: 0.75rem; color: var(--bb-text-muted); flex-shrink: 0; min-width: 28px; text-align: right; }
.bb-anthem-bar-embed {
  width: 100%;
  overflow: hidden;          /* clip any iframe overflow */
  position: relative;
  border-radius: 8px;
  /* Fixed height matches Spotify compact embed */
  height: 80px;
  flex-shrink: 0;
}
.bb-anthem-bar-embed iframe {
  display: block;
  border-radius: 8px;
  width: 100% !important;
  height: 80px !important;   /* lock height — no reflow */
  max-width: 100% !important;
  border: none;
  /* Prevent iframe from scrolling its own content on mobile */
  overflow: hidden;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .bb-anthem-bar {
    padding: 0.75rem 1rem;
    flex-direction: column;  /* stack label above embed */
    gap: 0.6rem;
  }
  .bb-anthem-bar-embed {
    height: 80px;            /* same fixed height on mobile */
    width: 100%;
  }
  .bb-anthem-bar-embed iframe {
    height: 80px !important;
  }
}

/* ---- Photo / Video delete buttons ---- */
.bb-profile-photo-item { position: relative; overflow: hidden; }
.bb-photo-delete-btn {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(200,0,0,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.bb-profile-photo-item:hover .bb-photo-delete-btn { display: flex; }
.bb-photo-delete-btn:hover { background: rgba(180,0,0,1); }

/* ============================================================
   WHO'S OUT TONIGHT
   ============================================================ */
.bb-out-tonight-wrap { margin-top: 2.5rem; }

.bb-out-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bb-out-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s;
}
.bb-out-card:hover { border-color: rgba(192,57,43,0.35); }

.bb-out-card-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192,57,43,0.4);
  display: block;
}

.bb-out-card-body { flex: 1; min-width: 0; }

.bb-out-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bb-text);
  text-decoration: none;
  margin-bottom: 0.2rem;
}
.bb-out-card-name:hover { color: var(--bb-gold); }

.bb-out-you {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--bb-gold);
  margin-left: 0.25rem;
}

.bb-out-card-city {
  font-size: 0.78rem;
  color: var(--bb-gold);
  margin-bottom: 0.2rem;
}

.bb-out-card-note {
  font-size: 0.82rem;
  color: var(--bb-text);
  margin-bottom: 0.2rem;
  font-style: italic;
}

.bb-out-card-time {
  font-size: 0.78rem;
  color: var(--bb-text-dim);
}


/* ============================================================
   MATCH POWER WIDGET
   ============================================================ */

/* ---- Chip multi-select grid (profile settings) ---- */
.bb-mp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.bb-mp-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--bb-border);
  background: var(--bb-card);
  color: var(--bb-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--bb-transition);
  user-select: none;
}
.bb-mp-chip:hover {
  border-color: var(--bb-accent);
  color: var(--bb-text);
}
.bb-mp-chip-active {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: #fff;
}

/* ---- Match Power floating widget on profiles ---- */
.bb-match-power-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.6);
  border: 1.5px solid rgba(192,57,43,0.3);
  border-radius: var(--bb-radius);
  backdrop-filter: blur(8px);
  min-width: 90px;
}
.bb-mp-heart-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Animated PNG heart image */
.bb-mp-heart-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: bb-heartbeat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255,80,20,0.75))
           drop-shadow(0 0 22px rgba(255,120,0,0.5))
           drop-shadow(0 0 40px rgba(220,40,0,0.3));
}
@keyframes bb-heartbeat {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 8px  rgba(255,80,20,0.65)) drop-shadow(0 0 20px rgba(255,120,0,0.4))  drop-shadow(0 0 38px rgba(220,40,0,0.25)); }
  14%  { transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(255,80,20,1.0))  drop-shadow(0 0 34px rgba(255,120,0,0.7))  drop-shadow(0 0 60px rgba(220,40,0,0.5)); }
  28%  { transform: scale(1);    filter: drop-shadow(0 0 8px  rgba(255,80,20,0.65)) drop-shadow(0 0 20px rgba(255,120,0,0.4))  drop-shadow(0 0 38px rgba(220,40,0,0.25)); }
  42%  { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(255,80,20,0.85)) drop-shadow(0 0 28px rgba(255,120,0,0.58)) drop-shadow(0 0 50px rgba(220,40,0,0.4)); }
  70%  { transform: scale(1);    filter: drop-shadow(0 0 8px  rgba(255,80,20,0.65)) drop-shadow(0 0 20px rgba(255,120,0,0.4))  drop-shadow(0 0 38px rgba(220,40,0,0.25)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 8px  rgba(255,80,20,0.65)) drop-shadow(0 0 20px rgba(255,120,0,0.4))  drop-shadow(0 0 38px rgba(220,40,0,0.25)); }
}
/* Score number below heart (not overlaid — sits in its own row in the widget) */
.bb-mp-score-num {
  display: none; /* score shown in .bb-mp-label row instead */
}
/* Label below heart */
.bb-mp-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bb-text);
  text-align: center;
  line-height: 1.2;
}
.bb-mp-sublabel {
  font-size: 0.65rem;
  color: var(--bb-text-muted);
  text-align: center;
}

/* ---- Match Power outer wrapper (outside hero) ---- */
.bb-mp-widget-outer {
  display: flex;
  justify-content: center;
  margin-top: -1rem;
  margin-bottom: 1rem;
  padding-right: 0;
  position: relative;
  z-index: 10;
}
@media (max-width: 600px) {
  .bb-mp-widget-outer {
    justify-content: center;
    padding-right: 0;
    margin-top: 0.5rem;
  }
}

/* ---- Discover grid card badge (small) ---- */
.bb-mp-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,50,50,0.4);
  border-radius: 999px;
  padding: 2px 7px 2px 4px;
  backdrop-filter: blur(4px);
  z-index: 5;
}
.bb-mp-badge-heart {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  animation: bb-heartbeat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255,80,20,0.85));
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transform-origin: center;
}
.bb-mp-badge-num {
  font-family: 'Bangers', 'Impact', 'Arial Black', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  line-height: 1;
}

/* ---- Loading skeleton ---- */
.bb-mp-loading .bb-mp-heart-img {
  opacity: 0.3;
  animation: none;
  filter: none;
}

/* ============================================================
   RIGHT NOW — Live map/list feature
   ============================================================ */

/* Live badge in sidebar */
.bb-rn-live-badge {
  background: var(--bb-gold) !important;
  color: #000 !important;
  animation: bb-rn-pulse-badge 1.8s ease-in-out infinite;
}
@keyframes bb-rn-pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Page wrapper */
.bb-rn-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--bb-topbar-h));
  overflow: hidden;
  position: relative;
}

/* Top bar */
.bb-rn-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bb-dark);
  border-bottom: 1px solid var(--bb-border);
  flex-shrink: 0;
  z-index: 10;
}
.bb-rn-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bb-text);
  margin: 0;
  flex: 1;
}
.bb-rn-title i { color: var(--bb-gold); margin-right: 0.4rem; }

/* View toggle buttons */
.bb-rn-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--bb-card);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--bb-border);
}
.bb-rn-view-btn {
  background: none;
  border: none;
  color: var(--bb-text-dim);
  width: 34px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--bb-transition);
}
.bb-rn-view-btn.active {
  background: var(--bb-gold);
  color: #000;
}

/* Map */
.bb-rn-map {
  flex: 1;
  min-height: 0;
  z-index: 1;
}

/* List */
.bb-rn-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#bb-rn-list-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Empty state */
.bb-rn-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  text-align: center;
  padding: 2rem;
}

/* Entry card */
.bb-rn-card {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.bb-rn-card:hover { border-color: rgba(192,57,43,0.35); }

.bb-rn-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.5rem;
}
.bb-rn-card-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192,57,43,0.4);
  display: block;
  flex-shrink: 0;
}
.bb-rn-card-meta { flex: 1; min-width: 0; }
.bb-rn-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-rn-card-time {
  font-size: 0.75rem;
  color: var(--bb-gold);
  font-weight: 600;
}
.bb-rn-card-time i { margin-right: 0.2rem; }
.bb-rn-card-edit { padding: 4px 8px !important; font-size: 0.8rem !important; }

.bb-rn-card-status {
  padding: 0 1rem 0.85rem;
  font-size: 0.9rem;
  color: var(--bb-text);
  margin: 0;
  line-height: 1.5;
}

/* Blurred image */
.bb-rn-card-img-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  max-height: 280px;
}
.bb-rn-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(18px) brightness(0.6);
  transform: scale(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.bb-rn-card-img-wrap img[data-revealed="1"] {
  filter: none;
  transform: scale(1);
}
.bb-rn-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.4rem;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.bb-rn-blur-overlay i { font-size: 1.1rem; }

/* Map markers */
.bb-rn-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--bb-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}
.bb-rn-marker:hover { transform: scale(1.12); }
.bb-rn-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bb-rn-marker--me {
  border-color: var(--bb-gold);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.4), 0 2px 12px rgba(0,0,0,0.6);
}
.bb-rn-marker-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--bb-gold);
  animation: bb-rn-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes bb-rn-pulse {
  0%   { opacity: 0.8; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* Backdrop */
.bb-rn-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  backdrop-filter: blur(2px);
}

/* Compose sheet */
.bb-rn-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bb-card);
  border-top: 1px solid var(--bb-border);
  border-radius: 20px 20px 0 0;
  padding: 1rem 1.25rem 2rem;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 600px;
  margin: 0 auto;
}
.bb-rn-sheet--in { transform: translateY(0); }
.bb-rn-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--bb-border);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.bb-rn-textarea {
  width: 100%;
  min-height: 90px;
  background: var(--bb-dark);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  color: var(--bb-text);
  padding: 0.75rem;
  font-size: 0.95rem;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.bb-rn-textarea:focus { border-color: var(--bb-gold); outline: none; }
.bb-rn-char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--bb-text-dim);
  margin: 0.25rem 0 0.75rem;
}

/* Image upload row */
.bb-rn-img-row {
  margin-bottom: 0.85rem;
}
.bb-rn-img-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bb-dark);
  border: 1px dashed var(--bb-border);
  border-radius: var(--bb-radius-sm);
  color: var(--bb-text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.bb-rn-img-label:hover { border-color: var(--bb-gold); color: var(--bb-text); }

#bb-rn-img-preview-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
#bb-rn-img-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--bb-radius-sm);
  border: 1px solid var(--bb-border);
  display: block;
}
.bb-rn-img-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bb-gold);
  color: #000;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Entry popup */
.bb-rn-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bb-card);
  border-top: 1px solid var(--bb-border);
  border-radius: 20px 20px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  max-width: 600px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}
.bb-rn-popup--in { transform: translateY(0); }
.bb-rn-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--bb-dark);
  border: 1px solid var(--bb-border);
  color: var(--bb-text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
#bb-rn-popup-inner { padding: 1rem 0 0.5rem; }

/* Leaflet dark overrides */
.leaflet-container { background: #111 !important; }
.leaflet-control-zoom a {
  background: var(--bb-card) !important;
  color: var(--bb-text) !important;
  border-color: var(--bb-border) !important;
}

/* ── Location confirm prompt ──────────────────────────────────── */
.bb-rn-loc-confirm {
  position: fixed;
  top: calc(var(--bb-topbar-h) + 60px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.25rem 1.5rem;
  z-index: 50;
  text-align: center;
  box-shadow: var(--bb-shadow);
  min-width: 260px;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-rn-loc-confirm-inner { width: 100%; }

/* ── Location button in topbar ────────────────────────────────── */
.bb-rn-loc-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: 20px;
  color: var(--bb-text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  cursor: pointer;
  transition: var(--bb-transition);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-rn-loc-btn:hover {
  border-color: var(--bb-gold);
  background: rgba(192,57,43,0.08);
  color: var(--bb-gold);
}
.bb-rn-loc-btn i {
  color: var(--bb-gold);
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* ── City search sheet ────────────────────────────────────────── */
.bb-rn-city-search-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}
.bb-rn-city-input {
  width: 100%;
  background: var(--bb-dark);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  color: var(--bb-text);
  padding: 0.65rem 0.75rem 0.65rem 2.25rem;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.bb-rn-city-input:focus { border-color: var(--bb-gold); outline: none; }
.bb-rn-city-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bb-text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}
.bb-rn-city-results {
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--bb-radius-sm);
  border: 1px solid transparent;
}
.bb-rn-city-results:not(:empty) { border-color: var(--bb-border); }
.bb-rn-city-result {
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--bb-text);
  cursor: pointer;
  border-bottom: 1px solid var(--bb-border);
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.bb-rn-city-result:last-child { border-bottom: none; }
.bb-rn-city-result:hover { background: var(--bb-card-hover); }
.bb-rn-city-loading {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--bb-text-dim);
  text-align: center;
}

/* ── Right Now: Desktop layout overrides ──────────────────────── */
/* On desktop (≥769px) constrain the content to a mobile-width column
   centred in the main area, so it looks identical to mobile */
@media (min-width: 769px) {

  /* Constrain the whole page to 96% width centred */
  .bb-rn-wrap {
    max-width: 96%;
    width: 96%;
    margin: 0 auto;
    height: calc(100vh - var(--bb-topbar-h));
    border-left: 1px solid var(--bb-border);
    border-right: 1px solid var(--bb-border);
  }

  /* Map fills the column */
  .bb-rn-map {
    width: 100%;
  }

  /* List view padding */
  .bb-rn-list {
    padding: 0.75rem;
  }

  /* Cards: auto-fit image — natural aspect ratio, capped sensibly */
  .bb-rn-card-img-wrap {
    max-height: 420px;
    height: auto;
  }
  .bb-rn-card-img-wrap img {
    height: auto;
    max-height: 420px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: #0a0a0a;
  }

  /* List: two-column grid on wide desktop */
  #bb-rn-list-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  /* Sheets slide up centred under the 80% column */
  .bb-rn-sheet,
  .bb-rn-popup {
    max-width: 560px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }
  .bb-rn-sheet--in,
  .bb-rn-popup--in {
    transform: translateX(-50%) translateY(0);
  }

  /* Location confirm sits inside the column */
  .bb-rn-loc-confirm {
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: calc(480px - 3rem);
  }
}

/* ── Right Now: Fullscreen image lightbox ─────────────────────── */
.bb-rn-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: bb-rn-lb-in 0.2s ease;
}
@keyframes bb-rn-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.bb-rn-lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
  cursor: default;
}
.bb-rn-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
}
.bb-rn-lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Expand hint shown on revealed images */
.bb-rn-expand-hint {
  position: absolute;
  bottom: 0.5rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(4px);
}


/* ============================================================
   MATCH POWER — Promotional page
   ============================================================ */

/* Page wrapper — uses bb-content padding, no extra wrapper needed */
.bb-mp-page { max-width: 860px; }

/* Page header bar */
.bb-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.bb-page-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.bb-page-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bb-text);
  margin: 0;
  letter-spacing: -0.01em;
}
.bb-page-header-sub {
  font-size: 0.82rem;
  color: var(--bb-text-dim);
  margin: 0;
  line-height: 1.4;
}
.bb-mp-header-cta { margin-left: auto; flex-shrink: 0; }

/* Intro card */
.bb-mp-intro {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.bb-mp-intro p { margin-bottom: 0.75rem; color: var(--bb-text-muted); }
.bb-mp-intro p:last-child { margin-bottom: 0; }
.bb-mp-intro strong { color: var(--bb-text); }

/* Sub-headings between sections */
.bb-mp-sub-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-text-dim);
  margin: 1.75rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bb-mp-sub-heading i { color: var(--bb-gold); font-size: 0.7rem; }

/* Score bands */
.bb-mp-bands {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.bb-mp-band {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
}
.bb-mp-band:hover { border-color: rgba(192,57,43,0.25); }
.bb-mp-band-score {
  font-size: 0.95rem;
  font-weight: 900;
  min-width: 40px;
  text-align: center;
  border: 1.5px solid;
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  flex-shrink: 0;
  font-family: monospace;
}
.bb-mp-band-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.bb-mp-band-label {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.bb-mp-band-desc {
  font-size: 0.76rem;
  color: var(--bb-text-dim);
  line-height: 1.4;
}

/* Benefit cards */
.bb-mp-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.bb-mp-benefit {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
}
.bb-mp-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(192,57,43,0.1);
  color: var(--bb-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.bb-mp-benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bb-text);
  margin: 0 0 0.3rem;
}
.bb-mp-benefit-body {
  font-size: 0.82rem;
  color: var(--bb-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 14 Pillars grid */
.bb-mp-pillars-intro {
  font-size: 0.82rem;
  color: var(--bb-text-dim);
  margin-bottom: 0.75rem;
}
.bb-mp-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.bb-mp-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 0.6rem 0.8rem;
  transition: border-color 0.2s;
}
.bb-mp-pillar:hover { border-color: rgba(192,57,43,0.25); }
.bb-mp-pillar-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(192,57,43,0.08);
  color: var(--bb-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.bb-mp-pillar-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bb-text);
  line-height: 1.3;
}
.bb-mp-pillar-desc {
  font-size: 0.72rem;
  color: var(--bb-text-dim);
  line-height: 1.35;
  margin-top: 0.1rem;
}

/* Bottom CTA strip */
.bb-mp-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  border-left: 3px solid var(--bb-gold);
}
.bb-mp-bottom-cta-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bb-text);
  margin-bottom: 0.2rem;
}
.bb-mp-bottom-cta-sub {
  font-size: 0.8rem;
  color: var(--bb-text-dim);
}

/* Mobile */
@media (max-width: 600px) {
  .bb-mp-benefits { grid-template-columns: 1fr; }
  .bb-mp-pillars  { grid-template-columns: 1fr 1fr; }
  .bb-mp-header-cta { display: none; }
  .bb-mp-bottom-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   BLACKBOOK PLUS — Styles
   ============================================================ */

/* Sidebar Get Plus nav item */
.bb-nav-item-plus { color: var(--bb-gold) !important; }
.bb-nav-item-plus .bb-nav-icon i { color: var(--bb-gold); }
.bb-nav-item-plus:hover { background: rgba(212,175,55,0.08) !important; }

/* Early Adopter badge on profiles */
.bb-badge-early {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(246,201,14,0.12);
  border: 1px solid rgba(246,201,14,0.35);
  color: #f6c90e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 0.25rem;
  letter-spacing: 0.03em;
}

/* Discover Plus upsell banner */
.bb-plus-upsell-banner {
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: var(--bb-radius);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}
.bb-plus-upsell-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bb-plus-upsell-icon { font-size: 1.5rem; flex-shrink: 0; }
.bb-plus-upsell-inner > div { flex: 1; min-width: 200px; }
.bb-plus-upsell-inner strong { font-size: 0.9rem; color: var(--bb-text); }
.bb-plus-upsell-inner p { font-size: 0.8rem; color: var(--bb-text-muted); margin: 0.2rem 0 0; }

/* Locked attach button in messages */
.bb-chat-attach-locked { opacity: 0.5; text-decoration: none; color: var(--bb-text-dim) !important; }
.bb-chat-attach-locked:hover { opacity: 0.8; color: var(--bb-gold) !important; }

/* Locked image button in Right Now */
.bb-rn-img-locked { opacity: 0.55; text-decoration: none; cursor: pointer; }
.bb-rn-img-locked:hover { opacity: 0.8; }

/* ============================================================
   ADVERTISING SLOTS
   ============================================================ */
.bb-ad-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--bb-radius);
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  text-align: center;
  line-height: 0;
}
.bb-ad-slot > * { line-height: normal; }
.bb-ad-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.6rem;
  color: var(--bb-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  background: var(--bb-card);
  padding: 1px 4px;
  border-radius: 3px;
  opacity: 0.7;
}
.bb-ad-sidebar_bottom {
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: transparent;
}
.bb-ad-messages_sidebar {
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: transparent;
}
.bb-ad-grid-tile {
  aspect-ratio: 1;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bb-ad-grid-tile .bb-ad-label { top: 4px; right: 4px; }
.bb-ad-grid-tile > *:not(.bb-ad-label) { width: 100%; height: 100%; object-fit: cover; }


/* ═══════════════════════════════════════════════════════════════════════════════
   PROFILE SKINS - GOLDEN GLOW (Rainbow Design)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Golden Glow Skin Wrapper */
.bb-profile-wrap.bb-skin-golden-glow {
  position: relative;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1414 50%, #1a0a0a 100%);
  border: 3px solid transparent;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    inset 0 0 60px rgba(255, 215, 0, 0.1),
    0 0 80px rgba(255, 100, 0, 0.2),
    0 0 120px rgba(255, 0, 0, 0.1);
  overflow: hidden;
}

/* Rainbow Gradient Border Effect */
.bb-profile-wrap.bb-skin-golden-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(45deg, 
    #ff4444, #ff8844, #ffdd44, 
    #44ff44, #44ddff, #4444ff, 
    #ff44ff, #ff4444);
  background-size: 300% 300%;
  animation: rainbow-rotate 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

@keyframes rainbow-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cute Character Accents - Corner Circles */
.bb-profile-wrap.bb-skin-golden-glow::after {
  content: '';
  position: absolute;
  top: -15px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #ff4444);
  border-radius: 50%;
  border: 3px solid #ffaa88;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
  z-index: 2;
}

/* Additional corner accents using pseudo-elements on child */
.bb-profile-wrap.bb-skin-golden-glow {
  --accent-1: #ff4444;
  --accent-2: #ff8844;
  --accent-3: #ffdd44;
  --accent-4: #44ff44;
  --accent-5: #44ddff;
  --accent-6: #4444ff;
  --accent-7: #ff44ff;
  --accent-8: #ff8844;
}

/* Rainbow Gradient Background for Content */
.bb-profile-wrap.bb-skin-golden-glow .bb-card,
.bb-profile-wrap.bb-skin-golden-glow .bb-card-body {
  background: linear-gradient(135deg, 
    rgba(200, 100, 150, 0.15) 0%,
    rgba(150, 100, 200, 0.15) 50%,
    rgba(100, 150, 200, 0.15) 100%);
  border-color: rgba(255, 215, 0, 0.3);
}

/* Rainbow Stripes on Sections */
.bb-profile-wrap.bb-skin-golden-glow .bb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #ff4444, #ff8844, #ffdd44, 
    #44ff44, #44ddff, #4444ff, 
    #ff44ff);
  background-size: 200% 100%;
  animation: rainbow-slide 4s linear infinite;
  border-radius: 12px 12px 0 0;
}

@keyframes rainbow-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Golden Glow Accent on Buttons */
.bb-profile-wrap.bb-skin-golden-glow .bb-btn,
.bb-profile-wrap.bb-skin-golden-glow button {
  background: linear-gradient(135deg, #ff6b6b, #ff8844);
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 100, 0, 0.3);
  transition: all 0.3s ease;
}

.bb-profile-wrap.bb-skin-golden-glow .bb-btn:hover,
.bb-profile-wrap.bb-skin-golden-glow button:hover {
  box-shadow: 0 0 25px rgba(255, 100, 0, 0.6);
  transform: translateY(-2px);
}

/* Rainbow Text Accents */
.bb-profile-wrap.bb-skin-golden-glow h1,
.bb-profile-wrap.bb-skin-golden-glow h2,
.bb-profile-wrap.bb-skin-golden-glow h3 {
  background: linear-gradient(90deg, 
    #ff4444, #ff8844, #ffdd44, 
    #44ff44, #44ddff, #4444ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skin Selector Styles */
.bb-skin-selector {
  padding: 1rem;
  border: 2px solid var(--bb-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--bb-card);
}

.bb-skin-selector:hover {
  border-color: var(--bb-gold);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
}

.bb-skin-selector.active {
  border-color: var(--bb-gold);
  background: rgba(192, 57, 43, 0.1);
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.3);
}

.bb-skin-selector.locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.bb-skin-selector.locked:hover {
  transform: none;
  border-color: var(--bb-border);
  box-shadow: none;
}

/* Preview for Golden Glow Skin */
.bb-skin-preview.bb-skin-golden-glow {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1414 50%, #1a0a0a 100%);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent !important;
  background-clip: padding-box;
}

.bb-skin-preview.bb-skin-golden-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    #ff4444, #ff8844, #ffdd44, 
    #44ff44, #44ddff, #4444ff, 
    #ff44ff, #ff4444);
  background-size: 300% 300%;
  animation: rainbow-rotate 3s linear infinite;
  opacity: 0.85;
  z-index: 1;
}

.bb-skin-preview.bb-skin-golden-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(200, 100, 150, 0.25) 0%,
    rgba(150, 100, 200, 0.25) 50%,
    rgba(100, 150, 200, 0.25) 100%);
  z-index: 2;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .bb-profile-wrap.bb-skin-golden-glow {
    padding: 15px;
    border-radius: 16px;
  }
  
  .bb-profile-wrap.bb-skin-golden-glow::after {
    width: 30px;
    height: 30px;
    top: -10px;
    right: 20px;
  }
}

/* Cute Corner Decorations - Using Box Shadow Technique */
.bb-profile-wrap.bb-skin-golden-glow {
  box-shadow: 
    /* Top-left corner */
    -25px -25px 0 -20px #ff4444,
    /* Top-right corner */
    25px -25px 0 -20px #ffdd44,
    /* Bottom-left corner */
    -25px 25px 0 -20px #44ff44,
    /* Bottom-right corner */
    25px 25px 0 -20px #4444ff,
    /* Center glow */
    inset 0 0 60px rgba(255, 215, 0, 0.1),
    0 0 80px rgba(255, 100, 0, 0.2),
    0 0 120px rgba(255, 0, 0, 0.1);
}

/* Additional decorative elements along edges */
.bb-profile-wrap.bb-skin-golden-glow {
  border-image: linear-gradient(90deg,
    #ff4444 0%,
    #ff8844 14%,
    #ffdd44 28%,
    #44ff44 42%,
    #44ddff 57%,
    #4444ff 71%,
    #ff44ff 85%,
    #ff4444 100%) 1;
}

/* =============================================================================
   PROFILE SKINS - TEST PROFILE SKIN (Base Template)
   ============================================================================= */

/* Test Profile Skin Wrapper */
.bb-profile-wrap.bb-skin-test-skin {
  position: relative;
  background: linear-gradient(135deg, #15102a 0%, #0d0914 100%);
  border: 4px solid var(--bb-gold, #d4af37);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    inset 0 0 30px rgba(212, 175, 55, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Custom base styling for cards inside the test skin */
.bb-profile-wrap.bb-skin-test-skin .bb-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Glowing text header for the test skin */
.bb-profile-wrap.bb-skin-test-skin h1.bb-hero-name {
  color: var(--bb-gold, #d4af37) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Tab Active State custom styling */
.bb-profile-wrap.bb-skin-test-skin .bb-tab.active {
  color: var(--bb-gold, #d4af37) !important;
  border-bottom-color: var(--bb-gold, #d4af37) !important;
}

/* Buttons in the test skin */
.bb-profile-wrap.bb-skin-test-skin .bb-btn-primary {
  background: var(--bb-gold, #d4af37) !important;
  color: #000 !important;
  font-weight: 700;
  border: 1px solid #fff;
}

/* Preview thumbnail for Test Profile Skin in selector settings */
.bb-skin-preview.bb-skin-test-skin {
  background: linear-gradient(135deg, #15102a 0%, #0d0914 100%);
  border: 2px solid var(--bb-gold, #d4af37) !important;
  border-radius: 8px;
  position: relative;
}

.bb-skin-preview.bb-skin-test-skin::after {
  content: 'TEST';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bb-gold, #d4af37);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

/* =============================================================================
   PROFILE SKINS - ART GALLERY SKIN
   ============================================================================= */

/* Art Gallery Skin Wrapper */
.bb-profile-wrap.bb-skin-gallery-skin {
  position: relative;
  background: url('assets/images/gallery_skin_bg.jpg') no-repeat center center;
  background-size: cover;
  border: 4px double #002b80;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Framed Avatar element */
.bb-profile-wrap.bb-skin-gallery-skin .bb-profile-avatar {
  border-radius: 0 !important;
  border: 10px solid #ffffff !important;
  outline: 4px solid #111111 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5) !important;
  transition: transform 0.3s ease;
}

/* Cards inside Gallery Skin */
.bb-profile-wrap.bb-skin-gallery-skin .bb-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 2px solid #002b80 !important;
  border-radius: 8px !important;
  color: #111111 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.bb-profile-wrap.bb-skin-gallery-skin .bb-card-body,
.bb-profile-wrap.bb-skin-gallery-skin .bb-card-header {
  color: #111111 !important;
  border-bottom-color: rgba(0, 43, 128, 0.15) !important;
}

/* Text adjustments */
.bb-profile-wrap.bb-skin-gallery-skin h1,
.bb-profile-wrap.bb-skin-gallery-skin h2,
.bb-profile-wrap.bb-skin-gallery-skin h3,
.bb-profile-wrap.bb-skin-gallery-skin .bb-profile-name,
.bb-profile-wrap.bb-skin-gallery-skin .bb-card-title {
  color: #111111 !important;
  font-family: var(--bb-font-display, serif) !important;
}

/* Buttons */
.bb-profile-wrap.bb-skin-gallery-skin .bb-btn-primary {
  background: #002b80 !important;
  color: #ffffff !important;
  border: 1px solid #001a4d !important;
  border-radius: 4px !important;
}

/* Tabs */
.bb-profile-wrap.bb-skin-gallery-skin .bb-tab {
  color: #555555 !important;
}
.bb-profile-wrap.bb-skin-gallery-skin .bb-tab.active {
  color: #002b80 !important;
  border-bottom-color: #002b80 !important;
}

/* Preview grid selector thumbnail style */
.bb-skin-preview.bb-skin-gallery-skin {
  background: url('assets/images/gallery_skin_bg.jpg') no-repeat center center;
  background-size: cover;
  border: 2px solid #002b80 !important;
  border-radius: 8px;
  position: relative;
}

/* =============================================================================
   PROFILE SKINS - VINTAGE LIBRARY SKIN
   ============================================================================= */

/* Vintage Library Skin Wrapper */
.bb-profile-wrap.bb-skin-library-skin {
  position: relative;
  background: url('assets/images/library_skin_bg.jpg') no-repeat center center;
  background-size: cover;
  border: 4px solid #d4af37;
  border-radius: 20px;
  padding: 20px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.8);
}

/* Avatar element */
.bb-profile-wrap.bb-skin-library-skin .bb-profile-avatar {
  border: 3px solid #d4af37 !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

/* Cards inside Library Skin */
.bb-profile-wrap.bb-skin-library-skin .bb-card {
  background: rgba(20, 16, 12, 0.88) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05), 0 4px 20px rgba(0,0,0,0.7) !important;
}

/* Text and Titles */
.bb-profile-wrap.bb-skin-library-skin h1,
.bb-profile-wrap.bb-skin-library-skin h2,
.bb-profile-wrap.bb-skin-library-skin h3,
.bb-profile-wrap.bb-skin-library-skin .bb-profile-name,
.bb-profile-wrap.bb-skin-library-skin .bb-card-title,
.bb-profile-wrap.bb-skin-library-skin .bb-settings-section-title {
  color: #fbf5b7 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-family: var(--bb-font-display, serif) !important;
}

/* Buttons */
.bb-profile-wrap.bb-skin-library-skin .bb-btn-primary {
  background: linear-gradient(135deg, #d4af37, #aa771c) !important;
  color: #1a0a00 !important;
  font-weight: 700;
  border: 1px solid #fbf5b7 !important;
}

/* Tabs */
.bb-profile-wrap.bb-skin-library-skin .bb-tab.active {
  color: #d4af37 !important;
  border-bottom-color: #d4af37 !important;
}

/* Preview grid selector thumbnail style */
.bb-skin-preview.bb-skin-library-skin {
  background: url('assets/images/library_skin_bg.jpg') no-repeat center center;
  background-size: cover;
  border: 2px solid #d4af37 !important;
  border-radius: 8px;
  position: relative;
}

/* ============================================================
   Desktop Profile Section Gaps
   Adds breathing room between sections so skin backgrounds show.
   Desktop only — no effect on mobile.
   ============================================================ */
@media (min-width: 768px) {

  /* Restrict desktop content width and center it so the background is visible on sides */
  .bb-profile-wrap .bb-hero,
  .bb-profile-wrap .bb-anthem-bar,
  .bb-profile-wrap .bb-vibes-section,
  .bb-profile-wrap .bb-endorse-section,
  .bb-profile-wrap .bb-tabs-wrap {
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  .bb-profile-wrap .bb-hero {
    border-radius: 16px !important;
  }

  /* Space between the hero area and the anthem bar */
  .bb-profile-wrap .bb-anthem-bar {
    margin-top: 3.75rem !important;
    margin-bottom: 0 !important;
    border-radius: 16px !important;
  }

  /* Gap below anthem, above vibes */
  .bb-profile-wrap .bb-vibes-section {
    margin-top: 3.75rem !important;
    border-radius: 16px !important;
  }

  /* Gap below vibes, above endorsements */
  .bb-profile-wrap .bb-endorse-section {
    margin-top: 3.75rem !important;
    border-top: none !important;
    border-radius: 16px !important;
  }

  /* Gap below endorsements, above tabs */
  .bb-profile-wrap .bb-tabs-wrap {
    margin-top: 3.75rem !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }

  /* Cards inside the tab content have gaps between them */
  .bb-profile-wrap .bb-tab-content {
    display: none;
    padding: 3.75rem 0 0 0 !important;
  }
  .bb-profile-wrap .bb-tab-content.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 3.75rem !important;
  }

  /* Cards themselves get rounded corners and consistent gap */
  .bb-profile-wrap .bb-tab-content .bb-card {
    margin-bottom: 0 !important;
    border-radius: 16px !important;
  }

  /* The post creator card at the top of the wall tab */
  .bb-profile-wrap .bb-post-creator {
    border-radius: 16px !important;
  }

  /* Sidebar grid on wall tab (left/right column layout) */
  .bb-profile-wrap .bb-tab-content [style*="grid-template-columns"] {
    gap: 3.75rem !important;
  }

}


