.lxh-mega-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.public-shell.public-mega-shell {
    --academy-header-height: 74px;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.public-mega-shell > .public-main {
    padding-top: 13px !important;
}

.public-header.header1.lxh-mega-header {
    position: sticky !important;
    inset: 0 0 auto !important;
    grid-area: header;
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--border-default) !important;
}

.lxh-mega-header .lxh-mega-row {
    min-height: var(--academy-header-height);
    padding-inline: clamp(14px, 4vw, 64px);
}

.public-header.header1.lxh-mega-header .lxh-brand {
    min-width: 0;
    flex-shrink: 0;
}

.public-header.header1.lxh-mega-header .lxh-brand-mark {
    background: #0a2034;
    color: #fff;
    box-shadow: 0 4px 14px rgb(6 116 140 / 22%);
}

.lxh-mega-shortcuts {
    display: flex;
    align-items: center;
    gap: clamp(3px, 1vw, 18px);
}

.public-header.header1 .lxh-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    font-weight: 650;
    white-space: nowrap;
}

.public-header.header1 .lxh-mega-all {
    border: 1px solid var(--border-default) !important;
    background: var(--bg-card) !important;
    padding-inline: 14px;
}

.public-header.header1 .lxh-mega-trigger:hover,
.public-header.header1 .lxh-mega-trigger[aria-expanded="true"] {
    background: var(--bg-elevated) !important;
    color: var(--success-fg) !important;
}

.lxh-mega-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.public-header.header1.lxh-mega-header .lxh-primary {
    background: #1d4ed8 !important;
    color: #fff !important;
}

.lxh-mega-panel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 5px clamp(12px, 2.2vw, 42px) 10px;
    padding: 30px 26px;
    max-height: calc(100dvh - var(--academy-header-height) - 24px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgb(11 32 55 / 18%);
}

.lxh-mega-panel-single {
    grid-template-columns: minmax(0, 1fr);
    width: min(420px, calc(100% - 24px));
    margin-inline: auto;
}
.lxh-mega-panel[hidden], .lxh-mega-group[hidden] { display: none !important; }

.lxh-mega-group {
    min-width: 0;
    padding: 0 clamp(12px, 2vw, 36px);
}

.lxh-mega-panel:not(.lxh-mega-panel-single) .lxh-mega-group + .lxh-mega-group {
    border-inline-start: 1px solid var(--border-default);
}

.lxh-mega-group h2 {
    margin: 0 0 13px;
    color: var(--text-primary);
    font: 750 1.15rem/1.3 Inter, system-ui, sans-serif;
}

.lxh-mega-group ul { margin: 0; padding: 0; list-style: none; }

.lxh-mega-group a {
    display: block;
    padding-block: 7px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.lxh-mega-group a[aria-current="page"], .lxh-mega-group a:hover {
    color: var(--success-fg);
}

.lxh-mega-group a[aria-current="page"] { font-weight: 700; }
.lxh-mega-group a:hover { text-decoration: underline; }

.lxh-mega-close {
    position: absolute;
    inset: 8px 8px auto auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--text-primary);
    border-radius: 8px;
}

.lxh-mega-close:hover { background: var(--bg-elevated); }

@media (max-width: 1160px) {
    .lxh-mega-shortcuts { display: none; }
}

@media (max-width: 760px) {
    .lxh-mega-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
    .lxh-mega-panel-single { grid-template-columns: minmax(0, 1fr); }
    .lxh-mega-panel .lxh-mega-group:nth-of-type(odd) { border-inline-start: 0 !important; }
}

@media (max-width: 640px) {
    .lxh-mega-header .lxh-mega-row { flex-wrap: wrap; gap: 3px; padding-block: 8px; }
    .lxh-mega-header .lxh-spacer { display: none; }
    .public-header.header1.lxh-mega-header .lxh-actions {
        width: 100%;
        gap: 3px;
        flex: 0 0 100%;
        flex-wrap: wrap;
        margin: 0;
    }
    .public-header.header1.lxh-mega-header .lxh-actions .lxh-auth {
        display: inline-flex;
        min-height: 36px;
        font-size: 12px;
        padding-inline: 5px;
    }
    .public-header.header1.lxh-mega-header .lxh-actions .lxh-currency-toggle {
        display: inline-flex;
    }
    .lxh-mega-panel { max-height: calc(100dvh - 125px); padding: 34px 12px 18px; }
    .lxh-mega-group a { font-size: 0.9rem; }
}
