/* BUSSINMODS UNIVERSAL HEADER */

body > header.bm-site-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    background: rgba(9, 11, 14, .97) !important;
    border: 0 !important;
    border-bottom: 1px solid #252a31 !important;
    border-radius: 0 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000 !important;
}

body > header.bm-site-header .bm-site-header-inner {
    width: min(1100px, calc(100% - 40px)) !important;
    max-width: 1100px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

body > header.bm-site-header .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    text-decoration: none !important;
}

body > header.bm-site-header .logo img {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
}

body > header.bm-site-header .nav-right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 22px !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
}

body > header.bm-site-header .nav-right > * {
    flex-shrink: 0 !important;
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Search */

body > header.bm-site-header .header-search {
    position: relative !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    background: transparent !important;
    overflow: hidden !important;
    transition: width .25s ease, border-color .2s ease, background .2s ease !important;
}

body > header.bm-site-header .header-search.open {
    width: 190px !important;
    border-color: #252a31 !important;
    background: #111419 !important;
}

body > header.bm-site-header .header-search input {
    width: 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 10px !important;
    opacity: 0;
    flex: 1 1 auto !important;
    transition: width .25s ease, opacity .15s ease, padding .25s ease !important;
}

body > header.bm-site-header .header-search.open input {
    width: 156px !important;
    padding: 0 8px !important;
    opacity: 1 !important;
}

body > header.bm-site-header .header-search input::placeholder {
    color: #626a74 !important;
}

body > header.bm-site-header .search-open-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #777f89 !important;
    cursor: pointer !important;
    font-size: 13px !important;
}

body > header.bm-site-header .search-open-button:hover {
    color: #ffffff !important;
}

/* Theme button */

body > header.bm-site-header .theme-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid #252a31 !important;
    border-radius: 7px !important;
    background: #111419 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

/* Navigation links */

body > header.bm-site-header .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 2px !important;
    color: #9da4ad !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}

body > header.bm-site-header .nav-link:hover {
    color: #ffffff !important;
}

body > header.bm-site-header .nav-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 13px !important;
    border: 1px solid #252a31 !important;
    border-radius: 7px !important;
    background: #111419 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

body > header.bm-site-header .nav-button:hover {
    border-color: #3a414b !important;
}

/* Category menu */

body > header.bm-site-header .category-menu {
    position: relative !important;
    flex: 0 0 auto !important;
}

body > header.bm-site-header .category-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #9da4ad !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    appearance: none !important;
}

body > header.bm-site-header .category-trigger:hover {
    color: #ffffff !important;
}

body > header.bm-site-header .category-arrow {
    font-size: 9px !important;
    transition: transform .2s ease !important;
}

body > header.bm-site-header .category-menu:hover .category-arrow {
    transform: rotate(180deg);
}

body > header.bm-site-header .category-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: -8px !important;
    width: 190px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    padding: 6px !important;
    background: #111419 !important;
    border: 1px solid #252a31 !important;
    border-radius: 9px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-5px);
    transition: .18s ease !important;
    z-index: 10020 !important;
}

body > header.bm-site-header .category-menu:hover .category-dropdown,
body > header.bm-site-header .category-menu:focus-within .category-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

body > header.bm-site-header .category-dropdown a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 34px !important;
    padding: 9px 10px !important;
    border-radius: 6px !important;
    color: #9299a2 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

body > header.bm-site-header .category-dropdown a:hover {
    background: #1b1f25 !important;
    color: #ffffff !important;
}

body > header.bm-site-header .category-dropdown .all-mods {
    color: #ffffff !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #252a31 !important;
    border-radius: 0 !important;
    margin-bottom: 4px !important;
}

body > header.bm-site-header .dropdown-item-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Mobile: same responsive behavior as homepage */

@media (max-width: 700px) {
    body > header.bm-site-header {
        height: 70px !important;
        min-height: 70px !important;
    }

    body > header.bm-site-header .bm-site-header-inner {
        width: calc(100% - 24px) !important;
    }

    body > header.bm-site-header .nav-right {
        gap: 10px !important;
    }

    body > header.bm-site-header .nav-right > .nav-link {
        display: none !important;
    }

    body > header.bm-site-header .header-search.open {
        width: 150px !important;
    }

    body > header.bm-site-header .header-search.open input {
        width: 116px !important;
    }

    body > header.bm-site-header .category-dropdown {
        top: calc(100% + 8px) !important;
        right: 0 !important;
        width: 180px !important;
    }

    body > header.bm-site-header .category-dropdown a {
        min-height: 40px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    body > header.bm-site-header .bm-site-header-inner {
        width: calc(100% - 16px) !important;
        gap: 6px !important;
    }

    body > header.bm-site-header .logo {
        flex-basis: 54px !important;
        width: 54px !important;
        min-width: 54px !important;
    }

    body > header.bm-site-header .logo img {
        width: 54px !important;
        height: 54px !important;
    }

    body > header.bm-site-header .nav-right {
        gap: 7px !important;
    }
}

/* BUSSINMODS LIVE VIEWER COUNTER */

body > header.bm-site-header .bm-live-viewers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    height: 34px !important;
    min-width: 58px !important;
    padding: 0 9px !important;
    margin: 0 0 0 2px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.045) !important;
    color: #b8c0ca !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

body > header.bm-site-header .bm-live-viewers svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
    fill: none !important;
    stroke: #aeb8c5 !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body > header.bm-site-header .bm-live-viewers-count {
    min-width: 12px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
    text-align: center !important;
}

body > header.bm-site-header .bm-live-viewers-label {
    color: #82909e !important;
    font-size: 9px !important;
    font-weight: 600 !important;
}

@media (max-width: 380px) {
    body > header.bm-site-header .bm-live-viewers {
        gap: 4px !important;
        min-width: 48px !important;
        padding: 0 6px !important;
    }

    body > header.bm-site-header .bm-live-viewers-label {
        display: none !important;
    }
}
