.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #1e2024;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 999;
    will-change: transform;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.navbar-brand:hover {
    transform: scale(1.03);
}

.navbar-brand:hover .navbar-logo {
    animation: logoWiggle 0.5s ease;
}

@keyframes logoWiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(3deg); }
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.navbar-name {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-btn {
    position: relative;
    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);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    padding: 8px;
}

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

.navbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: scale(1.08);
}

.navbar-btn:hover svg {
    transform: scale(1.1);
}

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

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

.discord-btn: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); }
}

.guides-btn {
    display: none;
}

.guides-btn:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
    color: #a855f7;
}

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

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

@media (max-width: 768px) {
    .guides-btn {
        display: flex;
    }
}

.streak-btn {
    position: relative;
    gap: 4px;
    width: auto;
    padding: 0 12px;
    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: streakButtonGlow 2s ease-in-out infinite;
}

@keyframes streakButtonGlow {
    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);
    }
}

.streak-btn svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
    animation: navFirePulse 2s ease-in-out infinite alternate;
}

@keyframes navFirePulse {
    0% { filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); transform: scale(1.08); }
}

.streak-btn .streak-num {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
}

.streak-btn:hover {
    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;
}

.streak-btn:hover svg {
    animation: navFireBounce 0.5s ease;
}

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

.notif-btn {
    position: relative;
}

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

.notif-btn: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); }
}

.notification_badge {
    position: absolute;
    top: -2px;
    right: -2px;
    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;
    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); }
}

.signin-btn {
    width: auto;
    padding: 0 18px;
    height: 42px;
    gap: 8px;
    background: #fbbf24;
    border: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
}

.signin-btn:hover {
    background: #fcd34d;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
    color: #1a1a1a;
}

.signin-btn:active {
    transform: scale(0.98);
}

.navbar-profile {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid rgba(251, 191, 36, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
}

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

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

.navbar-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .top-navbar {
        padding: 0 16px;
        height: 58px;
    }
    
    .navbar-name {
        display: none;
    }
    
    .navbar-logo {
        width: 36px;
        height: 36px;
    }
    
    .navbar-btn {
        width: 40px;
        height: 40px;
    }
    
    .navbar-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .navbar-profile {
        width: 40px;
        height: 40px;
    }
    
    .signin-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}

.navbar-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);
    }
}

.navbar-btn:hover .navbar-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); }
}
