.hg-mega { position: static; }
.hg-mega__trigger { background: transparent; border: 0; cursor: pointer; }
.hg-mega__trigger:focus-visible,
.hg-mega__side-btn:focus-visible,
.hg-mega__links a:focus-visible { outline: 2px solid var(--color-primary-500, #7c3aed); outline-offset: 2px; }
.hg-mega.is-open > .hg-mega__trigger { color: var(--color-primary-700, #6d28d9); background: #fff; }
.hg-mega__badge { font-size: 10px; line-height: 1; font-weight: 700; color: #fff; background: var(--color-primary-600, #7c3aed); border-radius: 999px; padding: 2px 6px; }
.hg-mega__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(80rem, calc(100vw - 2rem));
    z-index: 55;
    padding-top: 8px;
}
.header-menu-bar { position: relative; }
.hg-mega__panel[hidden] { display: none; }
.hg-mega__layout {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    min-height: 220px;
    overflow: hidden;
}
.hg-mega__side {
    width: 240px;
    flex: 0 0 240px;
    border-left: 1px solid #f1f1f1;
    background: #fafafa;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 420px;
    overflow: auto;
}
.hg-mega__side-btn,
.hg-mega__side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: right;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}
.hg-mega__side-btn.is-active,
.hg-mega__side-btn:hover,
.hg-mega__side-link:hover { background: #fff; color: var(--color-primary-700, #6d28d9); }
.hg-mega__content { flex: 1; padding: 16px 18px; min-width: 0; }
.hg-mega__pane[hidden] { display: none; }
.hg-mega__pane-title { display: inline-block; font-weight: 800; color: #111827; margin-bottom: 12px; text-decoration: none; }
a.hg-mega__pane-title:hover { color: var(--color-primary-700, #6d28d9); }
.hg-mega__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; list-style: none; margin: 0; padding: 0; }
.hg-mega__links a { display: block; padding: 8px 10px; border-radius: 10px; color: #374151; text-decoration: none; font-size: 14px; font-weight: 500; }
.hg-mega__links a:hover { background: #f5f3ff; color: var(--color-primary-700, #6d28d9); }
.hg-mega-mobile { border-bottom: 1px solid #f3f4f6; }
.hg-mega-mobile__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: transparent; border: 0; padding: 10px 4px; font-weight: 700; cursor: pointer; }
.hg-mega-mobile__col { padding: 4px 8px 10px; }
.hg-mega-mobile__links { list-style: none; margin: 0; padding: 0; }
.hg-mega-mobile__links a { display: block; padding: 6px 8px; color: #4b5563; text-decoration: none; font-size: 13px; }
@media (max-width: 1023px) {
    .hg-mega__links { grid-template-columns: 1fr 1fr; }
}
