/* =================================================================
   Sidebar nav — композиция в стиле ЛК (без снятия акцентов групп / PASS)
   ================================================================= */

#nb-dashboard-wrapper .nb-sidebar-nav {
    gap: 6px;
    padding: 10px;
}

#nb-dashboard-wrapper .nb-sidebar-nav .nb-nav-link {
    min-height: 42px;
    padding: 8px 12px 8px 10px;
    border-radius: 12px;
    gap: 10px;
}

#nb-dashboard-wrapper .nb-sidebar-nav .nb-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

#nb-dashboard-wrapper .nb-sidebar-nav .nb-nav-label-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1.25;
}

/* Обычные вкладки верхнего уровня — glass-карточки */

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: rgba(255, 235, 190, 0.62) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.18) 100%) !important;
    border: 1px solid rgba(255, 215, 120, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass) .nb-nav-label-text {
    color: inherit;
    transition: color 0.22s ease;
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass):hover {
    color: rgba(255, 244, 194, 0.9) !important;
    border-color: rgba(255, 216, 124, 0.28) !important;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.09) 0%, rgba(0, 0, 0, 0.14) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.1), 0 6px 20px rgba(0, 0, 0, 0.22);
    transform: translateX(2px);
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active {
    color: transparent !important;
    border-color: rgba(255, 216, 124, 0.42) !important;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.11) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.12), 0 4px 20px rgba(0, 0, 0, 0.28);
    animation: nb-nav-active-pearl 2.8s ease-in-out infinite;
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 240, 200, 0.06) 52%, transparent 70%);
    transform: translateX(-120%) skewX(-12deg);
    animation: nb-nav-pearl-sweep 3.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active .nb-nav-label,
#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active .nb-nav-icon-wrap {
    position: relative;
    z-index: 1;
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active .nb-nav-label-text {
    font-weight: 700;
    background: linear-gradient(90deg, #fff0b8 0%, #ffd54f 40%, #ffb300 70%, #fff0b8 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nb-dash-gradient-shift 5s linear infinite;
}

#nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass) .nb-nav-icon-wrap {
    border-color: rgba(255, 215, 120, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 215, 0, 0.06) 100%);
}

/* AI / Games / Music — лёгкая общая рамка */

#nb-dashboard-wrapper .nb-nav-group--ai,
#nb-dashboard-wrapper .nb-nav-group--games,
#nb-dashboard-wrapper .nb-nav-group--music {
    margin-bottom: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.06);
}

#nb-dashboard-wrapper .nb-nav-group--ai.is-open,
#nb-dashboard-wrapper .nb-nav-group--games.is-open,
#nb-dashboard-wrapper .nb-nav-group--music.is-open {
    box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.08), 0 8px 24px rgba(0, 0, 0, 0.2);
}

#nb-dashboard-wrapper .nb-nav-group--ai .nb-nav-sub,
#nb-dashboard-wrapper .nb-nav-group--games .nb-nav-sub {
    padding: 6px 8px 10px;
    gap: 4px;
}

#nb-dashboard-wrapper .nb-nav-group--ai .nb-nav-link--sub,
#nb-dashboard-wrapper .nb-nav-group--games .nb-nav-link--sub {
    min-height: 38px;
    padding-left: 40px !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#nb-dashboard-wrapper .nb-nav-group--ai .nb-nav-link--sub:hover,
#nb-dashboard-wrapper .nb-nav-group--games .nb-nav-link--sub:hover {
    transform: translateX(2px);
}

#nb-dashboard-wrapper .nb-nav-group--ai .nb-nav-link--sub .nb-nav-icon-wrap,
#nb-dashboard-wrapper .nb-nav-group--games .nb-nav-link--sub .nb-nav-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

#nb-dashboard-wrapper .nb-nav-group--music {
    margin-bottom: 4px;
}

#nb-dashboard-wrapper .nb-nav-group--music .nb-nav-sub {
    padding: 4px 8px 8px 10px;
    gap: 2px;
}

#nb-dashboard-wrapper .nb-nav-group--music .nb-nav-link--sub {
    min-height: 36px;
    padding-left: 38px !important;
    font-size: 11px;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#nb-dashboard-wrapper .nb-nav-group--music .nb-nav-link--sub:hover {
    border-color: rgba(255, 216, 124, 0.22) !important;
    background: rgba(255, 215, 0, 0.06) !important;
    transform: translateX(2px);
}

#nb-dashboard-wrapper .nb-nav-group--music .nb-nav-link--sub.active {
    border-color: rgba(255, 215, 0, 0.45) !important;
    background: rgba(255, 215, 0, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}

#nb-dashboard-wrapper .nb-nav-group--music .nb-nav-link--sub .nb-nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

#nb-dashboard-wrapper .nb-nav-group--services {
    margin-bottom: 4px;
}

#nb-dashboard-wrapper .nb-nav-group--services .nb-nav-sub {
    padding: 4px 8px 8px 10px;
    gap: 2px;
}

#nb-dashboard-wrapper .nb-nav-group--services .nb-nav-link--sub {
    min-height: 36px;
    padding-left: 38px !important;
    font-size: 11px;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#nb-dashboard-wrapper .nb-nav-group--services .nb-nav-link--sub:hover {
    border-color: rgba(255, 216, 124, 0.22) !important;
    background: rgba(255, 215, 0, 0.06) !important;
    transform: translateX(2px);
}

#nb-dashboard-wrapper .nb-nav-group--services .nb-nav-link--sub.active {
    border-color: rgba(255, 215, 0, 0.42) !important;
    background: rgba(255, 215, 0, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}

#nb-dashboard-wrapper .nb-nav-group--services .nb-nav-link--sub .nb-nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

#nb-dashboard-wrapper .nb-nav-link--services-parent {
    border: none !important;
    background: transparent !important;
}

#nb-dashboard-wrapper .nb-nav-link--music-parent {
    border: 1px solid rgba(255, 215, 0, 0.18);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.02));
}

/* NB PASS — лёгкая полировка */

#nb-dashboard-wrapper .nb-nav-link--pass {
    margin-bottom: 6px;
}

#nb-dashboard-wrapper .nb-nav-link--pass.active {
    box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.14), inset 0 1px 0 rgba(255, 240, 200, 0.16), 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 1024px) {
    #nb-dashboard-wrapper .nb-sidebar-nav .nb-nav-link {
        min-height: 40px;
        padding: 7px 10px 7px 8px;
    }
}

/* ——— Микро-характер иконок при открытии вкладки (transform only) ——— */

#nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx {
    display: inline-block;
    transform-origin: 50% 55%;
    will-change: transform;
    backface-visibility: hidden;
}

#nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--pop {
    animation: nb-nav-ico-pop 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--bounce {
    animation: nb-nav-ico-bounce 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--pulse {
    animation: nb-nav-ico-pulse 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--spin {
    animation: nb-nav-ico-spin 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nb-nav-ico-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.2); }
    62% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

@keyframes nb-nav-ico-bounce {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    28% { transform: translate3d(0, -3px, 0) scale(1.12); }
    55% { transform: translate3d(0, 1px, 0) scale(0.98); }
    78% { transform: translate3d(0, -1px, 0) scale(1.04); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nb-nav-ico-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.16); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes nb-nav-ico-spin {
    0% { transform: rotate(0deg) scale(1); }
    38% { transform: rotate(-16deg) scale(1.12); }
    68% { transform: rotate(9deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass),
    #nb-dashboard-wrapper .nb-nav-item--featured,
    #nb-dashboard-wrapper .nb-nav-group--ai .nb-nav-link--sub,
    #nb-dashboard-wrapper .nb-nav-group--games .nb-nav-link--sub,
    #nb-dashboard-wrapper .nb-nav-group--music .nb-nav-link--sub,
    #nb-dashboard-wrapper .nb-nav-group--services .nb-nav-link--sub {
        transition: none !important;
    }

    #nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active {
        animation: none !important;
    }

    #nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active::after {
        display: none;
    }

    #nb-dashboard-wrapper .nb-sidebar-nav > .nb-nav-link:not(.nb-nav-item--featured):not(.nb-nav-link--pass).active .nb-nav-label-text {
        animation: none !important;
        -webkit-text-fill-color: #fff4c2;
        background: none;
    }

    #nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx,
    #nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--pop,
    #nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--bounce,
    #nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--pulse,
    #nb-dashboard-wrapper .nb-nav-icon-wrap > .material-symbols-outlined.is-nav-fx--spin {
        animation: none !important;
        transform: none !important;
        will-change: auto !important;
    }
}
