.floating-nav {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background: #1e2024;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    z-index: 998;
    touch-action: manipulation;
    will-change: transform;
}

.nav-scroll-btn-inline {
    display: none;
}

.nav-items-container {
    display: contents;
}

.nav-item {
    position: relative;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item a {
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.25s ease;
}

.nav-item:hover a {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.nav-item:hover svg {
    transform: scale(1.1);
}

.nav-item:active a {
    transform: scale(0.95);
}

.nav-item[data-tooltip="Home"]:hover svg {
    animation: homeWiggle 0.5s ease;
}

@keyframes homeWiggle {
    0%, 100% { transform: scale(1.1) rotate(0deg); }
    20% { transform: scale(1.1) rotate(-6deg); }
    40% { transform: scale(1.1) rotate(6deg); }
    60% { transform: scale(1.1) rotate(-4deg); }
    80% { transform: scale(1.1) rotate(4deg); }
}

.nav-item::before {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    padding: 10px 14px;
    background: #1e2024;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
}

.nav-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.nav-divider {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 5px 0;
}

.nav-spacer {
    flex: 1;
    min-height: 8px;
    max-height: 20px;
}

.nav-notif:hover a {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.nav-notif:hover svg {
    animation: bellRing 0.6s ease;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    15% { transform: rotate(14deg) scale(1.1); }
    30% { transform: rotate(-12deg) scale(1.1); }
    45% { transform: rotate(10deg) scale(1.1); }
    60% { transform: rotate(-8deg) scale(1.1); }
    75% { transform: rotate(4deg) scale(1.1); }
}

.nav-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e2024;
    pointer-events: none;
    animation: badgeBounce 0.4s ease;
}

@keyframes badgeBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.nav-info-icon {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.nav-updates:hover a {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #3b82f6;
}

.nav-updates:hover .nav-info-icon {
    transform: scale(1.15);
}

@keyframes infoWiggle {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

.nav-discord:hover a {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
    color: #5865f2;
}

.nav-discord:hover svg {
    animation: discordWobble 0.5s ease;
}

@keyframes discordWobble {
    0%, 100% { transform: scale(1.1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(5deg); }
}

.nav-profile a {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
}

.nav-profile:hover a {
    background: transparent;
    border: none;
}

.nav-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(251, 191, 36, 0.4);
    transition: all 0.25s ease;
}

.nav-profile:hover .nav-avatar {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15), 0 4px 14px rgba(251, 191, 36, 0.25);
}

.nav-profile:active .nav-avatar {
    transform: scale(0.95);
}

.nav-guest a {
    background: transparent;
    border: none;
    border-radius: 50%;
}

.nav-guest:hover a {
    background: transparent;
    border: none;
}

.nav-guest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.nav-guest-avatar svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
}

.nav-guest:hover .nav-guest-avatar {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.nav-guest:hover .nav-guest-avatar svg {
    color: #22c55e;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .floating-nav {
        display: none;
    }
    
    .nav-item a {
        pointer-events: auto;
        cursor: pointer;
    }
    
    .nav-item svg {
        width: 20px;
        height: 20px;
        pointer-events: none;
    }
    
    .nav-item:hover a {
        transform: translateY(-2px);
    }
    
    .nav-avatar {
        width: 40px;
        height: 40px;
        pointer-events: none;
    }
    
    .nav-guest-avatar {
        width: 40px;
        height: 40px;
        pointer-events: none;
    }
    
    .nav-guest-avatar svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-divider {
        width: 1px;
        height: 28px;
        margin: 0 5px;
        flex-shrink: 0;
    }
    
    .nav-spacer {
        display: none;
    }
    
    .nav-item::before {
        left: 50%;
        top: auto;
        bottom: calc(100% + 12px);
        transform: translateX(-50%) translateY(8px);
    }
    
    .nav-item:hover::before {
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-badge {
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

.nav-extra-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-height: 0;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-nav.expanded .nav-extra-items {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
    pointer-events: auto;
}

.nav-expand a {
    background: rgba(255, 255, 255, 0.02);
}

.nav-expand .expand-icon {
    transition: transform 0.3s ease;
}

.floating-nav.expanded .nav-expand .expand-icon {
    transform: rotate(180deg);
}

.nav-expand:hover a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.nav-cursor:hover a {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.25);
    color: #a855f7;
}

.nav-cursor:hover svg {
    animation: cursorMove 0.5s ease;
}

@keyframes cursorMove {
    0%, 100% { transform: scale(1.1) translate(0, 0); }
    25% { transform: scale(1.1) translate(2px, -2px); }
    50% { transform: scale(1.1) translate(-1px, 1px); }
    75% { transform: scale(1.1) translate(1px, -1px); }
}

.nav-market:hover a {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #22c55e;
}

.nav-market:hover svg {
    animation: shopBounce 0.5s ease;
}

@keyframes shopBounce {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2) translateY(-2px); }
}

.nav-disabled a {
    cursor: not-allowed;
    opacity: 0.4;
}

.nav-disabled:hover a {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    transform: none;
}

.nav-disabled:hover svg {
    transform: none;
    animation: none;
}

@media (max-width: 768px) {
    .nav-extra-items {
        flex-direction: row;
    }
    
    .floating-nav.expanded .nav-extra-items {
        max-height: none;
        margin-top: 0;
        margin-left: 6px;
    }
    
    .nav-expand {
        display: none;
    }
    
    .nav-extra-items {
        max-height: none;
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-notif,
    .nav-discord,
    .nav-profile,
    .nav-guest {
        display: none;
    }
}


.nav-logout:hover a {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.nav-logout:hover svg {
    animation: logoutSlide 0.4s ease;
}

@keyframes logoutSlide {
    0%, 100% { transform: scale(1.1) translateX(0); }
    50% { transform: scale(1.1) translateX(3px); }
}


.nav-leaderboard:hover a {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.nav-leaderboard:hover svg {
    animation: fireFlicker 0.5s ease infinite;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

@keyframes fireFlicker {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

.nav-guides:hover a {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #3b82f6;
}

.nav-guides:hover svg {
    animation: bookFlip 0.5s ease;
}

@keyframes bookFlip {
    0%, 100% { transform: scale(1.1) rotateY(0deg); }
    50% { transform: scale(1.1) rotateY(15deg); }
}

.nav-streak a {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 
                0 0 40px rgba(239, 68, 68, 0.2);
    animation: sidebarStreakGlow 2s ease-in-out infinite;
}

@keyframes sidebarStreakGlow {
    0%, 100% {
        background: rgba(251, 191, 36, 0.08);
        border-color: rgba(251, 191, 36, 0.2);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 
                    0 0 40px rgba(239, 68, 68, 0.2);
    }
    50% {
        background: rgba(251, 191, 36, 0.15);
        border-color: rgba(251, 191, 36, 0.4);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.5), 
                    0 0 60px rgba(239, 68, 68, 0.3);
    }
}

.nav-streak:hover a {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6), 
                0 0 80px rgba(239, 68, 68, 0.4);
    animation: none;
}

.nav-streak-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)) 
            drop-shadow(0 0 12px rgba(239, 68, 68, 0.4))
            brightness(1.1);
    animation: streakIconGlow 2s ease-in-out infinite;
    transition: filter 0.2s ease;
}

@keyframes streakIconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)) 
                drop-shadow(0 0 12px rgba(239, 68, 68, 0.4))
                brightness(1.1);
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.9)) 
                drop-shadow(0 0 20px rgba(239, 68, 68, 0.6))
                brightness(1.3);
    }
}

.nav-item:hover .nav-streak-icon {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 1)) 
            drop-shadow(0 0 24px rgba(239, 68, 68, 0.8))
            brightness(1.4);
    animation: streakIconBounce 0.5s ease;
}

@keyframes streakIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.nav-guides a {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(147, 51, 234, 0.4);
    color: #a855f7;
    animation: guidesShine 2s ease-in-out infinite;
}

@keyframes guidesShine {
    0%, 100% {
        box-shadow: 0 0 10px rgba(147, 51, 234, 0.3),
                    0 0 20px rgba(147, 51, 234, 0.2),
                    inset 0 0 10px rgba(168, 85, 247, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.5),
                    0 0 30px rgba(147, 51, 234, 0.3),
                    inset 0 0 15px rgba(168, 85, 247, 0.2);
    }
}

.nav-guides:hover a {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(168, 85, 247, 0.3));
    border-color: rgba(147, 51, 234, 0.6);
    color: #c084fc;
}

.guides-tooltip {
    position: fixed;
    left: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 32, 36, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: tooltipSlideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.guides-tooltip-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guides-tooltip-icon {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

.guides-tooltip-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.guides-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.nav-scroll-btn {
    position: fixed;
    bottom: 20px;
    width: 36px;
    height: 36px;
    background: rgba(30, 32, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9991;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nav-scroll-btn svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    fill: none;
}

.nav-scroll-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    transform: scale(1.1);
}

.nav-scroll-btn:hover svg {
    stroke: #fbbf24;
}

.nav-scroll-btn:active {
    transform: scale(0.95);
}

.nav-scroll-left {
    left: 8px;
}

.nav-scroll-right {
    right: 8px;
}

@media (min-width: 769px) {
    .nav-scroll-btn {
        display: none !important;
    }
}



.nav-mods a {
    animation: modsGlow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.nav-mods:hover a {
    animation: modsGlowHover 1s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

@keyframes modsGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.3), 0 0 30px rgba(251, 191, 36, 0.15);
        border-color: rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), 0 0 50px rgba(251, 191, 36, 0.25);
        border-color: rgba(251, 191, 36, 0.5);
    }
}

@keyframes modsGlowHover {
    0%, 100% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), 0 0 50px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 35px rgba(251, 191, 36, 0.7), 0 0 70px rgba(251, 191, 36, 0.4);
    }
}

.mods-floating-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-mods {
        display: none !important;
    }
    
    .mods-floating-btn {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.15));
        border: 3px solid rgba(251, 191, 36, 0.5);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 900;
        transition: all 0.3s ease;
        animation: modsFloatingGlow 2s ease-in-out infinite;
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
        text-decoration: none;
    }
    
    .mods-floating-btn img {
        width: 32px;
        height: 32px;
        filter: brightness(1.2);
    }
    
    .mods-floating-btn:active {
        transform: scale(0.95);
    }
    
    @keyframes modsFloatingGlow {
        0%, 100% {
            box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3), 0 0 30px rgba(251, 191, 36, 0.2);
            border-color: rgba(251, 191, 36, 0.5);
        }
        50% {
            box-shadow: 0 6px 30px rgba(251, 191, 36, 0.5), 0 0 50px rgba(251, 191, 36, 0.3);
            border-color: rgba(251, 191, 36, 0.7);
        }
    }
}
