:root {
    --site-header-height: 70px;
}

.header .header-desktop {
    width: 100%;
    height: 70px;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* изменено с flex-start на center */
    justify-content: center; /* добавлено для центрирования */
    /* Узкий viewport и масштаб страницы: плавно уменьшаем боковые поля вместо 95px */
    padding: 0 clamp(16px, 5vw, 95px) 1px;
    text-align: left;
    font-size: 14px;
    color: #fff;
    font-family: Arial;
    backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 4px 32px rgba(30,30,60,0.08);
    transition: background 0.24s, box-shadow 0.24s;
    z-index: 1000;
    top: 0;
}

.header .container {
    width: 100%; /* добавлено */
    max-width: 1440px; /* максимальная ширина контента */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2vw, 20px);
    margin: 0 auto; /* центрирование */
    min-width: 0; /* flex: центр может сжиматься до компактного режима */
}
.header .icon-name-text {
    height: 42px;
    width: 166.3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
}
.header .icon {
    height: 42px;
    width: 42px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, #bf15a0, #5c0087);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}
.header .iconnew-light {
    align-self: stretch;
    flex: 1;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    max-height: 100%;
}
.header .name-and-text {
    height: 42px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header .heading {
    align-self: stretch;
    height: 28px;
    display: flex;
    align-items: flex-start;
}
.header .alovid {
    flex: 1;
    position: relative;
    line-height: 28px;
}
.header .text {
    align-self: stretch;
    height: 14px;
    display: flex;
    align-items: flex-start;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.6);
}
.header .div {
    position: relative;
    line-height: 14px;
    flex-shrink: 0;
}

.header .number-of-points {
    position: relative;
}

.header .number-of-points.is-balance-changing::after {
    content: attr(data-balance-delta);
    position: absolute;
    left: 50%;
    top: -18px;
    color: #ff8f8f;
    font-weight: 700;
    font-size: 12px;
    pointer-events: none;
    animation: header-balance-deduct 1.1s ease-out both;
}

.header .number-of-points.is-balance-changing [data-balance-points] {
    color: #ff8f8f;
    display: inline-block;
    animation: header-balance-roll 0.08s linear infinite;
}

@keyframes header-balance-deduct {
    from { opacity: 0; transform: translate(-50%, 8px); }
    25% { opacity: 1; }
    to { opacity: 0; transform: translate(-50%, -14px); }
}

@keyframes header-balance-roll {
    from { transform: translateY(-35%); opacity: 0.45; }
    to { transform: translateY(35%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .header .number-of-points.is-balance-changing::after,
    .header .number-of-points.is-balance-changing [data-balance-points] {
        animation: none;
    }
}
.header .menu-no-enter {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 1;
    min-width: 0;
}
.header .home {
    height: 38.5px;
    box-shadow: none;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    box-sizing: border-box;
    gap: 7px;
}
/* Гость: кнопки по Figma Header-no-enter (1095:8954) — ButtonMenuEnter 1093:8309, Регистрация 1095:8907 */
header.header .nav-login,
header.header .nav-register {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 7px;
    flex-shrink: 0;
    text-decoration: none;
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
}

header.header .nav-login {
    padding: 0 20px;
    border: 2px solid rgba(191, 21, 160, 0.5);
    background: transparent;
    color: #bf15a0;
    box-shadow: none;
    min-width: 0;
}

header.header .nav-register {
    min-width: 123px;
    padding: 0 16px;
    border: none;
    background: linear-gradient(180deg, #bf15a0 0%, #a70088 50%, #5c0087 100%);
    color: #fff;
    box-shadow: none;
}

header.header .nav-register .b {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.header .nav-login .home-page-enter-user-text,
.header .nav-login .b {
    color: #bf15a0;
    font-weight: 700;
    -webkit-text-fill-color: #bf15a0;
    line-height: 21px;
}
.header .nav-login:hover,
.header .nav-login:focus {
    background: rgba(191, 21, 160, 0.12);
    outline: none;
}

header.header .nav-register:hover,
header.header .nav-register:focus {
    filter: brightness(1.06);
    outline: none;
}

header.header .nav-register:focus-visible {
    outline: 2px solid rgba(191, 21, 160, 0.55);
    outline-offset: 2px;
}
.header .iconnew-home {
    height: 14px;
    width: 14px;
    position: relative;
}
.header .text2 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header .b {
    position: relative;
    line-height: 21px;
}
.header .tournaments {
    height: 38.5px;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.1)) drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    box-sizing: border-box;
    gap: 7px;
}
.header .iconcrown {
    height: 14px;
    width: 14px;
}
.header .profile {
    height: 38.5px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    box-sizing: border-box;
    gap: 7px;
}
.header .container2 {
    display: flex;
    flex-direction: column; /* стакаем текст вертикально */
    align-items: flex-start; /* выравнивание слева */
    gap: 2px; /* небольшой отступ между именем и ролью */
}
.header .number-of-points {
    height: 40.5px;
    min-width: 112.3px; /* минимальная ширина, чтобы не становился слишком узким */
    width: auto; /* позволяет ширине подстраиваться под содержимое */
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(240, 177, 0, 0.2), rgba(255, 105, 0, 0.2));
    border: 1px solid rgba(240, 177, 0, 0.3);
    box-sizing: border-box;
    display: inline-flex; /* в строку с соседними элементами */
    flex-direction: row; /* гарантируем расположение по строке */
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 8px;
    color: #fdc700;
    white-space: nowrap; /* запрещаем перенос внутрь блока */
}
.header .iconcoin {
    height: 17.5px;
    width: 17.5px;
    position: relative;
}
.header .text-2 {
    height: 17.5px;
    display: flex;
    align-items: flex-start;
    font-size: 12.25px;
    color: rgba(253, 199, 0, 0.7);
}
.header .ap {
    position: relative;
    line-height: 17.5px;
}
.header .button-notifications {
    height: 38px;
    width: 38px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    font-size: 10.5px;
}
.header .iconnotifications {
    height: 17.5px;
    width: 17.5px;
    position: relative;
    z-index: 0;
    flex-shrink: 0;
}
.header .numbers {
    height: 17.5px;
    width: 17.5px;
    margin: 0 !important;
    position: absolute;
    top: -4px;
    left: 24px;
    border-radius: 33554400px;
    background-color: #fb2c36;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
}
.header .text7 {
    height: 14px;
    width: 6px;
    display: flex;
    align-items: flex-start;
}
.header .b7 {
    position: relative;
    line-height: 14px;
}
.header .container-icon {
    height: 31.5px;
    width: 31.5px;
    border-radius: 12.75px;
    object-fit: cover;
}
.header .container3 {
    height: 31.5px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header .paragraph {
    align-self: stretch;
    height: 17.5px;
    display: flex;
    align-items: flex-start;
}
.header .admin {
    flex: 1;
    position: relative;
    line-height: 17.5px;
}
/* Компактный хедер: выезжающее меню (Alpine mobileNavOpen) */
.header .header-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    font-size: 14px;
    color: #fff;
    font-family: Arial, sans-serif;
}

.header .header-mobile__bar {
    pointer-events: auto;
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 16px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(120%);
    box-shadow: 0 4px 32px rgba(30, 30, 60, 0.08);
}

.header .header-mobile__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.header .header-mobile__burger {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    cursor: pointer;
    flex-shrink: 0;
    color: #fff;
    transition: background-color 0.2s ease;
}

.header .header-mobile__burger:hover {
    background: rgba(255, 255, 255, 0.18);
}

.header .header-mobile__burger:focus-visible {
    outline: 2px solid #bf15a0;
    outline-offset: 2px;
}

.header .header-mobile__line {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.header .header-mobile__backdrop {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
    pointer-events: none;
}

.header .header-mobile__backdrop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header .header-mobile__panel {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    width: min(320px, 100%);
    max-width: 100vw;
    z-index: 3;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.98) 0%, rgba(8, 8, 14, 0.99) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
}

.header .header-mobile__panel--open {
    transform: translateX(0);
    pointer-events: auto;
}

.header .header-mobile__panel-inner {
    display: flex;
    flex-direction: column;
    padding: 16px 14px 28px;
    gap: 4px;
}

.header .header-mobile__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .header-mobile__user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #bf15a0;
    flex-shrink: 0;
}

.header .header-mobile__user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.header .header-mobile__user-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .header-mobile__user-points {
    font-size: 12.25px;
    color: #fdc700;
}

.header .header-mobile__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.header .header-mobile__nav-link:hover,
.header .header-mobile__nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.header .header-mobile__nav-link.is-active {
    background: linear-gradient(180deg, #bf15a0, #5c0087);
    box-shadow: 0 8px 20px rgba(30, 30, 60, 0.2);
}

.header .header-mobile__nav-ico {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

.header .header-mobile__actions {
    display: flex;
    flex-direction: column;
    gap: 10.5px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header .header-mobile__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.header .header-mobile__btn--outline {
    background: transparent;
    border: 2px solid rgba(191, 21, 160, 0.5);
    color: #bf15a0;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 20px;
}

.header .header-mobile__btn--outline .b {
    color: #bf15a0;
    -webkit-text-fill-color: #bf15a0;
    line-height: 21px;
}

.header .header-mobile__btn--gradient {
    border: none;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 16px;
    background: linear-gradient(180deg, #bf15a0 0%, #a70088 50%, #5c0087 100%);
    color: #fff;
    box-shadow: none;
}

.header .header-mobile__btn--gradient .b {
    color: #fff;
    -webkit-text-fill-color: #fff;
    line-height: 21px;
}

.header .header-mobile__btn--gradient:hover,
.header .header-mobile__btn--gradient:focus {
    filter: brightness(1.06);
    outline: none;
}

.header .header-mobile__btn--gradient:focus-visible {
    outline: 2px solid rgba(191, 21, 160, 0.55);
    outline-offset: 2px;
}

.header .header-mobile__logout-form {
    margin: 0;
    width: 100%;
}

.header .header-mobile__btn--logout {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(251, 44, 54, 0.35);
    color: #ff6467;
    font-weight: 600;
}

.header .header-mobile__btn--logout:hover {
    background: rgba(251, 44, 54, 0.1);
}

/* БАЗА: десктопный хедер */
.header .header-desktop {
    display: flex;
    z-index: 1000;
}

/*
 * Компактный режим: узкая ширина окна и сильный zoom страницы (~175% на Full HD).
 * Переключаемся на гамбургер вместо переполненной полосы.
 */
@media (max-width: 1360px) {
    .header .header-desktop {
        display: none !important;
    }

    .header .header-mobile {
        display: block;
    }
}

.home-page-enter-user-container {
    display: flex;
    align-items: center;
    gap: 10.5px;
    flex-shrink: 0;
}

/* ===== Header menu (isolated from page styles) ===== */
header.header .menu-no-enter a {
    height: 38.5px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    box-sizing: border-box;
    gap: 7px;
    text-decoration: none;
}

/* активная кнопка */
header.header .menu-no-enter a.active {
    background: linear-gradient(180deg, #bf15a0, #5c0087);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
    0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* иконки внутри меню */
header.header .menu-no-enter .iconnew-home,
header.header .menu-no-enter .iconcrown {
    height: 14px;
    width: 14px;
}

/* Hover animation for header menu items — цвет #FFFFFF 10% */
header.header .menu-no-enter a {
    transition: background-color 180ms ease, transform 160ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms ease;
    will-change: transform, background-color, box-shadow;
}

header.header .menu-no-enter a:hover,
header.header .menu-no-enter a:focus {
    background-color: rgba(255, 255, 255, 0.1); /* #FFFFFF 10% */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 30, 60, 0.09);
    outline: none;
}

/* Уточнение для активного состояния (чтобы hover не ломал градиент активной кнопки) */
header.header .menu-no-enter a.active:hover,
header.header .menu-no-enter a.active:focus {
    /* лёгкий усиленный эффект поверх градиента */
    box-shadow: 0 12px 30px rgba(30, 30, 60, 0.12);
    transform: translateY(-2px);
}
/* Hover эффект для кнопки уведомлений */
.header .button-notifications {
    height: 38px;
    width: 38px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    font-size: 10.5px;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.header .button-notifications:hover {
    background-color: rgba(255, 255, 255, 0.2); /* увеличиваем до 20% для видимости */
}

/* Hover эффект для кнопки профиля */
.header .button-profile-hamburger {
    height: 45.5px;
    min-width: 170px;
    max-width: 220px;
    width: auto;
    border-radius: 12px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0px 14px;
    box-sizing: border-box;
    gap: 10.5px;
    font-size: 12.25px;
    cursor: pointer;
    transition: background-color 180ms ease;
    font-family: Arial, sans-serif;
    color: inherit;
    text-align: left;
}

.header .button-profile-hamburger:hover {
    background-color: rgba(255, 255, 255, 0.2); /* увеличиваем до 20% для видимости */
}

/* ===== Выпадающие панели (профиль / уведомления) ===== */
.header .header-dropdown-wrap {
    position: relative;
    flex-shrink: 0;
}

.header .header-dropdown-wrap.is-open .header-profile-trigger__chevron {
    transform: rotate(180deg);
}

.header .header-profile-trigger__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.header .header-profile-trigger__avatar {
    flex-shrink: 0;
    width: 31.5px;
    height: 31.5px;
    border-radius: 12.75px;
    border: 2px solid #bf15a0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(191, 21, 160, 0.35),
        0 4px 6px -4px rgba(191, 21, 160, 0.35);
}

.header .header-profile-trigger__avatar .container-icon {
    width: 27.5px;
    height: 27.5px;
    border-radius: 10px;
    border: none;
    object-fit: cover;
}

.header .button-profile-hamburger .container-icon {
    border-radius: 10px;
}

.header .button-profile-hamburger .container2 {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.header .button-profile-hamburger .paragraph {
    overflow: hidden;
}

.header .button-profile-hamburger .admin {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header .header-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 252px;
    max-width: calc(100vw - 24px);
    z-index: 1200;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(191, 21, 160, 0.3);
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    box-shadow: 0 25px 50px -12px rgba(191, 21, 160, 0.2);
    overflow: hidden;
    text-align: left;
    font-size: 14px;
    color: #fff;
}

.header .header-dropdown--notifications {
    width: 280px;
}

.header .header-dropdown[hidden] {
    display: none !important;
}

/* —— Уведомления —— */
.header .header-ddn__head {
    padding: 13px 14px 12px;
    border-bottom: 1px solid rgba(191, 21, 160, 0.2);
    background: linear-gradient(90deg, rgba(191, 21, 160, 0.12) 0%, rgba(0, 0, 0, 0) 100%);
}

.header .header-ddn__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header .header-ddn__title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    line-height: 21px;
    color: #fff;
}

.header .header-ddn__title-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.header .header-ddn__count {
    min-width: 23px;
    height: 24.5px;
    padding: 0 7px;
    border-radius: 999px;
    background: #bf15a0;
    font-size: 10.5px;
    line-height: 24.5px;
    text-align: center;
    color: #fff;
}

.header .header-ddn__list {
    max-height: min(50vh, 320px);
    overflow-y: auto;
}

.header .header-ddn__item {
    display: flex;
    align-items: stretch;
    gap: 11px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(191, 21, 160, 0.05);
    transition: background-color 0.15s ease;
}

.header .header-ddn__item:hover {
    background: rgba(191, 21, 160, 0.12);
}

.header .header-ddn__item--read {
    background: transparent;
}

.header .header-ddn__item--read:hover {
    background: rgba(255, 255, 255, 0.04);
}

.header .header-ddn__line {
    width: 3.5px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #bf15a0 0%, #5c0087 100%);
    align-self: stretch;
    min-height: 56px;
}

.header .header-ddn__item--read .header-ddn__line {
    display: none;
}

.header .header-ddn__item-body {
    flex: 1;
    min-width: 0;
    padding: 12px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 5.25px;
}

.header .header-ddn__item-body--full {
    padding-left: 14px;
    padding-right: 14px;
}

.header .header-ddn__item-title {
    font-size: 12.25px;
    line-height: 1.45;
    color: #fff;
}

.header .header-ddn__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.header .header-ddn__tag {
    display: inline-flex;
    align-items: center;
    padding: 1.75px 7px;
    border-radius: 3.5px;
    font-size: 10.5px;
    line-height: 14px;
}

.header .header-ddn__tag--blue {
    background: rgba(43, 127, 255, 0.2);
    color: #51a2ff;
}

.header .header-ddn__tag--gold {
    background: rgba(240, 177, 0, 0.2);
    color: #fdc700;
}

.header .header-ddn__tag--purple {
    background: rgba(173, 70, 255, 0.2);
    color: #c27aff;
}

.header .header-ddn__time {
    font-size: 10.5px;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.header .header-ddn__dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: auto 12px auto 0;
    border-radius: 50%;
    background: #bf15a0;
    opacity: 0.66;
    box-shadow: 0 10px 15px rgba(191, 21, 160, 0.45), 0 4px 6px rgba(191, 21, 160, 0.45);
}

.header .header-ddn__item--read .header-ddn__dot {
    display: none;
}

.header .header-ddn__footer {
    padding: 14.5px 10.5px 14px;
    border-top: 1px solid rgba(191, 21, 160, 0.2);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(191, 21, 160, 0.06) 100%);
}

.header .header-ddn__footer-link {
    display: block;
    text-align: center;
    font-size: 12.25px;
    line-height: 17.5px;
    color: #bf15a0;
    text-decoration: none;
}

.header .header-ddn__footer-link:hover {
    text-decoration: underline;
}

/* —— Меню профиля —— */
.header .header-ddp__head {
    padding: 14px;
    border-bottom: 1px solid rgba(191, 21, 160, 0.2);
    background: linear-gradient(90deg, rgba(191, 21, 160, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.header .header-ddp__user {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.header .header-ddp__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 2px;
    border-radius: 12.75px;
    border: 2px solid #bf15a0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(191, 21, 160, 0.45),
        0 4px 6px -4px rgba(191, 21, 160, 0.45);
}

.header .header-ddp__avatar img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.header .header-ddp__user-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header .header-ddp__nick {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .header-ddp__email {
    margin: 0;
    font-size: 12.25px;
    line-height: 17.5px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .header-ddp__role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 7px;
    border-radius: 3.5px;
    border: 1px solid rgba(191, 21, 160, 0.3);
    background: rgba(191, 21, 160, 0.2);
    font-size: 10.5px;
    line-height: 14px;
    color: #bf15a0;
}

.header .header-ddp__role-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.header .header-ddp__points {
    padding: 10.5px 10.5px 10px;
    border-bottom: 1px solid rgba(191, 21, 160, 0.2);
    background: linear-gradient(90deg, rgba(240, 177, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.header .header-ddp__points-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40.5px;
    padding: 0 11.5px;
    border-radius: 12.75px;
    border: 1px solid rgba(240, 177, 0, 0.3);
    background: linear-gradient(90deg, rgba(240, 177, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    box-sizing: border-box;
}

.header .header-ddp__points-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.25px;
    line-height: 17.5px;
    color: #fff;
}

.header .header-ddp__coin {
    width: 17px;
    height: 17px;
}

.header .header-ddp__points-val {
    font-size: 14px;
    line-height: 21px;
    color: #fdc700;
    font-weight: 700;
}

.header .header-ddp__nav {
    padding: 7px 7px 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header .header-ddp__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38.5px;
    padding: 8px 10px 8px 13px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    line-height: 21px;
    border-left: 3px solid transparent;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header .header-ddp__link img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.header .header-ddp__link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #bf15a0;
}

.header .header-ddp__logout {
    padding: 8px 7px 12px;
    border-top: 1px solid rgba(191, 21, 160, 0.2);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(251, 44, 54, 0.05) 100%);
}

.header .header-ddp__logout-form {
    margin: 0;
}

.header .header-ddp__logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 10px 16px;
    border-radius: 12.75px;
    border: 1px solid rgba(251, 44, 54, 0.3);
    background: transparent;
    color: #ff6467;
    font-size: 14px;
    line-height: 21px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header .header-ddp__logout-btn:hover {
    background: rgba(251, 44, 54, 0.08);
    border-color: rgba(251, 44, 54, 0.5);
}

.header .header-ddp__logout-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(47%) sepia(93%) saturate(1352%)
        hue-rotate(325deg) brightness(101%) contrast(101%);
}

.header .button-notifications {
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
}

.header .button-notifications:focus-visible,
.header .button-profile-hamburger:focus-visible {
    outline: 2px solid #bf15a0;
    outline-offset: 2px;
}

html.mobile-nav-open,
body.mobile-nav-open {
    overflow: hidden;
}

.header.is-mobile-nav-open .header-mobile__burger {
    background: linear-gradient(180deg, rgba(191, 21, 160, 0.22), rgba(92, 0, 135, 0.22));
}

.header.is-mobile-nav-open .header-mobile__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.is-mobile-nav-open .header-mobile__line:nth-child(2) {
    opacity: 0;
}

.header.is-mobile-nav-open .header-mobile__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header .header-mobile__line {
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.header .header-mobile__user {
    margin-bottom: 0;
}

.header .header-mobile__user-role {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.58);
}

.header .header-mobile__quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.header .header-mobile__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 700;
    color: #eef2ff;
}

.header .header-mobile__meta-pill--points {
    color: #fdc700;
    background: linear-gradient(90deg, rgba(240, 177, 0, 0.18), rgba(255, 105, 0, 0.08));
    border-color: rgba(240, 177, 0, 0.24);
}

.header .header-mobile__meta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    object-fit: contain;
}

.header .header-mobile__section-title {
    margin: 8px 0 6px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 768px) {
    .header .header-mobile__bar {
        background-color: rgba(13, 18, 42, 0.98);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .header .header-mobile__panel {
        width: min(360px, 100%);
    }

    .header .header-mobile__logo .text {
        display: none;
    }

    .header .header-mobile__logo .name-and-text {
        height: auto;
        flex: 0 1 auto;
    }
}

@media (max-width: 520px) {
    .header .header-mobile__bar {
        padding: 0 12px;
    }

    .header .header-mobile__panel-inner {
        padding: 14px 12px 24px;
    }

    .header .header-mobile__quick-stats {
        grid-template-columns: 1fr;
    }

    .header .header-mobile__nav-link {
        padding: 11px 10px;
    }
}

.header.is-mobile-nav-open .header-mobile__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header.is-mobile-nav-open .header-mobile__panel {
    transform: translateX(0);
    pointer-events: auto;
}
