/* Career Fixx — public site header: floating glass pill */

.cfx-hdr {
    --hdr-ink: #0f0b24;
    --hdr-text: #374151;
    --hdr-muted: #6b7280;
    --hdr-accent: #7c3aed;
    --hdr-hover: rgba(124, 58, 237, .08);
    --hdr-surface: rgba(255, 255, 255, .85);
    --hdr-card: #fff;
    --hdr-line: rgba(229, 231, 235, .7);
    --hdr-grad: linear-gradient(135deg, #9b3cf6 0%, #7c3aed 45%, #5b21b6 100%);
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 24px;
    pointer-events: none;
    font-family: inherit;
    transition: top .4s ease;
}
.cfx-hdr *, .cfx-hdr *::before, .cfx-hdr *::after { box-sizing: border-box; }
.cfx-hdr.is-scrolled { top: 12px; }

.cfx-hdr-bar {
    pointer-events: auto;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 24px;
    border-radius: 999px;
    background: var(--hdr-surface);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
            backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--hdr-line);
    box-shadow: 0 8px 32px rgba(15, 11, 36, .06);
    transition: box-shadow .4s ease, background .4s ease;
}
.cfx-hdr.is-scrolled .cfx-hdr-bar { box-shadow: 0 12px 40px rgba(15, 11, 36, .12); }

.cfx-hdr-logo { display: flex; align-items: center; flex: none; }
.cfx-hdr-logo img { height: 38px; width: auto; display: block; }

/* ── Centre links ───────────────────────────────────────────────────── */
.cfx-hdr-nav { display: flex; align-items: center; gap: 4px; }
.cfx-hdr-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hdr-text);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, background .2s;
}
.cfx-hdr-link i { font-size: 14px; transition: transform .25s; }
.cfx-hdr-link:hover, .cfx-hdr-link:focus-visible, .cfx-dd.is-open > .cfx-hdr-link { color: var(--hdr-accent); background: var(--hdr-hover); }
.cfx-hdr-link.is-active { color: var(--hdr-accent); }
.cfx-dd.is-open > .cfx-hdr-link i { transform: rotate(180deg); }

/* ── Right actions ──────────────────────────────────────────────────── */
.cfx-hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cfx-hdr-login {
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--hdr-text);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.cfx-hdr-login:hover { color: var(--hdr-accent); }
.cfx-hdr-cta, .cfx-hdr-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.cfx-hdr-cta {
    color: #fff !important;
    background: var(--hdr-grad);
    box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}
.cfx-hdr-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(124, 58, 237, .45); }
.cfx-hdr-ghost { color: var(--hdr-ink) !important; border: 1px solid var(--hdr-line); background: var(--hdr-card); }

.cfx-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--hdr-line);
    border-radius: 50%;
    background: var(--hdr-card);
    color: var(--hdr-ink);
    font-size: 18px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.cfx-icon-btn:hover { color: var(--hdr-accent); border-color: rgba(124, 58, 237, .35); }
.cfx-icon-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cfx-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--hdr-grad);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--hdr-card);
}

.cfx-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px 0 4px;
    border: 1px solid var(--hdr-line);
    border-radius: 999px;
    background: var(--hdr-card);
    color: var(--hdr-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
}
.cfx-user:hover { border-color: rgba(124, 58, 237, .35); }
.cfx-user img, .cfx-user-ico { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.cfx-user-ico { display: inline-flex; align-items: center; justify-content: center; background: var(--hdr-grad); color: #fff; }
.cfx-user i.feather-chevron-down { font-size: 14px; color: var(--hdr-muted); }

.cfx-burger { display: none; }

/* ── Dropdowns ──────────────────────────────────────────────────────── */
.cfx-dd { position: relative; }
.cfx-dd-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 10;
    min-width: 240px;
    padding: 8px;
    border-radius: 20px;
    background: var(--hdr-card);
    border: 1px solid var(--hdr-line);
    box-shadow: 0 24px 60px rgba(15, 11, 36, .14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
/* invisible bridge so hover survives the gap between trigger and card */
.cfx-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.cfx-dd-right .cfx-dd-menu { left: auto; right: 0; transform: translateY(8px); }
.cfx-dd.is-open > .cfx-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cfx-dd-right.is-open > .cfx-dd-menu { transform: translateY(0); }
@media (hover: hover) and (min-width: 1200px) {
    .cfx-dd-plans:hover > .cfx-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .cfx-dd-plans:hover > .cfx-hdr-link { color: var(--hdr-accent); background: var(--hdr-hover); }
    .cfx-dd-plans:hover > .cfx-hdr-link i { transform: rotate(180deg); }
}

/* plans mega card */
.cfx-dd-plans .cfx-dd-menu { width: 560px; padding: 10px; }
.cfx-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cfx-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--hdr-ink);
    text-decoration: none;
    transition: background .2s;
}
.cfx-dd-item:hover { background: var(--hdr-hover); }
.cfx-dd-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(155, 60, 246, .12), rgba(91, 33, 182, .12));
    color: var(--hdr-accent);
    font-size: 17px;
    transition: background .2s, color .2s;
}
.cfx-dd-item:hover .cfx-dd-ico { background: var(--hdr-grad); color: #fff; }
.cfx-dd-text { display: flex; flex-direction: column; min-width: 0; }
.cfx-dd-text strong { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--hdr-ink); }
.cfx-dd-text small { font-size: 12.5px; color: var(--hdr-muted); }
.cfx-dd-text small s { margin-left: 4px; opacity: .7; }
.cfx-dd-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f6efff, #fff3ec);
    color: var(--hdr-ink);
    font-size: 13px;
    text-decoration: none;
}
.cfx-dd-foot strong { display: inline-flex; align-items: center; gap: 4px; color: var(--hdr-accent); font-weight: 700; }
.cfx-dd-foot:hover strong i { transform: translateX(3px); }
.cfx-dd-foot strong i { transition: transform .2s; }

/* list menus (user) */
.cfx-dd-list a, .cfx-dd-list button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--hdr-ink);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.cfx-dd-list a:hover, .cfx-dd-list button:hover { background: var(--hdr-hover); color: var(--hdr-accent); }
.cfx-dd-list i { font-size: 16px; color: var(--hdr-muted); }
.cfx-dd-list a:hover i, .cfx-dd-list button:hover i { color: var(--hdr-accent); }
.cfx-dd-list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--hdr-line); }

/* notifications */
.cfx-dd-notify { width: 340px; }
.cfx-dd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; font-size: 15px; font-weight: 700; color: var(--hdr-ink); }
.cfx-dd-head form { margin: 0; }
.cfx-dd-notify .cfx-notify-item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--hdr-ink);
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
}
.cfx-dd-notify .cfx-notify-item:hover { background: var(--hdr-hover); }
.cfx-dd-notify .cfx-notify-item small { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--hdr-muted); font-size: 11.5px; }
.cfx-dd-notify { max-height: 420px; overflow-y: auto; }

/* ── Burger (animated) ──────────────────────────────────────────────── */
.cfx-burger-lines { position: relative; display: block; width: 18px; height: 14px; }
.cfx-burger-lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s ease, opacity .2s ease, top .3s ease, width .3s ease;
}
.cfx-burger-lines span:nth-child(1) { top: 0; }
.cfx-burger-lines span:nth-child(2) { top: 6px; width: 70%; left: auto; right: 0; }
.cfx-burger-lines span:nth-child(3) { top: 12px; }
.cfx-burger:hover .cfx-burger-lines span:nth-child(2) { width: 100%; }
.cfx-hdr.is-menu-open .cfx-burger { color: #fff; background: var(--hdr-grad); border-color: transparent; }
.cfx-hdr.is-menu-open .cfx-burger-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.cfx-hdr.is-menu-open .cfx-burger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cfx-hdr.is-menu-open .cfx-burger-lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.cfx-show-sm { display: none !important; }
.cfx-hdr-cta-sm { gap: 6px; height: 40px; padding: 0 16px; font-size: 13.5px; }
.cfx-hdr-cta-sm i { font-size: 15px; }

/* ── Overlay + menu sheet ───────────────────────────────────────────── */
.cfx-hdr-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: auto;
    background: rgba(12, 8, 32, .45);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    animation: cfxFade .25s ease;
}
.cfx-hdr-overlay[hidden] { display: none; }
html.cfx-menu-lock, html.cfx-menu-lock body { overflow: hidden; }
@keyframes cfxFade { from { opacity: 0; } to { opacity: 1; } }

.cfx-mobile {
    pointer-events: auto;
    max-width: 560px;
    margin: 10px 0 0 auto;
    padding: 10px;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 26px;
    background: var(--hdr-card);
    border: 1px solid var(--hdr-line);
    box-shadow: 0 24px 60px rgba(15, 11, 36, .22);
    transform-origin: top right;
    animation: cfxSheet .3s cubic-bezier(.2, .8, .2, 1);
}
.cfx-mobile[hidden] { display: none; }
@keyframes cfxSheet { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }

/* logged-in user card */
.cfx-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(120deg, #f6efff, #fff3ec);
}
.cfx-mobile-user img, .cfx-mobile-user .cfx-user-ico { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #fff; }
.cfx-mobile-user-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.cfx-mobile-user-text small { color: var(--hdr-muted); font-size: 12px; }
.cfx-mobile-user-text strong { overflow: hidden; color: var(--hdr-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }

/* links */
.cfx-mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.cfx-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 16px;
    color: var(--hdr-ink);
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    transition: background .2s, color .2s;
}
.cfx-mobile-link::-webkit-details-marker { display: none; }
.cfx-mobile-nav > a, .cfx-mobile-nav > details { animation: cfxItem .35s ease both; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
@keyframes cfxItem { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.cfx-mobile-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(155, 60, 246, .1), rgba(91, 33, 182, .1));
    color: var(--hdr-accent);
    font-size: 17px;
    transition: background .2s, color .2s;
}
.cfx-mobile-label { flex: 1; }
.cfx-mobile-caret { color: var(--hdr-muted); font-size: 17px; transition: transform .25s; }
.cfx-mobile-link:hover, .cfx-mobile-link.is-active { background: var(--hdr-hover); color: var(--hdr-accent); }
.cfx-mobile-link.is-active .cfx-mobile-ico { background: var(--hdr-grad); color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, .3); }
.cfx-mobile-group[open] .cfx-mobile-caret { transform: rotate(180deg); }

/* plans inside the menu */
.cfx-mobile-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 4px 10px 8px; }
.cfx-mobile-plans a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--hdr-line);
    color: var(--hdr-ink);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.cfx-mobile-plans a:hover { border-color: rgba(124, 58, 237, .4); background: var(--hdr-hover); }
.cfx-mobile-plans strong { font-size: 13.5px; font-weight: 700; }
.cfx-mobile-plans small { color: var(--hdr-accent); font-size: 12.5px; font-weight: 600; }
.cfx-mobile-plans a.cfx-mobile-all {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-style: dashed;
    color: var(--hdr-accent);
    font-size: 13.5px;
    font-weight: 700;
}

/* footer */
.cfx-mobile-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--hdr-line); }
.cfx-mobile-foot a { height: 48px; padding: 0 12px; }
.cfx-mobile-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding: 0 4px; }
.cfx-mobile-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--hdr-hover);
    color: var(--hdr-text);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}
.cfx-mobile-contact i { color: var(--hdr-accent); font-size: 15px; flex: none; }
.cfx-mobile-contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfx-mobile-logout { margin: 8px 4px 2px; }
.cfx-mobile-logout button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 1px solid var(--hdr-line);
    border-radius: 14px;
    background: transparent;
    color: #e5484d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.cfx-mobile-logout button:hover { background: rgba(229, 72, 77, .08); }

/* space for the fixed bar on pages without a full-bleed hero */
/* --cfx-banner-top: where a page banner's text starts, the same as the job pages' hero (cf-jobs.css) */
:root { --cfx-hdr-space: 104px; --cfx-banner-top: 112px; }
@media (max-width: 1199.98px) { :root { --cfx-banner-top: 104px; } }
.cfx-hdr-spacer { height: var(--cfx-hdr-space); }

/* pages that open with a banner (breadcrumb, About, Contact): the banner runs up
   under the floating bar instead of leaving a white strip above it.
   "First after the spacer" ignores script and style tags in between. */
html body .cfx-hdr-spacer ~ :is(.rbt-breadcrumb-default, .cfx-about, .cfx-contact):not(.cfx-hdr-spacer ~ :not(script, style, link, noscript) ~ *) {
    margin-top: calc(-1 * var(--cfx-hdr-space));
}
html body .cfx-hdr-spacer ~ .rbt-breadcrumb-default:not(.cfx-hdr-spacer ~ :not(script, style, link, noscript) ~ *),
html body .cfx-hdr-spacer ~ .cfx-about:not(.cfx-hdr-spacer ~ :not(script, style, link, noscript) ~ *) > .cfx-ab-hero,
html body .cfx-hdr-spacer ~ .cfx-contact:not(.cfx-hdr-spacer ~ :not(script, style, link, noscript) ~ *) > .cfx-co-hero {
    padding-top: var(--cfx-banner-top) !important;
}

/* ── Breakpoints ────────────────────────────────────────────────────── */
@media (max-width: 1399.98px) {
    .cfx-hdr-link { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 1199.98px) {
    .cfx-hdr-nav { display: none; }
    .cfx-burger { display: inline-flex; }
}
@media (max-width: 767.98px) {
    .cfx-hdr { top: 10px; padding: 0 10px; }
    .cfx-hdr.is-scrolled { top: 8px; }
    .cfx-hdr-bar { gap: 8px; padding: 6px 6px 6px 16px; }
    .cfx-hdr-logo img { height: 30px; }
    .cfx-hdr-actions { gap: 6px; }
    .cfx-icon-btn { width: 40px; height: 40px; font-size: 17px; }
    .cfx-hide-sm { display: none !important; }
    .cfx-show-sm { display: inline-flex !important; }
    .cfx-user { height: 40px; padding: 0 3px; }
    .cfx-user img, .cfx-user-ico { width: 32px; height: 32px; }
    .cfx-dd-notify { position: fixed; top: 66px; left: 10px; right: 10px; width: auto; transform: translateY(8px); }
    .cfx-dd-right.is-open > .cfx-dd-notify { transform: none; }
    .cfx-mobile { max-width: none; margin-top: 8px; max-height: calc(100dvh - 84px); border-radius: 24px; }
    :root { --cfx-hdr-space: 76px; --cfx-banner-top: 92px; }
}
@media (max-width: 359.98px) {
    .cfx-hdr-logo img { height: 26px; }
    .cfx-hdr-cta-sm { padding: 0 12px; }
    .cfx-hdr-cta-sm i { display: none; }
    .cfx-mobile-contact { grid-template-columns: 1fr; }
}

/* ── Dark theme ─────────────────────────────────────────────────────── */
html[data-theme="dark"] .cfx-hdr {
    --hdr-ink: #f4f1ff;
    --hdr-text: #d9d3ee;
    --hdr-muted: #958eb3;
    --hdr-accent: #d8b4fe;
    --hdr-hover: rgba(216, 180, 254, .1);
    --hdr-surface: rgba(23, 19, 42, .78);
    --hdr-card: #17132a;
    --hdr-line: #2e2650;
}
html[data-theme="dark"] .cfx-hdr-bar { box-shadow: 0 8px 32px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .cfx-dd-menu, html[data-theme="dark"] .cfx-mobile { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .cfx-dd-foot { background: linear-gradient(90deg, #241b40, #2d1d2c); }
html[data-theme="dark"] .cfx-dd-ico { background: rgba(216, 180, 254, .1); }
html[data-theme="dark"] .cfx-mobile-user { background: linear-gradient(120deg, #241b40, #2d1d2c); }
html[data-theme="dark"] .cfx-mobile-user img, html[data-theme="dark"] .cfx-mobile-user .cfx-user-ico { box-shadow: 0 0 0 2px #17132a; }
html[data-theme="dark"] .cfx-mobile-ico { background: rgba(216, 180, 254, .1); }
html[data-theme="dark"] .cfx-hdr-overlay { background: rgba(0, 0, 0, .55); }

/* ==========================================================================
   Header polish: gradient hairline, active pill, hover underline, CTA shine
   and a dark-glass mode while floating over the dark hero
   ========================================================================== */
.cfx-hdr-bar { position: relative; }
/* gradient hairline border */
.cfx-hdr-bar::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(100deg, rgba(155, 60, 246, .35), rgba(168, 85, 247, .25) 50%, rgba(91, 33, 182, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: .7; transition: opacity .4s ease;
}
.cfx-hdr-logo img { transition: transform .3s ease; }
.cfx-hdr-logo:hover img { transform: scale(1.04); }

/* links: animated underline on hover, gradient pill when active */
.cfx-hdr-nav .cfx-hdr-link { position: relative; }
.cfx-hdr-nav .cfx-hdr-link::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; border-radius: 2px;
    background: var(--hdr-grad); transform: translateX(-50%); transition: width .25s ease;
}
.cfx-hdr-nav .cfx-hdr-link:hover::after { width: 18px; }
.cfx-hdr-nav .cfx-hdr-link.is-active {
    background: linear-gradient(135deg, rgba(155, 60, 246, .1), rgba(91, 33, 182, .1));
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .16);
}
.cfx-hdr-nav .cfx-hdr-link.is-active::after { width: 18px; }

/* login + CTA */
.cfx-hdr-login { display: inline-flex; align-items: center; gap: 6px; }
.cfx-hdr-login i { font-size: 15px; }
.cfx-hdr-login:hover { background: var(--hdr-hover); }
.cfx-hdr-cta { position: relative; overflow: hidden; gap: 7px; }
.cfx-hdr-cta i { font-size: 15px; transition: transform .25s ease; }
.cfx-hdr-cta:hover i { transform: translateX(3px); }
.cfx-hdr-cta::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
    animation: cfxHdrShine 4.5s ease-in-out infinite;
}
@keyframes cfxHdrShine { 0%, 65% { left: -60%; } 100% { left: 130%; } }


/* ── dark glass over the dark hero ── */
.cfx-hdr.is-on-dark .cfx-hdr-bar {
    background: rgba(18, 12, 40, .45); border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.cfx-hdr.is-on-dark .cfx-hdr-bar::before { opacity: 1; background: linear-gradient(100deg, rgba(180, 108, 255, .55), rgba(168, 85, 247, .35) 50%, rgba(196, 181, 253, .5)); }
.cfx-hdr.is-on-dark .cfx-hdr-link, .cfx-hdr.is-on-dark .cfx-hdr-login { color: rgba(240, 235, 255, .86); }
.cfx-hdr.is-on-dark .cfx-hdr-link:hover, .cfx-hdr.is-on-dark .cfx-dd.is-open > .cfx-hdr-link,
.cfx-hdr.is-on-dark .cfx-hdr-login:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cfx-hdr.is-on-dark .cfx-hdr-nav .cfx-hdr-link.is-active { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.cfx-hdr.is-on-dark .cfx-icon-btn, .cfx-hdr.is-on-dark .cfx-user { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.cfx-hdr.is-on-dark .cfx-user i.feather-chevron-down { color: rgba(240, 235, 255, .7); }
.cfx-hdr.is-on-dark .cfx-burger-lines span { background: #fff; }
.cfx-hdr.is-on-dark .cfx-badge { box-shadow: 0 0 0 2px #1a1236; }
.cfx-hdr.is-on-dark .cfx-hdr-logo img { filter: brightness(1.35) saturate(1.15) drop-shadow(0 0 10px rgba(180, 108, 255, .45)); }

@media (prefers-reduced-motion: reduce) {
    .cfx-hdr-cta::after { animation: none; display: none; }
}

/* tagline under the header logo */
.cfx-hdr-logo { flex-direction: column; justify-content: center; }
.cfx-logo-tag { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 1.6px; white-space: nowrap; }
@media (max-width: 575.98px) { .cfx-logo-tag { font-size: 7px; letter-spacing: 1px; } }
