/*
 * nr-menu — modern infrastructure-aesthetic main navigation.
 *
 * Overrides the legacy main-menu styling in main.css with a Latitude/
 * Vultr-style top bar:
 *   - Tighter, modern type
 *   - Pill hover states with branded green active accent
 *   - Sharper, darker submenus with backdrop blur + brand glow
 *   - Polished sticky header (dark navy + backdrop blur, not solid black)
 *   - Logo wordmark gets a subtle hover lift
 *
 * Loads on every page (registered via nr_register_theme_assets in
 * functions.php). Specificity tuned to win over main.css without
 * relying on !important except where the legacy rule is too generic
 * to override otherwise (e.g. inline border-radius:17px on submenus).
 */

/* ── Logo: subtle hover lift, snappier transition ────────────────── */
.nr-header .logo > a {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 200ms ease-out;
    will-change: transform;
}
.nr-header .logo > a:hover { transform: translateY(-1px); opacity: 0.92; }
.nr-header .logo > a > img { display: block; }

/* ── Header alignment — keep menu vertically centered with logo ──── */
.nr-header.header__main .header-main { align-items: center; min-height: 56px; }

/* ── Top-level menu links: tighter type, modern weight ──────────── */
.main-menu > ul > li { margin-right: 4px !important; }
.main-menu > ul > li:last-child { margin-right: 0 !important; }
.main-menu > ul > li > a {
    font-family: var(--masterfont, "sofia-pro", system-ui, sans-serif) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: -0.005em;
    line-height: 1 !important;
    height: auto !important;
    padding: 9px 14px !important;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.92) !important;
    transition: background 160ms ease-out, color 160ms ease-out, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.main-menu > ul > li > a:hover,
.main-menu > ul > li > a.active,
.main-menu > ul > li:hover > a {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}
.main-menu > ul > li.current-menu-item > a,
.main-menu > ul > li > a.active {
    color: var(--primary, #14bb60) !important;
    background: rgba(20, 187, 96, 0.10) !important;
}

/* ── Dropdown chevron: SVG-style from border, smaller + animated ── */
.main-menu > ul > li.dropdown { padding-right: 0 !important; }
.main-menu > ul > li.dropdown > a {
    padding-right: 26px !important;
}
.main-menu > ul > li.dropdown > a::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    width: 6px !important;
    height: 6px !important;
    border-style: solid !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    border-width: 0 1.4px 1.4px 0 !important;
    transform: translateY(-70%) rotate(45deg) !important;
    transition: transform 200ms ease-out, border-color 160ms ease-out !important;
}
.main-menu > ul > li.dropdown:hover > a::after,
.main-menu > ul > li.dropdown > a.hoverClass::after {
    transform: translateY(-30%) rotate(225deg) !important;
    border-color: var(--primary, #14bb60) !important;
}
/* Kill the old "blob arrow under hovered tab" — replaced by pill bg */
.main-menu > ul > li.dropdown > a.hoverClass::before { display: none !important; }

/* ── Submenus: dark, sharp, blurred, brand-glow shadow ───────────── */
/* CRITICAL: top:100% (no gap) + padding-top creates a "hover bridge"
   so the cursor can move from the menu link down into the dropdown
   without crossing an empty area that closes the dropdown. */
.main-menu > ul > li > ul {
    top: 100% !important;
    padding: 14px 8px 8px !important; /* top padding doubles as the bridge */
    background: rgba(10, 22, 38, 0.94) !important;
    background: color-mix(in srgb, #0a1626 92%, transparent) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(20, 187, 96, 0.04) !important;
    /* Smooth, snappy reveal */
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease-out, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.main-menu > ul > li:hover > ul,
.main-menu > ul > li.dropdown.hoverClass > ul,
.main-menu > ul > li > a.hoverClass + ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.main-menu > ul > li > ul > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    padding: 10px 12px 10px 32px !important;
    border-radius: 6px !important;
    transition: background 140ms ease-out, color 140ms ease-out !important;
}
.main-menu > ul > li > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--primary, #14bb60) !important;
}
/* Submenu icon dot before each item */
.main-menu > ul > li > ul > li > a::before {
    content: "›" !important;
    font-family: var(--masterfont, "sofia-pro", system-ui, sans-serif) !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: color 140ms ease-out, transform 140ms ease-out !important;
}
.main-menu > ul > li > ul > li > a:hover::before {
    color: var(--primary, #14bb60) !important;
    transform: translateY(-50%) translateX(2px) !important;
}

/* ── Mega-menu: viewport-safe positioning ───────────────────────
 * Legacy positions mega menus with left:50%; transform:translateX(-50%)
 * relative to .main-menu (which is right-aligned via flex). On any
 * viewport narrower than ~1300px that pushes the right side off-screen
 * (we saw items 5+6 of Products clipped). Re-anchor to the parent <li>
 * and cap width to viewport so the menu always fits. */
.main-menu > ul > li.megamenu.dropdown,
.main-menu > ul > li.megatab-menu {
    position: relative !important; /* override legacy position:inherit */
}
.main-menu > ul > li.megamenu > ul,
.main-menu > ul > li.megatab-menu > ul {
    box-sizing: border-box !important;
    background: rgba(10, 22, 38, 0.96) !important;
    background: color-mix(in srgb, #0a1626 95%, transparent) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.35) !important;
}
/* Products mega: anchor to right edge of parent <li> (Products sits
   to the right of the menu bar so this keeps it on-screen). Three
   columns at 32% need ~700px; cap at viewport-32px. Top:100% +
   padding-top:14px gives the same hover-bridge as the regular dropdowns. */
.main-menu > ul > li.megamenu > ul {
    padding: 14px 8px 8px !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    min-width: 0 !important;
    width: 700px !important;
    max-width: calc(100vw - 32px) !important;
}
/* Why-Netrouting mega-tab: anchor to LEFT edge of parent <li> (Why
   Netrouting is leftmost item, so left-anchoring keeps it on-screen).
   Inner two-panel layout (40%/60%) wants ~900px; cap at viewport.
   Use padding-top:14px (NOT margin-top + overflow:hidden) so the
   hover bridge isn't clipped — that was the "first dropdown closes"
   bug. Inner panels still get rounded corners via their own border-radius. */
.main-menu > ul > li.megatab-menu > ul {
    padding: 14px 0 0 0 !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 900px !important;
    max-width: calc(100vw - 32px) !important;
}
/* Inner two-panel wrapper: this is what "looks" rounded; the outer
   <ul> can stay non-clipping for the hover bridge to work. */
.main-menu > ul > li.megatab-menu .tabmenu-wraper {
    border-radius: 8px;
    overflow: hidden;
}
/* On narrow desktops where even the capped width feels cramped, let
   the inner two-panel layout stack more vertically rather than truncate */
@media (max-width: 1100px) {
    .main-menu > ul > li.megatab-menu > ul { width: calc(100vw - 32px) !important; }
}

/* Each item: 2-col grid (icon | text) with a title row and a
   description row pulled from the link's title attribute.
   Pattern matches Latitude.sh: bold title + small grey description. */
.main-menu > ul > li.megamenu > ul > li > a {
    display: grid !important;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    height: auto !important;
    min-height: 78px !important;
    padding: 14px 16px !important;
    transition: background 140ms ease-out !important;
    line-height: 1.3 !important;
    align-items: start !important;
}
.main-menu > ul > li.megamenu > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
}
/* Icon: small monochrome, spans both rows so it vertically centers
   alongside the title+description block */
.main-menu > ul > li.megamenu > ul > li > a > img {
    width: 28px !important;
    height: 28px !important;
    grid-row: 1 / span 2;
    grid-column: 1;
    margin-top: 2px;
    opacity: 0.85;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: filter 180ms ease-out, opacity 180ms ease-out;
}
.main-menu > ul > li.megamenu > ul > li > a:hover > img {
    /* Brand-green tint via filter chain */
    filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(498%) hue-rotate(95deg) brightness(96%) contrast(89%);
    opacity: 1;
}
/* Label = title row */
.main-menu > ul > li.megamenu > ul > li > a > label {
    grid-row: 1;
    grid-column: 2;
    color: rgba(255, 255, 255, 0.95) !important;
    cursor: pointer !important;
    margin: 0;
}
.main-menu > ul > li.megamenu > ul > li > a > label > strong {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: inline; /* legacy display:block split into two lines; collapse */
}
/* Description from title attribute, second grid row */
.main-menu > ul > li.megamenu > ul > li > a::after {
    content: attr(title);
    grid-row: 2;
    grid-column: 2;
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
    letter-spacing: 0;
}

/* ── Tabbed mega-menu inner panels ──────────────────────────────── */
/* Left rail (tabmenu-list): legacy bg #EEF6FF + border-radius 17px on
   top-left, light theme. Force fully dark to match the new aesthetic. */
.megatab-menu .tabmenu-wraper { line-height: normal; }
.megatab-menu .tabmenu-wraper .tabmenu-list {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-radius: 0 !important;
    padding: 14px !important;
}
.megatab-menu .tabmenu-wraper .tabmenu-list li {
    margin: 2px 0 !important;
}
.megatab-menu .tabmenu-wraper .tabmenu-list li a {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    display: block !important;
    transition: background 140ms ease-out, color 140ms ease-out !important;
}
.megatab-menu .tabmenu-wraper .tabmenu-list li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
.megatab-menu .tabmenu-wraper .tabmenu-list li a::before {
    color: rgba(255, 255, 255, 0.45) !important;
    margin-right: 8px !important;
}
.megatab-menu .tabmenu-wraper .tabmenu-list li.active {
    background-color: transparent !important;
    border-radius: 0 !important;
}
.megatab-menu .tabmenu-wraper .tabmenu-list li.active a,
.megatab-menu .tabmenu-wraper .tabmenu-list li.active a:hover,
.megatab-menu .tabmenu-wraper .tabmenu-list li.active a::before {
    background: rgba(20, 187, 96, 0.12) !important;
    color: var(--primary, #14bb60) !important;
}

/* Right panel (tabmenu-container): tabs + content, dark theme */
.megatab-menu .tabmenu-wraper .tabmenu-container {
    padding: 24px !important;
}
.megatab-menu .menutab__level__01 > ul {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.megatab-menu .menutab__level__01 > ul > li {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    cursor: pointer;
    transition: color 140ms ease-out !important;
}
.megatab-menu .menutab__level__01 > ul > li:hover { color: rgba(255, 255, 255, 0.92) !important; }
.megatab-menu .menutab__level__01 > ul > li.resp-tab-active {
    color: var(--primary, #14bb60) !important;
}
.megatab-menu .menutab__level__01 > ul > li.resp-tab-active::after {
    background-color: var(--primary, #14bb60) !important;
}
.megatab-menu .menutab__level__02 > ul > li {
    color: rgba(255, 255, 255, 0.78) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 14px !important;
    padding: 12px 8px !important;
    transition: color 140ms ease-out !important;
}
.megatab-menu .menutab__level__02 > ul > li:hover { color: #ffffff !important; }
.megatab-menu .menutab__level__02 > ul > li::before {
    color: rgba(255, 255, 255, 0.4) !important;
}
.megatab-menu .menutab__level__02 > ul > li.resp-tab-active,
.megatab-menu .menutab__level__02 > ul > li.resp-tab-active::before {
    color: var(--primary, #14bb60) !important;
}
.megatab-menu .menutab__level__02 .resp-tabs-container img {
    border-radius: 8px !important;
}

/* ── Kill inherited white bg from responsive-tabs library ───────
 * main.css ships generic .resp-tabs-container / .resp-tab-active rules
 * with background-color:#fff that bleed into the mega-tab. Override
 * everywhere inside the menu so the panels stay dark. */
.megatab-menu .resp-tabs-container,
.megatab-menu .resp-tabs-container.resp-vtabs,
.megatab-menu .resp-vtabs .resp-tabs-container,
.megatab-menu .resp-tab-content,
.megatab-menu .resp-tab-content-active,
.megatab-menu .resp-tab-active,
.megatab-menu li.resp-tab-active {
    background: transparent !important;
    background-color: transparent !important;
}
/* ── Country locations (Why Netrouting > Locations panel) ───────
 * Legacy: each location is a "card" with white bg + border, plus a
 * big SVG country-silhouette map on the right. Modernise to a clean
 * two-column layout: simple text list on the left, smaller subtle
 * map on the right that fades in. */
.megatab-menu .country-locations {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 16px 0 0 !important;
}
.megatab-menu .country-locations .tab-location-buttons {
    flex: 1 1 50% !important;
    background: transparent !important;
}
.megatab-menu .country-locations .tab-location-buttons ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.megatab-menu .country-locations .tab-location-buttons ul li {
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
}
.megatab-menu .country-locations .tab-location-buttons ul li:last-child {
    border-bottom: none !important;
}
.megatab-menu .country-locations .tab-location-buttons ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    background: transparent !important;
    border-radius: 6px !important;
    transition: background 140ms ease-out, color 140ms ease-out !important;
    text-decoration: none !important;
}
.megatab-menu .country-locations .tab-location-buttons ul li a:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}
.megatab-menu .country-locations .tab-location-buttons ul li a.tablinks.active,
.megatab-menu .country-locations .tab-location-buttons ul li a.active {
    background: rgba(20, 187, 96, 0.10) !important;
    color: var(--primary, #14bb60) !important;
}
/* Subtle location-pin SVG before each city name */
.megatab-menu .country-locations .tab-location-buttons ul li a::before {
    content: "";
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/></svg>");
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    opacity: 0.55;
}
.megatab-menu .country-locations .tab-location-buttons ul li a:hover::before { opacity: 1; }

/* Right-side maps: smaller, subtler, transparent bg, gentle drop */
.megatab-menu .country-locations .tab-location-images {
    flex: 1 1 50% !important;
    background: transparent !important;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.megatab-menu .country-locations .tab-location-images .tabcontent {
    background: transparent !important;
    padding: 0 !important;
}
.megatab-menu .country-locations .tab-location-images .tabcontent img {
    max-width: 100% !important;
    max-height: 220px !important;
    object-fit: contain !important;
    opacity: 0.85;
    filter: drop-shadow(0 8px 24px rgba(20, 187, 96, 0.12));
    transition: opacity 220ms ease-out;
}

/* ─────────────────────────────────────────────────────────────────
 * NEW STRUCTURED MEGA MENU (.nr-mega)
 * Replaces the legacy .megamenu / .megatab-menu with a clean
 * column-based layout: 3 or 4 cols of [title + description] links
 * grouped under small-caps section headers. Latitude.sh pattern.
 * ───────────────────────────────────────────────────────────────── */
.main-menu > ul > li.nr-mega.dropdown {
    position: relative !important; /* anchor the panel to the parent <li> */
}
/* Container panel — same dark glass + green-glow shadow as the
   legacy megamenu, but tighter and scoped to .nr-mega. */
.main-menu > ul > li.nr-mega > ul {
    list-style: none;
    margin: 0;
    box-sizing: border-box !important;
    background: rgba(10, 22, 38, 0.96) !important;
    background: color-mix(in srgb, #0a1626 95%, transparent) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(20, 187, 96, 0.04) !important;
    /* Hover-bridge via padding-top: cursor crosses no empty gap */
    padding: 18px 18px 14px !important;
    top: 100% !important;
    width: clamp(720px, 80vw, 980px) !important;
    max-width: calc(100vw - 32px) !important;
    /* Reveal animation */
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease-out, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.main-menu > ul > li.nr-mega:hover > ul,
.main-menu > ul > li.nr-mega.hoverClass > ul,
.main-menu > ul > li.nr-mega > a.hoverClass + ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* Anchor: Products is leftmost-of-megas → align panel to LEFT of <li>.
   Solutions and Developers can stay centered or shifted right depending
   on viewport width — use a slight left shift so they visually center
   under the menu label without overflowing right. */
.main-menu > ul > li.nr-mega > ul {
    left: 0 !important;
    right: auto !important;
    transform-origin: top left;
}
/* On narrower screens: solutions/devs need to shift left to stay on screen */
@media (max-width: 1280px) {
    .main-menu > ul > li.nr-mega:nth-child(2) > ul,
    .main-menu > ul > li.nr-mega:nth-child(3) > ul {
        left: auto !important;
        right: 0 !important;
    }
}

/* Grid: 3 or 4 columns */
.nr-mega-grid {
    display: grid !important;
    gap: 24px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.nr-mega-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nr-mega-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
    .nr-mega-grid--3,
    .nr-mega-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Column = section: header + link list */
.nr-mega-col {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.nr-mega-col__title {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.10em !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 0 8px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nr-mega-col__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* CRITICAL: legacy main.css line 360 has .main-menu>ul>li>ul>li>ul{display:none;}
       which matches my .nr-mega-col__list and hides every link in every
       column. Force display flex to override. */
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    position: static !important; /* legacy submenu rule forces absolute */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}
.nr-mega-col__list li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}
.nr-mega-col__list li a {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    transition: background 140ms ease-out, transform 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: auto !important;
    position: relative !important;
}
.nr-mega-col__list li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
/* Legacy main.css line 391 puts a font-icon glyph (\e90c) before
   every submenu link. Kill it inside .nr-mega so our clean Latitude
   layout isn't littered with stray icons. */
.nr-mega-col__list li a::before {
    content: none !important;
    display: none !important;
}
.nr-mega-link__title {
    display: block;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.3;
}
.nr-mega-link__desc {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.50) !important;
    font-weight: 400 !important;
    font-size: 12.5px !important;
    line-height: 1.35;
}
.nr-mega-col__list li a:hover .nr-mega-link__title { color: #ffffff !important; }
.nr-mega-col__list li a:hover .nr-mega-link__desc { color: rgba(255, 255, 255, 0.72) !important; }

/* Featured column: subtle green-tinted bg + highlighted accent link */
.nr-mega-col--featured {
    background: linear-gradient(160deg, rgba(20, 187, 96, 0.06), rgba(20, 187, 96, 0));
    border: 1px solid rgba(20, 187, 96, 0.14);
    border-radius: 8px;
    padding: 14px 12px !important;
}
.nr-mega-col--featured .nr-mega-col__title {
    color: rgba(20, 187, 96, 0.85) !important;
    border-bottom-color: rgba(20, 187, 96, 0.20);
}
.nr-mega-link--accent {
    background: rgba(20, 187, 96, 0.10) !important;
    border: 1px solid rgba(20, 187, 96, 0.20);
}
.nr-mega-link--accent .nr-mega-link__title {
    color: var(--primary, #14bb60) !important;
}
.nr-mega-link--accent:hover {
    background: rgba(20, 187, 96, 0.16) !important;
    border-color: rgba(20, 187, 96, 0.40);
}
.nr-mega-link--accent .nr-mega-link__title::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary, #14bb60);
    margin-right: 8px;
    vertical-align: 2px;
    box-shadow: 0 0 0 3px rgba(20, 187, 96, 0.20);
}

/* ── Reseller CTA: dominant, always visible ───────────────────────
 * Resellers are the primary market — this stays anchored at the right
 * edge of the header, never folded into a dropdown. Designed to be
 * the highest-contrast element in the header so the eye lands on it. */
.nr-header__reseller-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding: 9px 16px;
    font-family: var(--masterfont, "sofia-pro", system-ui, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff !important;
    background: linear-gradient(135deg, #14bb60 0%, #10a153 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow:
        0 4px 12px rgba(20, 187, 96, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition:
        transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 200ms ease-out,
        background 200ms ease-out;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.nr-header__reseller-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #18d96e 0%, #14bb60 100%);
    box-shadow:
        0 6px 18px rgba(20, 187, 96, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}
.nr-header__reseller-cta:active { transform: translateY(0); }
/* Reseller dot culled — header dot inventory was too busy. The pill itself
 * (gradient + arrow) carries the CTA emphasis. Kept in markup for rollback. */
.nr-header__reseller-dot {
    display: none;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    animation: nr-reseller-pulse 2.4s ease-in-out infinite;
}
@keyframes nr-reseller-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05); }
}
.nr-header__reseller-arrow {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nr-header__reseller-cta:hover .nr-header__reseller-arrow {
    transform: translateX(2px);
}

/* In sticky mode the CTA tightens slightly to match the smaller logo */
.nr-header.sticky-header .nr-header__reseller-cta {
    padding: 7px 14px;
    font-size: 13.5px;
}
/* Mobile: hide the long-form CTA, surface a compact icon-only badge */
@media (max-width: 991.98px) {
    .nr-header__reseller-cta {
        padding: 7px 10px;
        font-size: 12px;
        margin-left: 6px;
    }
    .nr-header__reseller-arrow { display: none; }
}
@media (max-width: 480px) {
    .nr-header__reseller-label,
    .nr-header__reseller-arrow { display: none; }
    .nr-header__reseller-cta { padding: 8px; }
    .nr-header__reseller-cta::after { content: "Resellers"; }
}
@media (prefers-reduced-motion: reduce) {
    .nr-header__reseller-dot { animation: none; }
}

/* ── Dashboard CTA (legacy "Login" link) ─────────────────────────
 * Modernised: relabel to "Dashboard" via CSS (the legacy text "Login"
 * lives in stored theme HTML), hide the dated headset icon, and use
 * a ghost-style outline button that complements the green Reseller
 * pill rather than competing with it. */
.main-menu > ul > li > a.white-solid,
.main-menu > ul > li > a.signupBtn,
.nr-header a.signupBtn,
.nr-header .signupBtn {
    /* Ghost / outline style — keeps focus on the Reseller CTA */
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    /* Hide the source "Login" text — surfaced as "Dashboard" via ::after.
       font-size: 0 collapses the original text node; ::after rewrites it. */
    font-size: 0 !important;
    transition: background 160ms ease-out, color 160ms ease-out, transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease-out !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
/* The "Dashboard" label */
.main-menu > ul > li > a.white-solid::after,
.main-menu > ul > li > a.signupBtn::after,
.nr-header a.signupBtn::after,
.nr-header .signupBtn::after {
    content: "Dashboard";
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    transition: color 160ms ease-out;
}
/* Hide the legacy headset icon (too 2023) */
.main-menu > ul > li > a.white-solid > .icon-support,
.main-menu > ul > li > a.white-solid > [class^="icon-"],
.nr-header a.signupBtn > .icon-support,
.nr-header a.signupBtn > [class^="icon-"] {
    display: none !important;
}
.main-menu > ul > li > a.white-solid:hover,
.main-menu > ul > li > a.signupBtn:hover,
.nr-header a.signupBtn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    transform: translateY(-1px);
}
.main-menu > ul > li > a.white-solid:hover::after,
.main-menu > ul > li > a.signupBtn:hover::after,
.nr-header a.signupBtn:hover::after {
    color: #ffffff;
}
/* Sticky variant: tighten to match menu density.
   IMPORTANT: re-assert font-size:0 on the .white-solid in sticky mode
   too — the generic .nr-header.sticky-header .main-menu > ul > li > a
   rule sets font-size:14px which would expose the source "Login" text
   alongside our ::after "Dashboard" → looked like "Login Dashboard". */
.nr-header.sticky-header .main-menu > ul > li > a.white-solid,
.nr-header.sticky-header .main-menu > ul > li > a.signupBtn {
    padding: 7px 14px !important;
    font-size: 0 !important; /* keep the source text collapsed */
}
.nr-header.sticky-header .main-menu > ul > li > a.white-solid::after,
.nr-header.sticky-header .main-menu > ul > li > a.signupBtn::after { font-size: 13px; }

/* ── Sticky header: dark navy + blur, not solid black ───────────── */
.nr-header.sticky-header {
    background-color: rgba(10, 22, 38, 0.85) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    line-height: normal !important;
    padding: 8px 0 !important;
}
.nr-header.sticky-header .header-main { min-height: 48px; }
.nr-header.sticky-header .logo img { height: 36px !important; }
.nr-header.sticky-header .main-menu > ul > li > a {
    padding: 7px 12px !important;
    font-size: 14px !important;
}

/* ── Mobile menu polish ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    a.menu-toggle {
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 6px !important;
        backdrop-filter: blur(8px);
        transition: background 160ms ease-out;
    }
    a.menu-toggle:hover { background: rgba(20, 187, 96, 0.16) !important; }
    a.menu-toggle span.line { background: #ffffff !important; }
    .mobile-menu {
        background-color: rgba(10, 22, 38, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .mobile-menu ul li {
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    .mobile-menu ul li a {
        font-weight: 500 !important;
        font-size: 15px !important;
        letter-spacing: -0.005em;
    }
    .mobile-menu ul.menu-list > li a.open,
    .mobile-menu ul.menu-list > li > a:hover {
        background: rgba(20, 187, 96, 0.18) !important;
        color: var(--primary, #14bb60) !important;
    }
}

/* ── Reduced-motion: snap, don't slide ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .nr-header .logo > a,
    .main-menu > ul > li > a,
    .main-menu > ul > li > ul,
    .main-menu > ul > li > ul > li > a,
    .main-menu > ul > li.megamenu > ul > li > a,
    .nr-header.sticky-header { transition: none !important; }
    .main-menu > ul > li > ul { transform: none !important; }
}
