body.dark-theme {
    --dropdown-auth-background: #08101B;
    --auth-section-background: #121A25;
    --dropdown-auth-close-button-hover-background: rgba(255, 255, 255, 0.05);
    --dropdown-auth-theme-selector-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='15' viewBox='0 0 16 15' fill='none'%3E%3Ccircle cx='8' cy='7.5' r='7.5' fill='white'/%3E%3Cpath d='M3.75 7.25L6.75 10.25L12.25 4.75' stroke='black' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.light-theme {
    --dropdown-auth-background: #F2F5F9;
    --auth-section-background: #FFF;
    --dropdown-auth-close-button-hover-background: rgba(0, 0, 0, 0.05);
    --dropdown-auth-theme-selector-check: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7.5' cy='7.5' r='7.5' fill='black'/%3E%3Cpath d='M3.25 7.25L6.25 10.25L11.75 4.75' stroke='white' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dropdown-menu.auth {
    border: 0;
    min-width: 375px !important;
    max-height: calc(100vh - 120px) !important;
    border-radius: 30px;
    background: var(--dropdown-auth-background) !important;
    padding: 4px !important;
    overflow: auto;
    max-width: none;
    isolation: isolate;
    transition: opacity .2s ease;
    scrollbar-width: none;
    box-shadow: 0 22px 54px 0 rgba(0, 0, 0, .13);
    will-change: transform, opacity, top !important;
    z-index: 100;
    top: 0 !important;
    right: 0;
    cursor: auto;
}

@media (min-width: 576px) {
    .dropdown-menu.auth {
        max-width: 375px;
    }
}

.dropdown-menu.auth::-webkit-scrollbar {
    display: none;
}

.dropdown-menu.auth .divider {
    height: 1px;
    background: rgba(185, 184, 180, 0.20);
    margin: 10px 0;
}

.dropdown-menu.auth .btn-main {
    padding: 12px 10px;
    transition: .2s ease all;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--text-default);
    font-size: 16px;
    font-style: normal;
    font-weight: 450;
    line-height: normal;
}

.dropdown-menu.auth .btn-main img,
.dropdown-menu.auth .btn-main svg {
    width: 24px;
    height: 24px;
    opacity: .6;
    transition: .2s ease all;
}

.dropdown-menu.auth .btn-main:hover {
    background: var(--dropdown-auth-background);
}

.dropdown-menu.auth .btn-main:active {
    opacity: .75;
}

.dropdown-menu.auth .btn-main:hover img,
.dropdown-menu.auth .btn-main:hover svg {
    opacity: 1;
}

.auth-section {
    border-radius: 5px;
    background: var(--auth-section-background);
}

.auth-section + .auth-section {
    margin-top: 4px;
}

.auth-section:last-child {
    margin-bottom: 4px;
}

.auth-section:first-child {
    border-radius: 26px 26px 5px 5px;
}

.auth-section:last-child {
    border-radius: 5px 5px 26px 26px;
}

.auth-section .user-name,
.auth-section .user-email {
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.auth-section .user-name {
    color: var(--text-default);
    font-size: 28px;
    margin-bottom: 5px;
}

.auth-section .heading {
    color: var(--text-default);
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
}

.auth-section .title {
    color: #B9B8B4;
    font-size: 14px;
    line-height: normal;
}

.user-balance {
    transition: .2s ease opacity;
    will-change: opacity;
}

.user-balance .arrow-right {
    opacity: 0;
    transition: .2s ease all;
}

.user-balance:hover .arrow-right {
    opacity: 1;
}

.user-balance:active {
    opacity: .75;
}

.theme-selector {
    cursor: pointer;
    transition: .2s ease all;
    will-change: opacity;
}

.theme-selector .theme-preview {
    outline: 1px solid transparent;
    outline-offset: 4px;
    border-radius: 20px;
    position: relative;
    transition: .2s ease all;
}

.theme-selector.active .theme-preview {
    outline-color: var(--text-default);
}

.theme-selector .theme-preview:after {
    opacity: 0;
    transition: .2s ease all;
    position: absolute;
    top: 6px;
    right: 6px;
}

.theme-selector.active .theme-preview:after {
    content: var(--dropdown-auth-theme-selector-check);
    opacity: 1;
}

.theme-selector:active {
    opacity: .75;
}

.theme-selector .theme-preview {
    border-radius: 20px;
}

.theme-selector .theme-caption {
    color: var(--text-default);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 8px;
}

.theme-selector.active .theme-caption {
    font-weight: 500;
}

.theme-selector img {
    max-width: 100%;
    border-radius: 20px;
}

.dropdown-menu .user-account-wrapper {
    max-height: 100%;
    scrollbar-width: none;
    overflow-y: auto;
    border-radius: 26px;
    overflow-x: hidden;
}

.dropdown-menu .user-account-wrapper::-webkit-scrollbar {
    display: none;
}

.touch-handler {
    position: absolute;
    top: -32px;
    left: 0;
    padding: 24px;
    width: 100%;
}

.user-name {
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    color: var(--text-default);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* margin-bottom: 6px !important; */
}

.user-email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: #B9B8B4;
    margin-bottom: 0;
}

@media (max-width: 575px) {
    body:has(.dropdown-menu.auth.show) .mobile-navbar {
        display: none !important;
    }

    html:has(.dropdown-menu.auth.show),
    body:has(.dropdown-menu.auth.show) {
        scrollbar-width: none;
    }

    html:has(.dropdown-menu.auth.show),
    body:has(.dropdown-menu.auth.show) {
        overflow-y: hidden;
    }

    .user-balance .arrow-right {
        opacity: 1;
    }

    .dropdown-backdrop {
        z-index: 99;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transition: .3s ease all;
        cursor: default;
    }

    body:has(.dropdown-menu.auth.show) .dropdown-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu.auth {
        overflow: visible !important;
        max-height: none !important;
        bottom: -3px !important;
        left: 0 !important;
        width: 100% !important;
        right: 0 !important;
        position: fixed !important;
        top: 20% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .dropdown-menu.auth.show {
        animation: show-dropdown-mobile .3s ease forwards !important;
    }

    .dropdown-menu.auth.hide {
        display: block;
        animation: hide-dropdown-mobile .3s ease backwards !important;
    }

    .touch-handler:before {
        content: '';
        width: 60px;
        height: 3px;
        position: relative;
        display: block;
        border-radius: 100px;
        background: var(--body-color);
        opacity: .7;
        transition: .2s ease all;
        will-change: opacity;
        margin: 0 auto;
    }

    .touch-handler.touched:before {
        opacity: .95;
        width: 54px;
    }
}

@keyframes show-dropdown-mobile {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hide-dropdown-mobile {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.user-account-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-default) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    opacity: .5;
    transition: .2s ease all;
}

.user-account-link img,
.user-account-link svg {
    max-width: 17px;
    max-height: 17px;
}

.user-account-link:hover {
    opacity: 1;
}

.user-account-link:active {
    opacity: .75;
}

.user-account-link:has(img),
.user-account-link:has(svg) {
    opacity: .25;
}

.another-users {
    margin: 14px 0 4px;
}

.another-user {
    transition: .2s ease all;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    border-radius: 26px;
    transition: .2s ease all;
    background: transparent;
    padding: 10px;
}

.another-user:hover, .btn-add-account:hover {
    background: var(--auth-section-background);
}

.another-user:active, .btn-add-account:active {
    opacity: .75;
}

.another-user .avatar {
    flex: none;
    background-image: url(https://storage.easyx.ru/images/user/avatars/default.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.btn-add-account {
    padding: 16px 13.5px;
    text-align: center;
    display: flex;
    align-items: center;
    border-radius: 26px;
    gap: 10px;
    color: var(--text-default) !important;
    opacity: .5;
    transition: .2s ease all;
    width: 100%;
    justify-content: center;
}

.btn-add-account:hover {
    opacity: 1;
}

.btn-add-account:active {
    opacity: .75;
}







svg, img, path {
    transition: .2s all ease;
}

.dropdown-menu.auth .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: .2s ease all;
    border-radius: 18px;
    padding: 13px;
    line-height: 0;
}

.dropdown-menu.auth .close:hover {
    background-color: var(--dropdown-auth-close-button-hover-background);
    opacity: 1;
}

.dropdown-menu.auth .close:hover path {
    opacity: 1;
}

.dropdown-menu.auth .close:active {
    opacity: 0.75;
}

.another-user + .another-user {
    margin-top: 4px;
}

body.light-theme {
    --easyx-auth-avatar-wrapper-background-color: rgba(0, 0, 0, .1);
    --easyx-auth-avatar-wrapper-hover-background-color: rgba(0, 0, 0, .2);
    --easyx-auth-authenticated-user-username-color: rgb(0, 0, 0);
    --easyx-auth-dropdown-arrow-color: rgba(0, 0, 0, .5);
    --easyx-icons-stroke-color: rgb(0, 0, 0);
    --easyx-icons-stroke-color-inverse: rgb(255, 255, 255);
    --easyx-auth-wrapper-shadow: 0px 22px 54px 0px rgba(0, 0, 0, .13);
}
body.dark-theme {
    --easyx-auth-avatar-wrapper-background-color: rgba(255, 255, 255, .1);
    --easyx-auth-avatar-wrapper-hover-background-color: rgba(255, 255, 255, .2);
    --easyx-auth-authenticated-user-username-color: rgb(255, 255, 255);
    --easyx-auth-dropdown-arrow-color: rgba(255, 255, 255, .5);
    --easyx-icons-stroke-color: rgb(255, 255, 255);
    --easyx-icons-stroke-color-inverse: rgb(0, 0, 0);
    --easyx-auth-wrapper-shadow: 0px 10px 70px 0px #08101B;
}

.avatar-wrapper {
    display: flex;
    align-items: center;
    background: var(--easyx-auth-avatar-wrapper-background-color);
    transition: .2s ease background opacity;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-wrapper:hover {
    background: var(--easyx-auth-avatar-wrapper-hover-background-color);
}

.avatar-wrapper:active {
    opacity: .75;
}

.avatar-wrapper .authenticated-user-credentials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.avatar-wrapper .authenticated-user-avatar {
    width: 43px;
    height: 43px;
    object-fit: cover;
}

.avatar-wrapper .authenticated-user-username {
    transition: .2s ease color;
    color: var(--easyx-auth-authenticated-user-username-color);
    display: block;
    font-weight: 500;
    font-size: 16px;
    line-height: 19.2px;
    display: none;
}

@media (min-width: 576px) {
    .avatar-wrapper .authenticated-user-username {
        display: block;
    }
}

.avatar-wrapper .dropdown-arrow path {
    stroke: var(--easyx-auth-dropdown-arrow-color);
}

.dropdown-menu.auth {
    left: auto !important;
    min-width: 375px !important;
    max-height: calc(100vh - 120px) !important;
    box-shadow: var(--easyx-auth-wrapper-shadow) !important;
}

.authentication {
    cursor: pointer;
}

.authentication.show .dropdown-arrow {
    transform: rotate(-180deg);
}

@media (max-width: 575px) {
    .dropdown-menu.auth {
        overflow: visible;
        max-height: none;
        bottom: -3px;
        max-width: 100% !important;
        left: 0 !important;
        width: 100% !important;
        right: 0 !important;
        position: fixed !important;
        top: 20% !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}
