@font-face {
    font-family: righteousfont;
    src: url('/fonts/righteous') format('truetype');
}

.bb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.25rem;
    background: #121212;
    border-bottom: 1px solid #333;
    box-shadow: 0 1px 0 rgba(216, 115, 255, 0.22);
    box-sizing: border-box;
    width: 100%;
    min-height: 58px;
    margin: 0;
    position: relative;
    z-index: 100;
    flex: 0 0 auto;
    order: -1000;
}

.bb-topbar a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    color: inherit;
    text-decoration: none !important;
    font-weight: inherit;
    box-sizing: border-box;
    line-height: 1.1;
}

.bb-brand {
    font-family: righteousfont, Arial, sans-serif;
    color: #D873FF !important;
    font-size: 1.65rem;
    line-height: 1;
    white-space: nowrap;
}

.bb-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.bb-nav-link {
    color: #e8e2ec !important;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.95rem;
    line-height: 1.1;
    min-height: 34px;
}

.bb-nav-link:hover,
.bb-nav-link.active {
    color: #fff !important;
    border-color: #A885AD;
    background: #1d1d1d;
}

.bb-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bb-nav-action {
    color: #cfc8d4 !important;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.42rem 0.6rem;
    font-size: 0.9rem;
    min-height: 34px;
}

.bb-nav-action:hover {
    color: #fff !important;
    border-color: #D873FF;
}

.bb-page-heading {
    text-align: center;
    padding: 1.4rem 1rem 0.5rem;
}

.bb-page-heading h1 {
    font-family: righteousfont, Arial, sans-serif;
    color: #D873FF;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
}

.bb-page-heading p {
    color: #bbb;
    margin: 0.45rem auto 0;
    max-width: 760px;
    font-size: 1rem;
}

@media (max-width: 820px) {
    .bb-topbar {
        align-items: flex-start;
        padding: 0.8rem;
    }

    .bb-nav-links {
        justify-content: flex-start;
        order: 3;
        width: 100%;
    }

    .bb-nav-link {
        padding: 0.45rem 0.55rem;
        font-size: 0.9rem;
    }
}
