/* Shared navigation for customer pages. */
.user-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #172033;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}

.user-navbar-inner {
    width: min(1120px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.user-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.user-brand i { color: #60a5fa; }

.user-nav-links {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.user-nav-link {
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-bottom: 3px solid transparent;
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.user-nav-link:hover,
.user-nav-link.active {
    color: #fff;
    background: rgba(96, 165, 250, .12);
    border-bottom-color: #60a5fa;
}

.user-nav-toggle,
.user-mobile-nav { display: none; }

@media (max-width: 900px) {
    .user-navbar-inner { width: min(100% - 24px, 720px); }
    .user-nav-links { gap: 0; }
    .user-nav-link { padding: 0 8px; font-size: 12px; }
}

@media (max-width: 768px) {
    body { padding-bottom: 76px; }
    .user-navbar-inner { min-height: 58px; }
    .user-nav-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 8px;
        background: transparent;
        color: #fff;
        font-size: 18px;
    }
    .user-nav-links {
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        display: none;
        padding: 8px 12px 12px;
        background: #172033;
        box-shadow: 0 8px 12px rgba(15, 23, 42, .16);
    }
    .user-nav-links.open { display: grid; grid-template-columns: 1fr 1fr; }
    .user-nav-link { min-height: 42px; border-bottom: 0; border-radius: 6px; }
    .user-nav-link:hover,
    .user-nav-link.active { background: rgba(96, 165, 250, .16); }
    .user-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 66px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: #172033;
        box-shadow: 0 -2px 12px rgba(15, 23, 42, .2);
    }
    .user-mobile-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #94a3b8;
        font-size: 10px;
        text-decoration: none;
    }
    .user-mobile-link i { font-size: 18px; }
    .user-mobile-link.active { color: #60a5fa; }
}
