/* ApexBrokersHub Header v45
   Uses the same layout, menu treatment, and mobile behavior as ArabPropFirm. */

:root {
    --abh-header-height: 114px;
    --abh-header-accent: #3d9aff;
    --abh-header-accent-rgb: 61, 154, 255;
}

body.abh-menu-open {
    overflow: hidden;
}

.site-header.abh-header {
    position: sticky;
    top: 0;
    z-index: 50000;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.abh-header__topbar {
    position: relative;
    z-index: 20;
    width: 100%;
    background: linear-gradient(180deg, #10151e 0%, #080d15 100%);
    border-bottom: 0;
}

.abh-header .abh-header__topbar-inner {
    width: min(1420px, 100%);
    max-width: 1420px;
    min-height: 62px;
    margin: 0 auto;
    padding: 9px 22px;
    display: grid !important;
    grid-template-columns:
        minmax(250px, max-content)
        minmax(220px, 1fr)
        minmax(270px, max-content)
        46px !important;
    grid-template-areas: "brand search account menu" !important;
    grid-auto-flow: row;
    align-items: center;
    gap: 14px;
    direction: ltr;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[dir="rtl"] .abh-header .abh-header__topbar-inner {
    grid-template-columns:
        46px
        minmax(270px, max-content)
        minmax(220px, 1fr)
        minmax(250px, max-content) !important;
    grid-template-areas: "menu account search brand" !important;
}

.abh-header .site-brand-cluster {
    grid-area: brand;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    direction: ltr;
}

html[dir="rtl"] .abh-header .site-brand-cluster {
    justify-self: end;
    direction: rtl;
}

.abh-header .site-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.abh-header .site-brand__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--abh-header-accent-rgb), 0.48);
    border-radius: 12px;
    background: rgba(var(--abh-header-accent-rgb), 0.13);
    color: #72b7ff;
    box-shadow:
        inset 0 0 18px rgba(var(--abh-header-accent-rgb), 0.1),
        0 0 20px rgba(var(--abh-header-accent-rgb), 0.09);
}

.abh-header .site-brand__logo {
    width: 29px;
    height: 29px;
}

.abh-header .site-brand__text {
    max-width: none;
    overflow: visible;
    background: linear-gradient(90deg, #ffffff, #72b7ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 19px;
    white-space: nowrap;
    text-overflow: clip;
}

/* App icon: identical visual treatment to ArabPropFirm. */
.abh-header .abh-app-launcher {
    position: relative;
    flex: 0 0 auto;
}

.abh-header .abh-app-launcher__button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f4f4f5;
    box-shadow: none;
    cursor: pointer;
    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.abh-header .abh-app-launcher__button:hover,
.abh-header .abh-app-launcher.is-open .abh-app-launcher__button {
    transform: translateY(-1px);
    border: 0;
    background: transparent;
    color: var(--abh-header-accent);
    box-shadow: none;
}

.abh-header .abh-app-launcher__grid {
    width: 24px;
    height: 24px;
    fill: currentColor;
    opacity: 0.95;
}

.abh-header__search {
    grid-area: search;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    justify-self: center;
    direction: ltr;
}

html[dir="rtl"] .abh-header__search {
    direction: rtl;
}

.abh-header .site-search {
    position: relative;
    width: 100%;
}

.abh-header .site-search__field {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
    border: 1px solid rgba(114, 183, 255, 0.24);
    border-radius: 12px;
    background: #101a2a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.abh-header .site-search__field:focus-within {
    border-color: rgba(114, 183, 255, 0.58);
    background: #111e31;
    box-shadow: 0 0 0 3px rgba(var(--abh-header-accent-rgb), 0.09);
}

.abh-header .site-search__field button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #72b7ff;
    cursor: pointer;
}

.abh-header .site-search__field button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.abh-header .site-search__field input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4f7fb;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
}

.abh-header .site-search__field input::placeholder {
    color: #8393a9;
    opacity: 1;
}

.abh-header .site-search__suggestions {
    z-index: 80;
    top: calc(100% + 8px);
}

.abh-header__actions {
    grid-area: account;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-self: end;
    justify-content: flex-end;
    gap: 7px;
    direction: ltr;
}

html[dir="rtl"] .abh-header__actions {
    justify-self: start;
    direction: rtl;
}

.abh-header .language-switch,
.abh-header .login-link,
.abh-header .register-link,
.abh-header .account-link,
.abh-header .site-user-logout button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.abh-header .language-switch {
    color: #72b7ff;
    border: 1px solid rgba(114, 183, 255, 0.25);
    background: rgba(var(--abh-header-accent-rgb), 0.07);
}

.abh-header .login-link {
    color: #d8e5f6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.abh-header .register-link {
    color: #ffffff;
    border: 1px solid rgba(114, 183, 255, 0.48);
    background: linear-gradient(135deg, #1679ed, #3d9aff);
    box-shadow: 0 0 20px rgba(var(--abh-header-accent-rgb), 0.14);
}

.abh-header .language-switch:hover,
.abh-header .login-link:hover,
.abh-header .register-link:hover,
.abh-header .account-link:hover,
.abh-header .site-user-logout button:hover {
    transform: translateY(-1px);
}

.abh-header .account-link {
    gap: 7px;
}

.abh-header .account-link__mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(114, 183, 255, 0.36);
    border-radius: 8px;
    background: rgba(var(--abh-header-accent-rgb), 0.13);
}

.abh-notification-link {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(114, 183, 255, 0.18);
    border-radius: 10px;
    background: rgba(var(--abh-header-accent-rgb), 0.055);
    color: #cfe5ff;
}

.abh-notification-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.abh-notification-link strong,
.abh-mobile-account > strong {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding-inline: 4px;
    border: 2px solid #080d15;
    border-radius: 999px;
    background: var(--abh-header-accent);
    color: #ffffff;
    font-size: 8px;
}

/* ArabPropFirm-style menu icon: three clean lines without a container. */
.abh-header .site-menu-toggle {
    grid-area: menu;
    grid-column: auto;
    grid-row: auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px !important;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #ffffff;
    box-shadow: none !important;
    cursor: pointer;
    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.abh-header .site-menu-toggle:hover,
.abh-header.is-menu-open .site-menu-toggle {
    transform: translateY(-1px);
    border: 0 !important;
    background: transparent !important;
    color: var(--abh-header-accent);
    box-shadow: none !important;
}

.abh-header .site-menu-toggle > span {
    width: 20px !important;
    height: 2px !important;
    display: block;
    margin: 0 !important;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform 0.24s ease,
        opacity 0.18s ease;
}

.abh-header.is-menu-open .site-menu-toggle > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.abh-header.is-menu-open .site-menu-toggle > span:nth-child(2) {
    opacity: 0;
}

.abh-header.is-menu-open .site-menu-toggle > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.abh-mobile-account {
    display: none;
}

/* Main navigation: remains visible on mobile exactly like ArabPropFirm. */
.abh-header__nav {
    position: relative;
    z-index: 18;
    width: 100%;
    min-height: 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: #09101b;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.abh-header__nav-inner {
    width: min(1420px, 100%);
    min-height: 46px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
}

.abh-header__nav-inner > a {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 13px;
    color: #a9b4c5;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.abh-header__nav-inner > a::after {
    content: "";
    position: absolute;
    inset-inline: 18%;
    bottom: -1px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: var(--abh-header-accent);
    box-shadow: 0 0 14px rgba(var(--abh-header-accent-rgb), 0.55);
    opacity: 0;
    transform: scaleX(0.4);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.abh-header__nav-inner > a:hover,
.abh-header__nav-inner > a.is-active {
    color: #ffffff;
}

.abh-header__nav-inner > a:hover::after,
.abh-header__nav-inner > a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Mega menu: flat, full-width, and structurally matched to ArabPropFirm. */
.abh-mega-backdrop {
    position: fixed;
    z-index: 14;
    top: var(--abh-header-height, 114px);
    inset-inline: 0;
    bottom: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.24s ease,
        visibility 0.24s ease;
}

.abh-mega-menu {
    position: absolute;
    z-index: 16;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100vh - var(--abh-header-height, 114px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(var(--abh-header-accent-rgb), 0.38);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(var(--abh-header-accent-rgb), 0.09),
            transparent 34%
        ),
        #090f19;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
        opacity 0.24s ease,
        visibility 0.24s ease,
        transform 0.24s ease;
}

.abh-header.is-menu-open .abh-mega-backdrop,
.abh-header.is-menu-open .abh-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.abh-header.is-menu-open .abh-mega-menu {
    transform: translateY(0);
}

.abh-mega-shell {
    width: min(1420px, 100%);
    margin: 0 auto;
    padding: 28px 22px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 34px;
}

.abh-mega-mobile-tools {
    display: none;
}

.abh-mega-shortcuts {
    min-width: 0;
    padding-inline-end: 30px;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.075);
}

.abh-mega-section-head {
    margin-bottom: 16px;
}

.abh-mega-section-head > span {
    display: block;
    margin-bottom: 4px;
    color: var(--abh-header-accent);
    font-size: 11px;
    font-weight: 900;
}

.abh-mega-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.55;
}

.abh-mega-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.abh-mega-shortcut {
    min-width: 0;
    min-height: 72px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: #111925;
    color: #ffffff;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.abh-mega-shortcut:hover,
.abh-mega-shortcut[aria-expanded="true"] {
    transform: translateY(-2px);
    border-color: rgba(var(--abh-header-accent-rgb), 0.54);
    background: #132238;
}

.abh-mega-shortcut > i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--abh-header-accent-rgb), 0.14);
    color: var(--abh-header-accent);
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
}

.abh-mega-shortcut > span {
    min-width: 0;
    display: block;
}

.abh-mega-shortcut strong,
.abh-mega-shortcut small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abh-mega-shortcut strong {
    font-size: 13px;
}

.abh-mega-shortcut small {
    margin-top: 3px;
    color: #8e9eb4;
    font-size: 10px;
    font-weight: 700;
}

.abh-broker-directory {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 14px;
    background: #0d1521;
}

.abh-broker-directory[hidden] {
    display: none;
}

.abh-broker-directory__head {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.abh-broker-directory__head strong {
    color: #ffffff;
    font-size: 13px;
}

.abh-broker-directory__head span {
    color: var(--abh-header-accent);
    font-size: 10px;
    font-weight: 900;
}

.abh-broker-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.abh-broker-directory__grid > a {
    min-width: 0;
    min-height: 42px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    color: #dce6f4;
    font-size: 11px;
    font-weight: 800;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.abh-broker-directory__grid > a:hover {
    color: #ffffff;
    background: rgba(var(--abh-header-accent-rgb), 0.1);
}

.abh-broker-directory__grid img,
.abh-broker-directory__grid > a > span {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    padding: 2px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.95);
    color: #176fcf;
    object-fit: contain;
    font-size: 7px;
    font-weight: 900;
}

.abh-broker-directory__grid strong {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abh-broker-directory > p {
    margin: 0;
    color: #97a6ba;
    font-size: 11px;
}

.abh-mega-columns {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 28px 22px;
}

.abh-mega-columns > section {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.abh-mega-columns h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 13px;
}

.abh-mega-columns section:not(.abh-mega-community) > a {
    display: block;
    width: auto;
    padding: 6px 0;
    color: #9dacc0;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.18s ease;
}

.abh-mega-columns section:not(.abh-mega-community) > a:hover {
    color: var(--abh-header-accent);
    transform: none;
}

.abh-mega-community {
    grid-column: 1 / -1;
    padding-top: 4px !important;
}

.abh-mega-community p {
    margin: 0 0 12px;
    color: #8d9db1;
    font-size: 11px;
    line-height: 1.8;
}

.abh-mega-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.abh-mega-socials > a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #b8c7d9;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.abh-mega-socials > a:hover {
    color: #ffffff;
    background: rgba(var(--abh-header-accent-rgb), 0.1);
    border-color: rgba(var(--abh-header-accent-rgb), 0.45);
    transform: translateY(-2px);
}

.abh-mega-socials svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (min-width: 769px) and (max-width: 1180px) {
    .abh-header .abh-header__topbar-inner {
        grid-template-columns:
            minmax(195px, max-content)
            minmax(145px, 1fr)
            max-content
            40px !important;
        gap: 8px;
        padding: 8px 12px;
    }

    html[dir="rtl"] .abh-header .abh-header__topbar-inner {
        grid-template-columns:
            40px
            max-content
            minmax(145px, 1fr)
            minmax(195px, max-content) !important;
    }

    .abh-header .site-brand {
        gap: 7px;
    }

    .abh-header .site-brand__mark,
    .abh-header .abh-app-launcher__button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .abh-header .site-brand__text {
        font-size: 16px;
    }

    .abh-header__search {
        max-width: none;
    }

    .abh-header .site-search__field input {
        font-size: 11px;
    }

    .abh-header .language-switch,
    .abh-header .login-link,
    .abh-header .register-link,
    .abh-header .account-link,
    .abh-header .site-user-logout button {
        min-height: 36px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .abh-header .site-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .abh-header__nav-inner {
        padding-inline: 12px;
    }

    .abh-header__nav-inner > a {
        padding-inline: 8px;
        font-size: 11px;
    }

    .abh-mega-shell {
        padding-inline: 18px;
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --abh-header-height: 104px;
    }

    .abh-header .abh-header__topbar-inner {
        width: 100%;
        max-width: 100%;
        min-height: 58px;
        margin: 0;
        padding: 8px 9px;
        grid-template-columns:
            max-content
            minmax(76px, 1fr)
            38px
            38px !important;
        grid-template-areas: "brand search account menu" !important;
        gap: 7px;
    }

    html[dir="rtl"] .abh-header .abh-header__topbar-inner {
        grid-template-columns:
            38px
            38px
            minmax(76px, 1fr)
            max-content !important;
        grid-template-areas: "menu account search brand" !important;
    }

    .abh-header .site-brand-cluster {
        gap: 5px;
    }

    .abh-header .site-brand {
        gap: 0;
    }

    .abh-header .site-brand__text {
        display: none;
    }

    .abh-header .site-brand__mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .abh-header .site-brand__logo {
        width: 26px;
        height: 26px;
    }

    .abh-header .abh-app-launcher__button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .abh-header .abh-app-launcher__grid {
        width: 21px;
        height: 21px;
    }

    .abh-header__search {
        display: block;
        max-width: none;
    }

    .abh-header .site-search__field {
        min-width: 76px;
        height: 38px;
        padding-inline: 7px;
        border-radius: 11px;
    }

    .abh-header .site-search__field button {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .abh-header .site-search__field button svg {
        width: 18px;
        height: 18px;
    }

    .abh-header .site-search__field input {
        height: 36px;
        padding-inline: 4px;
        font-size: 12px;
    }

    .abh-header .site-search__field input::placeholder {
        color: transparent;
        font-size: 0;
    }

    .abh-header__actions {
        display: none;
    }

    .abh-mobile-account {
        position: relative;
        grid-area: account;
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.035);
        color: #f4f4f5;
    }

    .abh-mobile-account > svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .abh-mobile-account > span {
        width: 25px;
        height: 25px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--abh-header-accent);
        color: #07101c;
        font-size: 11px;
        font-weight: 900;
    }

    .abh-header .site-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .abh-header .abh-app-launcher__menu {
        position: fixed;
        top: 62px;
        inset-inline: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        transform-origin: top center;
    }

    .abh-header .abh-app-launcher__menu::before {
        display: none;
    }

    .abh-header__nav {
        display: block;
        min-height: 46px;
    }

    .abh-header__nav-inner {
        width: 100%;
        min-width: 100%;
        min-height: 46px;
        padding: 0 12px;
        justify-content: flex-start;
        gap: 22px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .abh-header__nav-inner::-webkit-scrollbar {
        height: 0;
    }

    .abh-header__nav-inner > a {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 11px 2px;
        font-size: 12px;
        scroll-snap-align: start;
    }

    .abh-header__nav-inner > a::after {
        inset-inline: 0;
    }

    .abh-mega-backdrop {
        display: none;
    }

    .abh-mega-menu {
        position: fixed;
        top: var(--abh-header-height, 104px);
        bottom: 0;
        max-height: none;
        border-bottom: 0;
        transform: translateY(-6px);
    }

    .abh-mega-shell {
        width: 100%;
        padding: 16px 14px 34px;
        display: block;
    }

    .abh-mega-mobile-tools {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 16px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .abh-mega-mobile-tools > a,
    .abh-mega-mobile-tools > form {
        flex: 1 1 120px;
    }

    .abh-mega-mobile-tools > a,
    .abh-mega-mobile-tools button {
        width: 100%;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 10px;
        border: 1px solid rgba(114, 183, 255, 0.17);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.025);
        color: #dcecff;
        font: inherit;
        font-size: 10px;
        font-weight: 850;
        cursor: pointer;
    }

    .abh-mega-mobile-tools > a.is-primary {
        border-color: rgba(114, 183, 255, 0.5);
        background: linear-gradient(135deg, #1679ed, #3d9aff);
        color: #ffffff;
    }

    .abh-mega-shortcuts {
        padding: 0;
        border: 0;
    }

    .abh-mega-section-head {
        margin-bottom: 13px;
    }

    .abh-mega-section-head h2 {
        font-size: 17px;
    }

    .abh-mega-shortcut-grid {
        gap: 7px;
    }

    .abh-mega-shortcut {
        min-height: 68px;
        padding: 10px;
        gap: 8px;
    }

    .abh-mega-shortcut > i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 8px;
        font-size: 14px;
    }

    .abh-mega-shortcut strong {
        font-size: 11px;
    }

    .abh-mega-shortcut small {
        font-size: 8.5px;
    }

    .abh-broker-directory {
        padding: 11px;
    }

    .abh-broker-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .abh-mega-columns {
        margin-top: 28px;
        padding-top: 24px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .abh-mega-community {
        grid-column: 1 / -1;
    }
}

@media (max-width: 390px) {
    .abh-header .abh-header__topbar-inner {
        grid-template-columns:
            max-content
            minmax(62px, 1fr)
            36px
            36px !important;
        gap: 5px;
        padding-inline: 7px;
    }

    html[dir="rtl"] .abh-header .abh-header__topbar-inner {
        grid-template-columns:
            36px
            36px
            minmax(62px, 1fr)
            max-content !important;
    }

    .abh-header .site-brand__mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .abh-header .site-brand__logo {
        width: 24px;
        height: 24px;
    }

    .abh-header .abh-app-launcher__button,
    .abh-header .site-menu-toggle,
    .abh-mobile-account {
        width: 36px;
        height: 36px;
    }

    .abh-header .site-search__field {
        min-width: 62px;
        padding-inline: 5px;
    }

    .abh-mega-shortcut small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abh-header *,
    .abh-header *::before,
    .abh-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
