/* =============================================
   BarbellBae — Dark Mode Neon Theme
   ============================================= */

:root {
    --bb-bg:          #0a0a0f;
    --bb-bg-2:        #111118;
    --bb-bg-card:     #16161e;
    --bb-bg-card-2:   #1e1e28;
    --bb-border:      rgba(255,255,255,0.07);
    --bb-border-2:    rgba(255,255,255,0.12);

    --bb-pink:        #ff2d78;
    --bb-pink-light:  #ff6ba8;
    --bb-purple:      #9b5de5;
    --bb-blue:        #00d4ff;
    --bb-blue-dark:   #0099cc;

    --bb-text:        #f0f0f5;
    --bb-text-muted:  #b0b0c8;

    --bb-radius:      14px;
    --bb-radius-sm:   8px;
    --bb-radius-lg:   20px;

    --bb-shadow:      0 4px 24px rgba(0,0,0,0.5);
    --bb-shadow-glow-pink:   0 0 20px rgba(255,45,120,0.35);
    --bb-shadow-glow-blue:   0 0 20px rgba(0,212,255,0.25);
    --bb-shadow-glow-purple: 0 0 20px rgba(155,93,229,0.3);

    --bs-body-bg: #0a0a0f;
    --bs-body-color: #f0f0f5;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bb-bg);
    color: var(--bb-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--bb-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bb-pink); }

img { max-width: 100%; display: block; }

code { color: var(--bb-pink); background: rgba(255,45,120,0.1); padding: 2px 6px; border-radius: 4px; }

.text-muted { color: var(--bb-text-muted) !important; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bb-bg-2); }
::-webkit-scrollbar-thumb { background: var(--bb-border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bb-purple); }

/* ---- Utility ---- */
.bb-gradient-text {
    background: linear-gradient(135deg, var(--bb-pink) 0%, var(--bb-purple) 50%, var(--bb-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bb-neon-pink   { color: var(--bb-pink)   !important; }
.bb-neon-blue   { color: var(--bb-blue)   !important; }
.bb-neon-purple { color: var(--bb-purple) !important; }

.fw-black { font-weight: 900; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* =============================================
   NAVBAR
   ============================================= */
.bb-navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bb-border);
    padding: 12px 0;
    z-index: 1000;
}

.bb-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--bb-text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.bb-logo-bar { font-size: 1.4rem; }

.bb-nav-link {
    color: var(--bb-text-muted) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--bb-radius-sm);
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bb-nav-link:hover, .bb-nav-link.active {
    color: var(--bb-text) !important;
    background: rgba(255,255,255,0.05);
}

.bb-dropdown {
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-radius-sm);
    box-shadow: var(--bb-shadow);
    min-width: 200px;
    padding: 6px;
}

.bb-dropdown .dropdown-item {
    color: var(--bb-text-muted);
    border-radius: var(--bb-radius-sm);
    padding: 8px 12px;
    font-size: .9rem;
    transition: all .15s;
}

.bb-dropdown .dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--bb-text);
}

.bb-admin-link { color: var(--bb-purple) !important; }
.bb-logout { color: var(--bb-pink) !important; background: none; border: none; width: 100%; text-align: left; }
.bb-divider { border-color: var(--bb-border); margin: 4px 0; }

/* =============================================
   FOOTER
   ============================================= */
.bb-footer {
    background: var(--bb-bg-2);
    border-top: 1px solid var(--bb-border);
    margin-top: 4rem;
}

.bb-footer-logo {
    font-weight: 900;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   BUTTONS
   ============================================= */
.bb-btn-primary {
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    color: #fff !important;
    border: none;
    border-radius: var(--bb-radius-sm);
    font-weight: 700;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(255,45,120,0.3);
}

.bb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,45,120,0.45);
    color: #fff !important;
}

.bb-btn-primary:active { transform: translateY(0); }

.bb-btn-outline {
    border: 1.5px solid var(--bb-pink);
    color: var(--bb-pink) !important;
    border-radius: var(--bb-radius-sm);
    background: transparent;
    font-weight: 600;
    transition: all .2s;
}

.bb-btn-outline:hover {
    background: rgba(255,45,120,0.1);
    color: var(--bb-pink) !important;
}

.bb-btn-ghost {
    border: 1px solid var(--bb-border-2);
    color: var(--bb-text-muted) !important;
    border-radius: var(--bb-radius-sm);
    background: transparent;
    font-weight: 500;
    transition: all .2s;
}

.bb-btn-ghost:hover {
    border-color: var(--bb-text-muted);
    color: var(--bb-text) !important;
    background: rgba(255,255,255,0.04);
}

.bb-btn-hero {
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 36px;
    box-shadow: 0 6px 32px rgba(255,45,120,0.4);
    transition: all .25s;
}

.bb-btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(255,45,120,0.55);
    color: #fff !important;
}

.bb-btn-hero-ghost {
    background: transparent;
    color: rgba(255,255,255,0.8) !important;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 32px;
    transition: all .25s;
}

.bb-btn-hero-ghost:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}

.bb-btn-warning { background: #f39c12; color: #000 !important; border: none; border-radius: 6px; }
.bb-btn-success { background: #27ae60; color: #fff !important; border: none; border-radius: 6px; }
.bb-btn-danger  { background: #e74c3c; color: #fff !important; border: none; border-radius: 6px; }

/* =============================================
   CARDS
   ============================================= */
.bb-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
}

/* =============================================
   FORMS
   ============================================= */
.bb-label {
    color: var(--bb-text-muted);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
    display: block;
}

.bb-input,
.bb-select,
.bb-textarea {
    width: 100%;
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-radius-sm);
    color: var(--bb-text);
    padding: 10px 14px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.bb-input::placeholder { color: var(--bb-text-muted); }

.bb-input:focus,
.bb-select:focus,
.bb-textarea:focus {
    border-color: var(--bb-pink);
    box-shadow: 0 0 0 3px rgba(255,45,120,0.15);
    background: var(--bb-bg-card-2);
    color: var(--bb-text);
}

.bb-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%237a7a9a' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}

.bb-select option { background: var(--bb-bg-card-2); }

.bb-textarea { resize: vertical; min-height: 100px; }

.bb-select-sm {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-radius-sm);
    color: var(--bb-text);
    padding: 7px 32px 7px 12px;
    font-size: .85rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%237a7a9a' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.bb-input-group {
    position: relative;
}

.bb-input-group .bb-input { padding-right: 44px; }

.bb-input-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--bb-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
}

.bb-input-eye:hover { color: var(--bb-text); }

.bb-field-error { color: var(--bb-pink); font-size: .8rem; display: block; margin-top: 4px; }
.bb-alert-error {
    background: rgba(255,45,120,0.1);
    border: 1px solid rgba(255,45,120,0.3);
    border-radius: var(--bb-radius-sm);
    color: var(--bb-pink);
    padding: 12px 16px;
    font-size: .9rem;
}

.bb-check:checked { background-color: var(--bb-pink); border-color: var(--bb-pink); }

/* =============================================
   AUTH PAGES
   ============================================= */
.bb-auth-page {
    background: radial-gradient(ellipse at 50% 0%, rgba(155,93,229,0.15) 0%, transparent 60%),
                var(--bb-bg);
    min-height: 100vh;
}

.bb-auth-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-radius-lg);
    padding: 40px 36px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.bb-auth-logo { font-size: 3rem; margin-bottom: 12px; }
.bb-auth-title { font-size: 1.7rem; font-weight: 900; }

.bb-link { color: var(--bb-pink); font-weight: 600; }
.bb-link:hover { color: var(--bb-pink-light); }

.bb-demo-creds {
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: var(--bb-radius-sm);
    padding: 12px;
}

/* =============================================
   HERO
   ============================================= */
.bb-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(255,45,120,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(155,93,229,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(0,212,255,0.1) 0%, transparent 45%),
        linear-gradient(160deg, #0a0a0f 0%, #0d0d16 50%, #0a0a12 100%);
    min-height: 100vh;
}

.bb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.015"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.4;
}

.bb-hero-content {
    position: relative;
    z-index: 1;
}

.bb-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,45,120,0.15);
    border: 1px solid rgba(255,45,120,0.3);
    color: var(--bb-pink-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInDown .8s ease both;
}

.bb-hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp .8s .1s ease both;
}

.bb-hero-sub {
    font-size: 1.1rem;
    color: var(--bb-text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp .8s .2s ease both;
}

.bb-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    animation: fadeInUp .8s .3s ease both;
}

.bb-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    animation: fadeInUp .8s .4s ease both;
}

.bb-stat-item {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}

.bb-stat-item:first-child { padding-left: 0; }

.bb-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.bb-stat-label {
    font-size: .78rem;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}

.bb-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--bb-border-2);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.bb-features-section {
    padding: 80px 0;
    background: var(--bb-bg-2);
    border-top: 1px solid var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
}

.bb-section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
}

.bb-section-sub {
    color: var(--bb-text-muted);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bb-feature-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all .3s;
    height: 100%;
}

.bb-feature-card:hover {
    border-color: rgba(155,93,229,0.4);
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow-glow-purple);
}

.bb-feature-card--hot:hover {
    border-color: rgba(255,45,120,0.4);
    box-shadow: var(--bb-shadow-glow-pink);
}

.bb-feature-icon { font-size: 2.8rem; margin-bottom: 16px; }

.bb-feature-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }

.bb-cta-section {
    padding: 80px 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,45,120,0.1) 0%, transparent 70%);
}

/* =============================================
   BROWSE GRID
   ============================================= */
.bb-profile-grid {
    columns: 2;
    column-gap: 16px;
}

@media (min-width: 576px) { .bb-profile-grid { columns: 3; } }
@media (min-width: 768px) { .bb-profile-grid { columns: 3; } }
@media (min-width: 992px) { .bb-profile-grid { columns: 4; } }
@media (min-width: 1200px) { .bb-profile-grid { columns: 5; } }

.bb-profile-card {
    break-inside: avoid;
    position: relative;
    border-radius: var(--bb-radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.bb-profile-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--bb-shadow-glow-pink);
    border-color: rgba(255,45,120,0.3);
}

.bb-profile-card-link { display: block; position: relative; }

.bb-profile-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.bb-profile-card:hover .bb-profile-card-img { transform: scale(1.04); }

.bb-profile-card-placeholder {
    aspect-ratio: 3/4;
    background: var(--bb-bg-card-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bb-text-muted);
}

.bb-profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
    padding: 24px 14px 14px;
    transform: translateY(0);
    transition: transform .3s;
}

.bb-profile-card-name {
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.bb-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.bb-card-match-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    z-index: 2;
}

.bb-card-like-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
    z-index: 3;
    font-size: 1rem;
}

.bb-card-like-btn:hover { border-color: var(--bb-pink); color: var(--bb-pink); transform: scale(1.1); }
.bb-card-like-btn.liked { background: var(--bb-pink); border-color: var(--bb-pink); color: #fff; }
.bb-card-like-btn.liked:hover { background: var(--bb-pink-light); }

/* =============================================
   PROFILE DETAIL PAGE
   ============================================= */
.bb-profile-detail {}

.bb-profile-carousel { max-height: 80vh; overflow: hidden; background: #000; }
.bb-carousel-slide { height: 80vh; display: flex; align-items: center; justify-content: center; background: #000; }
.bb-carousel-img { max-height: 80vh; width: 100%; object-fit: contain; }

.bb-no-photo-banner {
    height: 40vh;
    background: var(--bb-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--bb-text-muted);
}

.bb-profile-info-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 32px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    box-shadow: var(--bb-shadow);
}

.bb-profile-name { font-size: 2rem; font-weight: 900; margin: 0; }
.bb-profile-age { color: var(--bb-text-muted); font-weight: 400; font-size: 1.5rem; }

.bb-like-btn {
    background: rgba(255,45,120,0.1);
    border: 2px solid var(--bb-pink);
    color: var(--bb-pink) !important;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
}

.bb-like-btn:hover, .bb-like-btn.liked {
    background: var(--bb-pink);
    color: #fff !important;
    box-shadow: var(--bb-shadow-glow-pink);
}

.bb-match-badge {
    background: linear-gradient(135deg, rgba(255,45,120,0.15), rgba(155,93,229,0.15));
    border: 1px solid rgba(255,45,120,0.3);
    color: var(--bb-pink);
    padding: 10px 20px;
    border-radius: var(--bb-radius-sm);
    font-weight: 700;
    font-size: .9rem;
    display: inline-block;
}

.bb-stats-row { display: flex; flex-wrap: wrap; gap: 10px; }

.bb-stat-pill {
    display: inline-flex;
    align-items: center;
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 600;
}

.bb-bio { background: var(--bb-bg-card-2); border-radius: var(--bb-radius-sm); padding: 20px; }
.bb-bio p { color: var(--bb-text); line-height: 1.7; margin: 0; }

/* =============================================
   PHOTO MANAGER (Edit Profile)
   ============================================= */
.bb-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 576px) { .bb-photo-grid { grid-template-columns: repeat(4, 1fr); } }

.bb-photo-thumb {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--bb-radius-sm);
    overflow: hidden;
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border);
    cursor: pointer;
}

.bb-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bb-photo-main-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.bb-photo-actions {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .2s;
}

.bb-photo-thumb:hover .bb-photo-actions { opacity: 1; }

.bb-photo-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .8rem;
    transition: all .2s;
}

.bb-photo-action-btn:hover { background: rgba(255,255,255,0.3); }
.bb-photo-delete:hover { background: rgba(255,45,120,0.6); border-color: var(--bb-pink); }

.bb-photo-upload-slot {
    aspect-ratio: 3/4;
    border-radius: var(--bb-radius-sm);
    border: 2px dashed var(--bb-border-2);
    background: var(--bb-bg-card-2);
    transition: border-color .2s;
}

.bb-photo-upload-slot:hover { border-color: var(--bb-pink); }

.bb-photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    gap: 8px;
    font-size: 1.8rem;
}

/* =============================================
   MATCHES
   ============================================= */
.bb-match-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    overflow: hidden;
    transition: all .3s;
}

.bb-match-card:hover {
    border-color: rgba(255,45,120,0.35);
    transform: translateY(-3px);
    box-shadow: var(--bb-shadow-glow-pink);
}

.bb-match-card-img-link { display: block; position: relative; }

.bb-match-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.bb-match-card-placeholder {
    aspect-ratio: 3/4;
    background: var(--bb-bg-card-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bb-text-muted);
}

.bb-match-heart-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: var(--bb-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .85rem;
    box-shadow: 0 0 12px rgba(255,45,120,0.6);
}

.bb-match-card-body { padding: 14px; }
.bb-match-card-name { font-weight: 800; font-size: .95rem; margin-bottom: 4px; }

/* =============================================
   MESSAGES LIST
   ============================================= */
.bb-convo-list {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    overflow: hidden;
}

.bb-convo-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bb-border);
    text-decoration: none;
    color: var(--bb-text);
    transition: background .15s;
    position: relative;
}

.bb-convo-item:last-child { border-bottom: none; }
.bb-convo-item:hover { background: rgba(255,255,255,0.03); }
.bb-convo-item.unread { background: rgba(155,93,229,0.04); }

.bb-convo-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bb-bg-card-2);
    border: 2px solid var(--bb-border-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-convo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bb-convo-avatar-placeholder { font-size: 1.4rem; color: var(--bb-text-muted); }

.bb-convo-content { flex: 1; min-width: 0; }
.bb-convo-name { font-weight: 700; font-size: .95rem; }
.bb-convo-preview { font-size: .85rem; color: var(--bb-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-convo-time { font-size: .75rem; color: var(--bb-text-muted); white-space: nowrap; }

.bb-convo-item.unread .bb-convo-name { color: var(--bb-purple); }
.bb-convo-item.unread .bb-convo-preview { color: var(--bb-text); font-weight: 500; }

.bb-unread-badge {
    background: var(--bb-pink);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    flex-shrink: 0;
}

/* =============================================
   CHAT
   ============================================= */
.bb-chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 62px);
}

.bb-chat-header {
    background: var(--bb-bg-card);
    border-bottom: 1px solid var(--bb-border);
    padding: 12px 0;
    flex-shrink: 0;
}

.bb-chat-back {
    color: var(--bb-text-muted);
    font-size: 1.2rem;
    transition: color .2s;
}
.bb-chat-back:hover { color: var(--bb-text); }

.bb-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bb-bg-card-2);
    border: 2px solid var(--bb-border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bb-chat-avatar-ph { font-size: 1.2rem; color: var(--bb-text-muted); }
.bb-chat-name { font-weight: 800; font-size: 1rem; color: var(--bb-text); }

.bb-chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.bb-chat-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    justify-content: flex-end;
}

.bb-bubble-row {
    display: flex;
    padding: 0 4px;
}

.bb-bubble-row--me { justify-content: flex-end; }
.bb-bubble-row--them { justify-content: flex-start; }

.bb-bubble {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bb-bubble--me {
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bb-bubble--them {
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    color: var(--bb-text);
    border-bottom-left-radius: 4px;
}

.bb-bubble-text { font-size: .95rem; line-height: 1.5; word-break: break-word; }
.bb-bubble-time { font-size: .7rem; opacity: .65; align-self: flex-end; }

.bb-chat-input-bar {
    flex-shrink: 0;
    background: var(--bb-bg-card);
    border-top: 1px solid var(--bb-border);
    padding: 12px 0;
}

.bb-chat-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bb-chat-input {
    flex: 1;
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    border-radius: 50px;
    color: var(--bb-text);
    padding: 10px 20px;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}

.bb-chat-input:focus { border-color: var(--bb-pink); }
.bb-chat-input::placeholder { color: var(--bb-text-muted); }

.bb-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,45,120,0.35);
}

.bb-chat-send:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(255,45,120,0.5); }
.bb-chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* =============================================
   MATCH MODAL
   ============================================= */
.bb-match-modal {
    background: var(--bb-bg-card);
    border: 1px solid rgba(255,45,120,0.3);
    border-radius: var(--bb-radius-lg);
    box-shadow: 0 0 80px rgba(255,45,120,0.3), var(--bb-shadow);
}

.bb-match-emoji {
    font-size: 2.5rem;
    letter-spacing: 6px;
    animation: pulse 1s infinite;
}

.bb-match-title {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bb-match-sub { font-size: 1rem; color: var(--bb-text-muted); }

/* =============================================
   ADMIN
   ============================================= */
.bb-admin-shield {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(155,93,229,0.2), rgba(0,212,255,0.2));
    border: 2px solid rgba(155,93,229,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--bb-purple);
}

.bb-admin-stat-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 20px 16px;
    text-align: center;
    transition: all .25s;
}

.bb-admin-stat-card:hover {
    border-color: var(--bb-border-2);
    transform: translateY(-2px);
}

.bb-admin-stat-card i { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.bb-admin-stat-num { font-size: 1.8rem; font-weight: 900; }
.bb-admin-stat-label { font-size: .75rem; color: var(--bb-text-muted); text-transform: uppercase; letter-spacing: .05em; }

.bb-admin-nav-card {
    display: block;
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 28px;
    text-decoration: none;
    color: var(--bb-text) !important;
    transition: all .25s;
}

.bb-admin-nav-card:hover {
    border-color: rgba(155,93,229,0.4);
    transform: translateY(-3px);
    box-shadow: var(--bb-shadow-glow-purple);
}

.bb-admin-nav-card i { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.bb-admin-nav-card h5 { font-weight: 800; margin-bottom: 4px; }

.bb-table {
    color: var(--bb-text);
    border-color: var(--bb-border);
}

.bb-table thead th {
    border-color: var(--bb-border);
    color: var(--bb-text-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    padding: 14px 16px;
    background: var(--bb-bg-card-2);
}

.bb-table tbody td {
    border-color: var(--bb-border);
    padding: 12px 16px;
    vertical-align: middle;
}

.bb-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.bb-table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--bb-text-muted);
}

.bb-table-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bb-row-banned td { opacity: 0.5; }
.bb-row-resolved td { opacity: 0.6; }

.bb-badge-active { background: rgba(39,174,96,0.15); color: #27ae60; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; border: 1px solid rgba(39,174,96,0.3); }
.bb-badge-banned { background: rgba(231,76,60,0.15); color: #e74c3c; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; border: 1px solid rgba(231,76,60,0.3); }
.bb-badge-warn { background: rgba(243,156,18,0.15); color: #f39c12; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; border: 1px solid rgba(243,156,18,0.3); }

/* =============================================
   TOAST / ALERTS
   ============================================= */
.bb-toast-success {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(39,174,96,0.9), rgba(46,213,115,0.9));
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--bb-radius-sm);
    font-weight: 600;
    z-index: 9999;
    backdrop-filter: blur(8px);
    box-shadow: var(--bb-shadow);
    animation: slideInRight .4s ease both, fadeOut .4s 3s ease both;
    pointer-events: none;
}

/* =============================================
   MODAL
   ============================================= */
.bb-modal {
    background: var(--bb-bg-card-2);
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-radius-lg);
    color: var(--bb-text);
}

.bb-modal .modal-title { font-weight: 800; }
.bb-modal .modal-header { background: var(--bb-bg-card-2); border-bottom: 1px solid var(--bb-border); border-radius: var(--bb-radius-lg) var(--bb-radius-lg) 0 0; }
.bb-modal .modal-footer { border-top: 1px solid var(--bb-border); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

/* =============================================
   MISC
   ============================================= */
.bb-error-icon { font-size: 4rem; }
.bb-code { background: var(--bb-bg-card-2); color: var(--bb-blue); padding: 2px 8px; border-radius: 4px; font-size: .85rem; }

/* Responsive tweaks */
@media (max-width: 576px) {
    .bb-hero-title { font-size: 2.4rem; }
    .bb-auth-card { padding: 28px 20px; }
    .bb-profile-info-card { margin-top: -20px; padding: 20px; }
    .bb-match-title { font-size: 1.7rem; }
    .bb-stat-item { padding: 0 16px; }
    .bb-stat-num { font-size: 1.4rem; }
}
