/* NEVERMISS-style top bar for Last.hvh - Premium Redesign */
header.header.header--nm {
    position: sticky;
    top: 0;
    z-index: 100000;
    padding: 10px 0 !important;
    background: rgba(3, 7, 18, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

header.header.header--nm > .container {
    max-width: 1240px;
    padding-left: 20px;
    padding-right: 20px;
}

.header--nm .nm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 !important;
    min-height: 48px;
}

/* ==========================================================================
   Logo & Brand Styling (Enhanced & Polished)
   ========================================================================== */
.nm-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nm-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

header.header .nm-brand__logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 180, 255, 0.45) !important;
    background: radial-gradient(circle at 35% 35%, rgba(15, 28, 52, 0.95), rgba(3, 7, 18, 0.98)) !important;
    box-shadow: 0 0 16px rgba(0, 150, 255, 0.28), inset 0 0 8px rgba(0, 200, 255, 0.18) !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nm-brand__name {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 1px;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 170, 255, 0.25);
    transition: all 0.25s ease;
}

.nm-brand__accent {
    color: #00d0ff;
    font-weight: 800;
    text-shadow: 0 0 14px rgba(0, 208, 255, 0.75);
    transition: all 0.25s ease;
}

.nm-brand__link:hover {
    opacity: 1;
}

.nm-brand__link:hover header.header .nm-brand__logo,
.nm-brand__link:hover .nm-brand__logo {
    border-color: rgba(0, 220, 255, 0.85) !important;
    box-shadow: 0 0 24px rgba(0, 200, 255, 0.55), inset 0 0 12px rgba(0, 240, 255, 0.35) !important;
    transform: scale(1.06);
}

.nm-brand__link:hover .nm-brand__name {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.65), 0 0 32px rgba(0, 140, 255, 0.35);
}

.nm-brand__link:hover .nm-brand__accent {
    color: #4be6ff;
    text-shadow: 0 0 20px rgba(0, 208, 255, 1);
}

/* ==========================================================================
   Center Navigation Capsule
   ========================================================================== */
.nm-nav {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 6px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nm-nav__list {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    color: #8f9bb3;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nm-nav__link i {
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nm-nav__link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.nm-nav__link:hover i {
    color: #00d0ff;
    transform: scale(1.1);
}

.nm-nav__link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nm-nav__link.active i {
    color: #00d0ff;
    text-shadow: 0 0 10px rgba(0, 208, 255, 0.5);
}

/* ==========================================================================
   Action Buttons (Cart, Language, Live Support)
   ========================================================================== */
.nm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Cart Button */
header.header .sb-cart-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header.header .sb-cart-btn:hover {
    background: rgba(0, 208, 255, 0.12) !important;
    border-color: rgba(0, 208, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 208, 255, 0.25) !important;
    transform: translateY(-1px);
}

header.header .sb-cart-btn__n {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0099ff, #0066ff);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.8), 0 0 0 2px #030712;
}

/* Language Selector */
header.header .nm-lang .lang-btn {
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header.header .nm-lang .lang-btn:hover,
header.header .lang-switcher.is-open .lang-btn {
    background: rgba(0, 208, 255, 0.1) !important;
    border-color: rgba(0, 208, 255, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(0, 208, 255, 0.2) !important;
    transform: translateY(-1px);
}

/* 24/7 Live Support Button */
.nm-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d6df3 0%, #0d50d4 100%);
    color: #ffffff !important;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 18px rgba(27, 110, 243, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nm-support:hover {
    background: linear-gradient(135deg, #2b7dff 0%, #155eec 100%);
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 26px rgba(27, 110, 243, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nm-support:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(27, 110, 243, 0.4);
}

.nm-support i {
    font-size: 1.15rem;
}

/* Mobile Menu Toggle */
.mobile-menu-open {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-open:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
    .nm-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .nm-support span {
        display: none;
    }
    .nm-support {
        padding: 0;
        width: 40px;
        justify-content: center;
    }
    .nm-brand__name {
        font-size: 1.15rem;
    }
    header.header .nm-brand__logo {
        width: 36px !important;
        height: 36px !important;
    }
}
