/**
 * Header bar — ديسكتوب: بحث + حساب. ≤768px: همبرغر + درج (قائمة، بحث، دخول، سوشيال).
 */

.aud-header-bar {
    unicode-bidi: isolate;
    /* هوية أوكشن ويك: كحلي + تركواز */
    --aud-hb-navy: #1e3a5f;
    --aud-hb-navy-mid: #2a4d7c;
    --aud-hb-accent: #0d9488;
    --aud-hb-accent-bright: #14b8a6;
    --aud-hb-accent-dark: #0f766e;
    --aud-hb-surface: #ffffff;
    --aud-hb-surface-soft: #f6f8fa;
    --aud-hb-border: rgba(30, 58, 95, 0.18);
    --aud-hb-text: #1e293b;
    --aud-hb-muted: #64748b;
    --aud-hb-radius: 12px;
    --aud-hb-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);

    position: relative;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.aud-header-bar__desktop {
    width: 100%;
}

.aud-header-bar__mobile-trigger-wrap {
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.aud-header-bar *,
.aud-header-bar *::before,
.aud-header-bar *::after {
    box-sizing: border-box;
}

.aud-header-bar__inner {
    position: relative;
    display: flex;
    flex-direction: row !important;
    direction: ltr !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 14px;
    padding: 4px 0;
    min-width: 0;
}

/* الحساب يسار، البحث يمين */
.aud-header-bar__user,
.aud-header-bar__auth--guest {
    order: 1;
}

/* ----- Guest auth (نص عربي داخل المكوّن) ----- */
.aud-header-bar__auth--guest {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.aud-header-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.aud-header-bar__btn--primary {
    background: linear-gradient(145deg, var(--aud-hb-accent-bright) 0%, var(--aud-hb-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(13, 148, 136, 0.35);
}

.aud-header-bar__btn--primary:hover {
    color: #fff;
    box-shadow: 0 4px 18px rgba(13, 148, 136, 0.45);
    transform: translateY(-1px);
}

.aud-header-bar__btn--outline {
    background: var(--aud-hb-surface);
    color: var(--aud-hb-navy);
    border-color: var(--aud-hb-border);
}

.aud-header-bar__btn--outline:hover {
    border-color: var(--aud-hb-accent);
    color: var(--aud-hb-accent-dark);
    background: rgba(13, 148, 136, 0.06);
}

/* ----- User dropdown ----- */
.aud-header-bar__user {
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}

/* الحساب يسار: صورة ثم سهم نحو البحث */
.aud-header-bar__avatar-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 10px;
    margin: 0;
    background: var(--aud-hb-surface);
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font: inherit;
    color: var(--aud-hb-navy);
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.08);
}

.aud-header-bar__avatar-btn:hover,
.aud-header-bar__avatar-btn:focus-visible {
    border-color: var(--aud-hb-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
    background: var(--aud-hb-surface-soft);
}

.aud-header-bar__avatar-btn[aria-expanded="true"] {
    border-color: var(--aud-hb-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.aud-header-bar__avatar-ring {
    display: flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--aud-hb-accent) 0%, var(--aud-hb-navy-mid) 100%);
    padding: 2px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.aud-header-bar__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.aud-header-bar__chevron {
    display: flex;
    color: var(--aud-hb-accent-dark);
    transition: transform 0.2s ease;
}

.aud-header-bar__avatar-btn[aria-expanded="true"] .aud-header-bar__chevron {
    transform: rotate(180deg);
}

.aud-header-bar__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 24px));
    background: var(--aud-hb-surface);
    border: 1px solid var(--aud-hb-border);
    border-radius: var(--aud-hb-radius);
    box-shadow: var(--aud-hb-shadow);
    z-index: 100050;
    overflow: hidden;
    text-align: right;
}

.aud-header-bar__dropdown[hidden] {
    display: none !important;
}

.aud-header-bar__dropdown-head {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(13, 148, 136, 0.08) 100%);
    border-bottom: 1px solid var(--aud-hb-border);
}

.aud-header-bar__user-name {
    font-weight: 700;
    color: var(--aud-hb-navy);
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aud-header-bar__menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.aud-header-bar__menu-link {
    display: block;
    padding: 10px 16px;
    color: var(--aud-hb-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}

.aud-header-bar__menu-link--with-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.aud-header-bar__nav-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--aud-hb-navy-mid);
    opacity: 0.88;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.aud-header-bar__menu-link:hover .aud-header-bar__nav-icon,
.aud-header-bar__menu-link:focus-visible .aud-header-bar__nav-icon {
    color: var(--aud-hb-accent-dark);
    opacity: 1;
}

.aud-header-bar__menu-link--logout .aud-header-bar__nav-icon {
    color: inherit;
    opacity: 1;
}

.aud-header-bar__nav-label {
    flex: 1;
    min-width: 0;
}

.aud-header-bar__svg-icon {
    display: block;
}

.aud-header-bar__menu-link:hover,
.aud-header-bar__menu-link:focus-visible {
    background: rgba(13, 148, 136, 0.1);
    color: var(--aud-hb-accent-dark);
    outline: none;
}

.aud-header-bar__menu-link--logout {
    color: #b91c1c;
}

.aud-header-bar__menu-link--logout:hover,
.aud-header-bar__menu-link--logout:focus-visible {
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
}

.aud-header-bar__menu-sep {
    height: 1px;
    margin: 6px 12px;
    background: var(--aud-hb-border);
    list-style: none;
    padding: 0;
}

/* ----- Search: أيقونة يسار بلون الهوية، حقل RTL ----- */
.aud-header-bar__search {
    order: 2;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
}

.aud-header-bar__search-form {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: stretch;
    background: linear-gradient(
        90deg,
        rgba(13, 148, 136, 0.11) 0%,
        rgba(13, 148, 136, 0.05) 22%,
        #ffffff 48%
    );
    border: 2px solid rgba(13, 148, 136, 0.38);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 44px;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.12), 0 1px 4px rgba(30, 58, 95, 0.05);
}

.aud-header-bar__search-form:hover {
    border-color: rgba(13, 148, 136, 0.65);
    box-shadow: 0 3px 16px rgba(13, 148, 136, 0.18), 0 2px 6px rgba(30, 58, 95, 0.06);
}

.aud-header-bar__search-form:focus-within {
    border-color: var(--aud-hb-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22), 0 4px 18px rgba(13, 148, 136, 0.2);
}

/* تفوق على قواعد القالب لحقل البحث + placeholder أصغر */
.aud-header-bar .aud-header-bar__search-form .aud-header-bar__search-input--scoped {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
    border: 0;
    padding: 6px 12px 6px 8px;
    margin: 0;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.2 !important;
    color: var(--aud-hb-navy);
    background: transparent;
    outline: none;
    direction: rtl;
    text-align: right;
    height: auto !important;
    min-height: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

.aud-header-bar .aud-header-bar__search-form .aud-header-bar__search-input--scoped::placeholder {
    color: rgba(30, 58, 95, 0.4);
    font-weight: 400;
    font-size: 10px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em;
    opacity: 1;
}

.aud-header-bar .aud-header-bar__search-form .aud-header-bar__search-input--scoped::-webkit-input-placeholder {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

.aud-header-bar .aud-header-bar__search-form .aud-header-bar__search-input--scoped::-moz-placeholder {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

/* حقول داخل شريط الهيدر فقط — لا تؤثر على بقية القالب */
.aud-header-bar input[type="text"],
.aud-header-bar input[type="number"],
.aud-header-bar input[type="email"],
.aud-header-bar input[type="url"],
.aud-header-bar input[type="password"],
.aud-header-bar input[type="search"]:not(.aud-header-bar__search-input--scoped),
.aud-header-bar input[type="reset"],
.aud-header-bar input[type="tel"],
.aud-header-bar input[type="date"],
.aud-header-bar select {
    /* height: 40px; */
}

.aud-header-bar__search-submit {
    order: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 0;
    background: linear-gradient(
        168deg,
        #7dd3c0 0%,
        var(--aud-hb-accent-bright) 30%,
        var(--aud-hb-accent) 55%,
        #0a5c52 100%
    );
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.28) inset;
}

.aud-header-bar__search-toggle {
    order: 0;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 55px;
    border: 0;
    background: linear-gradient(
        168deg,
        #7dd3c0 0%,
        var(--aud-hb-accent-bright) 30%,
        var(--aud-hb-accent) 55%,
        #0a5c52 100%
    );
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2) inset;
}

.aud-header-bar__search-submit:hover,
.aud-header-bar__search-toggle:hover {
    background: linear-gradient(160deg, #2dd4bf 0%, var(--aud-hb-accent-bright) 40%, var(--aud-hb-accent) 100%);
    box-shadow:
        1px 0 0 rgba(255, 255, 255, 0.25) inset,
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.aud-header-bar__search-submit:active,
.aud-header-bar__search-toggle:active {
    transform: scale(0.97);
}

.aud-header-bar__search-submit svg,
.aud-header-bar__search-toggle svg {
    width: 20px !important;
    height: 20px !important;
    max-width: none !important;
    max-height: none !important;
    flex-shrink: 0;
    color: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* ----- نافذة البحث (موبايل) ----- */
.aud-header-bar__modal[hidden] {
    display: none !important;
}

.aud-header-bar__modal:not([hidden]) {
    display: block;
}

.aud-header-bar__modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    padding: 0;
    margin: 0;
    border: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.aud-header-bar__modal-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    display: block;
}

.aud-header-bar__modal-panel {
    position: relative;
    z-index: 1;
    margin: 12vh auto 2rem;
    width: calc(100% - 32px);
    max-width: 420px;
    background: var(--aud-hb-surface);
    border-radius: var(--aud-hb-radius);
    border: 1px solid var(--aud-hb-border);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.25);
    overflow: hidden;
}

.aud-header-bar__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(30, 58, 95, 0.06) 100%);
    border-bottom: 1px solid var(--aud-hb-border);
}

.aud-header-bar__modal-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--aud-hb-navy);
}

.aud-header-bar__modal-x {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--aud-hb-navy);
    cursor: pointer;
    transition: background 0.15s ease;
}

.aud-header-bar__modal-x:hover {
    background: rgba(13, 148, 136, 0.12);
}

.aud-header-bar__modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.aud-header-bar__modal-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid rgba(13, 148, 136, 0.35);
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    color: var(--aud-hb-navy);
    background: var(--aud-hb-surface-soft);
    direction: rtl;
    text-align: right;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aud-header-bar__modal-input:focus {
    border-color: var(--aud-hb-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.aud-header-bar__modal-submit {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(160deg, var(--aud-hb-accent-bright) 0%, var(--aud-hb-accent-dark) 100%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.aud-header-bar__modal-submit:hover {
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
}

.aud-header-bar__modal-submit:active {
    transform: scale(0.98);
}

/* ----- همبرغر ----- */
.aud-header-bar__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(13, 148, 136, 0.4);
    border-radius: 12px;
    background: var(--aud-hb-surface);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aud-header-bar__burger:hover,
.aud-header-bar__burger:focus-visible {
    border-color: var(--aud-hb-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.aud-header-bar__burger-lines {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--aud-hb-navy);
    border-radius: 1px;
    position: relative;
    box-shadow: 0 -7px 0 var(--aud-hb-navy), 0 7px 0 var(--aud-hb-navy);
}

/* ----- درج الموبايل ----- */
.aud-header-bar__drawer[hidden] {
    display: none !important;
}

.aud-header-bar__drawer:not([hidden]) {
    display: block;
}

.aud-header-bar__drawer {
    position: fixed;
    inset: 0;
    z-index: 100070;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.aud-header-bar__drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.aud-header-bar__drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 400px);
    height: 100%;
    max-height: 100dvh;
    background: var(--aud-hb-surface);
    box-shadow: -8px 0 40px rgba(30, 58, 95, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.aud-header-bar__drawer.aud-header-bar__drawer--open .aud-header-bar__drawer-panel {
    transform: translateX(0);
}

.aud-header-bar__drawer-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--aud-hb-navy) 0%, var(--aud-hb-navy-mid) 100%);
    color: #fff;
}

.aud-header-bar__drawer-brand {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.02em;
}

.aud-header-bar__drawer-x {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.aud-header-bar__drawer-x:hover {
    background: rgba(255, 255, 255, 0.22);
}

.aud-header-bar__drawer-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 24px;
}

.aud-header-bar__drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 16px 12px;
    padding: 10px 14px;
    background: var(--aud-hb-surface-soft);
    border: 1px solid var(--aud-hb-border);
    border-radius: 12px;
}

.aud-header-bar__drawer-search-icon {
    flex-shrink: 0;
    color: var(--aud-hb-accent-dark);
    display: flex;
}

.aud-header-bar__drawer-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--aud-hb-navy);
    direction: rtl;
    text-align: right;
    outline: none;
}

.aud-header-bar__drawer-nav-wrap {
    padding: 0 8px;
}

.aud-header-bar__drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aud-header-bar__drawer-menu > li {
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.aud-header-bar__drawer-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.aud-header-bar__drawer-nav-link--depth-0 {
    padding: 14px 16px;
    color: var(--aud-hb-navy);
    font-weight: 600;
    font-size: 15px;
}

.aud-header-bar__drawer-nav-link--depth-0:hover,
.aud-header-bar__drawer-nav-link--depth-0:focus-visible {
    background: rgba(13, 148, 136, 0.08);
    color: var(--aud-hb-accent-dark);
    outline: none;
}

.aud-header-bar__drawer-nav-row {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.aud-header-bar__drawer-nav-row .aud-header-bar__nav-label {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.aud-header-bar__nav-icon--drawer-nav {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--aud-hb-accent-dark);
    opacity: 0.92;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.aud-header-bar__drawer-nav-link--depth-0:hover .aud-header-bar__nav-icon--drawer-nav,
.aud-header-bar__drawer-nav-link--depth-0:focus-visible .aud-header-bar__nav-icon--drawer-nav {
    color: var(--aud-hb-navy-mid);
    opacity: 1;
}

.aud-header-bar__drawer-nav-row--sub .aud-header-bar__nav-icon--drawer-nav {
    color: var(--aud-hb-navy-mid);
    opacity: 0.82;
}

.aud-header-bar__drawer-nav-row--sub .aud-header-bar__svg-icon--wp-nav {
    width: 16px;
    height: 16px;
}

.aud-header-bar__drawer-nav-chevron {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--aud-hb-muted);
    transition: transform 0.22s ease, color 0.15s ease;
}

.aud-header-bar__drawer-nav-link--expandable:hover .aud-header-bar__drawer-nav-chevron,
.aud-header-bar__drawer-nav-link--expandable:focus-visible .aud-header-bar__drawer-nav-chevron {
    color: var(--aud-hb-accent-dark);
}

.menu-item-has-children.aud-submenu-expanded > .aud-header-bar__drawer-nav-link--expandable .aud-header-bar__drawer-nav-chevron {
    transform: rotate(180deg);
    color: var(--aud-hb-accent-dark);
}

.aud-header-bar__drawer-menu .sub-menu {
    list-style: none;
    margin: 0 0 8px;
    padding: 6px 0 10px;
    display: none;
    background: linear-gradient(
        90deg,
        rgba(13, 148, 136, 0.07) 0%,
        rgba(30, 58, 95, 0.04) 100%
    );
    border-inline-start: 3px solid rgba(13, 148, 136, 0.35);
    border-radius: 10px;
    margin-inline-start: 14px;
}

.aud-header-bar__drawer-menu .sub-menu.is-open {
    display: block;
}

.aud-header-bar__drawer-nav-link--sub {
    padding: 10px 16px 10px 20px;
    color: var(--aud-hb-text);
    font-size: 14px;
    font-weight: 500;
}

.aud-header-bar__drawer-nav-link--sub:hover,
.aud-header-bar__drawer-nav-link--sub:focus-visible {
    background: rgba(13, 148, 136, 0.07);
    color: var(--aud-hb-navy);
    outline: none;
}

.aud-header-bar__drawer-nav-link--sub:hover .aud-header-bar__nav-icon--drawer-nav,
.aud-header-bar__drawer-nav-link--sub:focus-visible .aud-header-bar__nav-icon--drawer-nav {
    color: var(--aud-hb-accent-dark);
    opacity: 1;
}

/* Nested sub-menus (depth 3) */
.aud-header-bar__drawer-menu .sub-menu .sub-menu {
    margin-inline-start: 10px;
    border-radius: 8px;
}

.aud-header-bar__drawer-menu-empty {
    margin: 16px;
    padding: 14px;
    font-size: 13px;
    color: var(--aud-hb-muted);
    line-height: 1.5;
    background: var(--aud-hb-surface-soft);
    border-radius: 10px;
}

.aud-header-bar__drawer-section {
    margin: 20px 16px 0;
    padding-top: 16px;
    border-top: 1px solid var(--aud-hb-border);
}

.aud-header-bar__drawer-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--aud-hb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    padding: 0 4px;
}

.aud-header-bar__drawer-subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aud-header-bar__drawer-subnav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--aud-hb-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.aud-header-bar__drawer-subnav-link:hover,
.aud-header-bar__drawer-subnav-link:focus-visible {
    background: rgba(13, 148, 136, 0.08);
    outline: none;
}

.aud-header-bar__drawer-subnav-link .aud-header-bar__nav-icon {
    color: var(--aud-hb-navy-mid);
    opacity: 0.88;
}

.aud-header-bar__drawer-subnav-link:hover .aud-header-bar__nav-icon,
.aud-header-bar__drawer-subnav-link:focus-visible .aud-header-bar__nav-icon {
    color: var(--aud-hb-accent-dark);
    opacity: 1;
}

.aud-header-bar__drawer-logout {
    color: #b91c1c !important;
    font-weight: 600 !important;
}

.aud-header-bar__drawer-logout .aud-header-bar__nav-icon {
    color: inherit !important;
    opacity: 1 !important;
}

.aud-header-bar__drawer-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 20px 16px 0;
    padding-top: 8px;
}

.aud-header-bar__drawer-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.aud-header-bar__drawer-btn--outline {
    background: var(--aud-hb-surface);
    color: var(--aud-hb-navy);
    border: 2px solid var(--aud-hb-border);
}

.aud-header-bar__drawer-btn--solid {
    background: linear-gradient(145deg, var(--aud-hb-accent-bright) 0%, var(--aud-hb-accent-dark) 100%);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.aud-header-bar__drawer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px 16px 8px;
    padding-top: 20px;
    border-top: 1px solid var(--aud-hb-border);
}

.aud-header-bar__drawer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(30, 58, 95, 0.22);
    background: rgba(30, 58, 95, 0.04);
    color: var(--aud-hb-navy-mid);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.aud-header-bar__drawer-social-link:hover,
.aud-header-bar__drawer-social-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.55);
    background: rgba(13, 148, 136, 0.1);
    color: var(--aud-hb-accent-dark);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.12);
    outline: none;
}

.aud-header-bar__drawer-social-link .aud-header-bar__svg-icon--social {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .aud-header-bar__desktop {
        display: none !important;
    }

    .aud-header-bar__mobile-trigger-wrap {
        display: flex;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (min-width: 769px) {
    .aud-header-bar__mobile-trigger-wrap {
        display: none !important;
    }
}

body.aud-header-bar-modal-open,
body.aud-header-bar-drawer-open {
    overflow: hidden;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
