/*
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: 1.0.0
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&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --bb-black:        #0a0a0a;
  --bb-dark:         #111111;
  --bb-card:         #1a1a1a;
  --bb-card-hover:   #222222;
  --bb-border:       #2a2a2a;
  --bb-gold:         #c9a84c;
  --bb-gold-light:   #e8c97a;
  --bb-gold-dark:    #9a7a30;
  --bb-accent:       #d4af37;
  --bb-red:          #e53e3e;
  --bb-green:        #38a169;
  --bb-blue:         #3182ce;
  --bb-text:         #f0f0f0;
  --bb-text-muted:   #888888;
  --bb-text-dim:     #555555;
  --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(201,168,76,0.2);
  --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-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bb-text);
}

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-muted); }

/* ---- Layout ---- */
.bb-app {
  display: flex;
  min-height: 100vh;
}

.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;
  transition: var(--bb-transition);
}

.bb-main {
  margin-left: var(--bb-sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.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.65rem; 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(201,168,76,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;
}

/* ---- Logo ---- */
.bb-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--bb-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bb-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--bb-gold), var(--bb-gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--bb-black);
  font-family: var(--bb-font-display);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(201,168,76,0.4);
}

.bb-logo-text {
  font-family: var(--bb-font-display);
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--bb-gold-light), var(--bb-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.bb-logo-sub {
  font-size: 0.6rem;
  color: var(--bb-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--bb-font);
  font-weight: 500;
  display: block;
  margin-top: -4px;
}

/* ---- Navigation ---- */
.bb-nav {
  padding: 1rem 0;
  flex: 1;
}

.bb-nav-section {
  margin-bottom: 1.5rem;
}

.bb-nav-label {
  font-size: 0.65rem;
  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(201,168,76,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;
}

.bb-nav-badge {
  margin-left: auto;
  background: var(--bb-gold);
  color: var(--bb-black);
  font-size: 0.65rem;
  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(201,168,76,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(201,168,76,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(201,168,76,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;
}

.bb-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bb-card);
}

.bb-grid-item img {
  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;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: var(--bb-transition);
}

.bb-grid-item:hover .bb-grid-item-overlay { opacity: 1; }

.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.65rem;
  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);
}

/* ---- 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, #1a1a1a, #2a2a2a);
  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: hidden;
  margin-bottom: 1.5rem;
}

.bb-tabs-wrap > .bb-tabs {
  background: var(--bb-dark);
  border-bottom: 1px solid var(--bb-border);
  margin-bottom: 0;
  padding: 0 0.5rem;
}

.bb-tabs-wrap > .bb-tab-content {
  padding: 1rem;
}

.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(201,168,76,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(201,168,76,0.15); color: var(--bb-gold); border-color: rgba(201,168,76,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(201,168,76,0.4); }
.bb-date-type.selected { border-color: var(--bb-gold); background: rgba(201,168,76,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(201,168,76,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; }

/* ---- Friend Web ---- */
#bb-friend-web {
  width: 100%;
  height: 500px;
  background: var(--bb-card);
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
  overflow: hidden;
  position: relative;
}

/* ---- 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(201,168,76,0.3); transform: translateY(-2px); }

.bb-group-cover {
  height: 100px;
  background: linear-gradient(135deg, var(--bb-gold-dark), var(--bb-black));
  position: relative;
}

.bb-group-info { padding: 1rem; }
.bb-group-name { font-size: 0.95rem; font-weight: 700; color: var(--bb-text); margin-bottom: 0.25rem; }
.bb-group-meta { font-size: 0.75rem; color: var(--bb-text-dim); }

/* ---- Spotify ---- */
.bb-spotify-widget {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  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.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bb-text-dim);
  margin-bottom: 1rem;
  font-family: var(--bb-font);
}

.bb-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--bb-text-dim);
}

.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 {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
}

/* ============================================================
   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 {
    display: block;
  }

  .bb-main { margin-left: 0; }

  .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 { height: 350px; }

  .bb-modal { max-width: 100%; border-radius: var(--bb-radius); }

  .bb-grid-2, .bb-grid-3 { grid-template-columns: 1fr; }
}

@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;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
}

.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 ---- */
.bb-profile-hero { position: relative; height: 260px; 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.65rem; 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; }
.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) {
  .bb-profile-hero { height: auto; min-height: 300px; padding: 1.25rem; }
  .bb-profile-hero-content { flex-direction: column; align-items: center; text-align: center; }
  .bb-profile-avatar { width: 90px; height: 90px; }
  .bb-profile-actions { justify-content: center; width: 100%; }
}

/* ---- 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: #0a0a0a !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: #0f0f0f !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(201,168,76,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.68rem; 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%; }
.bb-anthem-bar-embed iframe { border-radius: 8px; display: block; }
@media (max-width: 600px) {
  .bb-anthem-bar { padding: 0.75rem 1rem; }
}

/* ---- 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); }
