.header-block {
    display: flex; 
    align-items: center;
    gap: 5px; 
}
.header-logo {
    overflow: hidden;
    border: 1px solid #222; 
    border-radius: 3px;
    width: 26px; 
    height: 26px; 
}
.header-logo > img {
    height: 100%;
    width: 100%;
}
.nav-bar {
    display: flex;
    gap: 3px;
}
.nav-bar > a {
    --color: #c2c2c2;
    & {
        display: flex;
        font-size: 10px;
        color: var(--color);
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid var(--color);
        align-items: center;
        flex-direction: row;
        gap: 4px;
        height: 20px;
        border-radius: 2px;
        font-weight: 500;
        padding: 0px 5px;
        background: #00000075;
        border: 1px solid #ffffff30;
    }
    & > svg {
        fill: #c2c2c2;
        width: 12px;
        height: 12px;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}
.nav-bar > a.active {
    --color: #ff8f8f;
    & {
        border-bottom: 1px solid var(--color);
        color: var(--color);
    }
    & > svg {
        fill: var(--color);
    }
}
.nav-bar > a.active {
    --color: #d7fe7b;
    border-bottom: 1px solid var(--color);
    color: var(--color);
    background: #1a1a1a;
}
.header-title {
    color: #d7fe7b;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    /* line-height: 25px; */
    left: -1px;
    position: relative;
    text-shadow: 0 0 10px rgba(215, 254, 123, 0.3);
}
.header-subtitle {
    color: #ff7777;
    position: relative;
    font-size: 10px;
    top: -3px;
    opacity: 1;
    height: 12px;
    width: 28px;
    white-space: nowrap;
    z-index: -1;
}



.nav-link {
    font-size: 10px;
    display: flex;
    height: 26px;
    align-items: center;
    padding: 0px 5px;
    border-radius: 3px !important;
    gap: 5px;
}
.nav-bt-title2 {
    color: #ffffff;
    font-size: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-bt-title {
    color: #ffffff;
    font-size: 12px;
    display: flex;
    flex-direction: column;
}
.nav-bt-subtitle {
    color: #a5a5a5;
    font-size: 8px;
}
.user-profile {
    display: none; 
    align-items: center; 
    gap: 4px;
    height: 26px;
    background: #00000090;
    border: 1px solid #ffffff30;
    border-radius: 3px;
    /* overflow: hidden; */
    cursor: pointer;
    position: relative;
}
.user-profile > img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #002136;
}
.avatar-account {
    overflow: hidden;
    border-radius: 2px;
    overflow: hidden;
    height: 22px;
    aspect-ratio: 1/1;
    background: #181818;
}
.avatar {
    height: 100%;
}
.user-profile.btn_login {
    & {
        padding: 0px 6px;
    }
    & > svg{
        fill: #000 !important;
        color: #000;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    &.active {
        gap: 2px;
        /* row- */
        display: flex;
        background: #D7FE7B;
    }
    &>.nav-bt-title{
        font-size: 16px;
        color: #000;
    }
}
.user-profile.btn_logout {
    & {
        padding: 0;
        padding-left: 2px;
        padding-right: 8px;
    }
    &.active {
        display: flex;
    }
}
.header-nav {
    flex-wrap: nowrap;
}
.nav-link.social {
    justify-content: center;
    height: 26px;
    width: 26px;
    padding: 0px 0px;
}

/* Стили для контекстного меню */
.context-menu {
    position: absolute;
    top: 100%;
    right: -1px;
    margin-top: 5px;
    background: rgba(0, 0, 0, 1);
    border: 1px solid #333;
    backdrop-filter: blur(5px);
    border-radius: 3px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.context-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.context-menu-item:hover {
    background: #2a2a2a;
}

.context-menu-item.logout-item {
    color: #ff7c7c;
    background: #1d0000;
    /* border-top: 1px solid #333; */
}

.context-menu-item.logout-item:hover {
    background: #2a1a1a;
}

/* .context-menu-item.profile-item > span {
    flex: 1;
} */

.context-menu-item svg {
    flex-shrink: 0;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Оверлей для закрытия меню */
.context-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.context-menu-overlay.active {
    display: block;
}