.ev-demo-header {
    --ev-header-color: var(--impl-primary-color, #83ef3f);
    --ev-adminbar-offset: 0px;
    background: rgba(3, 10, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    position: relative;
    z-index: 50;
    width: 100%;
    transition: background 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease, transform 0.34s ease;
    will-change: transform;
}

.ev-demo-header-placeholder {
    height: 0;
    transition: height 0.22s ease;
}

.ev-demo-header.is-scrolled {
    border-bottom-color: color-mix(in srgb, var(--ev-header-color) 20%, rgba(255, 255, 255, 0.08));
}

.ev-demo-header.is-sticky {
    position: fixed;
    top: var(--ev-adminbar-offset);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(3, 10, 16, 0.88);
    border-bottom-color: color-mix(in srgb, var(--ev-header-color) 28%, rgba(255, 255, 255, 0.08));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: evHeaderStickyDrop 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.ev-demo-header.is-hidden {
    transform: translateY(calc(-100% - var(--ev-adminbar-offset)));
}

.ev-demo-header.is-compact .ev-demo-header__inner {
    min-height: 66px;
}

.ev-demo-header.is-compact .ev-demo-header__menu > li > a {
    min-height: 66px;
}

.ev-demo-header.is-compact .ev-demo-header__logo-image img {
    max-height: 40px;
}

.ev-demo-header.is-compact .ev-demo-header__logo-title {
    font-size: 25px;
}

.ev-demo-header.is-compact .ev-demo-header__logo-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
}

@keyframes evHeaderStickyDrop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ev-demo-header__logo-mark {
    border-color: var(--ev-header-color);
    color: var(--ev-header-color);
}

.ev-demo-header__menu > li.current-menu-item > a::after,
.ev-demo-header__menu > li.current-menu-ancestor > a::after,
.ev-demo-header__menu > li > a:hover::after,
.ev-demo-header__cta {
    background: var(--ev-header-color);
}

.ev-demo-header__menu li ul a:hover,
.ev-demo-header__icon-btn:hover {
    color: var(--ev-header-color);
}

.ev-demo-header__cta:hover {
    box-shadow: 0 14px 34px color-mix(in srgb, var(--ev-header-color) 22%, transparent);
}

.ev-demo-header__inner {
    width: min(100% - 96px, 1716px);
    min-height: 74px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(190px, 260px) 1fr auto;
    align-items: center;
    gap: 28px;
}

.ev-demo-header__brand,
.ev-demo-header__actions {
    display: flex;
    align-items: center;
}

.ev-demo-header__logo-text,
.ev-demo-header__logo-image {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.ev-demo-header__logo-image img {
    display: block;
    max-height: 46px;
    width: auto;
}

.ev-demo-header__logo-mark {
    width: 42px;
    height: 42px;
    border: 2px solid #83ef3f;
    border-radius: 50%;
    color: #83ef3f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 42px;
}

.ev-demo-header__logo-copy {
    display: grid;
    gap: 2px;
}

.ev-demo-header__logo-title {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.ev-demo-header__logo-title::first-letter {
    color: #fff;
}

.ev-demo-header__logo-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.ev-demo-header__nav {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.ev-demo-header__menu,
.ev-demo-header__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ev-demo-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ev-demo-header__menu > li {
    position: relative;
}

.ev-demo-header__menu > li > a {
    min-height: 74px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.ev-demo-header__menu > li.current-menu-item > a,
.ev-demo-header__menu > li.current-menu-ancestor > a,
.ev-demo-header__menu > li > a:hover {
    color: #fff;
}

.ev-demo-header__menu > li.current-menu-item > a::after,
.ev-demo-header__menu > li.current-menu-ancestor > a::after,
.ev-demo-header__menu > li > a:hover::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: #83ef3f;
}

.ev-demo-header__menu li ul {
    min-width: 210px;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    background: #071019;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.ev-demo-header__menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ev-demo-header__menu li ul a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.ev-demo-header__menu li ul a:hover {
    color: #83ef3f;
}

.ev-demo-header__actions {
    justify-content: flex-end;
    gap: 22px;
    position: relative;
}

.ev-demo-header__icon-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.ev-demo-header__icon-btn:hover {
    color: #83ef3f;
}

.ev-demo-header__cta {
    min-height: 42px;
    padding: 0 24px;
    border-radius: 4px;
    background: #83ef3f;
    color: #06111a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ev-demo-header__cta:hover {
    color: #06111a;
    box-shadow: 0 14px 34px rgba(131, 239, 63, 0.22);
}

.ev-demo-header__search {
    width: 260px;
    position: absolute;
    top: calc(100% + 12px);
    right: 152px;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.36));
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.ev-demo-header.is-search-open .ev-demo-header__search,
.ev-demo-header__search:focus-within {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ev-demo-header__search input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(4, 13, 21, 0.98);
    color: #fff;
    padding: 0 14px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ev-demo-header__search input:focus {
    border-color: rgba(131, 239, 63, 0.68);
    box-shadow: 0 0 0 3px rgba(131, 239, 63, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ev-demo-header__mobile-toggle {
    display: none;
    color: #fff;
    font-size: 22px;
}

@media (max-width: 1199px) {
    .ev-demo-header__inner {
        width: min(100% - 40px, 1716px);
        grid-template-columns: minmax(180px, 240px) 1fr auto;
        gap: 18px;
    }

    .ev-demo-header__menu > li > a {
        padding-inline: 11px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .ev-demo-header__inner {
        grid-template-columns: 1fr auto;
    }

    .ev-demo-header__nav {
        display: none;
    }

    .ev-demo-header__cta,
    .ev-demo-header__icon-btn:not(.ev-demo-header__search-toggle) {
        display: none;
    }

    .ev-demo-header__mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 575px) {
    .ev-demo-header__inner {
        width: min(100% - 28px, 100%);
        min-height: 66px;
    }

    .ev-demo-header__logo-title {
        font-size: 23px;
    }

    .ev-demo-header__logo-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 17px;
    }
}

/* Style switcher color bridge */
.ev-demo-header__logo-mark {
    border-color: var(--ev-header-color) !important;
    color: var(--ev-header-color) !important;
}

.ev-demo-header__menu > li.current-menu-item > a::after,
.ev-demo-header__menu > li.current-menu-ancestor > a::after,
.ev-demo-header__menu > li > a:hover::after,
.ev-demo-header__cta {
    background: var(--ev-header-color) !important;
}

.ev-demo-header__menu li ul a:hover,
.ev-demo-header__icon-btn:hover {
    color: var(--ev-header-color) !important;
}

.ev-demo-header__search input:focus {
    border-color: color-mix(in srgb, var(--ev-header-color) 68%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-header-color) 12%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.ev-demo-header__cta:hover {
    box-shadow: 0 14px 34px color-mix(in srgb, var(--ev-header-color) 22%, transparent) !important;
}
