:root {
    --top-nav-height: 72px;
    --bottom-tab-height: 66px;
    --transition-speed: 0.2s;
    --nav-blur: 18px;
}

.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--border-soft, #e5e7eb);
    box-shadow: 0 18px 40px -28px rgba(6, 30, 41, 0.35);
    padding: 0 2rem;
}

.desktop-nav__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.desktop-nav__brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-strong, #0f172a);
    display: inline-flex;
    align-items: center;
}

.desktop-nav__brand div {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.desktop-nav__brand div svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.desktop-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.desktop-nav__link {
    font-weight: 500;
    color: var(--text-muted, #6b7280);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid transparent;
    text-decoration: none; /* remove default underline since we draw our own border */
    transition: color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.desktop-nav__link:hover,
.desktop-nav__link.is-active {
    color: var(--brand-primary, #1d546d);
    border-color: currentColor;
}

.mobile-tab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--bottom-tab-height);
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(var(--nav-blur));
    border-top: 1px solid var(--border-soft, #e5e7eb);
    box-shadow: 0 -18px 45px -30px rgba(6, 30, 41, 0.3);
}

.tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 4px;
    padding: 6px 0;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    transition: color var(--transition-speed) ease;
}

.tab-link__icon {
    width: 24px;
    height: 24px;
}

.tab-link.is-active {
    color: var(--brand-primary, #1d546d);
}

@media (min-width: 768px) {
    .mobile-tab-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
}
