/* ==========================================================================
   TargetNXT — Premium Header Redesign (design layer only)
   Loaded after style.min.css. Restyles the existing header markup:
   announcement bar, main header, mega menus, search modal, mobile drawer.
   No markup / content / behaviour changes — remove this file to revert.
   ========================================================================== */

:root {
    --hx-ink: #0b1620;
    --hx-navy: #193441;
    --hx-navy-deep: #0f222c;
    --hx-red: #F91E1E;
    --hx-red-deep: #d10f16;
    --hx-red-soft: #ff6b5e;
    --hx-tint: #fff1f1;
    --hx-text: #0f172a;
    --hx-text-2: #334155;
    --hx-muted: #64748b;
    --hx-faint: #94a3b8;
    --hx-line: rgba(15, 23, 42, 0.08);
    --hx-line-2: #eef2f6;
    --hx-surface: #f8fafc;
    --hx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --hx-shadow-pop: 0 32px 72px -24px rgba(15, 34, 44, 0.38), 0 12px 28px -14px rgba(15, 34, 44, 0.18);
}

/* --------------------------------------------------------------------------
   1. Announcement bar — contacts left · announcement centre · close right
   -------------------------------------------------------------------------- */
.ep-bar {
    max-height: 64px;
    background:
        radial-gradient(560px 90px at 50% -40%, rgba(249, 30, 30, 0.22), transparent 70%),
        linear-gradient(90deg, #0a141b 0%, #112029 50%, #0a141b 100%);
    border-bottom: 0;
}

.ep-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(249, 30, 30, 0.6) 35%, rgba(249, 30, 30, 0.6) 65%, rgba(255, 255, 255, 0.04) 100%);
    pointer-events: none;
}

.ep-bar-inner {
    max-width: 1380px;
    height: 42px;
    margin: 0 auto;
    padding: 0 56px 0 28px;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

/* Invisible spacer mirrors the contacts block so the announcement stays centred */
.ep-bar-inner::after {
    content: '';
    min-width: 0;
}

/* Contacts */
.ep-bar-contacts {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ep-bar-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.8) !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.ep-bar-contact + .ep-bar-contact {
    position: relative;
    margin-left: 6px;
}

.ep-bar-contact + .ep-bar-contact::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    width: 1px;
    height: 16px;
    margin-top: -8px;
    background: rgba(255, 255, 255, 0.14);
}

.ep-bar-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff8a80;
    font-size: 0.68rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ep-bar-contact:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
}

.ep-bar-contact:hover .ep-bar-contact-icon {
    background: var(--hx-red);
    border-color: var(--hx-red);
    color: #ffffff;
}

/* Announcement — title + button joined into one capsule */
.ep-bar-text {
    justify-self: end;
    min-width: 0;
    height: 30px;
    gap: 10px;
    padding: 0 16px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09));
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.8);
    letter-spacing: 0.01em;
}

.ep-bar-text strong {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ep-bar-dot {
    width: 7px;
    height: 7px;
    background: #ff4d42;
    box-shadow: 0 0 10px rgba(255, 77, 66, 0.9);
}

.ep-bar-dot::before {
    inset: -4px;
}

.ep-bar-btn {
    flex-shrink: 0;
    height: 30px;
    margin-left: -14px;
    padding: 0 14px 0 13px;
    border: 1px solid var(--hx-red);
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #ff3838 0%, #e3060f 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -8px rgba(249, 30, 30, 0.9);
}

.ep-bar-btn:hover {
    background: linear-gradient(180deg, #ff4545 0%, #cf0610 100%);
    color: #ffffff;
    border-color: #cf0610;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -6px rgba(249, 30, 30, 1);
}

.ep-bar-close {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.15s ease, background 0.15s ease;
}

.ep-bar-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.ep-bar-contact:focus-visible,
.ep-bar-btn:focus-visible,
.ep-bar-close:focus-visible {
    outline-offset: 1px !important;
}

/* Contacts collapse to icons when space gets tight */
@media (max-width: 1360px) {
    .ep-bar-contact-text {
        display: none;
    }

    .ep-bar-contact {
        padding: 4px;
    }

    .ep-bar-contact + .ep-bar-contact {
        margin-left: 2px;
    }

    .ep-bar-contact + .ep-bar-contact::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .ep-bar-inner {
        padding: 0 44px 0 12px;
        gap: 10px;
    }

    .ep-bar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .ep-bar-inner::after {
        display: none;
    }

    .ep-bar-dot {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   2. Header shell (full-width at top, floating glass capsule when sticky)
   -------------------------------------------------------------------------- */
.tnxt-header-stack {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hx-line);
    box-shadow: 0 10px 30px -22px rgba(15, 34, 44, 0.35);
}

.tnxt-header-stack .tnxt-header {
    position: relative;
}

.tnxt-header-stack .tnxt-header-inner {
    max-width: 1380px;
    min-height: 72px;
    padding: 12px 28px;
    gap: 20px;
}

/* Sticky: the stack becomes a transparent rail; the header floats as a capsule */
.tnxt-header-stack.is-sticky {
    background: transparent !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none !important;
    padding: 10px 16px 0;
    pointer-events: none;
}

.tnxt-header-stack.is-sticky .tnxt-header {
    pointer-events: auto;
    max-width: 1380px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow:
        0 22px 48px -22px rgba(15, 34, 44, 0.34),
        0 2px 8px rgba(15, 34, 44, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: hxFloatIn 0.42s var(--hx-ease) both;
}

.tnxt-header-stack.is-sticky .tnxt-header-inner {
    min-height: 62px;
    padding: 8px 10px 8px 22px;
}

@keyframes hxFloatIn {
    from {
        opacity: 0.4;
        transform: translateY(-14px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Logo */
.tnxt-header-stack .tnxt-header-logo img {
    height: 50px;
    transition: transform 0.3s var(--hx-ease), opacity 0.2s ease;
}

.tnxt-header-stack .tnxt-header-logo:hover img {
    transform: scale(1.03);
}

.tnxt-header-stack.is-sticky .tnxt-header-logo img {
    height: 44px;
}

/* --------------------------------------------------------------------------
   3. Primary navigation (segmented glass tray)
   -------------------------------------------------------------------------- */
.tnxt-header .tnxt-nav-menu-wrap {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.85), rgba(248, 250, 252, 0.85));
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 4px;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tnxt-header .nav-menu {
    gap: 2px;
}

.tnxt-header .nav-link {
    position: relative;
    padding: 9px 15px;
    color: var(--hx-text-2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: 999px;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tnxt-header .nav-link .icon {
    font-size: 0.8rem;
    color: var(--hx-faint);
}

.tnxt-header .nav-link .arrow-down {
    font-size: 0.62rem;
    opacity: 0.55;
    transition: transform 0.3s var(--hx-ease), opacity 0.2s ease;
}

.tnxt-header .nav-item:hover > .nav-link,
.tnxt-header .nav-link.active {
    background: #ffffff;
    color: var(--hx-navy-deep) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px -6px rgba(15, 34, 44, 0.22);
}

.tnxt-header .nav-item:hover > .nav-link .icon,
.tnxt-header .nav-link.active .icon {
    color: var(--hx-red);
}

.tnxt-header .nav-item:hover > .nav-link .arrow-down {
    opacity: 1;
}

.tnxt-header .nav-link:focus-visible {
    outline: 2px solid rgba(249, 30, 30, 0.55);
    outline-offset: 2px;
}

/* Invisible hover bridge so the pointer can travel from the link into the panel */
.tnxt-header .nav-item.has-mega > .nav-link::after,
.tnxt-header .nav-item.has-grid-dropdown > .nav-link::after {
    content: '';
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    height: 34px;
}

/* Trending item: gradient-ring pill with a live pulse */
.tnxt-header .nav-link.nav-link-trending {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(110deg, #fb7185, #F91E1E 45%, #ff8a3d) border-box !important;
    border: 1.5px solid transparent !important;
    padding: 7.5px 16px 7.5px 14px !important;
    box-shadow: 0 6px 16px -8px rgba(249, 30, 30, 0.45) !important;
}

.tnxt-header .nav-link.nav-link-trending::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hx-red);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(249, 30, 30, 0.6);
    animation: hxLivePulse 2s ease-out infinite;
}

@keyframes hxLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 30, 30, 0.55);
    }

    70%,
    100% {
        box-shadow: 0 0 0 7px rgba(249, 30, 30, 0);
    }
}

.tnxt-header .nav-link-trending .icon-trending i,
.tnxt-header .nav-link-trending .label-trending,
.tnxt-header .nav-link-trending .arrow-down {
    background: linear-gradient(90deg, #e11d48 0%, #F91E1E 35%, #ff6a3d 65%, #e11d48 100%) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.tnxt-header .nav-item-trending:hover > .nav-link-trending,
.tnxt-header .nav-item-trending.active > .nav-link-trending {
    background:
        linear-gradient(#fff6f6, #fff6f6) padding-box,
        linear-gradient(110deg, #fb7185, #F91E1E 45%, #ff8a3d) border-box !important;
    box-shadow: 0 10px 22px -10px rgba(249, 30, 30, 0.55) !important;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Dropdown panels — shared motion & surface
   -------------------------------------------------------------------------- */
.tnxt-header .mega-menu,
.tnxt-header .grid-dropdown-menu {
    top: calc(100% + 6px) !important;
    border: 1px solid var(--hx-line);
    border-top: 1px solid var(--hx-line);
    border-radius: 22px;
    box-shadow: var(--hx-shadow-pop);
    transform: translateX(-50%) translateY(12px) scale(0.985);
    transform-origin: 50% 0;
    transition:
        opacity 0.2s ease,
        transform 0.32s var(--hx-ease),
        visibility 0s linear 0.2s;
}

.tnxt-header .nav-item:hover > .mega-menu,
.tnxt-header .nav-item:hover > .grid-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0s;
}

/* --------------------------------------------------------------------------
   5. Data Solutions mega menu — "Category Deck"
      Dark top band of category tiles | one white sheet of 4 columns | dark CTA strip
   -------------------------------------------------------------------------- */
.tnxt-header .mega-menu {
    width: min(1240px, 97vw);
    background: #f4f6fa;
}

.tnxt-header .mega-menu::before {
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--hx-red) 30%, var(--hx-red-soft) 50%, var(--hx-red) 70%, transparent 100%);
    opacity: 0.9;
}

/* Category tabs — simple underline tab bar */
.tnxt-header .mega-menu .tabs-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-bottom: 1px solid #e8edf3;
    border-radius: 0;
    background: #ffffff;
}

.tnxt-header .mega-menu .tabs-header .tab-btn {
    position: relative;
    flex: 1 1 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 16px 10px 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hx-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    box-shadow: none;
    transform: none;
    transition: color 0.2s ease;
}

.tnxt-header .mega-menu .tabs-header .tab-btn i {
    width: auto;
    height: auto;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--hx-faint);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.tnxt-header .mega-menu .tabs-header .tab-btn::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--hx-red);
    transform: scaleX(0);
    transition: transform 0.3s var(--hx-ease);
}

.tnxt-header .mega-menu .tabs-header .tab-btn:hover {
    background: transparent;
    color: var(--hx-text);
    transform: none;
}

.tnxt-header .mega-menu .tabs-header .tab-btn:hover i {
    color: var(--hx-text-2);
}

.tnxt-header .mega-menu .tabs-header .tab-btn.active {
    background: transparent;
    color: var(--hx-text);
    font-weight: 700;
    box-shadow: none;
}

.tnxt-header .mega-menu .tabs-header .tab-btn.active i {
    background: none;
    box-shadow: none;
    color: var(--hx-red);
}

.tnxt-header .mega-menu .tabs-header .tab-btn.active::after {
    transform: scaleX(1);
}

/* Content stage */
.tnxt-header .mega-menu .tab-content {
    padding: 16px;
}

.tnxt-header .mega-menu .content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 30px -24px rgba(15, 34, 44, 0.35);
    overflow: hidden;
}

.tnxt-header .mega-menu .content-column {
    padding: 18px 18px 14px;
    border-left: 1px solid #eef2f6;
    transition: background 0.3s ease;
}

.tnxt-header .mega-menu .content-column:first-child {
    border-left: 0;
}

.tnxt-header .mega-menu .content-column:hover {
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 70%);
}

.tnxt-header .mega-menu .tab-content.active .content-column {
    animation: hxRise 0.5s var(--hx-ease) both;
}

.tnxt-header .mega-menu .tab-content.active .content-column:nth-child(2) {
    animation-delay: 0.05s;
}

.tnxt-header .mega-menu .tab-content.active .content-column:nth-child(3) {
    animation-delay: 0.1s;
}

.tnxt-header .mega-menu .tab-content.active .content-column:nth-child(4) {
    animation-delay: 0.15s;
}

@keyframes hxRise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tnxt-header .mega-menu .col-title {
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0 0 14px;
    border-bottom: 0;
    background: linear-gradient(90deg, var(--hx-red), var(--hx-red-soft)) left bottom / 30px 2px no-repeat;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    color: var(--hx-text);
    transition: background-size 0.35s var(--hx-ease);
}

.tnxt-header .mega-menu .content-column:hover .col-title {
    background-size: 64px 2px;
}

.tnxt-header .mega-menu .col-title i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff4f4, #ffe3e3);
    box-shadow: inset 0 0 0 1px rgba(249, 30, 30, 0.12);
    color: var(--hx-red);
    font-size: 0.8rem;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tnxt-header .mega-menu .content-column:hover .col-title i {
    background: linear-gradient(140deg, #ff4b40, #d70a0a);
    color: #ffffff;
    box-shadow: 0 8px 16px -8px rgba(249, 30, 30, 0.95);
}

.tnxt-header .mega-menu .content-column li {
    margin: 0;
}

.tnxt-header .mega-menu .content-column a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -8px;
    padding: 6px 8px 6px 18px;
    border-radius: 9px;
    color: var(--hx-text-2);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    transition: background 0.18s ease, color 0.18s ease, padding 0.25s var(--hx-ease);
}

.tnxt-header .mega-menu .content-column a::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: #cbd5e1;
    font-size: 0;
    transition: background 0.2s ease, transform 0.25s var(--hx-ease);
}

.tnxt-header .mega-menu .content-column a::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.64rem;
    color: var(--hx-red);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.25s var(--hx-ease);
}

.tnxt-header .mega-menu .content-column a:hover {
    background: #fff4f4;
    color: var(--hx-red-deep);
    padding-left: 21px;
    transform: none;
}

.tnxt-header .mega-menu .content-column a:hover::before {
    background: var(--hx-red);
    transform: scale(1.3);
}

.tnxt-header .mega-menu .content-column a:hover::after {
    opacity: 1;
    transform: none;
}

/* CTA strip */
.tnxt-header .tnxt-mega-footer {
    margin-top: 12px;
    padding: 10px 10px 10px 18px;
    gap: 16px;
    border: 0;
    border-radius: 16px;
    background:
        radial-gradient(360px 120px at 100% 50%, rgba(249, 30, 30, 0.3), transparent 70%),
        linear-gradient(90deg, #15262f 0%, #0c171e 100%);
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.84rem;
}

.tnxt-header .tnxt-mega-footer .mega-foot-text {
    gap: 10px;
}

.tnxt-header .tnxt-mega-footer .mega-foot-text i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ff8a80 !important;
    font-size: 0.7rem;
}

.tnxt-header .tnxt-mega-footer .mega-foot-cta {
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(180deg, #ff3b3b, #e00b14);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px rgba(249, 30, 30, 0.8);
    transition: transform 0.25s var(--hx-ease), box-shadow 0.25s ease;
}

.tnxt-header .tnxt-mega-footer .mega-foot-cta:hover {
    color: #ffffff;
    transform: translateX(3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 22px -8px rgba(249, 30, 30, 0.95);
}

/* --------------------------------------------------------------------------
   6. Trending USA Markets — same language as Data Solutions
      Dark rail (Main Trends + quick links) | light stage with white list cards
   -------------------------------------------------------------------------- */
.tnxt-header .grid-dropdown-menu.trends-dropdown {
    width: min(1120px, 96vw);
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: #f4f6fa;
    border: 1px solid var(--hx-line);
    border-top: 1px solid var(--hx-line);
    border-radius: 22px;
    box-shadow: var(--hx-shadow-pop);
}

.tnxt-header .grid-dropdown-menu.trends-dropdown::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hx-red) 0%, var(--hx-red-soft) 20%, transparent 60%);
    opacity: 0.9;
}

/* Rail */
.tnxt-header .trends-top-bar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 18px 12px;
    background:
        radial-gradient(260px 220px at 0% 100%, rgba(249, 30, 30, 0.22), transparent 70%),
        radial-gradient(200px 160px at 100% 0%, rgba(56, 189, 248, 0.07), transparent 70%),
        linear-gradient(180deg, #15262f 0%, #0b151c 100%);
}

.tnxt-header .trends-main-badge {
    order: -1;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 10px;
    padding: 10px 12px 10px 10px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: var(--hx-text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.04);
    position: relative;
}

.tnxt-header .trends-main-badge::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 22px;
    margin-top: -11px;
    border-radius: 0 4px 4px 0;
    background: var(--hx-red);
    box-shadow: 0 0 12px rgba(249, 30, 30, 0.8);
}

.tnxt-header .trends-main-badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, #ff4b40, #d70a0a);
    color: #ffffff;
    font-size: 0.86rem;
    box-shadow: 0 8px 16px -8px rgba(249, 30, 30, 0.95);
}

.tnxt-header .trends-top-pill {
    flex: none;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 9px 12px 9px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: rgba(226, 232, 240, 0.78) !important;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tnxt-header .trends-top-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ff8a80;
    font-size: 0.86rem;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.tnxt-header .trends-top-pill::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.3s var(--hx-ease);
}

.tnxt-header .trends-top-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
    color: #ffffff !important;
    transform: none;
    box-shadow: none;
}

.tnxt-header .trends-top-pill:hover i {
    background: linear-gradient(140deg, #ff4b40, #d70a0a);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 16px -8px rgba(249, 30, 30, 0.95);
}

.tnxt-header .trends-top-pill:hover::after {
    opacity: 1;
    transform: none;
}

/* Stage */
.tnxt-header .trends-bottom-box {
    min-width: 0;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: none;
}

.tnxt-header .trends-box-heading {
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: linear-gradient(90deg, #ffffff 0%, #fff6f6 100%);
    color: var(--hx-text);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.tnxt-header .trends-box-heading::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hx-red);
    animation: hxLivePulse 2s ease-out infinite;
}

.tnxt-header .trends-red-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tnxt-header .trends-red-pill {
    min-height: 58px;
    padding: 10px 12px 10px 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -20px rgba(15, 34, 44, 0.3);
    color: var(--hx-text) !important;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--hx-ease);
}

.tnxt-header .trends-red-pill,
.tnxt-header .trends-red-pill:hover {
    color: var(--hx-text) !important;
}

.tnxt-header .trends-red-pill-left {
    gap: 12px;
    overflow: visible;
}

.tnxt-header .trends-red-pill-left i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #fff4f4, #ffe3e3);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(249, 30, 30, 0.12);
    color: var(--hx-red);
    font-size: 0.86rem;
    opacity: 1;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tnxt-header .trends-red-pill-title {
    color: var(--hx-text-2);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    transition: color 0.2s ease;
}

.tnxt-header .trends-red-pill-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--hx-faint);
    font-size: 0.56rem;
    opacity: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--hx-ease);
}

.tnxt-header .trends-red-pill:hover {
    background: #ffffff;
    border-color: rgba(249, 30, 30, 0.22);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 22px 40px -22px rgba(249, 30, 30, 0.4);
    transform: translateY(-2px);
}

.tnxt-header .trends-red-pill:hover .trends-red-pill-left i {
    background: linear-gradient(140deg, #ff4b40, #d70a0a);
    color: #ffffff;
    box-shadow: 0 8px 16px -8px rgba(249, 30, 30, 0.95);
}

.tnxt-header .trends-red-pill:hover .trends-red-pill-title {
    color: var(--hx-red-deep);
}

.tnxt-header .trends-red-pill:hover .trends-red-pill-chevron {
    background: var(--hx-red);
    color: #ffffff;
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   7. Resources — same language as Data Solutions (mirrored)
      Light stage with white resource cards | dark promo rail on the right
   -------------------------------------------------------------------------- */
.tnxt-header .grid-dropdown-menu.resources-dropdown {
    width: min(960px, 95vw);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    grid-template-rows: auto 1fr;
    background: #f4f6fa;
}

.tnxt-header .grid-dropdown-menu.resources-dropdown::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hx-red) 0%, var(--hx-red-soft) 20%, transparent 60%);
    opacity: 0.9;
}

.tnxt-header .grid-dropdown-header {
    grid-column: 1;
    grid-row: 1;
    gap: 10px;
    margin: 18px 18px 0;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: linear-gradient(90deg, #ffffff 0%, #fff6f6 100%);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hx-text);
}

.tnxt-header .grid-dropdown-header i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffe7e7;
    font-size: 0.72rem;
}

.tnxt-header .resources-dropdown-wrap {
    display: contents;
}

.tnxt-header .resources-grid-left {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    padding: 14px 18px 18px;
}

.tnxt-header .grid-dropdown-card {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 62px;
    padding: 10px 40px 10px 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -20px rgba(15, 34, 44, 0.3);
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--hx-ease);
}

.tnxt-header .grid-dropdown-card::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--hx-faint);
    font-size: 0.56rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--hx-ease);
}

.tnxt-header .grid-dropdown-card:hover {
    background: #ffffff;
    border-color: rgba(249, 30, 30, 0.22);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 22px 40px -22px rgba(249, 30, 30, 0.4);
    transform: translateY(-2px);
}

.tnxt-header .grid-dropdown-card:hover::after {
    background: var(--hx-red);
    color: #ffffff;
    transform: translateX(2px);
}

.tnxt-header .grid-dropdown-card .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #fff4f4, #ffe3e3);
    box-shadow: inset 0 0 0 1px rgba(249, 30, 30, 0.12);
    color: var(--hx-red);
    font-size: 0.9rem;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tnxt-header .grid-dropdown-card:hover .card-icon {
    background: linear-gradient(140deg, #ff4b40, #d70a0a);
    color: #ffffff;
    box-shadow: 0 8px 16px -8px rgba(249, 30, 30, 0.95);
    transform: none;
}

.tnxt-header .grid-dropdown-card .card-title {
    color: var(--hx-text-2);
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.tnxt-header .grid-dropdown-card:hover .card-title {
    color: var(--hx-red-deep);
}

/* Promo rail */
.tnxt-header .resources-promo-right {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    display: flex;
    padding: 12px;
    background:
        radial-gradient(260px 220px at 100% 100%, rgba(249, 30, 30, 0.26), transparent 70%),
        radial-gradient(200px 160px at 0% 0%, rgba(56, 189, 248, 0.07), transparent 70%),
        linear-gradient(180deg, #15262f 0%, #0b151c 100%);
}

.tnxt-header .res-promo-card {
    flex: 1;
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.tnxt-header .res-promo-card::before {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.025), 0 0 0 48px rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.tnxt-header .res-promo-card:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 107, 94, 0.35);
    box-shadow: none;
}

.tnxt-header .res-promo-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(140deg, #ff4b40, #d70a0a);
    border: 0;
    color: #ffffff;
    box-shadow: 0 10px 22px -10px rgba(249, 30, 30, 0.95);
}

.tnxt-header .res-promo-content {
    position: relative;
    margin-top: 18px;
}

.tnxt-header .res-promo-content h3 {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.tnxt-header .res-promo-content p {
    color: rgba(203, 213, 225, 0.8);
}

.tnxt-header .res-promo-arrow {
    position: relative;
    background: #ffffff;
    border: 0;
    color: var(--hx-red);
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--hx-ease);
}

.tnxt-header .res-promo-card:hover .res-promo-arrow {
    background: var(--hx-red);
    color: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 8px 18px -6px rgba(249, 30, 30, 0.9);
}

/* --------------------------------------------------------------------------
   8. Header actions — search + CTA + mobile toggle
   -------------------------------------------------------------------------- */
.tnxt-header .tnxt-header-actions {
    gap: 10px;
}

.tnxt-header .tnxt-hsrch-trigger {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--hx-text-2);
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--hx-ease);
}

.tnxt-header .tnxt-hsrch-trigger:hover {
    background: #ffffff;
    color: var(--hx-red);
    border-color: rgba(249, 30, 30, 0.35);
    box-shadow: 0 0 0 4px rgba(249, 30, 30, 0.08), 0 6px 14px -6px rgba(249, 30, 30, 0.35);
}

.tnxt-header .tnxt-hsrch-trigger:focus-visible,
.tnxt-header .tnxt-header-cta:focus-visible,
.tnxt-header .mobile-toggle:focus-visible {
    outline: 2px solid rgba(249, 30, 30, 0.55);
    outline-offset: 2px;
}

.tnxt-header .tnxt-header-cta {
    overflow: hidden;
    isolation: isolate;
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.005em;
    background: linear-gradient(180deg, #ff3838 0%, #e3060f 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 10px 22px -8px rgba(227, 6, 15, 0.65),
        0 2px 4px rgba(227, 6, 15, 0.18);
}

.tnxt-header .tnxt-header-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.7s var(--hx-ease);
    pointer-events: none;
    z-index: -1;
}

.tnxt-header .tnxt-header-cta:hover {
    background: linear-gradient(180deg, #ff4545 0%, #cf0610 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 28px -10px rgba(227, 6, 15, 0.75),
        0 2px 4px rgba(227, 6, 15, 0.2);
}

.tnxt-header .tnxt-header-cta:hover::after {
    left: 125%;
}

.tnxt-header .tnxt-header-cta i {
    font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   9. Command search modal
   -------------------------------------------------------------------------- */
#tnxtSearchModal.tnxt-search-modal-backdrop {
    background: rgba(8, 15, 22, 0.55);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    padding-top: 11vh;
}

#tnxtSearchModal .tnxt-search-modal-card {
    width: min(680px, 92vw);
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 48px 110px -24px rgba(2, 8, 14, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.08);
    transform: translateY(-16px) scale(0.97);
    transition: transform 0.35s var(--hx-ease);
}

#tnxtSearchModal.active .tnxt-search-modal-card {
    transform: none;
}

#tnxtSearchModal .tnxt-search-modal-header {
    padding: 16px 18px;
    gap: 14px;
    border-bottom: 1px solid var(--hx-line-2);
}

#tnxtSearchModal .search-modal-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff4f4, #ffe3e3);
    box-shadow: inset 0 0 0 1px rgba(249, 30, 30, 0.12);
    color: var(--hx-red);
    font-size: 0.95rem;
}

#tnxtSearchModal .tnxt-search-modal-input {
    min-width: 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--hx-text);
    letter-spacing: -0.01em;
}

#tnxtSearchModal .tnxt-search-modal-input:focus,
#tnxtSearchModal .tnxt-search-modal-input:focus-visible {
    outline: none !important;
    box-shadow: none;
    border: none;
}

#tnxtSearchModal .tnxt-search-modal-input::placeholder {
    color: var(--hx-faint);
    font-weight: 500;
}

#tnxtSearchModal .tnxt-search-modal-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: #f1f5f9;
    color: var(--hx-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#tnxtSearchModal .tnxt-search-modal-close:hover {
    background: var(--hx-red);
    color: #ffffff;
}

#tnxtSearchModal .tnxt-search-modal-body {
    max-height: min(440px, 60vh);
    padding: 10px;
}

#tnxtSearchModal .search-initial-prompt {
    padding: 26px 12px 22px;
    color: var(--hx-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

#tnxtSearchModal .search-quick-chips {
    gap: 8px;
}

#tnxtSearchModal .search-quick-chips span {
    color: var(--hx-faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

#tnxtSearchModal .search-quick-chips a {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 13px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hx-text-2);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

#tnxtSearchModal .search-quick-chips a:hover {
    border-color: rgba(249, 30, 30, 0.4);
    background: #fff5f5;
    color: var(--hx-red-deep);
}

#tnxtSearchModal .search-results-list {
    gap: 2px;
}

#tnxtSearchModal .search-result-item {
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
}

#tnxtSearchModal .search-result-item:hover {
    background: var(--hx-surface);
    border-color: var(--hx-line-2);
}

#tnxtSearchModal .result-info {
    flex: 1;
    min-width: 0;
}

#tnxtSearchModal .result-title {
    color: var(--hx-text);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tnxtSearchModal .result-path {
    color: var(--hx-faint);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tnxtSearchModal .result-badge {
    padding: 3px 9px;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

#tnxtSearchModal .tag-industry {
    background: #eef2ff;
    color: #4f46e5;
}

#tnxtSearchModal .tag-intent {
    background: #fdf4ff;
    color: #a21caf;
}

#tnxtSearchModal .tag-compare {
    background: #fff7ed;
    color: #c2410c;
}

#tnxtSearchModal .tag-prof {
    background: #ecfeff;
    color: #0e7490;
}

#tnxtSearchModal .search-empty-state {
    padding: 44px 20px;
}

#tnxtSearchModal .search-empty-state i {
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   10. Mobile drawer
   -------------------------------------------------------------------------- */
#tnxtMobileBackdrop.tnxt-mobile-drawer-backdrop {
    background: rgba(8, 15, 22, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#tnxtMobileDrawer.tnxt-mobile-drawer {
    width: min(380px, 88vw);
    background: #ffffff;
    border-radius: 24px 0 0 24px;
    box-shadow: -30px 0 70px -20px rgba(2, 8, 14, 0.45);
    overflow: hidden;
    transition: transform 0.42s var(--hx-ease);
}

#tnxtMobileDrawer .tnxt-drawer-header {
    padding: 16px 18px 16px 22px;
    border-bottom: 1px solid var(--hx-line-2);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

#tnxtMobileDrawer .tnxt-drawer-logo img {
    height: 30px;
}

#tnxtMobileDrawer .tnxt-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--hx-text);
    font-size: 1rem;
}

#tnxtMobileDrawer .tnxt-drawer-close:hover {
    background: var(--hx-red);
    border-color: var(--hx-red);
    color: #ffffff;
}

#tnxtMobileDrawer .tnxt-drawer-body {
    min-height: 0;
    padding: 16px 16px 20px;
    gap: 14px;
}

#tnxtMobileDrawer .tnxt-drawer-search-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 16px;
    margin: 0;
    border-radius: 14px;
    background: var(--hx-surface);
    border: 1px solid #e2e8f0;
    color: var(--hx-muted);
    font-size: 0.88rem;
    font-weight: 600;
    gap: 12px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

#tnxtMobileDrawer .tnxt-drawer-search-btn i {
    color: var(--hx-red);
}

#tnxtMobileDrawer .tnxt-drawer-search-btn:hover {
    border-color: rgba(249, 30, 30, 0.4);
    background: #ffffff;
    color: var(--hx-text);
}

#tnxtMobileDrawer .tnxt-drawer-nav {
    min-height: 0;
    gap: 8px;
    margin: 0 -4px;
    padding: 0 4px 4px;
}

#tnxtMobileDrawer .tnxt-drawer-nav > li {
    margin: 0;
    border-bottom: 0;
}

#tnxtMobileDrawer .drawer-acc-btn,
#tnxtMobileDrawer .drawer-link {
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    border: 1px solid var(--hx-line-2);
    background: #ffffff;
    color: var(--hx-text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#tnxtMobileDrawer .drawer-link {
    gap: 12px;
}

#tnxtMobileDrawer .drawer-acc-btn span i,
#tnxtMobileDrawer .drawer-link > i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #fff4f4, #ffe3e3);
    box-shadow: inset 0 0 0 1px rgba(249, 30, 30, 0.12);
    color: var(--hx-red);
    font-size: 0.86rem;
}

#tnxtMobileDrawer .drawer-acc-btn .acc-arrow {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.66rem;
    color: var(--hx-muted);
}

#tnxtMobileDrawer .drawer-accordion.active > .drawer-acc-btn {
    border-color: rgba(249, 30, 30, 0.25);
    background: #fffafa;
    box-shadow: 0 8px 20px -14px rgba(249, 30, 30, 0.6);
}

#tnxtMobileDrawer .drawer-accordion.active > .drawer-acc-btn .acc-arrow {
    background: var(--hx-red);
    color: #ffffff;
}

#tnxtMobileDrawer .drawer-acc-panel:not(.drawer-trends-panel) {
    gap: 2px;
    margin: 8px 0 4px 27px;
    padding: 2px 0 6px 12px;
    border-left: 1.5px solid var(--hx-line-2);
}

#tnxtMobileDrawer .drawer-sub-acc-btn {
    padding: 9px 10px;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hx-text-2);
}

#tnxtMobileDrawer .drawer-sub-acc-btn span i {
    width: 22px;
    text-align: center;
    font-size: 0.8rem;
}

#tnxtMobileDrawer .drawer-sub-accordion.active > .drawer-sub-acc-btn {
    background: #fff5f5;
    color: var(--hx-red-deep);
}

#tnxtMobileDrawer .drawer-sub-acc-panel {
    padding: 2px 0 8px 30px;
}

#tnxtMobileDrawer .drawer-acc-panel:not(.drawer-trends-panel) a {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--hx-muted);
}

#tnxtMobileDrawer .drawer-acc-panel:not(.drawer-trends-panel) a:hover {
    background: #fff5f5;
    color: var(--hx-red-deep);
}

/* Drawer — trending panel */
#tnxtMobileDrawer .drawer-acc-btn-trending {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(110deg, #fb7185, #F91E1E 45%, #ff8a3d) border-box;
    border: 1.5px solid transparent;
}

#tnxtMobileDrawer .drawer-accordion.active > .drawer-acc-btn-trending {
    background:
        linear-gradient(#fff6f6, #fff6f6) padding-box,
        linear-gradient(110deg, #fb7185, #F91E1E 45%, #ff8a3d) border-box;
}

#tnxtMobileDrawer .drawer-trends-panel {
    margin: 8px 0 4px;
    padding: 14px !important;
    border-radius: 18px;
    background:
        radial-gradient(320px 160px at 100% 0%, rgba(249, 30, 30, 0.28), transparent 62%),
        linear-gradient(160deg, #14242e 0%, #0b151c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

#tnxtMobileDrawer .drawer-trends-top-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px !important;
    box-shadow: none !important;
}

#tnxtMobileDrawer .drawer-trends-top-pill i {
    color: #ff8a80 !important;
}

#tnxtMobileDrawer .drawer-trends-main-badge {
    border-radius: 12px;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 22px -10px rgba(249, 30, 30, 0.85);
}

#tnxtMobileDrawer .drawer-trends-bottom-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
}

#tnxtMobileDrawer .drawer-trends-heading {
    color: #ff8a80;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
}

#tnxtMobileDrawer .drawer-trends-red-grid {
    gap: 6px;
}

#tnxtMobileDrawer .drawer-trends-red-pill {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px !important;
    padding: 7px 12px 7px 7px !important;
    box-shadow: none !important;
}

#tnxtMobileDrawer .drawer-trends-pill-left i {
    width: 28px;
    height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(140deg, #ff5549, #d70a0a);
    font-size: 0.72rem !important;
}

#tnxtMobileDrawer .drawer-trends-pill-left span {
    color: #f1f5f9 !important;
    font-weight: 600;
}

#tnxtMobileDrawer .drawer-trends-red-pill i.fa-chevron-right {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Drawer footer */
#tnxtMobileDrawer .tnxt-drawer-footer {
    flex-shrink: 0;
    padding-top: 14px;
    border-top: 1px solid var(--hx-line-2);
    gap: 12px;
}

#tnxtMobileDrawer .tnxt-drawer-cta {
    padding: 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(180deg, #ff3838 0%, #e3060f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 24px -10px rgba(227, 6, 15, 0.7);
}

#tnxtMobileDrawer .tnxt-drawer-contacts {
    flex-direction: column;
    gap: 6px;
}

#tnxtMobileDrawer .tnxt-drawer-contacts a {
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line-2);
    color: var(--hx-text-2);
    font-size: 0.82rem;
    font-weight: 700;
}

#tnxtMobileDrawer .tnxt-drawer-contacts a:hover {
    border-color: rgba(249, 30, 30, 0.35);
    color: var(--hx-red-deep);
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1360px) {
    .tnxt-header-stack .tnxt-header-inner {
        padding-left: 22px;
        padding-right: 22px;
        gap: 14px;
    }

    .tnxt-header .nav-link {
        padding: 9px 12px;
    }

    .tnxt-header .mega-menu .tabs-header .tab-btn {
        font-size: 0.76rem;
    }
}

@media (max-width: 1290px) {
    .tnxt-header .nav-link .icon:not(.icon-trending) {
        display: none;
    }

    .tnxt-header .tnxt-header-cta {
        padding: 10px 18px;
    }

    .tnxt-header .mega-menu .content-column a {
        font-size: 0.82rem;
    }
}

/* Below 1200px the full nav no longer fits — switch to the drawer */
@media (max-width: 1199px) {
    .tnxt-header .tnxt-nav-menu-wrap {
        display: none !important;
    }

    .tnxt-header .mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 13px;
        background: var(--hx-navy-deep);
        border: 1px solid var(--hx-navy-deep);
        color: #ffffff;
        font-size: 1rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px -10px rgba(15, 34, 44, 0.8);
        transition: background 0.2s ease, transform 0.25s var(--hx-ease);
    }

    .tnxt-header .mobile-toggle:hover {
        background: var(--hx-navy);
        border-color: var(--hx-navy);
        color: #ffffff;
    }
}

@media (max-width: 991px) {
    .tnxt-header-stack .tnxt-header-inner {
        min-height: 66px;
        padding: 10px 16px !important;
    }

    .tnxt-header-stack.is-sticky {
        padding: 8px 10px 0;
    }

    .tnxt-header-stack.is-sticky .tnxt-header {
        border-radius: 18px;
    }

    .tnxt-header-stack.is-sticky .tnxt-header-inner {
        min-height: 58px;
        padding: 8px 8px 8px 16px !important;
    }

    .tnxt-header .tnxt-header-cta {
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
    }

    .tnxt-header .tnxt-header-actions {
        gap: 8px !important;
    }
}

@media (max-width: 580px) {
    .tnxt-header-stack .tnxt-header-logo img {
        height: 30px;
        max-height: 30px !important;
    }

    .tnxt-header .tnxt-hsrch-trigger,
    .tnxt-header .mobile-toggle {
        width: 40px !important;
        height: 40px !important;
    }

    .tnxt-header .tnxt-header-cta {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center;
    }

    .tnxt-header .tnxt-header-cta i {
        font-size: 0.86rem;
    }
}

/* --------------------------------------------------------------------------
   12. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tnxt-header-stack.is-sticky .tnxt-header,
    .tnxt-header .nav-link.nav-link-trending::before,
    .tnxt-header .trends-box-heading::before,
    .tnxt-header .nav-link-trending .icon-trending i,
    .tnxt-header .nav-link-trending .label-trending,
    .tnxt-header .nav-link-trending .arrow-down {
        animation: none !important;
    }

    .tnxt-header .mega-menu,
    .tnxt-header .grid-dropdown-menu,
    #tnxtMobileDrawer.tnxt-mobile-drawer,
    #tnxtSearchModal .tnxt-search-modal-card {
        transition-duration: 0.01s !important;
    }
}

/* Business Solutions mega menu (reuses the Resources dropdown layout; two promo cards stacked in the right rail) */
.tnxt-header .bizsol-dropdown .resources-promo-right {
    flex-direction: column;
    gap: 12px;
}

.tnxt-header .bizsol-dropdown .res-promo-content {
    margin-top: 14px;
}

.tnxt-header .bizsol-dropdown .res-promo-content h3 {
    font-size: 1.12rem;
}
.tnxt-header .grid-dropdown-menu.resources-dropdown.bizsol-dropdown {
    width: min(1100px, 96vw);
}

.tnxt-header .bizsol-dropdown .resources-grid-left {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tnxt-header .bizsol-dropdown .grid-dropdown-card {
    min-height: 54px;
    gap: 10px;
    padding: 8px 12px 8px 8px;
}

.tnxt-header .bizsol-dropdown .grid-dropdown-card::after {
    display: none;
}

.tnxt-header .bizsol-dropdown .grid-dropdown-card .card-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}

.tnxt-header .bizsol-dropdown .grid-dropdown-card .card-title {
    font-size: 0.84rem;
    line-height: 1.3;
}