/**
 * bestbulge.com - Premium Dark Theme
 * Custom design system built on Bootstrap 5
 */

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
    --bb-bg-primary: #0a0a0f;
    --bb-bg-secondary: #12121a;
    --bb-bg-card: #16161f;
    --bb-bg-card-hover: #1c1c28;
    --bb-bg-elevated: #1e1e2a;
    --bb-bg-input: #1a1a25;

    --bb-text-primary: #f0f0f5;
    --bb-text-secondary: #8888a0;
    --bb-text-muted: #5c5c72;

    --bb-accent: #a855f7;
    --bb-accent-hover: #9333ea;
    --bb-accent-light: #a855f720;
    --bb-accent-glow: #a855f740;
    --bb-accent-secondary: #ec4899;
    --bb-gradient-accent: linear-gradient(135deg, #a855f7, #ec4899);
    --bb-gradient-accent-hover: linear-gradient(135deg, #9333ea, #db2777);

    --bb-success: #22c55e;
    --bb-warning: #f59e0b;
    --bb-danger: #ef4444;
    --bb-info: #3b82f6;

    --bb-border: #ffffff0d;
    --bb-border-hover: #ffffff15;
    --bb-border-accent: #a855f730;

    --bb-radius-sm: 8px;
    --bb-radius: 12px;
    --bb-radius-lg: 16px;
    --bb-radius-xl: 24px;
    --bb-radius-full: 9999px;

    --bb-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --bb-shadow: 0 4px 20px rgba(0,0,0,0.4);
    --bb-shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --bb-shadow-glow: 0 0 30px var(--bb-accent-glow);

    --bb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bb-font-display: 'Space Grotesk', 'Inter', sans-serif;

    --bb-transition: 0.2s ease;
    --bb-transition-slow: 0.4s ease;
}

/* ============================================================
   Base Styles
   ============================================================ */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bb-bg-primary);
    color: var(--bb-text-primary);
    font-family: var(--bb-font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

a {
    color: var(--bb-accent);
    text-decoration: none;
    transition: color var(--bb-transition);
}

a:hover {
    color: var(--bb-accent-hover);
}

::selection {
    background: var(--bb-accent);
    color: white;
}

/* ============================================================
   Navbar
   ============================================================ */
.bb-navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--bb-border);
    padding: 0.6rem 0;
    z-index: 1050;
}

.bb-brand {
    font-family: var(--bb-font-display);
    font-weight: 700;
}

.bb-logo-text {
    font-family: var(--bb-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--bb-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bb-navbar .nav-link {
    color: var(--bb-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--bb-radius-sm);
    transition: all var(--bb-transition);
}

.bb-navbar .nav-link:hover,
.bb-navbar .nav-link.active {
    color: var(--bb-text-primary);
    background: var(--bb-accent-light);
}

.bb-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
    border: 2px solid var(--bb-border);
}

.bb-notif-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

.bb-toggler {
    border: 1px solid var(--bb-border);
    padding: 0.35rem 0.6rem;
}

.bb-dropdown {
    background: var(--bb-bg-elevated);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow-lg);
    padding: 0.5rem;
}

.bb-dropdown .dropdown-item {
    color: var(--bb-text-secondary);
    border-radius: var(--bb-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all var(--bb-transition);
}

.bb-dropdown .dropdown-item:hover {
    background: var(--bb-accent-light);
    color: var(--bb-text-primary);
}

.bb-dropdown .dropdown-divider {
    border-color: var(--bb-border);
    margin: 0.3rem 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.bb-btn-accent {
    background: var(--bb-gradient-accent);
    color: white;
    border: none;
    border-radius: var(--bb-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    transition: all var(--bb-transition);
    box-shadow: 0 4px 15px var(--bb-accent-glow);
}

.bb-btn-accent:hover {
    background: var(--bb-gradient-accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--bb-accent-glow);
}

.bb-btn-accent:active {
    transform: translateY(0);
}

.bb-btn-outline-accent {
    background: transparent;
    color: var(--bb-accent);
    border: 1.5px solid var(--bb-accent);
    border-radius: var(--bb-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    transition: all var(--bb-transition);
}

.bb-btn-outline-accent:hover {
    background: var(--bb-accent-light);
    color: var(--bb-accent);
    border-color: var(--bb-accent);
}

/* ============================================================
   Hero Section
   ============================================================ */
.bb-hero {
    position: relative;
    overflow: hidden;
    background: var(--bb-bg-primary);
}

.bb-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(168, 85, 247, 0.04) 0%, transparent 40%);
}

.min-vh-75 {
    min-height: 75vh;
}

.bb-hero-badge .badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
}

.bb-hero-title {
    font-family: var(--bb-font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 0%, #ddd 50%, var(--bb-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.bb-hero-subtitle {
    font-size: 1.15rem;
    color: var(--bb-text-secondary);
    max-width: 480px;
    line-height: 1.6;
}

.bb-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.bb-hero-card-stack {
    position: relative;
    width: 260px;
    height: 360px;
}

.bb-hero-card {
    position: absolute;
    width: 220px;
    height: 300px;
    border-radius: var(--bb-radius-lg);
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bb-hero-card-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.bb-hero-card-1 {
    top: 30px;
    left: -10px;
    transform: rotate(-8deg);
    opacity: 0.55;
    border-color: var(--bb-border);
}

.bb-hero-card-2 {
    top: 15px;
    left: 10px;
    transform: rotate(-3deg);
    opacity: 0.75;
}

.bb-hero-card-3 {
    top: 0;
    left: 30px;
    transform: rotate(2deg);
    opacity: 1;
    border-color: var(--bb-border-accent);
    box-shadow: var(--bb-shadow-glow);
}

/* Staggered entrance animation */
.bb-hero-card-animated {
    animation: heroCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bb-hero-card-animated.bb-hero-card-1 { animation-delay: 0.15s; }
.bb-hero-card-animated.bb-hero-card-2 { animation-delay: 0.35s; }
.bb-hero-card-animated.bb-hero-card-3 { animation-delay: 0.55s; }

@keyframes heroCardIn {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(0deg) scale(0.85);
    }
    to {
        /* final values come from the card's own class */
    }
}

.bb-hero-card-1.bb-hero-card-animated {
    animation-name: heroCard1In;
}
.bb-hero-card-2.bb-hero-card-animated {
    animation-name: heroCard2In;
}
.bb-hero-card-3.bb-hero-card-animated {
    animation-name: heroCard3In;
}

@keyframes heroCard1In {
    from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(0.85); }
    to   { opacity: 0.55; transform: rotate(-8deg) scale(1); }
}
@keyframes heroCard2In {
    from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(0.85); }
    to   { opacity: 0.75; transform: rotate(-3deg) scale(1); }
}
@keyframes heroCard3In {
    from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(0.85); }
    to   { opacity: 1; transform: rotate(2deg) scale(1); }
}

/* Gentle floating hover on the top card */
.bb-hero-card-3 {
    transition: transform 0.4s ease;
}
.bb-hero-card-stack:hover .bb-hero-card-3 {
    transform: rotate(2deg) translateY(-6px);
}

/* ============================================================
   Section Styles
   ============================================================ */
.bb-section {
    position: relative;
}

.bb-section-dark {
    background: var(--bb-bg-secondary);
}

.bb-section-title {
    font-family: var(--bb-font-display);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   Cards
   ============================================================ */
.bb-feature-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 2rem;
    transition: all var(--bb-transition-slow);
}

.bb-feature-card:hover {
    background: var(--bb-bg-card-hover);
    border-color: var(--bb-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow-glow);
}

.bb-feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bb-radius);
    background: var(--bb-accent-light);
    color: var(--bb-accent);
    font-size: 1.4rem;
    margin: 0 auto;
}

.bb-feature-icon-accent {
    background: var(--bb-gradient-accent);
    color: white;
}

/* Round Cards */
.bb-round-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1.5rem;
    transition: all var(--bb-transition);
}

.bb-round-card:hover {
    border-color: var(--bb-border-accent);
    box-shadow: var(--bb-shadow-glow);
}

.bb-round-card-selectable:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.bb-round-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.bb-round-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Trust Cards */
.bb-trust-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1.75rem;
    text-align: center;
}

.bb-trust-card i {
    font-size: 2rem;
    color: var(--bb-accent);
    margin-bottom: 0.75rem;
    display: block;
}

/* ============================================================
   Badges
   ============================================================ */
.bb-badge-glow {
    background: var(--bb-gradient-accent);
    color: white;
    border-radius: var(--bb-radius-full);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    box-shadow: 0 2px 12px var(--bb-accent-glow);
}

.bb-badge-glow.bb-badge-round-title {
    font-size: 0.92rem;
    padding: 0.45rem 1.15rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   Winner Cards
   ============================================================ */
.bb-winner-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    transition: all var(--bb-transition);
    position: relative;
}

.bb-winner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow-lg);
}

.bb-winner-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.8rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.bb-winner-rank-1 {
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.bb-winner-rank-2 {
    border-color: #94a3b8;
}

.bb-winner-rank-3 {
    border-color: #d97706;
}

.bb-winner-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.bb-winner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bb-transition-slow);
}

.bb-winner-card:hover .bb-winner-photo img {
    transform: scale(1.03);
}

.bb-winner-info {
    padding: 1rem;
}

.bb-winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
}

/* Rank Badges */
.bb-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--bb-radius-full);
    font-weight: 700;
    font-size: 0.85rem;
}

.bb-rank-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a00;
}

.bb-rank-silver {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #1a1a2a;
}

.bb-rank-bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.bb-rank-other {
    background: var(--bb-bg-elevated);
    color: var(--bb-text-secondary);
    border: 1px solid var(--bb-border);
}

.bb-winner-card-full {
    overflow: hidden;
}

.bb-winner-card-full .bb-winner-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* ============================================================
   Voting Page
   ============================================================ */
.bb-vote-card {
    max-width: 460px;
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--bb-shadow-lg);
}

.bb-vote-photo-wrap {
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bb-bg-secondary);
}

.bb-vote-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-vote-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
    border: 2px solid var(--bb-border);
}

.bb-vote-card-enter {
    animation: voteCardEnter 0.4s ease;
}

.bb-vote-card-exit {
    animation: voteCardExit 0.3s ease forwards;
}

@keyframes voteCardEnter {
    from { opacity: 0; transform: translateX(30px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes voteCardExit {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(-30px) scale(0.97); }
}

/* Kink Tags */
.bb-kink-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bb-kink-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--bb-radius-full);
    background: var(--bb-accent-light);
    color: var(--bb-accent);
    font-weight: 500;
    border: 1px solid var(--bb-border-accent);
}

/* Social Links */
.bb-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bb-social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bb-radius-sm);
    background: var(--bb-bg-elevated);
    color: var(--bb-text-secondary);
    font-size: 0.9rem;
    transition: all var(--bb-transition);
    border: 1px solid var(--bb-border);
}

.bb-social-icon:hover {
    background: var(--bb-accent-light);
    color: var(--bb-accent);
    border-color: var(--bb-border-accent);
}

/* Share Link */
.bb-share-url {
    font-size: 0.78rem;
    text-overflow: ellipsis;
}

/* ============================================================
   Public Profile Page
   ============================================================ */
.bb-profile-header {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-xl);
    padding: 2rem;
}

.bb-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
    border: 3px solid var(--bb-border-accent);
    box-shadow: 0 0 20px var(--bb-accent-glow);
}

.bb-profile-username {
    font-family: var(--bb-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0;
}

.bb-profile-age {
    font-size: 1rem;
    font-weight: 400;
    color: var(--bb-text-secondary);
}

.bb-profile-bio {
    color: var(--bb-text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 600px;
}

.bb-profile-stat-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--bb-transition);
}

.bb-profile-stat-card:hover {
    border-color: var(--bb-border-accent);
}

.bb-profile-stat-value {
    font-family: var(--bb-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bb-accent);
}

.bb-profile-stat-label {
    font-size: 0.75rem;
    color: var(--bb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Profile Photo Gallery */
.bb-profile-photo-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    transition: all var(--bb-transition);
}

.bb-profile-photo-card:hover {
    border-color: var(--bb-border-accent);
    transform: translateY(-3px);
    box-shadow: var(--bb-shadow);
}

.bb-profile-photo-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
}

.bb-profile-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bb-transition-slow);
}

.bb-profile-photo-card:hover .bb-profile-photo-wrap img {
    transform: scale(1.04);
}

.bb-profile-photo-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.bb-profile-photo-active-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--bb-gradient-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--bb-radius-full);
}

.bb-profile-photo-info {
    padding: 0.75rem;
}

/* Homepage Creator Cards */
.bb-creator-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1.25rem 1rem;
    transition: all var(--bb-transition);
    width: 130px;
    margin: 0 auto;
}

.bb-creator-card:hover {
    border-color: var(--bb-border-accent);
    transform: translateY(-3px);
    box-shadow: var(--bb-shadow-glow);
}

.bb-creator-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
    border: 2px solid var(--bb-border);
}

@media (max-width: 575.98px) {
    .bb-profile-header {
        padding: 1.25rem;
    }
    .bb-profile-avatar {
        width: 72px;
        height: 72px;
    }
    .bb-profile-username {
        font-size: 1.25rem;
    }
    .bb-creator-card {
        width: auto;
    }
}

/* ============================================================
   Custom Slider
   ============================================================ */
.bb-slider-container {
    position: relative;
    padding: 0.5rem 0;
}

.bb-slider-labels {
    font-size: 0.8rem;
    font-weight: 600;
}

.bb-slider-label-cool {
    color: #60a5fa;
}

.bb-slider-label-hot {
    color: #f87171;
}

.bb-slider-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--bb-bg-elevated);
    border-radius: var(--bb-radius-full);
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.bb-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    border-radius: var(--bb-radius-full);
    background: linear-gradient(90deg, #60a5fa, #a855f7);
    transition: width 0.05s;
}

.bb-slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    border-radius: var(--bb-radius-full);
    background: white;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 0 10px var(--bb-accent-glow);
    transition: box-shadow 0.15s;
    z-index: 2;
}

.bb-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
}

.bb-vote-hint {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.bb-slider-glow {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    border-radius: var(--bb-radius-full);
    transition: background 0.1s;
}

/* ============================================================
   Vote Complete
   ============================================================ */
.bb-vote-complete {
    max-width: 460px;
    margin: 0 auto;
}

.bb-complete-icon {
    font-size: 4rem;
    color: var(--bb-success);
}

/* ============================================================
   Skeletons
   ============================================================ */
.bb-skeleton {
    background: linear-gradient(90deg, var(--bb-bg-card) 25%, var(--bb-bg-card-hover) 50%, var(--bb-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--bb-radius-sm);
}

.bb-skeleton-photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--bb-radius-lg);
}

.bb-skeleton-text {
    height: 16px;
}

.bb-skeleton-slider {
    height: 8px;
    border-radius: var(--bb-radius-full);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   Forms
   ============================================================ */
.form-control,
.form-select {
    background: var(--bb-bg-input);
    border: 1px solid var(--bb-border);
    color: var(--bb-text-primary);
    border-radius: var(--bb-radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: all var(--bb-transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bb-bg-input);
    border-color: var(--bb-accent);
    color: var(--bb-text-primary);
    box-shadow: 0 0 0 3px var(--bb-accent-light);
}

.form-control::placeholder {
    color: var(--bb-text-muted);
}

.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--bb-text-secondary);
    margin-bottom: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--bb-accent);
    border-color: var(--bb-accent);
}

/* Strength Bar */
.bb-strength-bar {
    height: 4px;
    background: var(--bb-bg-elevated);
    border-radius: var(--bb-radius-full);
    overflow: hidden;
}

.bb-strength-fill {
    height: 100%;
    border-radius: var(--bb-radius-full);
    transition: width 0.3s, background 0.3s;
}

/* ============================================================
   Auth Pages
   ============================================================ */
.bb-auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--bb-shadow-lg);
}

.bb-auth-title {
    font-family: var(--bb-font-display);
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ============================================================
   CTA Section
   ============================================================ */
.bb-cta-section {
    background:
        radial-gradient(ellipse at 50% 0%, var(--bb-accent-light) 0%, transparent 60%),
        var(--bb-bg-secondary);
}

/* ============================================================
   Empty States
   ============================================================ */
.bb-empty-state {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.bb-empty-icon {
    font-size: 4rem;
    color: var(--bb-text-muted);
    opacity: 0.5;
}

/* ============================================================
   Age Gate
   ============================================================ */
.bb-age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.bb-age-gate-hidden {
    opacity: 0;
    pointer-events: none;
}

.bb-age-gate-card {
    text-align: center;
    max-width: 480px;
    padding: 3rem 2rem;
}

.bb-age-gate-icon {
    font-size: 3.5rem;
    color: var(--bb-accent);
    margin-bottom: 1rem;
}

.bb-age-gate-title {
    font-family: var(--bb-font-display);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bb-age-gate-text {
    color: var(--bb-text-secondary);
    line-height: 1.7;
}

.bb-age-gate-exit {
    transition: color var(--bb-transition);
}

.bb-age-gate-exit:hover {
    color: var(--bb-text-primary) !important;
}

/* ============================================================
   Toast / Flash Messages
   ============================================================ */
.bb-toast {
    background: var(--bb-bg-elevated);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow-lg);
    color: var(--bb-text-primary);
    font-size: 0.9rem;
}

.bb-toast-success {
    border-left: 3px solid var(--bb-success);
}

.bb-toast-success .bi {
    color: var(--bb-success);
}

.bb-toast-error {
    border-left: 3px solid var(--bb-danger);
}

.bb-toast-error .bi {
    color: var(--bb-danger);
}

/* ============================================================
   Footer
   ============================================================ */
.bb-footer {
    background: var(--bb-bg-secondary);
    border-top: 1px solid var(--bb-border);
    margin-top: auto;
}

.bb-footer-link {
    color: var(--bb-text-muted);
    font-size: 0.88rem;
    transition: color var(--bb-transition);
}

.bb-footer-link:hover {
    color: var(--bb-accent);
}

/* ============================================================
   Upload / Dropzone
   ============================================================ */
.bb-dropzone {
    border: 2px dashed var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--bb-transition);
    background: var(--bb-bg-card);
}

.bb-dropzone:hover,
.bb-dropzone-active {
    border-color: var(--bb-accent);
    background: var(--bb-accent-light);
}

.bb-dropzone-icon {
    font-size: 3rem;
    color: var(--bb-text-muted);
    margin-bottom: 1rem;
}

.bb-upload-preview {
    max-width: 300px;
    margin: 0 auto;
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    border: 1px solid var(--bb-border);
}

.bb-upload-preview img {
    width: 100%;
    display: block;
}

/* ============================================================
   Dashboard
   ============================================================ */
.bb-stat-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1.5rem;
    transition: all var(--bb-transition);
}

.bb-stat-card:hover {
    border-color: var(--bb-border-accent);
}

.bb-stat-value {
    font-family: var(--bb-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--bb-text-primary);
    line-height: 1;
}

.bb-stat-label {
    font-size: 0.8rem;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
}

/* Profile Completion */
.bb-completion-bar {
    height: 6px;
    background: var(--bb-bg-elevated);
    border-radius: var(--bb-radius-full);
    overflow: hidden;
}

.bb-completion-fill {
    height: 100%;
    background: var(--bb-gradient-accent);
    border-radius: var(--bb-radius-full);
    transition: width var(--bb-transition-slow);
}

/* ============================================================
   Photo Grid
   ============================================================ */
.bb-photo-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    overflow: hidden;
    transition: all var(--bb-transition);
}

.bb-photo-card:hover {
    border-color: var(--bb-border-accent);
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow);
}

.bb-photo-card-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.bb-photo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bb-transition-slow);
}

.bb-photo-card:hover .bb-photo-card-img img {
    transform: scale(1.03);
}

.bb-photo-card-body {
    padding: 1rem;
}

/* ============================================================
   Notifications
   ============================================================ */
.bb-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--bb-radius);
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    margin-bottom: 0.5rem;
    transition: all var(--bb-transition);
}

.bb-notif-item:hover {
    background: var(--bb-bg-card-hover);
}

.bb-notif-unread {
    border-left: 3px solid var(--bb-accent);
}

.bb-notif-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bb-radius-sm);
    background: var(--bb-accent-light);
    color: var(--bb-accent);
    flex-shrink: 0;
}

/* ============================================================
   Admin Panel
   ============================================================ */
.bb-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--bb-bg-secondary);
    border-right: 1px solid var(--bb-border);
    padding: 1.5rem 0;
    overflow-y: auto;
    z-index: 1040;
}

.bb-admin-sidebar-brand {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid var(--bb-border);
    margin-bottom: 1rem;
}

.bb-admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bb-admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.25rem;
    color: var(--bb-text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--bb-transition);
    border-left: 3px solid transparent;
}

.bb-admin-nav-item a:hover,
.bb-admin-nav-item a.active {
    color: var(--bb-text-primary);
    background: var(--bb-accent-light);
    border-left-color: var(--bb-accent);
}

.bb-admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.bb-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bb-admin-title {
    font-family: var(--bb-font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Admin Cards */
.bb-admin-stat {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 1.25rem;
}

.bb-admin-stat-value {
    font-family: var(--bb-font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.bb-admin-stat-label {
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Photo Moderation Card */
.bb-photo-mod-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.bb-photo-mod-card img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--bb-radius-sm);
    flex-shrink: 0;
}

/* Report Card */
.bb-report-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ============================================================
   Tables
   ============================================================ */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bb-text-primary);
    --bs-table-border-color: var(--bb-border);
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bb-text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--bb-border);
    padding: 0.75rem;
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: var(--bb-bg-card-hover);
}

/* ============================================================
   Pagination
   ============================================================ */
.page-link {
    background: var(--bb-bg-card);
    border-color: var(--bb-border);
    color: var(--bb-text-secondary);
}

.page-link:hover {
    background: var(--bb-bg-card-hover);
    border-color: var(--bb-border-accent);
    color: var(--bb-accent);
}

.page-item.active .page-link {
    background: var(--bb-accent);
    border-color: var(--bb-accent);
    color: white;
}

/* ============================================================
   User Sidebar
   ============================================================ */
.bb-user-sidebar {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1rem 0;
}

.bb-user-sidebar .nav-link {
    color: var(--bb-text-secondary);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all var(--bb-transition);
}

.bb-user-sidebar .nav-link:hover,
.bb-user-sidebar .nav-link.active {
    color: var(--bb-text-primary);
    background: var(--bb-accent-light);
    border-left-color: var(--bb-accent);
}

/* ============================================================
   Modals
   ============================================================ */
.modal-content {
    background: var(--bb-bg-elevated);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
}

.modal-header {
    border-bottom-color: var(--bb-border);
}

.modal-footer {
    border-top-color: var(--bb-border);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .bb-admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--bb-border);
    }

    .bb-admin-content {
        margin-left: 0;
    }

    .bb-admin-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .bb-admin-nav-item a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .bb-admin-nav-item a.active {
        border-left-color: transparent;
        border-bottom-color: var(--bb-accent);
    }
}

@media (max-width: 767.98px) {
    .bb-hero-title {
        font-size: 2rem;
    }

    .bb-section-title {
        font-size: 1.4rem;
    }

    .bb-vote-card {
        padding: 1rem;
        border-radius: var(--bb-radius-lg);
    }

    .bb-auth-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .bb-slider-thumb {
        width: 34px;
        height: 34px;
    }

    .bb-admin-content {
        padding: 1rem;
    }
}

/* Utility */
.text-accent {
    color: var(--bb-accent) !important;
}

.bg-accent-light {
    background: var(--bb-accent-light) !important;
}

.border-accent {
    border-color: var(--bb-border-accent) !important;
}
