.header-mobile-menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 4px; border: 0; border-radius: 10px; color: var(--site-icon, #444); background: transparent; cursor: pointer; }
.header-mobile-menu { display: none; }
.header-mobile-menu[hidden], .header-mobile-menu [hidden] { display: none !important; }
.header-user-label { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--site-menu-ink, #3f3f3f); font-weight: 600; }
.header-guest-nav .header-guest-nav__items { display: flex; justify-content: space-around; align-items: stretch; width: 100%; padding: 0; margin: 0; list-style: none; }
.header-guest-nav__items > li { flex: 1; min-width: 0; }
.header-guest-nav .nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 60px; padding: 8px; text-decoration: none; }
@media (max-width: 1023px) {
    .header-mobile-menu-toggle { display: inline-flex; }
    .header-user-label { display: none; }
    html.header-mobile-menu-open { overflow: hidden !important; }
    html.header-mobile-menu-open #changeMyCurrModal { z-index: 1100; }
    .header-mobile-menu { display: flex; position: fixed; inset: 0; z-index: 1001; width: 100%; height: 100vh; height: 100dvh; flex-direction: column; background: var(--site-bg, #f1eef0); color: var(--site-title, #222); overscroll-behavior: contain; }
    .header-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--site-border-soft, #ebe7e7); background: var(--site-card, #fff); font-size: 20px; font-weight: 600; }
    .header-mobile-menu__close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--site-border-soft, #ebe7e7); border-radius: 10px; background: var(--site-surface, #f7f5f6); color: inherit; font-size: 28px; cursor: pointer; }
    .header-mobile-menu__content { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
    .header-mobile-menu__card, .header-mobile-menu__guest { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--site-border-soft, #ebe7e7); border-radius: 12px; background: var(--site-card, #fff); }
    .header-mobile-menu__username { color: var(--site-title, #222); font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
    .header-mobile-menu__balance { display: flex; flex-wrap: wrap; gap: 8px; color: var(--site-text, #444); }
    .header-mobile-menu__top-up, .header-mobile-menu__guest-login { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--site-accent, #ffbe40); color: var(--site-ink-strong, #111); font-weight: 600; text-decoration: none; }
    .header-mobile-menu__guest-login { background: var(--site-surface, #f7f5f6); color: var(--site-title, #222); }
    .header-mobile-menu__nav ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-radius: 12px; overflow: hidden; background: var(--site-card, #fff); }
    .header-mobile-menu__nav a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 12px 16px; border-bottom: 1px solid var(--site-border-soft, #ebe7e7); color: var(--site-title, #222) !important; text-decoration: none; }
    .header-mobile-menu__nav a:hover, .header-mobile-menu__nav a[aria-current="page"], .header-mobile-menu__nav a.active { color: var(--site-mark, #fd5a3c) !important; }
    .header-mobile-menu__nav li:last-child a { border-bottom: 0; }
    .header-mobile-menu__notification { display: flex; justify-content: flex-start; padding: 14px 16px 0; }
    .header-mobile-menu__preferences { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
    .header-mobile-menu__prefs, .header-mobile-menu .header-mobile-menu__theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; height: auto; padding: 12px 16px; margin: 0; border: 1px solid var(--site-border-soft, #ebe7e7); border-radius: 10px; background: var(--site-card, #fff); color: var(--site-text, #444); text-align: left; font: inherit; cursor: pointer; }
    .header-mobile-menu__prefs span { overflow-wrap: anywhere; }
    .header-mobile-menu .header-mobile-menu__theme { justify-content: flex-start; }
    .header-mobile-menu__theme svg { flex: 0 0 20px; }
}

@media (max-width: 1023px) {
    .mobile-menu { display: block; }
    html.header-catalog-open .mobile-menu, html.header-mobile-menu-open .mobile-menu { visibility: hidden; pointer-events: none; }
}
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.header-mobile-menu__settings-title { margin: 6px 0 0; color: var(--site-title, #222); font-size: 16px; }
