/*
|--------------------------------------------------------------------------
| PROJECT REDLINE - NAVBAR
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| MOBILE PROFILE BUTTON
|--------------------------------------------------------------------------
*/

.mobile-profile-button {

    display: none;
}

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background:
        var(--background-secondary);

    border-bottom:
        1px solid var(--card-border);

    backdrop-filter: blur(14px);

    z-index: 9999;
}

/*
|--------------------------------------------------------------------------
| NAVBAR LEFT
|--------------------------------------------------------------------------
*/

.navbar-left {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.navbar-logo {
    font-size: 28px;
    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--text-color);
}

.navbar-logo span {
    color: #FF2A2A;

    text-shadow:
        0 0 18px rgba(255, 42, 42, 0.25);
}

/*
|--------------------------------------------------------------------------
| NAVIGATION
|--------------------------------------------------------------------------
*/

.navbar-nav {
    display: flex;
    align-items: center;

    gap: 14px;
}

.navbar-link {
    height: 46px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        0
        18px;

    border-radius: 14px;

    border: 1px solid transparent;

    background: transparent;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.navbar-link i {
    font-size: 14px;
}

.navbar-link:hover {

    color:
        var(--text-color);

    background:
        var(--card-background);

    border-color:
        var(--card-border);
}

.navbar-link.active {
    color: var(--text-color);

    background:
        linear-gradient(
            135deg,
            rgba(255, 42, 42, 0.16),
            rgba(255, 42, 42, 0.08)
        );

    border-color:
        rgba(255, 42, 42, 0.16);

    box-shadow:
    0 0 20px color-mix(
        in srgb,
        var(--primary-color) 50%,
        transparent
    );
}

/*
|--------------------------------------------------------------------------
| NAVBAR RIGHT
|--------------------------------------------------------------------------
*/

.navbar-right {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-left: auto;
}

/*
|--------------------------------------------------------------------------
| STATS
|--------------------------------------------------------------------------
*/

.navbar-stats {
    display: flex;
    align-items: center;

    gap: 12px;
}

.navbar-stat {
    min-width: 120px;
    height: 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        0
        16px;

    border-radius: 16px;

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);
}

.navbar-stat-label {
    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.navbar-stat-value {
    color: var(--text-color);

    font-size: 14px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| PROFILE
|--------------------------------------------------------------------------
*/

.navbar-profile:hover {
    border-color:
        rgba(255, 42, 42, 0.14);

    box-shadow:
    0 0 20px color-mix(
        in srgb,
        var(--primary-color) 50%,
        transparent
    );
}

/*
|--------------------------------------------------------------------------
| PROFILE DROPDOWN
|--------------------------------------------------------------------------
*/

.navbar-profile-dropdown {
    position: absolute;

    top: calc(100% + 2px);
    right: 0;

    width: 220px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 10px;

    border-radius: 22px;

    background:
        var(--background-secondary);

    border:
        1px solid rgba(255, 42, 42, 0.12);

    box-shadow:
        0 0 32px rgba(0, 0, 0, 0.38);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(10px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 9999;
}

/*
|--------------------------------------------------------------------------
| HOVER
|--------------------------------------------------------------------------
*/

.navbar-profile-card:hover .navbar-profile-dropdown {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}

/*
|--------------------------------------------------------------------------
| ITEM
|--------------------------------------------------------------------------
*/

.navbar-dropdown-item {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding:
        0
        16px;

    border: none;
    border-radius: 16px;

    background:
        transparent;

    color: var(--text-color);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        0.18s ease;
}

/*
|--------------------------------------------------------------------------
| HOVER
|--------------------------------------------------------------------------
*/

.navbar-dropdown-item:hover {
    background:
        var(--card-background);
}

/*
|--------------------------------------------------------------------------
| LOGOUT
|--------------------------------------------------------------------------
*/

.navbar-dropdown-item.logout {
    color: #FF4D4D;
}

/*
|--------------------------------------------------------------------------
| BALANCE
|--------------------------------------------------------------------------
*/

.navbar-balance {

    min-width: 170px;

    width: fit-content;

    height: 60px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 0 14px;

    border-radius: 22px;

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);
}

/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.navbar-balance-card {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

.navbar-balance-icon {

    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| MONEY
|--------------------------------------------------------------------------
*/

.navbar-balance-card.money .navbar-balance-icon {
    background:
        rgba(0, 255, 136, 0.12);

    color: #2CFF94;

    box-shadow:
        0 0 18px rgba(44, 255, 148, 0.14);
}

/*
|--------------------------------------------------------------------------
| GOLD
|--------------------------------------------------------------------------
*/

.navbar-balance-card.gold .navbar-balance-icon {
    background:
        rgba(255, 187, 0, 0.12);

    color: #FFD24A;

    box-shadow:
        0 0 18px rgba(255, 210, 74, 0.14);
}

/*
|--------------------------------------------------------------------------
| INFO
|--------------------------------------------------------------------------
*/

.navbar-balance-info {

    display: flex;

    flex-direction: column;

    min-width: max-content;
}

/*
|--------------------------------------------------------------------------
| VALUE
|--------------------------------------------------------------------------
*/

.navbar-balance-value {
    color: #2CFF94;

    font-size: 13px;
    font-weight: 800;
}

.navbar-balance-value-gold {
    color: #FFD24A;

    font-size: 13px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| LABEL
|--------------------------------------------------------------------------
*/

.navbar-balance-label {
    margin-top: 2px;

    color: #FFD24A;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

/*
|--------------------------------------------------------------------------
| USER WRAPPER
|--------------------------------------------------------------------------
*/

.navbar-user-wrapper {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

/*
|--------------------------------------------------------------------------
| LEVEL CARD
|--------------------------------------------------------------------------
*/

.navbar-level-card {

    width: 170px;

    min-width: 170px;

    height: 60px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 0 14px;

    border-radius: 22px;

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);
}

/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

.navbar-level-icon {

    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255, 42, 42, 0.12);

    color: #FF4D4D;

    font-size: 14px;

    box-shadow:
        0 0 18px rgba(255, 42, 42, 0.14);
}

/*
|--------------------------------------------------------------------------
| INFO
|--------------------------------------------------------------------------
*/

.navbar-level-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
}

/*
|--------------------------------------------------------------------------
| VALUE
|--------------------------------------------------------------------------
*/

.navbar-level-value {
    color: #2CFF94;

    font-size: 24px;
    font-weight: 900;

    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| PROFILE CARD
|--------------------------------------------------------------------------
*/

.navbar-profile-card {

    position: relative;

    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-left: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 50%;

    background: transparent;

    border: none;

    box-shadow: none;

    cursor: pointer;

    flex-shrink: 0;
}

/*
|--------------------------------------------------------------------------
| LEVEL
|--------------------------------------------------------------------------
*/

.navbar-profile-level {

    margin-top: 6px;

    color:
        var(--text-muted);

    font-size: 11px;

    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| XP BAR
|--------------------------------------------------------------------------
*/

.navbar-level-progress {

    position: relative;

    width: 100%;

    height: 6px;

    margin-top: 8px;

    border-radius: 999px;

    overflow: hidden;

    background:
        var(--card-border);
}

/*
|--------------------------------------------------------------------------
| PROJECT REDLINE - NEW NAVBAR STRUCTURE
|--------------------------------------------------------------------------
*/

.navbar-container {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}

/*
|--------------------------------------------------------------------------
| BRAND
|--------------------------------------------------------------------------
*/

.navbar-brand {

    display: flex;

    align-items: center;

    gap: 14px;

    cursor: pointer;
}

.navbar-brand span {

    color: var(--text-color);

    font-size: 20px;

    font-weight: 900;

    letter-spacing: 0.5px;
}

.mobile-navbar-logo {

    display: none;
}

/*
|--------------------------------------------------------------------------
| USER
|--------------------------------------------------------------------------
*/

.navbar-user {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    padding:
        10px
        16px;

    border-radius: 22px;

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);

    transition:
        0.2s ease;

    cursor: pointer;
}

.navbar-user:hover {

    border-color:
        rgba(255,42,42,0.16);

    box-shadow:
        0 0 24px rgba(255,42,42,0.08);
}

/*
|--------------------------------------------------------------------------
| AVATAR
|--------------------------------------------------------------------------
*/

.navbar-avatar {

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    border-radius: 50%;

    object-fit: cover;

    border:
        2px solid rgba(255,255,255,0.08);

    transition:
        .2s ease;
}

.navbar-profile-card:hover .navbar-avatar {

    border-color:
        rgba(255,70,70,0.4);

    box-shadow:
        0 0 20px rgba(255,70,70,0.25);
}

.navbar-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

/*
|--------------------------------------------------------------------------
| USER INFO
|--------------------------------------------------------------------------
*/

.navbar-user-info {

    width: 200px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

/*
|--------------------------------------------------------------------------
| USERNAME
|--------------------------------------------------------------------------
*/

.navbar-username {

    color: var(--text-color);

    font-size: 18px;

    font-weight: 800;

    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| XP TEXT
|--------------------------------------------------------------------------
*/

.navbar-level-xp {

    margin-left: 6px;

    color:
        var(--text-muted);

    font-size: 11px;

    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| FILL
|--------------------------------------------------------------------------
*/

.navbar-level-progress-fill {

    height: 100%;

    min-width: 6px;

    border-radius: 999px;

    transition:
        width 0.35s ease;

    background:
        linear-gradient(
            90deg,
            var(--primary-color),
            var(--primary-color)
        );

    box-shadow:
        0 0 12px rgba(255,42,42,0.28);
}

/*
|--------------------------------------------------------------------------
| DROPDOWN
|--------------------------------------------------------------------------
*/

.navbar-dropdown {

    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    width: 220px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 10px;

    border-radius: 22px;

    background:
        var(--background-secondary);

    border:
        1px solid rgba(255,42,42,0.12);

    box-shadow:
        0 0 32px rgba(0,0,0,0.38);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(10px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 9999;
}

/*
|--------------------------------------------------------------------------
| USER HOVER
|--------------------------------------------------------------------------
*/

.navbar-user:hover .navbar-dropdown {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}

/*
|--------------------------------------------------------------------------
| LEVEL TOP
|--------------------------------------------------------------------------
*/

.navbar-level-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}

/*
|--------------------------------------------------------------------------
| CURRENT XP
|--------------------------------------------------------------------------
*/

.navbar-level-current-xp {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    min-width: 72px;

    color:
        var(--text-muted);

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-align: right;
}

/*
|--------------------------------------------------------------------------
| PROJECT LOGO
|--------------------------------------------------------------------------
*/

.navbar-project-logo {

    height: 38px;

    width: auto;

    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| ENERGY CARD
|--------------------------------------------------------------------------
*/

.navbar-energy-card {

    width: 170px;

    min-width: 170px;

    height: 60px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 14px;

    border-radius: 22px;

    background:
        var(--card-background);

    border:
        1px solid var(--card-border);
}

/*
|--------------------------------------------------------------------------
| ENERGY ICON
|--------------------------------------------------------------------------
*/

.navbar-energy-icon {

    width: 38px;
    height: 38px;

    min-width: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255,179,71,0.12);

    color: #FFB347;

    font-size: 14px;

    box-shadow:
        0 0 18px rgba(255,179,71,0.14);
}

/*
|--------------------------------------------------------------------------
| ENERGY INFO
|--------------------------------------------------------------------------
*/

.navbar-energy-info {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

/*
|--------------------------------------------------------------------------
| ENERGY TOP
|--------------------------------------------------------------------------
*/

.navbar-energy-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 6px;

    margin-bottom: 5px;
}

/*
|--------------------------------------------------------------------------
| ENERGY VALUE
|--------------------------------------------------------------------------
*/

.navbar-energy-value-text {

    color: var(--text-color);

    font-size: 13px;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| ENERGY TIMER
|--------------------------------------------------------------------------
*/

.navbar-energy-timer {

    color: #FFB347;

    font-size: 10px;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;

    flex-shrink: 0;
}

/*
|--------------------------------------------------------------------------
| ENERGY BAR
|--------------------------------------------------------------------------
*/

.navbar-energy-bar {

    width: 100%;

    height: 6px;

    border-radius: 999px;

    overflow: hidden;

    background:
        var(--card-border);
}

.navbar-energy-fill {

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #FFB347,
            #FF8C42
        );

    box-shadow:
        0 0 10px rgba(255,179,71,0.25);
}

/*
|--------------------------------------------------------------------------
| LAPTOP / SMALL DESKTOP
|--------------------------------------------------------------------------
*/

@media (max-width: 1920px) {

    .navbar-logo {

        font-size: 22px;
    }

    .navbar-nav {

        gap: 6px;
    }

    .navbar-link {

        padding: 0 12px;

        font-size: 13px;

        gap: 6px;
    }

    .navbar-stat {

        min-width: 105px;
    }

    .navbar-balance {

        gap: 8px;

        padding: 6px 10px;
    }

    .navbar-balance-icon {

        width: 34px;
        height: 34px;
    }

    .navbar-level-card {

        width: 170px;

        min-width: 170px;
    }

    .navbar-energy-card {

        width: 170px;

        min-width: 170px;
    }

    .navbar-profile-card {

        width: 64px;
    }

    .navbar-profile-name {

        font-size: 18px;
    }
}

/*
|--------------------------------------------------------------------------
| VERY SMALL DESKTOP
|--------------------------------------------------------------------------
*/

@media (max-width: 1280px) {

    .navbar-project-name {

        display: none;
    }

    .navbar-link span {

        display: none;
    }

    .navbar-link {

        width: 42px;

        padding: 0;

        justify-content: center;
    }

    .navbar-level-current-xp {

        display: none;
    }

    .navbar-profile-card {

        width: 110px;
    }

    .navbar-profile-name {

        font-size: 14px;
    }
}

/*
|--------------------------------------------------------------------------
| AAA MOBILE SYSTEM
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    /*
    |--------------------------------------------------------------------------
    | BODY
    |--------------------------------------------------------------------------
    */

    body {

        padding-top: 128px;

        padding-bottom: 118px;
    }

    /*
    |--------------------------------------------------------------------------
    | TOP NAVBAR
    |--------------------------------------------------------------------------
    */

    .navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 132px;

    padding:
        10px
        12px;

    background:
        rgba(6,6,6,0.96);

    border-bottom:
        1px solid rgba(255,255,255,0.05);

    backdrop-filter:
        blur(24px);

    z-index: 999999999;

    overflow: visible;
        
    
}

    /*
    |--------------------------------------------------------------------------
    | CONTAINER
    |--------------------------------------------------------------------------
    */

    .navbar-container {

        position: relative;

        width: 100%;

        height: 100%;
    }

    /*
    |--------------------------------------------------------------------------
    | DESKTOP HIDE
    |--------------------------------------------------------------------------
    */

    .desktop-navbar-nav,
    .navbar-profile-card {

        display: none !important;
    }

    /*
    |--------------------------------------------------------------------------
    | LEFT
    |--------------------------------------------------------------------------
    */

    .navbar-left {

        position: absolute;

        left: 12px;
        top: 12px;

        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 8px;

        z-index: 3;
    }

    /*
    |--------------------------------------------------------------------------
    | RIGHT
    |--------------------------------------------------------------------------
    */

    .navbar-right {

        position: absolute;

        right: 12px;
        bottom: 12px;

        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 8px;

        z-index: 3;
    }

    /*
    |--------------------------------------------------------------------------
    | BRAND
    |--------------------------------------------------------------------------
    */

    .navbar-brand {

        display: none !important;
    }

    .navbar-project-logo {

        height: 34px;

        width: auto;

        object-fit: contain;

        display: block;
    }

    /*
    |--------------------------------------------------------------------------
    | BALANCE
    |--------------------------------------------------------------------------
    */

    .navbar-balance {

        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 8px;

        padding: 0;

        background: none;

        border: none;
    }

    /*
    |--------------------------------------------------------------------------
    | LEVEL
    |--------------------------------------------------------------------------
    */

    .navbar-level-current-xp {

        display: none;
    }

    .navbar-level-progress,
    .navbar-energy-bar {

        width: 100%;

        height: 4px;

        margin-top: 3px;

        border-radius: 999px;

        overflow: hidden;

        background:
            rgba(255,255,255,0.08);
    }

    /*
    |--------------------------------------------------------------------------
    | MOBILE NAVBAR
    |--------------------------------------------------------------------------
    */

    .mobile-bottom-navbar {

        position: fixed;

        left: 0;
        bottom: 0;

        width: 100%;

        height: 102px;

        padding:
            0
            10px;

        display: flex;

        align-items: flex-end;

        justify-content: space-between;

        background:
            rgba(8,8,8,0.96);

        border:
            1px solid var(--card-border);

        backdrop-filter:
            blur(24px);

        overflow: visible;

        z-index: 999999999;
    }

    /*
    |--------------------------------------------------------------------------
    | BUTTON
    |--------------------------------------------------------------------------
    */

    .mobile-nav-link {

        position: relative;

        width: 62px;
        height: 62px;

        margin-bottom: 10px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 4px;

        border-radius: 18px;

        background:
            var(--card-background);

        border:
            1px solid rgba(255,255,255,0.04);

        color:
            rgba(255,255,255,0.64);

        font-size: 9px;

        font-weight: 800;

        text-transform: uppercase;

        text-decoration: none;

        flex-shrink: 0;

        z-index: 2;
    }

    .mobile-nav-link i {

        font-size: 18px;
    }

    /*
    |--------------------------------------------------------------------------
    | ACTIVE
    |--------------------------------------------------------------------------
    */

    .mobile-nav-link.active {

        color: var(--text-color);

        background:
            rgba(255,52,52,0.14);

        border-color:
            rgba(255,52,52,0.18);
    }

    /*
    |--------------------------------------------------------------------------
    | RACE BUTTON
    |--------------------------------------------------------------------------
    */

    .mobile-race-button {

        position: absolute;

        left: 50%;

        top: 2px;

        transform:
            translateX(-50%);

        width: 78px;
        height: 78px;

        border-radius: 50%;

        background:
            linear-gradient(
                180deg,
                #FF3B3B,
                #A80000
            );

        border:
            5px solid rgba(8,8,8,0.98);

        box-shadow:
            0 0 40px rgba(255,52,52,0.30);

        z-index: 999999999;
    }

    .mobile-bottom-navbar .mobile-nav-link:nth-child(2) {

        margin-right: 52px;
    }

    .mobile-bottom-navbar .mobile-nav-link:nth-child(4) {

        margin-left: 52px;
    }

    .mobile-race-button i {

        font-size: 22px;
    }

    .mobile-race-button span {

        margin-top: 2px;

        font-size: 9px;

        font-weight: 900;
    }

    /*
    |--------------------------------------------------------------------------
    | PROFILE BUTTON
    |--------------------------------------------------------------------------
    */

    .mobile-profile-button {

        display: flex;
    }

    .mobile-profile-button {

        margin-right: 2px;
    }

    /*
|--------------------------------------------------------------------------
| MOBILE CENTER LOGO
|--------------------------------------------------------------------------
*/

.mobile-navbar-logo {

    position: absolute;

    left: 50%;
    top: 18px;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 5;

    pointer-events: none;
}

.mobile-navbar-text-logo {

    color: var(--text-color);

    font-size: 18px;

    font-weight: 900;

    line-height: 0.84;

    text-align: center;

    letter-spacing: -0.5px;

    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| MOBILE HUD LAYOUT
|--------------------------------------------------------------------------
*/

.navbar-left,
.navbar-right {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 6px;

    z-index: 3;
}

.navbar-left {

    left: 10px;
    top: 74px;
}

.navbar-right {

    right: 10px;
    top: 74px;
}

/*
|--------------------------------------------------------------------------
| MOBILE HUD CARDS
|--------------------------------------------------------------------------
*/

.navbar-balance-card,
.navbar-level-card,
.navbar-energy-card {

    width: 82px;

    min-width: 82px;

    max-width: 82px;

    height: 42px;

    padding:
        0
        7px;

    display: flex;

    align-items: center;

    gap: 5px;

    border-radius: 12px;

    background:
        var(--card-background);

    border:
        1px solid rgba(255,255,255,0.05);

    backdrop-filter:
        blur(12px);

    flex-shrink: 0;
}

/*
|--------------------------------------------------------------------------
| MOBILE ICONS
|--------------------------------------------------------------------------
*/

.navbar-balance-icon,
.navbar-level-icon,
.navbar-energy-icon {

    width: 22px;
    height: 22px;

    min-width: 22px;

    border-radius: 7px;

    font-size: 9px;
}

/*
|--------------------------------------------------------------------------
| MOBILE INFO
|--------------------------------------------------------------------------
*/

.navbar-balance-info,
.navbar-level-info,
.navbar-energy-info {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

/*
|--------------------------------------------------------------------------
| MOBILE TEXT
|--------------------------------------------------------------------------
*/

.navbar-balance-value,
.navbar-balance-value-gold,
.navbar-level-value,
.navbar-energy-value-text
.navbar-energy-timer {

    font-size: 7px;

    font-weight: 800;

    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| MOBILE PROGRESS
|--------------------------------------------------------------------------
*/

.navbar-level-progress,
.navbar-energy-bar {

    width: 100%;

    height: 4px;

    margin-top: 2px;
}

/*
|--------------------------------------------------------------------------
| MOBILE ENERGY
|--------------------------------------------------------------------------
*/

.navbar-energy-card {

    flex-direction: row;
}

.navbar-energy-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 4px;

    margin-bottom: 2px;
}

.navbar-level-current-xp {

    display: none;
}

/*
|--------------------------------------------------------------------------
| MOBILE SCROLL FIX
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    html,
    body {

        overflow-x: hidden;

        overflow-y: auto;

        touch-action: pan-y;

        -webkit-overflow-scrolling: touch;
    }

    body {

        position: relative;

        min-height: 100vh;
    }

    #app {

        position: relative;

        overflow: visible;
    }

    .page,
    .page-content,
    .garage-page,
    .showroom-page,
    .jobs-page,
    .racing-page {

        overflow: visible !important;
    }

    .mobile-bottom-navbar {

        touch-action: manipulation;
    }
}

/*
|--------------------------------------------------------------------------
| MOBILE NAVBAR TOUCH LOCK
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .navbar,
    .mobile-bottom-navbar {

        overscroll-behavior: contain;

        touch-action: none;

        -webkit-overflow-scrolling: auto;
    }

    .navbar * ,
    .mobile-bottom-navbar * {

        touch-action: manipulation;
    }

    .page-content,
    .garage-page,
    .jobs-page,
    .showroom-page,
    .racing-page {

        touch-action: pan-y;

        overscroll-behavior-y: auto;

        -webkit-overflow-scrolling: touch;
    }
}
}

@media (max-width: 1750px) {

    .navbar-logo {

        font-size: 18px;
    }

    .navbar-link span {

        font-size: 12px;
    }

    .navbar-profile-name {

        font-size: 16px;
    }

    .navbar-level-value {

        font-size: 20px;
    }
}

.admin-panel-button {

    color: #ffb347;
}

.admin-panel-button i {

    color: #ffb347;
}

.navbar-logo-image {

    height: 42px;

    width: auto;

    object-fit: contain;

    display: block;
}

/*
|--------------------------------------------------------------------------
| LIGHT THEME NAVBAR FIXES
|--------------------------------------------------------------------------
*/

body.theme-light .navbar-avatar {

    border:
        2px solid rgba(0,0,0,0.08);
}

body.theme-light .navbar-profile-dropdown {

    box-shadow:
        0 12px 30px rgba(0,0,0,0.08);
}

body.theme-light .navbar-dropdown {

    box-shadow:
        0 12px 30px rgba(0,0,0,0.08);
}

body.theme-light .navbar {

    box-shadow:
        0 2px 12px rgba(0,0,0,0.04);
}

/*
|--------------------------------------------------------------------------
| LIGHT THEME DROPDOWN
|--------------------------------------------------------------------------
*/

body.theme-light .navbar-dropdown-item:hover {

    background:
        rgba(255,52,52,0.08);

    color:
        var(--primary-color);
}

/*
|--------------------------------------------------------------------------
| LIGHT THEME ECONOMY COLORS
|--------------------------------------------------------------------------
*/

body.theme-light .navbar-balance-value {

    color:
        #16A34A;
}

body.theme-light .navbar-balance-value-gold {

    color:
        #D97706;
}

body.theme-light
.navbar-balance-card.money
.navbar-balance-icon {

    background:
        rgba(22,163,74,0.12);

    color:
        #16A34A;

    box-shadow:
        none;
}

body.theme-light
.navbar-balance-card.gold
.navbar-balance-icon {

    background:
        rgba(217,119,6,0.12);

    color:
        #D97706;

    box-shadow:
        none;
}

body.theme-light
.navbar-level-value {
    color:
        #16A34A;
}