.bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 580px;
    margin: 0 auto;
    background: linear-gradient(180deg, #221B14 0%, #120E0A 100%);
    border: 1.5px solid #D4AF37;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 16px rgba(212,175,55,0.18);
    padding: 8px 6px;
    display: flex;
    justify-content: space-around; /* <-- This was the broken line */
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Added for iOS Safari support */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #C8BAA9;
    font-size: 0.64rem;
    font-weight: 600;
    flex: 1 1 25%;
    max-width: 25%;
    min-width: 0;
    padding: 4px 2px;
    border-radius: 16px;
    white-space: nowrap;
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-item span:not(.icon) {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.nav-item span.icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
    color: #FFD566;
    font-weight: 700;
}

.nav-item.active span.icon {
    background: linear-gradient(135deg, #FFD566 0%, #D4AF37 100%);
    color: #1A0F00;
    border-color: #FFF2A3;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 14px rgba(212,175,55,0.45);
}