/* Bottom Navigation — floating centered pill */
.bottom-nav {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(17, 17, 17, 0.98));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(201, 149, 108, 0.3);
    border-radius: 24px;
    padding: 0.5rem;
    z-index: 1000;
    min-height: 70px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 80px rgba(201, 149, 108, 0.15);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem;
    flex: 1;
    max-width: 60px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(0.92); }

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin: 0 auto 0.2rem;
    transition: box-shadow 0.2s;
}
.nav-item.active .nav-icon {
    box-shadow: 0 0 16px rgba(201, 149, 108, 0.4);
}

.nav-label {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-item.active .nav-label { color: var(--text-primary); }

/* Add button special */
.nav-icon-add {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 auto 0.2rem;
}

/* Badge */
.nav-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    background: var(--red);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Settings Menu (slide from RIGHT) */
.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.settings-overlay.open { opacity: 1; pointer-events: all; }

.settings-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 85vw);
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    border-left: 1px solid rgba(201, 149, 108, 0.3);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
}
.settings-menu.open { transform: translateX(0); }

.settings-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gold);
}
.settings-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}
.settings-item:hover { background: var(--bg-card); }
.settings-item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}
.settings-item-label { font-weight: 500; }
.settings-item-desc { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.settings-item-danger { color: var(--red); }
.settings-item-danger:hover { background: rgba(239, 68, 68, 0.1); }

/* Menu items used in settings_menu.rs */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 149, 108, 0.2);
}
.menu-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}
.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.menu-item:hover { background: rgba(255, 255, 255, 0.05); }
.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.menu-content {
    flex: 1;
    min-width: 0;
}
.menu-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}
.menu-item-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}
.menu-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    flex-shrink: 0;
}
