/* ═══════════════════════════════════════════════════════════════════
   BearDoBot — Gaming Dashboard Design System
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bb-bg-primary: #0a0a0f;
    --bb-bg-secondary: #12121a;
    --bb-bg-card: rgba(18, 18, 26, 0.95);
    --bb-bg-card-hover: rgba(24, 24, 36, 0.98);
    --bb-bg-surface: rgba(255, 255, 255, 0.03);

    /* Accent colours */
    --bb-cyan: #0dafe3;
    --bb-cyan-bright: #3dc4f0;
    --bb-cyan-dim: #0a8fb8;
    --bb-cyan-rgb: 13, 175, 227;
    --bb-red: #ff4757;
    --bb-red-rgb: 255, 71, 87;
    --bb-green: #2ed573;
    --bb-green-rgb: 46, 213, 115;
    --bb-amber: #ffa502;
    --bb-amber-rgb: 255, 165, 2;
    --bb-purple: #a855f7;
    --bb-purple-rgb: 168, 85, 247;
    --bb-gold: #ffd700;
    --bb-silver: #c0c0c0;
    --bb-bronze: #cd7f32;

    /* Text */
    --bb-text: #e2e8f0;
    --bb-text-muted: #8892a4;
    --bb-text-dim: #5a6172;

    /* Glow tiers */
    --bb-glow-sm: 0 0 8px rgba(var(--bb-cyan-rgb), 0.15);
    --bb-glow-md: 0 0 20px rgba(var(--bb-cyan-rgb), 0.2);
    --bb-glow-lg: 0 0 40px rgba(var(--bb-cyan-rgb), 0.25), 0 0 80px rgba(var(--bb-cyan-rgb), 0.1);

    /* Transitions */
    --bb-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --bb-t-fast: 0.15s var(--bb-ease);
    --bb-t-base: 0.3s var(--bb-ease);
    --bb-t-slow: 0.5s var(--bb-ease);

    /* Borders */
    --bb-border: rgba(255, 255, 255, 0.06);
    --bb-border-hover: rgba(var(--bb-cyan-rgb), 0.3);

    /* Radius */
    --bb-radius: 0.75rem;
    --bb-radius-sm: 0.5rem;
    --bb-radius-lg: 1rem;
    --bb-radius-pill: 50rem;
}

/* ── Base ───────────────────────────────────────────────────────── */
body {
    background: var(--bb-bg-primary);
    color: var(--bb-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background orbs */
.bb-bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.bb-bg-orb {
    position: absolute;
    border-radius: 50%;
}
.bb-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--bb-cyan-rgb), 0.18) 0%, rgba(var(--bb-cyan-rgb), 0.05) 40%, transparent 70%);
    animation: orb1 20s ease-in-out infinite;
}
.bb-bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--bb-purple-rgb), 0.15) 0%, rgba(var(--bb-purple-rgb), 0.04) 40%, transparent 70%);
    animation: orb2 25s ease-in-out infinite;
}
.bb-bg-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(var(--bb-cyan-rgb), 0.12) 0%, rgba(var(--bb-cyan-rgb), 0.03) 40%, transparent 70%);
    animation: orb3 22s ease-in-out infinite;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.bb-navbar {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bb-border);
    transition: background var(--bb-t-base);
}

.bb-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--bb-cyan-rgb), 0.4), transparent);
}

.bb-navbar .navbar-brand img {
    transition: transform var(--bb-t-base);
    filter: drop-shadow(0 0 8px rgba(var(--bb-cyan-rgb), 0.3));
}
.bb-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

.bb-navbar .nav-link {
    color: var(--bb-text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--bb-t-fast);
}
.bb-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bb-cyan);
    transform: translateX(-50%);
    transition: width var(--bb-t-base);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(var(--bb-cyan-rgb), 0.5);
}
.bb-navbar .nav-link:hover,
.bb-navbar .nav-link.active {
    color: var(--bb-cyan-bright) !important;
}
.bb-navbar .nav-link:hover::after,
.bb-navbar .nav-link.active::after {
    width: 60%;
}

/* User menu */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(var(--bb-cyan-rgb), 0.3);
    transition: transform var(--bb-t-fast), box-shadow var(--bb-t-fast), border-color var(--bb-t-fast);
}
.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(var(--bb-cyan-rgb), 0.4);
    border-color: var(--bb-cyan);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bb-bg-secondary);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--bb-glow-sm);
    min-width: 180px;
    z-index: 1100;
    overflow: hidden;
}
.user-dropdown.show { display: block; }

.user-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--bb-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background var(--bb-t-fast), color var(--bb-t-fast);
}
.user-dropdown a:hover {
    background: rgba(var(--bb-cyan-rgb), 0.1);
    color: var(--bb-cyan-bright);
}
.user-dropdown .dropdown-divider {
    height: 1px;
    margin: 0.25rem 0;
    background: var(--bb-border);
}

/* Navbar layout */
.bb-navbar .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.bb-navbar .navbar-toggler {
    order: -1;
    border-color: rgba(255, 255, 255, 0.15);
}
.bb-navbar .navbar-brand {
    margin-right: 0;
    padding-right: 50px;
}
.user-menu {
    margin-left: 15px;
    position: relative;
}

@media (max-width: 991.98px) {
    .bb-navbar .navbar-collapse { padding-top: 15px; }
    .user-menu { position: absolute; right: 15px; top: 10px; }
    .bb-navbar .navbar-toggler { margin-right: 10px; }
    .bb-navbar .navbar-brand { margin-left: auto; margin-right: auto; padding-right: 45px; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.bb-footer {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bb-border);
    padding: 1rem 0;
    color: var(--bb-text-dim);
    font-size: 0.8rem;
    position: relative;
}
.bb-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--bb-cyan-rgb), 0.3), transparent);
}
.bb-footer a {
    color: var(--bb-cyan);
    text-decoration: none;
    transition: color var(--bb-t-fast);
}
.bb-footer a:hover {
    color: var(--bb-cyan-bright);
}

/* ── Page Content Wrapper ──────────────────────────────────────── */
.bb-page-content {
    animation: fadeInUp 0.5s var(--bb-ease) both;
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

/* ── Page Header ───────────────────────────────────────────────── */
.bb-page-header {
    margin-bottom: 2rem;
}
.bb-page-header h1 {
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.bb-page-header p {
    color: var(--bb-text-muted);
    font-size: 1rem;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.bb-card {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    transition: transform var(--bb-t-base), box-shadow var(--bb-t-base), border-color var(--bb-t-base);
    overflow: hidden;
    position: relative;
}
.bb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bb-cyan), transparent);
    opacity: 0;
    transition: opacity var(--bb-t-base);
}
.bb-card:hover {
    transform: translateY(-4px);
    border-color: var(--bb-border-hover);
    box-shadow: var(--bb-glow-md);
}
.bb-card:hover::before {
    opacity: 1;
}

.bb-card-body {
    padding: 1.5rem;
}

/* Always-glowing card */
.bb-card-glow {
    border-color: rgba(var(--bb-cyan-rgb), 0.2);
    box-shadow: var(--bb-glow-sm);
}
.bb-card-glow::before {
    opacity: 1;
}
.bb-card-glow:hover {
    box-shadow: var(--bb-glow-lg);
}

/* Feature card (landing page) */
.bb-feature-card {
    text-align: center;
    cursor: pointer;
}
.bb-feature-card .bb-feature-icon {
    font-size: 2.5rem;
    color: var(--bb-cyan);
    transition: transform var(--bb-t-base), text-shadow var(--bb-t-base);
    display: inline-block;
}
.bb-feature-card:hover .bb-feature-icon {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(var(--bb-cyan-rgb), 0.6);
}
.bb-feature-card h3 {
    color: var(--bb-cyan);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 0.75rem;
}
.bb-feature-card p {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
}

/* ── Stat Counters ─────────────────────────────────────────────── */
.bb-stat {
    text-align: center;
    padding: 1rem;
}
.bb-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bb-text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.bb-stat-value {
    font-family: 'Inter', monospace;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(var(--bb-cyan-rgb), 0.4);
    line-height: 1.2;
}
.bb-stat-value.text-cyan { color: var(--bb-cyan-bright); }
.bb-stat-value.text-red { color: var(--bb-red); text-shadow: 0 0 20px rgba(var(--bb-red-rgb), 0.4); }
.bb-stat-value.text-green { color: var(--bb-green); text-shadow: 0 0 20px rgba(var(--bb-green-rgb), 0.4); }
.bb-stat-value.text-amber { color: var(--bb-amber); text-shadow: 0 0 20px rgba(var(--bb-amber-rgb), 0.4); }

/* ── Tables ─────────────────────────────────────────────────────── */
.bb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}
.bb-table thead th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--bb-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem;
    border: none;
    white-space: nowrap;
}
.bb-table tbody tr {
    background: var(--bb-bg-card);
    transition: background var(--bb-t-fast), box-shadow var(--bb-t-fast);
    border-radius: var(--bb-radius-sm);
}
.bb-table tbody tr:hover {
    background: var(--bb-bg-card-hover);
    box-shadow: inset 3px 0 0 var(--bb-cyan);
}
.bb-table tbody td {
    padding: 0.75rem 1rem;
    border: none;
    color: var(--bb-text);
    font-size: 0.9rem;
    vertical-align: middle;
}
.bb-table tbody td:first-child { border-radius: var(--bb-radius-sm) 0 0 var(--bb-radius-sm); }
.bb-table tbody td:last-child { border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0; }

/* Rank highlights */
.bb-rank-1 { color: var(--bb-gold) !important; text-shadow: 0 0 12px rgba(255, 215, 0, 0.5); font-weight: 700; }
.bb-rank-2 { color: var(--bb-silver) !important; text-shadow: 0 0 10px rgba(192, 192, 192, 0.4); font-weight: 700; }
.bb-rank-3 { color: var(--bb-bronze) !important; text-shadow: 0 0 10px rgba(205, 127, 50, 0.4); font-weight: 700; }

/* ── Badges ─────────────────────────────────────────────────────── */
.bb-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: var(--bb-radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bb-badge-cyan {
    background: rgba(var(--bb-cyan-rgb), 0.15);
    color: var(--bb-cyan-bright);
    border: 1px solid rgba(var(--bb-cyan-rgb), 0.3);
}
.bb-badge-danger {
    background: rgba(var(--bb-red-rgb), 0.15);
    color: var(--bb-red);
    border: 1px solid rgba(var(--bb-red-rgb), 0.3);
}
.bb-badge-success {
    background: rgba(var(--bb-green-rgb), 0.15);
    color: var(--bb-green);
    border: 1px solid rgba(var(--bb-green-rgb), 0.3);
}
.bb-badge-warning {
    background: rgba(var(--bb-amber-rgb), 0.15);
    color: var(--bb-amber);
    border: 1px solid rgba(var(--bb-amber-rgb), 0.3);
}
.bb-badge-purple {
    background: rgba(var(--bb-purple-rgb), 0.15);
    color: var(--bb-purple);
    border: 1px solid rgba(var(--bb-purple-rgb), 0.3);
}
.bb-badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bb-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.bb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bb-cyan);
    color: #0a0a0f;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--bb-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--bb-t-fast), box-shadow var(--bb-t-fast), transform var(--bb-t-fast);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(var(--bb-cyan-rgb), 0.2);
}
.bb-btn-primary:hover {
    background: var(--bb-cyan-bright);
    color: #0a0a0f;
    box-shadow: 0 0 30px rgba(var(--bb-cyan-rgb), 0.4);
    transform: translateY(-1px);
}

.bb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--bb-cyan);
    border: 1px solid rgba(var(--bb-cyan-rgb), 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: var(--bb-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--bb-t-fast), border-color var(--bb-t-fast), color var(--bb-t-fast), box-shadow var(--bb-t-fast);
    text-decoration: none;
}
.bb-btn-outline:hover {
    background: rgba(var(--bb-cyan-rgb), 0.1);
    border-color: var(--bb-cyan);
    color: var(--bb-cyan-bright);
    box-shadow: var(--bb-glow-sm);
}

/* ── Board Tabs (pill navigation) ──────────────────────────────── */
.bb-board-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.bb-board-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--bb-radius-pill);
    background: var(--bb-bg-surface);
    border: 1px solid var(--bb-border);
    color: var(--bb-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--bb-t-fast);
    text-decoration: none;
}
.bb-board-tab:hover {
    background: rgba(var(--bb-cyan-rgb), 0.08);
    border-color: rgba(var(--bb-cyan-rgb), 0.2);
    color: var(--bb-text);
}
.bb-board-tab.active {
    background: rgba(var(--bb-cyan-rgb), 0.15);
    border-color: rgba(var(--bb-cyan-rgb), 0.4);
    color: var(--bb-cyan-bright);
    box-shadow: var(--bb-glow-sm);
}

/* ── Server Pill Selector ──────────────────────────────────────── */
.bb-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bb-bg-surface);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-pill);
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    font-size: 0.85rem;
    color: var(--bb-text);
    transition: border-color var(--bb-t-fast), box-shadow var(--bb-t-fast);
}
.bb-server-pill:hover,
.bb-server-pill:focus-within {
    border-color: rgba(var(--bb-cyan-rgb), 0.3);
    box-shadow: var(--bb-glow-sm);
}
.bb-server-pill select {
    background: transparent;
    border: none;
    color: var(--bb-cyan-bright);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    padding-right: 0.5rem;
}
.bb-server-pill select option {
    background: var(--bb-bg-secondary);
    color: var(--bb-text);
}
.bb-server-pill .bb-server-pill-icon {
    color: var(--bb-text-dim);
    font-size: 0.9rem;
}

/* ── Form Controls ─────────────────────────────────────────────── */
.bb-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-sm);
    color: var(--bb-text);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: border-color var(--bb-t-fast), box-shadow var(--bb-t-fast);
    width: 100%;
}
.bb-input:focus {
    outline: none;
    border-color: var(--bb-cyan);
    box-shadow: 0 0 0 3px rgba(var(--bb-cyan-rgb), 0.15), var(--bb-glow-sm);
    background: rgba(255, 255, 255, 0.05);
}
.bb-input::placeholder {
    color: var(--bb-text-dim);
}

/* Bootstrap form overrides */
.form-control:focus, .form-select:focus {
    border-color: var(--bb-cyan);
    box-shadow: 0 0 0 0.25rem rgba(var(--bb-cyan-rgb), 0.2);
}

/* ── Pagination ────────────────────────────────────────────────── */
.bb-pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.bb-pagination .page-item .page-link {
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    color: var(--bb-text-muted);
    border-radius: var(--bb-radius-sm);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    transition: all var(--bb-t-fast);
}
.bb-pagination .page-item .page-link:hover {
    background: rgba(var(--bb-cyan-rgb), 0.1);
    border-color: rgba(var(--bb-cyan-rgb), 0.3);
    color: var(--bb-cyan-bright);
}
.bb-pagination .page-item.active .page-link {
    background: rgba(var(--bb-cyan-rgb), 0.2);
    border-color: var(--bb-cyan);
    color: var(--bb-cyan-bright);
    box-shadow: var(--bb-glow-sm);
}

/* ── Skeleton Loading ──────────────────────────────────────────── */
.bb-skeleton {
    background: linear-gradient(90deg,
        var(--bb-bg-card) 25%,
        rgba(255, 255, 255, 0.06) 50%,
        var(--bb-bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--bb-radius-sm);
    min-height: 1rem;
}

/* ── Server Tiles (manage page) ───────────────────────────────── */
.bb-server-tile {
    transition: transform var(--bb-t-base);
}
.bb-server-tile:hover {
    transform: translateY(-4px);
}
.bb-server-tile:hover img {
    border-color: var(--bb-cyan) !important;
    box-shadow: 0 0 20px rgba(var(--bb-cyan-rgb), 0.4);
}

/* ── Hero Section ──────────────────────────────────────────────── */
.bb-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
}
.bb-hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(var(--bb-cyan-rgb), 0.3);
    margin-bottom: 0.75rem;
}
.bb-hero .bb-hero-sub {
    font-size: 1.1rem;
    color: var(--bb-text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.bb-hero .bb-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Weapon Bars (stats page) ──────────────────────────────────── */
.bb-weapon-bar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--bb-radius-pill);
    height: 8px;
    overflow: hidden;
}
.bb-weapon-bar-fill {
    height: 100%;
    border-radius: var(--bb-radius-pill);
    background: linear-gradient(90deg, var(--bb-cyan-dim), var(--bb-cyan-bright));
    box-shadow: 0 0 10px rgba(var(--bb-cyan-rgb), 0.3);
    transition: width 0.8s var(--bb-ease);
}

/* ── Management Tabs ───────────────────────────────────────────── */
.bb-mgmt-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--bb-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.bb-mgmt-tab {
    padding: 0.65rem 1.25rem;
    color: var(--bb-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: color var(--bb-t-fast), border-color var(--bb-t-fast);
    text-decoration: none;
}
.bb-mgmt-tab:hover {
    color: var(--bb-text);
}
.bb-mgmt-tab.active {
    color: var(--bb-cyan-bright);
    border-bottom-color: var(--bb-cyan);
}

/* ── Developer Portal ──────────────────────────────────────────── */
.bb-dev-subnav {
    background: rgba(var(--bb-purple-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--bb-purple-rgb), 0.15);
    padding: 0.5rem 0;
}
.bb-dev-subnav .bb-dev-badge {
    background: rgba(var(--bb-purple-rgb), 0.2);
    color: var(--bb-purple);
    border: 1px solid rgba(var(--bb-purple-rgb), 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: var(--bb-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 1rem;
}
.bb-dev-subnav .bb-dev-link {
    color: var(--bb-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--bb-radius-sm);
    transition: all var(--bb-t-fast);
}
.bb-dev-subnav .bb-dev-link:hover {
    color: var(--bb-purple);
    background: rgba(var(--bb-purple-rgb), 0.08);
}
.bb-dev-subnav .bb-dev-link.active {
    color: var(--bb-purple);
    background: rgba(var(--bb-purple-rgb), 0.12);
}

/* ── Danger Zone ───────────────────────────────────────────────── */
.bb-danger-zone {
    border: 1px solid rgba(var(--bb-red-rgb), 0.3);
    border-radius: var(--bb-radius);
    padding: 1.5rem;
    background: rgba(var(--bb-red-rgb), 0.03);
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(var(--bb-cyan-rgb), 0.3); }
    50% { box-shadow: 0 0 12px rgba(var(--bb-cyan-rgb), 0.6); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes orb1 {
    0%, 100% { top: 55%; left: -8%; }
    25%  { top: 10%; left: 30%; }
    50%  { top: 45%; left: 65%; }
    75%  { top: 15%; left: 50%; }
}
@keyframes orb2 {
    0%, 100% { top: -8%; left: 75%; }
    25%  { top: 40%; left: 40%; }
    50%  { top: 65%; left: 8%; }
    75%  { top: 25%; left: 60%; }
}
@keyframes orb3 {
    0%, 100% { top: 75%; left: 45%; }
    25%  { top: 25%; left: 8%; }
    50%  { top: 5%; left: 55%; }
    75%  { top: 55%; left: 75%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; display: inline-block; }

/* Staggered entrance animations */
.bb-animate-in {
    animation: fadeInUp 0.5s var(--bb-ease) both;
}
.bb-delay-1 { animation-delay: 0.1s; }
.bb-delay-2 { animation-delay: 0.2s; }
.bb-delay-3 { animation-delay: 0.3s; }
.bb-delay-4 { animation-delay: 0.4s; }

/* ── Reduced Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Utility ───────────────────────────────────────────────────── */
.text-cyan { color: var(--bb-cyan) !important; }
.text-cyan-bright { color: var(--bb-cyan-bright) !important; }
.glow-text { text-shadow: 0 0 20px rgba(var(--bb-cyan-rgb), 0.4); }
.border-cyan { border-color: rgba(var(--bb-cyan-rgb), 0.3) !important; }

/* Live indicator dot */
.bb-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bb-green);
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(var(--bb-green-rgb), 0.5);
}

/* ── Feed Config Cards ─────────────────────────────────────────── */
.bb-feed-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bb-radius);
    padding: 1.25rem;
    transition: border-color var(--bb-t-base), box-shadow var(--bb-t-base), background var(--bb-t-base);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bb-feed-card:hover {
    border-color: rgba(var(--bb-cyan-rgb), 0.35);
    box-shadow: var(--bb-glow-sm);
    background: rgba(255, 255, 255, 0.06);
}
.bb-feed-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.bb-feed-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--bb-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(var(--bb-cyan-rgb), 0.15);
    color: var(--bb-cyan);
    flex-shrink: 0;
}
.bb-feed-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    flex: 1;
}
.bb-feed-card-desc {
    font-size: 0.8rem;
    color: var(--bb-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.bb-feed-card-body {
    margin-top: auto;
}
.bb-feed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bb-feed-dot.active {
    background: var(--bb-green);
    box-shadow: 0 0 6px rgba(46, 213, 115, 0.5);
}
.bb-feed-dot.inactive {
    background: rgba(255, 255, 255, 0.2);
}
.bb-feed-card.locked {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}
.bb-feed-card.locked .bb-feed-card-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bb-text-dim);
}
.bb-premium-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: var(--bb-radius-pill);
    background: rgba(255, 165, 2, 0.15);
    color: var(--bb-amber);
    border: 1px solid rgba(255, 165, 2, 0.25);
}
.bb-feed-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bb-feed-section-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}
.bb-feed-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--bb-radius-sm);
    color: var(--bb-text);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    appearance: auto;
    transition: border-color var(--bb-t-fast), box-shadow var(--bb-t-fast);
}
.bb-feed-select:focus {
    outline: none;
    border-color: var(--bb-cyan);
    box-shadow: 0 0 0 3px rgba(var(--bb-cyan-rgb), 0.15);
}
.bb-feed-select option {
    background: #1a1a2e;
    color: var(--bb-text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bb-bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
