/* =========================================
   MXH AVATAR CENTRAL LAYOUT
   PHP 5.6 Compatible
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #385b68;

    background:
        #eaf8fc;
}


/* =========================================
   APP
========================================= */

.mxh-app {
    min-height: 100vh;
}


/* =========================================
   HEADER
========================================= */

.mxh-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 64px;

    z-index: 1000;

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    border-bottom:
        1px solid
        #d8edf3;

    box-shadow:
        0 3px 15px
        rgba(
            35,
            120,
            150,
            .10
        );
}

.mxh-header-inner {
    height: 100%;

    display: flex;

    align-items: center;

    gap: 20px;

    padding:
        0
        20px;
}


/* =========================================
   LOGO
========================================= */

.mxh-logo {
    display: flex;

    align-items: center;

    gap: 9px;

    width: 180px;

    color:
        #188abd;

    text-decoration: none;
}

.mxh-logo-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #ffd951,
            #ffac28
        );

    color: white;

    font-size: 23px;

    box-shadow:
        0 4px 10px
        rgba(
            230,
            160,
            30,
            .25
        );
}

.mxh-logo-text {
    display: flex;

    flex-direction: column;

    line-height: 1;
}

.mxh-logo-text strong {
    font-size: 18px;
}

.mxh-logo-text small {
    margin-top: 4px;

    font-size: 9px;

    letter-spacing: 2px;

    color:
        #7da6b3;
}


/* =========================================
   SEARCH
========================================= */

.mxh-search {
    flex: 1;

    max-width: 500px;
}

.mxh-search form {
    position: relative;
}

.mxh-search input {
    width: 100%;

    height: 40px;

    padding:
        0
        15px
        0
        40px;

    border: 0;

    outline: none;

    border-radius: 22px;

    background:
        #edf8fb;

    color:
        #47727f;
}

.mxh-search-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform:
        translateY(-50%);
}


/* =========================================
   HEADER ACTIONS
========================================= */

.mxh-header-actions {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 10px;
}

.mxh-balance {
    height: 36px;

    display: flex;

    align-items: center;

    gap: 5px;

    padding:
        0
        12px;

    border-radius: 18px;

    background:
        #edf8ff;

    color:
        #168dbd;

    text-decoration: none;

    font-size: 13px;
}

.mxh-header-icon {
    position: relative;

    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 50%;

    background:
        #f1f9fb;

    cursor: pointer;

    font-size: 17px;
}

.mxh-notification-badge {
    position: absolute;

    top: -2px;
    right: -2px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        #f05c62;

    color: white;

    font-size: 9px;
}

.mxh-user-mini {
    display: flex;

    align-items: center;

    gap: 7px;

    color:
        #426b78;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;
}

.mxh-user-mini img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    border:
        2px solid
        #7ed1e8;
}

.mxh-login-button,
.mxh-register-button {
    padding:
        9px
        15px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;
}

.mxh-login-button {
    color:
        #168dbd;
}

.mxh-register-button {
    color: white;

    background:
        #36a9d5;
}


/* =========================================
   MOBILE MENU
========================================= */

.mxh-mobile-menu {
    display: none;

    width: 40px;
    height: 40px;

    border: 0;

    background:
        transparent;

    cursor: pointer;
}

.mxh-mobile-menu span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    background:
        #388090;
}


/* =========================================
   LAYOUT
========================================= */

.mxh-layout {
    display: flex;

    padding-top: 64px;
}


/* =========================================
   SIDEBAR
========================================= */

.mxh-sidebar {
    position: fixed;

    top: 64px;
    bottom: 0;
    left: 0;

    width: 245px;

    overflow-y: auto;

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    border-right:
        1px solid
        #dceff3;

    z-index: 900;
}

.mxh-navigation {
    padding:
        15px
        12px
        30px;
}


/* USER */

.mxh-nav-user {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px;

    margin-bottom: 15px;

    border-radius: 14px;

    background:
        #f2fafc;
}

.mxh-nav-avatar {
    position: relative;

    width: 44px;
    height: 44px;
}

.mxh-nav-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.mxh-online-dot {
    position: absolute;

    right: 0;
    bottom: 1px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background:
        #52c878;

    border:
        2px solid white;
}

.mxh-nav-user-info {
    min-width: 0;

    display: flex;

    flex-direction: column;
}

.mxh-nav-username {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color:
        #286a7b;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;
}

.mxh-nav-status {
    margin-top: 4px;

    color:
        #6fa0ac;

    font-size: 10px;
}


/* SECTION */

.mxh-nav-section {
    margin-bottom: 17px;
}

.mxh-nav-title {
    padding:
        0
        10px
        7px;

    color:
        #94b2ba;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;
}


/* ITEM */

.mxh-nav-item {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 43px;

    padding:
        0
        11px;

    margin-bottom: 4px;

    border-radius: 11px;

    color:
        #587985;

    text-decoration: none;

    font-size: 13px;

    transition:
        .2s;
}

.mxh-nav-item:hover {
    background:
        #edf9fc;

    color:
        #168dbd;
}

.mxh-nav-item.active {
    background:
        linear-gradient(
            90deg,
            #d9f5fc,
            #edfafd
        );

    color:
        #1285b2;

    font-weight: bold;
}

.mxh-nav-item.active:before {
    content: '';

    position: absolute;

    left: 0;

    width: 4px;
    height: 24px;

    border-radius: 0 5px 5px 0;

    background:
        #2da9d4;
}

.nav-icon {
    width: 25px;

    text-align: center;

    font-size: 18px;
}

.nav-arrow {
    margin-left: auto;
}

.nav-badge {
    margin-left: auto;

    padding:
        3px
        6px;

    border-radius: 6px;

    background:
        #ff6969;

    color: white;

    font-size: 8px;
}

.nav-vip.active {
    color:
        #c58b13;

    background:
        #fff8df;
}

.nav-vxpay.active {
    color:
        #6374cf;

    background:
        #f0f1ff;
}

.nav-logout {
    color:
        #d96d72;
}


/* VERSION */

.mxh-nav-version {
    padding:
        20px 10px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    color:
        #9bb2b9;

    font-size: 9px;

    text-align: center;
}


/* =========================================
   MAIN
========================================= */

.mxh-main {
    width: calc(
        100% - 245px
    );

    margin-left: 245px;

    min-height:
        calc(
            100vh - 64px
        );
}

.mxh-content {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding:
        25px;
}


/* =========================================
   WORLD CHAT
========================================= */

.mxh-world-chat {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 320px;

    z-index: 1100;

    overflow: hidden;

    border-radius: 15px;

    background:
        white;

    box-shadow:
        0 10px 35px
        rgba(
            30,
            100,
            120,
            .25
        );
}

.mxh-chat-header {
    height: 44px;

    padding:
        0
        12px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    background:
        #36a9d5;

    color: white;

    font-size: 12px;
}

.mxh-chat-header > div {
    display: flex;

    align-items: center;

    gap: 7px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        #82ed8b;
}

.mxh-chat-header button {
    border: 0;

    background:
        transparent;

    color: white;

    cursor: pointer;

    font-size: 20px;
}

.mxh-chat-messages {
    height: 210px;

    padding: 10px;

    overflow-y: auto;

    background:
        #f5fbfd;
}

.mxh-chat-empty {
    color:
        #9bb2b9;

    font-size: 11px;

    text-align: center;

    padding-top: 70px;
}

.mxh-chat-form {
    height: 48px;

    display: flex;

    padding: 6px;

    border-top:
        1px solid
        #e1eef1;
}

.mxh-chat-form input {
    flex: 1;

    border: 0;

    outline: 0;

    padding:
        0
        10px;

    font-size: 12px;
}

.mxh-chat-form button {
    width: 36px;

    border: 0;

    border-radius: 9px;

    background:
        #36a9d5;

    color: white;

    cursor: pointer;
}


/* =========================================
   TO TOP
========================================= */

.mxh-to-top {
    position: fixed;

    right: 20px;
    bottom: 350px;

    width: 38px;
    height: 38px;

    display: none;

    border: 0;

    border-radius: 50%;

    background:
        #36a9d5;

    color: white;

    cursor: pointer;

    z-index: 1000;
}

.mxh-to-top.show {
    display: block;
}


/* =========================================
   MOBILE BOTTOM
========================================= */

.mxh-mobile-bottom-nav {
    display: none;
}


/* =========================================
   MOBILE
========================================= */

@media (
    max-width: 900px
) {

    .mxh-mobile-menu {
        display: block;
    }

    .mxh-logo {
        width: auto;
    }

    .mxh-logo-text {
        display: none;
    }

    .mxh-search {
        max-width: none;
    }

    .mxh-header-actions
    .mxh-user-mini span {
        display: none;
    }

    .mxh-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform .25s;

        box-shadow:
            5px 0 20px
            rgba(
                0,
                0,
                0,
                .1
            );
    }

    .mxh-sidebar.open {
        transform:
            translateX(0);
    }

    .mxh-sidebar-overlay {
        position: fixed;

        inset: 64px 0 0 0;

        background:
            rgba(
                0,
                0,
                0,
                .35
            );

        z-index: 850;

        display: none;
    }

    .mxh-sidebar-overlay.show {
        display: block;
    }

    .mxh-main {
        width: 100%;

        margin-left: 0;
    }

    .mxh-content {
        padding:
            15px;

        padding-bottom:
            80px;
    }

    .mxh-mobile-bottom-nav {
        position: fixed;

        display: flex;

        left: 0;
        right: 0;
        bottom: 0;

        height: 62px;

        z-index: 1200;

        background:
            rgba(
                255,
                255,
                255,
                .97
            );

        border-top:
            1px solid
            #dceff3;

        box-shadow:
            0 -3px 15px
            rgba(
                0,
                80,
                100,
                .10
            );
    }

    .mxh-mobile-bottom-nav a,
    .mxh-mobile-bottom-nav button {

        flex: 1;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 3px;

        border: 0;

        background:
            transparent;

        color:
            #7899a2;

        text-decoration: none;

        font-size: 17px;

        cursor: pointer;

    }

    .mxh-mobile-bottom-nav small {
        font-size: 9px;
    }

    .mxh-mobile-bottom-nav
    a.active {
        color:
            #168dbd;

        font-weight: bold;
    }

    .mxh-world-chat {
        right: 10px;
        bottom: 72px;

        width:
            calc(
                100% - 20px
            );
    }

    .mxh-to-top {
        right: 15px;

        bottom: 145px;
    }

}

@media (
    max-width: 520px
) {

    .mxh-header-inner {
        padding:
            0
            10px;

        gap: 7px;
    }

    .mxh-search input {
        height: 36px;
    }

    .mxh-balance {
        padding:
            0
            7px;
    }

    .mxh-login-button,
    .mxh-register-button {
        padding:
            7px
            8px;

        font-size: 11px;
    }

}