.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 999;
    display: none; /* Hidden by default */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-nav-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 6px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px;
    outline: none; /* Remove focus outline */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile tap */
}

/* Remove any focus/active states that might show underline */
.bottom-nav-item:focus,
.bottom-nav-item:active,
.bottom-nav-item:visited,
.bottom-nav-item:hover,
.bottom-nav-item:link {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force remove underline for all states */
.bottom-nav-item,
.bottom-nav-item * {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Remove tap highlight on all mobile browsers */
.bottom-nav-item {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Additional override for any parent container that might cause underline */
.mobile-bottom-nav a,
.bottom-nav-container a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Override browser default link styles */
a.bottom-nav-item {
    color: inherit !important;
    text-decoration: none !important;
}

/* Navigation labels - subtle and only visible on active */
.nav-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray3);
    margin-top: 2px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    white-space: nowrap;
    line-height: 1;
}

/* Active state - SUBTLE YELLOW ACCENT dengan Refined Approach */
.bottom-nav-item.active {
    background: rgba(255, 241, 0, 0.15); /* Soft yellow background instead of bright */
    transform: scale(1.05); /* Less aggressive scaling */
    box-shadow: 0 2px 12px rgba(255, 241, 0, 0.25); /* Softer shadow */
    border: 1px solid rgba(255, 241, 0, 0.3); /* Subtle border for definition */
}

.bottom-nav-item.active svg {
    stroke: #D4AF00; /* Darker yellow for better contrast - staying in yellow family */
    fill: none;
    stroke-width: 2.5; /* Slightly thicker for emphasis */
}

.bottom-nav-item.active .nav-label {
    color: #D4AF00;
    opacity: 1;
    transform: translateY(0);
}

/* Inactive state - More refined grays */
.bottom-nav-item:not(.active) {
    background: transparent;
}

.bottom-nav-item:not(.active) svg {
    stroke: #9CA3AF; /* Softer gray, less harsh than current */
    fill: none;
    stroke-width: 1.8; /* Slightly thicker for better visibility */
}

/* Hover only on non-touch devices (desktop) - Refined */
@media (hover: hover) and (pointer: fine) {
    .bottom-nav-item:not(.active):hover {
        background: rgba(255, 241, 0, 0.08); /* Very subtle yellow hint on hover */
        transform: scale(1.02); /* Minimal scaling */
    }
    
    .bottom-nav-item:not(.active):hover svg {
        stroke: #6B7280; /* Slightly darker on hover */
    }
}

/* Icon styling */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

/* Floating badges */
.nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Show on mobile only - with higher specificity to avoid conflicts */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* No need for body padding - it's floating! */
    body {
        padding-bottom: 0;
    }
}

/* Responsive floating adjustments */
@media (max-width: 375px) {
    .mobile-bottom-nav {
        bottom: 16px;
    }
    
    .bottom-nav-container {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .bottom-nav-item {
        width: 44px;
        height: 44px;
    }
    
    .nav-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Large screens - bigger floating nav */
@media (min-width: 414px) and (max-width: 768px) {
    .mobile-bottom-nav {
        bottom: 24px;
    }
    
    .bottom-nav-container {
        padding: 10px 20px;
        gap: 12px;
    }
    
    .bottom-nav-item {
        width: 52px;
        height: 52px;
    }
    
    .nav-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Landscape mode - adjust position */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-bottom-nav {
        bottom: 12px;
        right: 20px;
        left: auto;
        transform: none;
    }
    
    .bottom-nav-container {
        flex-direction: column;
        padding: 8px;
        gap: 4px;
    }
    
    .bottom-nav-item {
        width: 40px;
        height: 40px;
    }
}

/* Smooth entrance animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mobile-bottom-nav {
    animation: floatIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}