.modal-a {
    font-size: 15px;
    background-color: #1e1e2d;
    transition: 250ms;
    padding: 10px;
    border-radius: 50%;
    margin-right: 0px;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.ul-category {
    margin-right: 20px;
    margin-bottom: 0px !important;
    /* Home/Trending hidden everywhere now */
    display: none !important;
}

.mobile-top-links {
    display: none;
}

.category-filter-new {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.category-filter-new:hover {
    color: #4AF0A7;
    transform: scale(1.1);
}

.category-filter-active {
    color: #4AF0A7 !important;
    transform: scale(1.1);
}

/* GameNow co-branded badge (shown to subscribed Jazz users, next to the main
   logo). Small by default so it never crowds the Home/Trending links beside
   it at narrower desktop widths (or desktop zoom, which behaves the same as
   a narrower viewport) — grows on wide screens where there's confirmed
   spare room. !important overrides custom.css's ".header-row img { width:
   100px }", a blanket rule that would otherwise force both logos to the
   same distorted width regardless of their real aspect ratio. */
.gamenow-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}
.gamenow-badge img {
    width: auto !important;
    display: block;
}
.gamenow-badge .gn-logo {
    height: 16px !important;
}
.gamenow-badge .partner-logo {
    height: 22px !important;
}
@media (min-width: 1300px) {
    .gamenow-badge .gn-logo {
        height: 24px !important;
    }
    .gamenow-badge .partner-logo {
        height: 33px !important;
    }
}

/* .col.left is a no-wrap flex row (custom.css), so when the badge + nav
   links together don't fit the available width, they get forced onto the
   same line and visually overlap instead of the row growing taller. Letting
   it wrap fixes this at any viewport width, regardless of exact badge size —
   Home/Trending drops to its own line under the logo when space is tight. */
.manubar .col.left {
    flex-wrap: wrap;
    row-gap: 4px;
}


/* ---------- Mobile Responsive Header ---------- */

@media (max-width: 768px) {
    .manubar.header-row {
        flex-wrap: wrap;
        padding: 8px 10px !important;
    }
    .manubar .col.left {
        width: 40% !important;
        justify-content: flex-start !important;
    }
    .manubar .col.left .logo img {
        max-width: 100px !important;
    }
    /* Hide desktop links on mobile to save space */
    .ul-category {
        display: none !important;
    }
    .manubar .col.center {
        order: 3;
        width: 100% !important;
        margin-top: 5px;
    }
    .manubar .col.center .header-search {
        width: 100% !important;
    }
    .manubar .col.center .header-search input {
        height: 35px !important;
        font-size: 13px !important;
    }
    .manubar .col.right {
        width: 60% !important;
        justify-content: flex-end !important;
        gap: 5px;
    }
    /* Subscribe is the primary conversion CTA: tighter padding, but its text stays readable.
       Login is secondary, so it shrinks further rather than competing for the same space.
       !important needed since both carry inline styles (header.blade.php) that a plain rule can't beat. */
    .join-now-link {
        padding: 5px 10px !important;
        font-size: 13px !important;
    }
    .login-link {
        font-size: 12px !important;
    }
    .mobile-top-links {
        display: none !important;
        /* Hide these to reduce crowding as requested */
    }
    .modal-a {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
    #toggleSidebar {
        padding: 5px 10px;
        font-size: 18px;
        background: #1e1e2d;
        border: none;
        color: #fff;
        border-radius: 4px;
    }
    @media (max-width: 768px) {
        .content-wrapper {
            padding-top: 55px;
            /* Perfect offset for single-row mobile header */
        }
    }
    .is_mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .modal-a {
        margin-bottom: 10px !important;
    }
    .is_mobile {
        display: none;
    }
}

.manubar {
    background-color: #000000 !important;
    border-bottom: 1px solid #1a1a1a;
}

.category-filter-new {
    color: #8e8e93 !important;
}

.category-filter-new:hover,
.category-filter-active {
    color: #ffffff !important;
}


/* Mobile simplification */

@media (max-width: 768px) {
    .header_area {
        /* position: fixed; */
        top: 0;
        width: 100%;
        z-index: 100000;
        background: #000000 !important;
    }
    /* Under an open popup and its dark backdrop (Bootstrap: 1050/1055), or it hides the popup's title. */
    body.modal-open .header_area {
        z-index: 1040;
    }
    .col.center,
    #toggleSidebar,
    .modal-a.is_mobile,
    .mobile-top-links {
        display: none !important;
    }
    .manubar.header-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 10px 15px !important;
        background: #000000 !important;
    }
    .col.left {
        width: auto !important;
    }
    .col.right {
        width: auto !important;
    }
}
