:root {
    --uestart-ink: #0a0b10;
    --uestart-muted: #6f7480;
    --uestart-line: rgba(12, 15, 24, .10);
    --uestart-surface: rgba(255, 255, 255, .91);
    --uestart-soft: #f5f7fa;
    --uestart-accent: #4467ff;
    --uestart-accent-2: #7b51ff;
}

/* FinanceLife-safe legacy header handling. Exact nodes are marked by JS. */
body.uestart-premium-header-active .uestart-native-header-hidden,
body.uestart-ph-hide-legacy [data-uestart-prehidden] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Keep admin/GTranslate and the UEStart header untouched. */
body.uestart-premium-header-active #wpadminbar,
body.uestart-premium-header-active .switcher,
body.uestart-premium-header-active .gtranslate_wrapper,
body.uestart-premium-header-active #uestart-premium-header {
    display: block;
    visibility: visible;
}


.uestart-ph,
.uestart-ph * {
    box-sizing: border-box;
}

.uestart-ph {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99990;
    width: min(1480px, calc(100% - 32px));
    height: 80px;
    margin: 0;
    color: var(--uestart-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
}

body.admin-bar .uestart-ph { top: 46px; }

.uestart-ph__shell {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(220px, .9fr) auto minmax(280px, .9fr);
    align-items: center;
    height: 80px;
    padding: 0 16px 0 18px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 24px;
    background: var(--uestart-surface);
    box-shadow: 0 18px 55px rgba(15, 19, 31, .10), 0 2px 8px rgba(15, 19, 31, .04);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    transition: height .25s ease, border-radius .25s ease, box-shadow .25s ease, background .25s ease;
}

.uestart-ph.is-scrolled .uestart-ph__shell {
    height: 70px;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 45px rgba(15, 19, 31, .12), 0 1px 6px rgba(15, 19, 31, .05);
}

.uestart-ph__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: var(--uestart-ink) !important;
    text-decoration: none !important;
}

.uestart-ph__brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #111521, #05060a);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 18px rgba(15,18,26,.16);
    color: white;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.uestart-ph__brand-mark span {
    background: linear-gradient(135deg,#fff 0%,#ccd4ff 48%,#b59dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.uestart-ph__brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.uestart-ph__brand-copy strong {
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.045em;
}

.uestart-ph__brand-copy strong span { color: var(--uestart-accent); }

.uestart-ph__brand-copy small {
    margin-top: 6px;
    color: #858a95;
    font-size: 8.5px;
    font-weight: 780;
    letter-spacing: .19em;
}

.uestart-ph__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
}

.uestart-ph__nav-item { position: static; height: 100%; display: flex; align-items: center; }

.uestart-ph__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #272b34 !important;
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    letter-spacing: -.01em;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.uestart-ph__nav-link svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.uestart-ph__nav-link:hover,
.uestart-ph__nav-link:focus-visible,
.uestart-ph__has-mega.is-open > .uestart-ph__nav-link {
    color: #080a0f !important;
    background: rgba(12,15,24,.055);
    outline: none;
}

.uestart-ph__has-mega.is-open > .uestart-ph__nav-link svg { transform: rotate(180deg); }

.uestart-ph__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.uestart-ph__lang {
    min-width: 44px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid var(--uestart-line);
    border-radius: 13px;
    background: rgba(255,255,255,.65);
}

.uestart-ph__lang-fallback {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.uestart-ph__gtranslate,
.uestart-ph__gtranslate > * { margin: 0 !important; }

.uestart-ph__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 15px;
    background: #0b0d12;
    box-shadow: 0 10px 24px rgba(10,12,18,.17);
    color: #fff !important;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: -.01em;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.uestart-ph__cta svg,
.uestart-ph__mega-contact svg,
.uestart-ph__mega-foot a svg,
.uestart-ph__expertise-intro a svg,
.uestart-ph__mobile-card a svg {
    width: 16px;
    height: 16px;
}

.uestart-ph__cta:hover {
    transform: translateY(-1px);
    background: #171a22;
    box-shadow: 0 14px 30px rgba(10,12,18,.20);
}

.uestart-ph__mega {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 3;
    width: 100%;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 26px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 28px 80px rgba(14, 18, 28, .17), 0 3px 10px rgba(14,18,28,.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.99);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.uestart-ph__has-mega.is-open .uestart-ph__mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.uestart-ph__mega-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--uestart-line);
}

.uestart-ph__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--uestart-accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .18em;
}

.uestart-ph__mega-head h2,
.uestart-ph__expertise-intro h2 {
    margin: 0;
    color: #0a0b10;
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.uestart-ph__mega-contact,
.uestart-ph__expertise-intro > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #11141a !important;
    font-size: 12px;
    font-weight: 760;
    text-decoration: none !important;
}

.uestart-ph__mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.uestart-ph__mega-col {
    padding: 6px;
}

.uestart-ph__mega-label {
    display: block;
    margin: 0 0 10px 8px;
    color: #8a8f99;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .16em;
}

.uestart-ph__mega-col > a {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    min-height: 63px;
    padding: 9px 10px;
    border-radius: 14px;
    color: var(--uestart-ink) !important;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}

.uestart-ph__mega-col > a:hover {
    background: #f5f7fa;
    transform: translateX(2px);
}

.uestart-ph__mini-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(14,17,25,.08);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(14,17,25,.05);
    color: #34394a;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.uestart-ph__mega-col strong,
.uestart-ph__mega-col small {
    display: block;
}

.uestart-ph__mega-col strong {
    margin-bottom: 3px;
    font-size: 12.5px;
    font-weight: 780;
    letter-spacing: -.015em;
}

.uestart-ph__mega-col small {
    color: #848995;
    font-size: 9.5px;
    line-height: 1.35;
}

.uestart-ph__mega-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 15px 16px;
    border-radius: 14px;
    background: linear-gradient(90deg,#f6f7fa,#f7f5ff);
    color: #626875;
    font-size: 10px;
    font-weight: 650;
}

.uestart-ph__mega-foot span { display: flex; align-items: center; gap: 8px; }
.uestart-ph__mega-foot i { width: 6px; height: 6px; border-radius: 50%; background: #38b874; box-shadow: 0 0 0 4px rgba(56,184,116,.10); }
.uestart-ph__mega-foot a { display: inline-flex; align-items: center; gap: 7px; color: #11141a !important; font-weight: 780; text-decoration: none !important; }

.uestart-ph__mega--expertise { padding: 26px; }
.uestart-ph__expertise-grid { display: grid; grid-template-columns: .85fr 1.6fr; gap: 26px; }
.uestart-ph__expertise-intro { padding: 28px; border-radius: 20px; background: linear-gradient(145deg,#10131c,#08090e); color: #fff; }
.uestart-ph__expertise-intro .uestart-ph__eyebrow { color: #9caeff; }
.uestart-ph__expertise-intro h2 { color: #fff; }
.uestart-ph__expertise-intro p { max-width: 480px; margin: 15px 0 20px; color: #aeb4c2; font-size: 11px; line-height: 1.65; }
.uestart-ph__expertise-intro > a { color: #fff !important; }
.uestart-ph__expertise-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-content: center; }
.uestart-ph__expertise-links > a { display: block; padding: 17px; border: 1px solid var(--uestart-line); border-radius: 16px; color: #10131a !important; text-decoration: none !important; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.uestart-ph__expertise-links > a:hover { transform: translateY(-1px); border-color: rgba(68,103,255,.25); background: #f8f9ff; }
.uestart-ph__expertise-links strong, .uestart-ph__expertise-links small { display: block; }
.uestart-ph__expertise-links strong { margin-bottom: 5px; font-size: 12px; font-weight: 780; }
.uestart-ph__expertise-links small { color: #858a95; font-size: 9.5px; line-height: 1.4; }

.uestart-ph__mobile-toggle,
.uestart-ph__mobile-panel,
.uestart-ph__backdrop { display: none; }

@media (hover:hover) and (min-width: 1101px) {
    .uestart-ph__has-mega:hover > .uestart-ph__mega,
    .uestart-ph__has-mega:focus-within > .uestart-ph__mega {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .uestart-ph__has-mega:hover > .uestart-ph__nav-link,
    .uestart-ph__has-mega:focus-within > .uestart-ph__nav-link {
        background: rgba(12,15,24,.055);
    }
}

@media (max-width: 1240px) and (min-width: 1101px) {
    .uestart-ph { width: calc(100% - 20px); }
    .uestart-ph__shell { grid-template-columns: 205px auto 230px; }
    .uestart-ph__nav-link { padding: 0 9px; font-size: 12px; }
    .uestart-ph__cta span { display: none; }
    .uestart-ph__cta { width: 48px; padding: 0; justify-content: center; }
    .uestart-ph__mega { padding: 22px; }
}

@media (max-width: 1100px) {
    .uestart-ph {
        top: 8px;
        width: calc(100% - 18px);
        height: 68px;
        margin: 8px auto 14px;
    }
    body.admin-bar .uestart-ph { top: 54px; }
    .uestart-ph__shell,
    .uestart-ph.is-scrolled .uestart-ph__shell {
        grid-template-columns: 1fr auto;
        height: 68px;
        padding: 0 10px 0 13px;
        border-radius: 20px;
    }
    .uestart-ph__brand-mark { width: 39px; height: 39px; border-radius: 12px; }
    .uestart-ph__brand-copy strong { font-size: 15px; }
    .uestart-ph__brand-copy small { font-size: 7.5px; }
    .uestart-ph__nav,
    .uestart-ph__actions > .uestart-ph__lang,
    .uestart-ph__actions > .uestart-ph__cta { display: none; }

    .uestart-ph__mobile-toggle {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 0;
        border-radius: 14px;
        background: #0b0d12;
        color: #fff;
        cursor: pointer;
    }
    .uestart-ph__mobile-toggle svg { width: 22px; height: 22px; display: block; }
    .uestart-ph__icon-close { display: none; }
    .uestart-ph.is-mobile-open .uestart-ph__icon-open { display: none; }
    .uestart-ph.is-mobile-open .uestart-ph__icon-close { display: block; }

    .uestart-ph__mobile-panel {
        position: absolute;
        left: 0;
        top: calc(100% + 8px);
        z-index: 4;
        display: block;
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(255,255,255,.65);
        border-radius: 24px;
        background: rgba(255,255,255,.985);
        box-shadow: 0 28px 80px rgba(14,18,28,.20);
        opacity: 0;
        transform: translateY(-8px) scale(.985);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .uestart-ph__mobile-panel[hidden] { display: none !important; }
    .uestart-ph.is-mobile-open .uestart-ph__mobile-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
    .uestart-ph__mobile-inner { padding: 18px; }
    .uestart-ph__mobile-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 4px 3px 14px; border-bottom: 1px solid var(--uestart-line); color: #8c919c; font-size: 8.5px; font-weight: 850; letter-spacing: .15em; }
    .uestart-ph__mobile-lang { display: flex; align-items: center; min-height: 32px; padding: 0 9px; border: 1px solid var(--uestart-line); border-radius: 10px; background: #fff; color: #111; letter-spacing: normal; }
    .uestart-ph__mobile-parent,
    .uestart-ph__mobile-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 57px;
        padding: 0 4px;
        border: 0;
        border-bottom: 1px solid var(--uestart-line);
        background: transparent;
        color: #101219 !important;
        font: inherit;
        font-size: 18px;
        font-weight: 760;
        letter-spacing: -.035em;
        text-align: left;
        text-decoration: none !important;
        cursor: pointer;
    }
    .uestart-ph__mobile-parent svg { width: 19px; height: 19px; transition: transform .2s ease; }
    .uestart-ph__mobile-parent[aria-expanded="true"] svg { transform: rotate(180deg); }
    .uestart-ph__mobile-link span { color: #a0a5ae; font-size: 14px; }
    .uestart-ph__mobile-sub { padding: 6px 0 10px; border-bottom: 1px solid var(--uestart-line); }
    .uestart-ph__mobile-sub[hidden] { display: none !important; }
    .uestart-ph__mobile-sub a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 10px; border-radius: 10px; color: #4c515c !important; font-size: 12px; font-weight: 680; text-decoration: none !important; }
    .uestart-ph__mobile-sub a:hover { background: #f4f6f9; color: #111 !important; }
    .uestart-ph__mobile-sub span { color: #a4a9b2; font-size: 8.5px; font-weight: 850; letter-spacing: .08em; }
    .uestart-ph__mobile-card { margin-top: 18px; padding: 22px; border-radius: 19px; background: linear-gradient(145deg,#10131c,#07080d); color: #fff; }
    .uestart-ph__mobile-card strong { display: block; max-width: 450px; font-size: 21px; line-height: 1.15; letter-spacing: -.04em; }
    .uestart-ph__mobile-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff !important; font-size: 11px; font-weight: 760; text-decoration: none !important; }
    .uestart-ph__mobile-card small { display: block; margin-top: 16px; color: #8f96a5; font-size: 9px; }

    .uestart-ph__backdrop {
        position: fixed;
        inset: 0;
        z-index: 2;
        display: block;
        background: rgba(5,7,11,.25);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    .uestart-ph__backdrop[hidden] { display: none !important; }
    .uestart-ph.is-mobile-open .uestart-ph__backdrop { opacity: 1; pointer-events: auto; }
}

@media (max-width: 520px) {
    .uestart-ph { width: calc(100% - 12px); }
    .uestart-ph__brand-copy small { letter-spacing: .14em; }
    .uestart-ph__mobile-inner { padding: 14px; }
    .uestart-ph__mobile-card { padding: 20px; }
}

@media (min-width: 783px) {
    body.admin-bar .uestart-ph { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .uestart-ph *, .uestart-ph *::before, .uestart-ph *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* v1.0.4 layout stabilization */
html { scroll-padding-top: 118px; }
html.uestart-ph-enabled body { padding-top: 102px; }
html.uestart-ph-enabled body.admin-bar { padding-top: 134px; }
.uestart-home-nav-hidden { display: none !important; visibility: hidden !important; }

@media (max-width: 1100px) {
    html.uestart-ph-enabled body { padding-top: 86px; }
    html.uestart-ph-enabled body.admin-bar { padding-top: 128px; }
}

/* Avoid inherited theme typography/line-height deforming the custom shell. */
.uestart-ph__shell,
.uestart-ph__shell button,
.uestart-ph__shell a { line-height: 1.2; }

/* Keep the floating header visually above legacy sticky layers. */
.uestart-ph { z-index: 2147482000; }

/* v1.0.5 — collapse every legacy FinanceLife shell identified before main content. */
body.uestart-premium-header-active .uestart-native-header-hidden,
body.uestart-premium-header-active [data-uestart-hidden-reason] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* v1.0.6 — deterministic cleanup for UEStart's legacy FinanceLife + hero utility nav. */
body.uestart-premium-header-active [data-uestart-hidden-reason="financelife-route-signature"],
body.uestart-premium-header-active .uestart-home-nav-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}


/* v1.0.9 — exact Financity/Stronghold wrappers used by the same theme stack as FiduFine. */
body.uestart-ph-hide-legacy .financity-top-bar,
body.uestart-ph-hide-legacy .financity-header-wrap,
body.uestart-ph-hide-legacy .financity-mobile-header-wrap,
body.uestart-ph-hide-legacy .financity-navigation-bar-wrap,
body.uestart-ph-hide-legacy .financity-fixed-navigation,
body.uestart-ph-hide-legacy .financity-sticky-menu-placeholder {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* v1.0.10 — integrated top state + compact sticky-on-scroll state.
   At the top the header belongs visually to the page; after scrolling it becomes a floating sticky bar. */
.uestart-ph {
    position: absolute;
    top: 4px;
    width: min(1500px, calc(100% - 20px));
    height: 76px;
    margin: 0;
    transition: top .24s ease, width .24s ease, filter .24s ease;
}

.uestart-ph__shell {
    height: 76px;
    border-radius: 22px;
    box-shadow: 0 12px 38px rgba(15, 19, 31, .075), 0 2px 7px rgba(15, 19, 31, .035);
}

.uestart-ph.is-scrolled {
    position: fixed;
    top: 8px;
    width: min(1440px, calc(100% - 28px));
    height: 68px;
}

.uestart-ph.is-scrolled .uestart-ph__shell {
    height: 68px;
    border-radius: 19px;
    background: rgba(255,255,255,.965);
    box-shadow: 0 14px 44px rgba(15, 19, 31, .12), 0 1px 6px rgba(15, 19, 31, .05);
}

/* Keep the opening hero close to the header: no oversized artificial gap. */
html.uestart-ph-enabled body { padding-top: 84px; }
html.uestart-ph-enabled body.admin-bar { padding-top: 116px; }

@media (min-width: 783px) {
    body.admin-bar .uestart-ph { top: 36px; }
    body.admin-bar .uestart-ph.is-scrolled { top: 40px; }
}

@media (max-width: 1100px) {
    .uestart-ph {
        position: absolute;
        top: 4px;
        width: calc(100% - 12px);
        height: 64px;
        margin: 0;
    }
    .uestart-ph__shell,
    .uestart-ph.is-scrolled .uestart-ph__shell {
        height: 64px;
        border-radius: 18px;
    }
    .uestart-ph.is-scrolled {
        position: fixed;
        top: 6px;
        width: calc(100% - 16px);
        height: 64px;
    }
    html.uestart-ph-enabled body { padding-top: 72px; }
    html.uestart-ph-enabled body.admin-bar { padding-top: 104px; }
}

@media (max-width: 782px) {
    body.admin-bar .uestart-ph { top: 50px; }
    body.admin-bar .uestart-ph.is-scrolled { top: 52px; }
    html.uestart-ph-enabled body.admin-bar { padding-top: 118px; }
}
