/* Authenticated mobile header and bottom navigation */
.nexa-mobile-header-actions {
    display: none;
}

.nexa-mobile-browse-account,
.nexa-dashboard-browse-links {
    display: none;
}

@media (max-width: 991px) {
    .header-primary,
    .user-header-primary {
        height: 64px !important;
        padding: 0 !important;
        background: #102936 !important;
        border-bottom: 1px solid #234553 !important;
    }

    .header-primary > .container-fluid,
    .user-header-primary .container-fluid,
    .header-fluid-custom-parent {
        height: 64px !important;
    }

    .header-primary > .container-fluid,
    .user-header-primary .container-fluid {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .header-fluid-custom-parent {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 7px !important;
    }

    .header-fluid-custom-parent .logo {
        min-width: 0;
        flex: 0 1 104px;
        margin-right: auto;
    }

    .header-fluid-custom-parent .logo img,
    .user-header-primary .logo img {
        width: auto;
        max-width: 102px !important;
        max-height: 38px !important;
    }

    .header-fluid-custom-parent .primary-menu-container {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nexa-header-desktop-actions,
    .stake-header-switch {
        display: none !important;
    }

    .primary-menu-container > .nexa-mobile-header-actions,
    .nexa-mobile-header-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        margin-left: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .nexa-mobile-header-actions > li {
        flex: 0 0 auto;
    }

    .nexa-mobile-balance,
    .nexa-mobile-wallet-button,
    .nexa-mobile-header-icon,
    .nexa-mobile-signin {
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 8px;
        color: #fff;
        box-shadow: none;
    }

    .nexa-mobile-balance {
        min-width: 105px;
        gap: 7px;
        padding: 0 10px;
        background: #081b25;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }

    .nexa-mobile-balance::after,
    .nexa-mobile-header-icon::after {
        display: none !important;
    }

    .nexa-mobile-balance > i {
        color: #a8bfca;
        font-size: 12px;
    }

    .nexa-mobile-wallet-button {
        width: 44px;
        background: #1689ff;
        font-size: 22px;
    }

    .nexa-mobile-header-icon {
        width: 37px;
        padding: 0;
        background: transparent;
        color: #e9f3f6;
        font-size: 23px;
    }

    .nexa-mobile-signin {
        gap: 6px;
        padding: 0 13px;
        background: #0b2230;
        border: 1px solid #2b5769;
        color: #eff9fc;
        font-size: 11px;
        font-weight: 800;
    }

    .nexa-mobile-signin i {
        color: #29d98c;
        font-size: 20px;
    }

    .nexa-mobile-balance-dropdown > .dropdown-menu {
        min-width: 220px;
        margin-top: 9px !important;
        padding: 7px;
        border: 1px solid #294b59;
        border-radius: 10px;
        background: #102936;
        box-shadow: 0 16px 38px #0008;
    }

    .nexa-mobile-wallet-summary {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 5px;
        padding: 10px;
        border-radius: 7px;
        background: #091c26;
    }

    .nexa-mobile-wallet-summary small {
        color: #7f9ba7;
        font-size: 9px;
        text-transform: uppercase;
    }

    .nexa-mobile-wallet-summary strong {
        color: #fff;
        font-size: 14px;
    }

    .nexa-mobile-balance-dropdown .dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 10px;
        border-radius: 7px;
        color: #c9d8de;
        font-size: 11px;
    }

    .nexa-mobile-user-dropdown .dropdown-menu {
        position: fixed !important;
        top: 63px !important;
        right: 8px !important;
        bottom: auto !important;
        left: 8px !important;
        width: auto !important;
        max-height: calc(100vh - 146px);
        margin: 0 !important;
        overflow-y: auto;
        transform: none !important;
    }

    .sports-category.nexa-minimal-rail {
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 92px !important;
        overscroll-behavior: contain;
    }

    .nexa-mobile-browse-account {
        display: block;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #214553;
    }

    .nexa-mobile-drawer-wallet {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0 4px 8px;
        padding: 12px;
        border: 1px solid #285365;
        border-radius: 10px;
        background: linear-gradient(145deg, #123545, #0a2632);
    }

    .nexa-mobile-drawer-wallet > div {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
    }

    .nexa-mobile-drawer-wallet small {
        color: #86a2ad;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .7px;
        text-transform: uppercase;
    }

    .nexa-mobile-drawer-wallet strong {
        overflow: hidden;
        color: #fff;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nexa-mobile-drawer-wallet > a {
        flex: 0 0 auto;
        padding: 8px 11px;
        border-radius: 7px;
        background: linear-gradient(135deg, #238cff, #176ee4);
        color: #fff;
        font-size: 10px;
        font-weight: 800;
    }

    .nexa-mobile-account-links {
        border-top: 0;
    }

    .nexa-mobile-account-links .nexa-mobile-logout {
        margin-top: 5px;
        border-top: 1px solid #214553;
        color: #ff9b9b;
    }

    .nexa-dashboard-browse-links {
        display: block;
        padding: 0 8px 10px;
        border-bottom: 1px solid #214553;
    }

    .nexa-dashboard-browse-links > a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 10px;
        border-radius: 7px;
        color: #91a8b2;
        font-size: 10px;
        font-weight: 650;
    }

    .nexa-dashboard-browse-links > a:hover,
    .nexa-dashboard-browse-links > a:focus {
        background: #12313e;
        color: #fff;
    }

    .nexa-dashboard-browse-links > a i {
        width: 18px;
        color: #29d98c;
        font-size: 15px;
        text-align: center;
    }

    .dashboard-sidebar {
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    .nexa-mobile-nav.app-nav {
        height: 70px;
        padding: 0;
        border-top: 1px solid #254753 !important;
        background: #102936 !important;
        box-shadow: 0 -10px 30px #020b0f66;
    }

    .nexa-mobile-nav .container-fluid {
        height: 100%;
        padding: 0 8px;
    }

    .nexa-mobile-nav .app-nav__menu {
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 1px;
    }

    .nexa-mobile-nav .app-nav__menu > li {
        min-width: 0;
    }

    .nexa-mobile-nav .app-nav__menu-link {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 5px 1px 4px;
        border-radius: 8px;
        color: #9ab3be;
        text-align: center;
    }

    .nexa-mobile-nav .app-nav__menu-link:hover,
    .nexa-mobile-nav .app-nav__menu-link.active,
    .nexa-mobile-nav .app-nav__menu-link.is-active {
        color: #eaf5f8;
    }

    .nexa-mobile-nav .app-nav__menu-icon {
        width: 34px;
        height: 26px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        color: #9ab3be;
        font-size: 22px;
        line-height: 1;
    }

    .nexa-mobile-nav .app-nav__menu-icon i {
        font-size: 22px !important;
    }

    .nexa-mobile-nav .app-nav__menu-link.active .app-nav__menu-icon,
    .nexa-mobile-nav .app-nav__menu-link.is-active .app-nav__menu-icon {
        color: #dff1f6 !important;
    }

    .nexa-mobile-nav .nexa-for-you-link .app-nav__menu-icon {
        background: #183a48;
        color: #d8edf4;
    }

    .nexa-mobile-nav .app-nav__menu-text {
        display: block;
        overflow: hidden;
        color: inherit;
        font-size: 10px !important;
        font-weight: 600;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nexa-mobile-nav .bet-count {
        top: 5px;
        right: calc(50% - 21px);
        min-width: 15px;
        height: 15px;
        display: grid;
        place-items: center;
        padding: 0 3px;
        border: 2px solid #102936;
        border-radius: 10px;
        background: #21d17f;
        color: #052116;
        font-size: 7px;
        font-weight: 900;
        line-height: 1;
    }

    .home-page {
        padding-bottom: 70px;
    }

    .betslip {
        bottom: 70px !important;
        height: calc(100vh - 134px) !important;
    }
}

@media (max-width: 420px) {
    .header-fluid-custom-parent .logo {
        flex-basis: 92px;
    }

    .header-fluid-custom-parent .logo img,
    .user-header-primary .logo img {
        max-width: 92px !important;
    }

    .nexa-mobile-header-actions {
        gap: 3px;
    }

    .nexa-mobile-balance {
        min-width: 89px;
        padding: 0 7px;
        font-size: 9px;
    }

    .nexa-mobile-wallet-button {
        width: 40px;
    }

    .nexa-mobile-header-icon {
        width: 32px;
        font-size: 21px;
    }
}

@media (max-width: 360px) {
    .header-fluid-custom-parent .logo {
        flex-basis: 72px;
    }

    .header-fluid-custom-parent .logo img,
    .user-header-primary .logo img {
        max-width: 72px !important;
    }

    .nexa-mobile-balance {
        min-width: 82px;
    }
}
