﻿.egsh {
    position: relative;
    z-index: 1000;
    height: 76px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(9,11,18,.88);
    backdrop-filter: blur(20px);
    color: #f8fafc
}

.egsh-wrap {
    width: min(1180px,calc(100% - 40px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 30px
}

.egsh-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #f8fafc;
    text-decoration: none;
    flex: none
}

.egsh-brand-mark {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg,#6d7cff,#ff6b57);
    box-shadow: 0 10px 25px rgba(109,124,255,.22)
}

.egsh-brand-copy {
    display: flex;
    flex-direction: column
}

    .egsh-brand-copy strong {
        font-size: 23px;
        line-height: 1
    }

        .egsh-brand-copy strong span {
            color: #ff6b57
        }

    .egsh-brand-copy small {
        font-size: 10px;
        color: #909aab;
        margin-top: 4px
    }

.egsh-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: auto
}

    .egsh-nav a {
        color: #aeb7c6;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600
    }

        .egsh-nav a:hover {
            color: #fff
        }

.egsh-desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.egsh-btn, .egsh-create {
    height: 42px;
    padding: 0 17px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 750;
    font-size: 13px;
    white-space: nowrap
}

.egsh-btn-soft {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: #f8fafc
}

.egsh-btn-primary, .egsh-create {
    border: 0;
    background: linear-gradient(135deg,#ff6b57,#ff876e);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255,107,87,.18)
}

.egsh-profile {
    position: relative
}

.egsh-profile-trigger {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.035);
    height: 48px;
    padding: 4px 9px 4px 5px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left
}

    .egsh-profile-trigger:hover, .egsh-profile.open .egsh-profile-trigger {
        border-color: rgba(255,255,255,.22);
        background: rgba(255,255,255,.065)
    }

.egsh-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: none;
    background: linear-gradient(135deg,#6d7cff,#ff6b57);
    color: white;
    font-weight: 800;
    font-size: 12px
}

    .egsh-avatar.large {
        width: 44px;
        height: 44px;
        border-radius: 13px
    }

    .egsh-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover
    }

.egsh-user-copy {
    display: flex;
    flex-direction: column;
    max-width: 125px
}

    .egsh-user-copy strong {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .egsh-user-copy small {
        font-size: 10px;
        color: #8f99aa;
        margin-top: 2px
    }

.egsh-chevron {
    font-size: 11px;
    color: #8993a3;
    transition: transform .18s
}

.egsh-profile.open .egsh-chevron {
    transform: rotate(180deg)
}

.egsh-dropdown {
    position: absolute;
    right: 0;
    top: 58px;
    width: 292px;
    background: #121624;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    box-shadow: 0 28px 70px rgba(0,0,0,.5);
    padding: 10px;
    animation: egshDrop .15s ease
}

.egsh-dropdown-user, .egsh-mobile-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px
}

    .egsh-dropdown-user > span:last-child, .egsh-mobile-user > span:last-child {
        display: flex;
        flex-direction: column;
        min-width: 0
    }

    .egsh-dropdown-user strong, .egsh-mobile-user strong {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .egsh-dropdown-user small, .egsh-mobile-user small {
        font-size: 11px;
        color: #8f99aa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 3px
    }

.egsh-menu-group {
    border-top: 1px solid rgba(255,255,255,.075);
    padding: 7px 0
}

    .egsh-menu-group a, .egsh-logout-form button {
        width: 100%;
        height: 39px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: #cbd3df;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 0 10px;
        text-decoration: none;
        font-size: 13px;
        text-align: left
    }

        .egsh-menu-group a i, .egsh-logout-form i {
            width: 18px;
            color: #8793a5
        }

        .egsh-menu-group a:hover {
            background: rgba(255,255,255,.055);
            color: #fff
        }

.egsh-logout-form {
    border-top: 1px solid rgba(255,255,255,.075);
    padding-top: 7px
}

    .egsh-logout-form button {
        color: #ff9c90
    }

        .egsh-logout-form button:hover {
            background: rgba(255,107,87,.09)
        }

.egsh-mobile-trigger {
    display: none;
    margin-left: auto;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: 22px
}

.egsh-mobile-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #0d101a;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 14px max(20px,calc((100vw - 1180px)/2));
    box-shadow: 0 22px 50px rgba(0,0,0,.42);
    max-height: calc(100vh - 76px);
    overflow: auto
}

.egsh-mobile-user {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    border-radius: 14px;
    margin-bottom: 10px
}

.egsh-mobile-links {
    display: grid
}

    .egsh-mobile-links a {
        min-height: 45px;
        color: #d2d9e4;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,.055);
        font-size: 14px
    }

        .egsh-mobile-links a i {
            width: 21px;
            color: #8d99ae
        }

.egsh-mobile-label {
    padding: 19px 0 7px;
    color: #ff8170;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 10px;
    font-weight: 800
}

.egsh-mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px
}

.egsh-mobile-logout {
    padding-top: 14px
}

    .egsh-mobile-logout button {
        width: 100%;
        height: 44px;
        border: 1px solid rgba(255,107,87,.24);
        border-radius: 11px;
        background: rgba(255,107,87,.08);
        color: #ff9a8c;
        font-weight: 750
    }

.egsh[hidden], .egsh-dropdown[hidden], .egsh-mobile-menu[hidden] {
    display: none !important
}

@keyframes egshDrop {
    from {
        opacity: 0;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:980px) {
    .egsh-nav, .egsh-desktop-actions {
        display: none
    }

    .egsh-mobile-trigger {
        display: grid;
        place-items: center
    }

    .egsh-wrap {
        width: min(100% - 28px,1180px)
    }
}

@media(max-width:560px) {
    .egsh {
        height: 66px
    }

    .egsh-brand-mark {
        width: 38px;
        height: 38px
    }

    .egsh-brand-copy strong {
        font-size: 21px
    }

    .egsh-mobile-menu {
        top: 66px;
        max-height: calc(100vh - 66px)
    }

    .egsh-mobile-auth {
        grid-template-columns: 1fr
    }
}
