/* ══════════════════════════════════════════════
   CrewLoyal - Navigation
   ══════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #F8FAFC;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}
.nav-brand .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.nav-brand .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    /* The link row scrolls instead of overflowing. Five items at the phone
       font size are wider than a 360pt screen once the brand is allowed for,
       and a nav that clips its last item hides whatever was added most
       recently. min-width:0 lets the flex child actually shrink. */
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}
.nav-links a:hover,
.nav-links a.active {
    color: #E2E8F0;
    background: rgba(30, 41, 59, 0.7);
}
/* Pricing is the one thing we want people to click, so it reads as an action
   rather than another legal link. */
.nav-links a.nav-cta {
    color: #BFDBFE;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-weight: 600;
}
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.32);
    border-color: rgba(59, 130, 246, 0.6);
}

/* Log In / My Account: its own pill at the far right, outside the scrolling
   link row, so it is always on screen. */
.nav-login {
    flex: 0 0 auto;
    margin-left: 8px;
    color: #FFFFFF;
    background: #2563EB;
    border: 1px solid #3B82F6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.nav-login:hover,
.nav-login.active {
    background: #1D4ED8;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
    .nav-inner { padding: 12px 16px; gap: 10px; }
    .nav-brand { font-size: 17px; flex-shrink: 0; }
    .nav-brand .logo-icon { width: 30px; height: 30px; }
    .nav-links a { font-size: 12px; padding: 5px 8px; }
    .nav-links a.nav-cta { padding: 5px 10px; }
    .nav-login { font-size: 12px; padding: 5px 10px; margin-left: 4px; }
}
