/* Account navigation uses the existing native modal and auth service. */
.has-account-menu [data-language-toggle]{display:none}
.header.has-account-menu .header-actions{gap:12px;flex-shrink:0}
.header-favorites{position:relative}.favorites-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:1px 4px;border-radius:12px;background:#1673ea;color:#fff;font-size:10px;line-height:15px;text-align:center}
dialog.account-menu{position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;margin:0;box-sizing:border-box;width:min(370px,90vw);max-width:90vw;height:100dvh;max-height:100dvh;border:0;border-radius:0 0 0 24px;padding:22px 20px max(24px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;background:var(--card-surface,#fff);color:var(--ink,#15233b);box-shadow:0 0 48px #071c3d33}
html[dir=ltr] dialog.account-menu{border-radius:0 24px 24px 0}
.account-menu[open]{animation:menu-enter .22s ease-out}
.account-menu::backdrop{background:#08172b70;backdrop-filter:blur(4px);animation:menu-fade .22s ease-out}
.account-menu.menu-closing{animation:menu-leave .18s ease-in forwards}
.account-menu.menu-closing::backdrop{animation:menu-fade .18s reverse forwards}
.menu-profile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:13px;padding:14px 0 22px;border-bottom:1px solid var(--line,#e5eaf2)}
.menu-avatar{position:relative;display:grid;place-items:center;flex:none;width:76px;height:76px;border-radius:50%;border:2px solid #1673ea55;background:var(--ice,#edf5ff);color:var(--blue,#1673ea);overflow:hidden;box-shadow:0 0 0 5px #1673ea0a}
.menu-avatar svg{width:38px;height:38px}.menu-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.menu-user-name{font-size:18px;overflow-wrap:anywhere;max-width:100%}
.menu-account-button{display:block;width:100%;box-sizing:border-box;padding:13px 10px;background:#1673ea;color:white!important;border-radius:13px;text-decoration:none;font-weight:700;font-size:16px}
.menu-logout{background:transparent;color:var(--muted,#5a6980);border:0;padding:10px 18px;font:inherit;min-height:44px;cursor:pointer}
.menu-languages{padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line,#e5eaf2)}
.menu-language-choices{display:flex;gap:5px;padding:4px;border-radius:13px;background:var(--ice,#edf5ff)}
.menu-language-choices button{font:inherit;padding:8px 12px;min-height:44px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink,#15233b);cursor:pointer}
.menu-language-choices button[aria-pressed=true]{background:#1673ea;color:white;border-color:#1673ea;font-weight:700}
.account-menu .menu-links{padding-top:12px}.account-menu :is(a,button):focus-visible{outline:3px solid var(--blue,#1673ea);outline-offset:3px}
@keyframes menu-enter{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:translateX(0)}}
@keyframes menu-leave{to{opacity:0;transform:translateX(30px)}}
@keyframes menu-fade{from{opacity:0}to{opacity:1}}
html[dir=ltr] .account-menu{--menu-side:-1}
@media(max-width:600px){.reference-home .header.has-account-menu{grid-template-columns:40px minmax(90px,1fr) auto;gap:8px;padding-inline:12px}.header.has-account-menu .header-actions{gap:8px}.header.has-account-menu .icon-button{width:36px;height:40px;min-width:36px}.header.has-account-menu .reference-brand{min-width:0}.header.has-account-menu .brand-text{min-width:0}.header.has-account-menu .brand-mark{width:38px}.header.has-account-menu .brand-name-window{max-width:110px}.header.has-account-menu .brand-text small{font-size:9px}}
@media(max-width:360px){.header.has-account-menu .brand-text{display:none}.header.has-account-menu .header-actions{gap:6px}}
@media(prefers-reduced-motion:reduce){.account-menu[open],.account-menu::backdrop,.account-menu.menu-closing{animation:none!important}}

/* Shared header: physical left-to-right order in both interface languages. */
body header.mobix-shared-header:is(.header,.content-header).has-account-menu{
 display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;direction:ltr;
 width:100%;max-width:1200px;height:clamp(54px,13.89vw,108px);min-height:76px;
 padding:5px var(--shared-header-padding,2.6%)!important;margin:0 auto;gap:var(--shared-header-gap,clamp(6px,1.8vw,18px))!important;
 background:var(--card-surface,#fff);border:0;
}
body header.mobix-shared-header:is(.header,.content-header)>.menu-trigger{order:0;flex:none}
body header.mobix-shared-header:is(.header,.content-header)>.brand{order:1;display:flex;align-items:center;flex:none;min-width:0;margin:0;letter-spacing:0}
body header.mobix-shared-header:is(.header,.content-header)>.header-actions{order:2;display:flex;align-items:center;direction:ltr;margin-left:auto;flex:none;gap:12px}
body header.mobix-shared-header:is(.header,.content-header) .theme-search-stack{display:flex;flex-direction:row-reverse;align-items:center;gap:8px;flex:none}
body header.mobix-shared-header:is(.header,.content-header) .icon-button{
 display:inline-flex;align-items:center;justify-content:center;position:relative;
 width:36px;height:44px;min-width:36px;min-height:44px;padding:0;flex:none;
 color:var(--ink,#081640);background:transparent;border:0;box-shadow:none;
}
body header.mobix-shared-header:is(.header,.content-header) .icon-button svg{width:clamp(18px,4.35vw,34px);height:clamp(18px,4.35vw,34px)}
body header.mobix-shared-header:is(.header,.content-header) .menu-trigger{width:clamp(36px,7.8vw,60px);height:clamp(40px,7.8vw,60px);padding:7px;border-radius:50%;background:var(--ice,#F1F4F9)}
body header.mobix-shared-header:is(.header,.content-header) .header-cart{top:auto;right:auto}
body header.mobix-shared-header:is(.header,.content-header) .icon-button::before{content:'';position:absolute;inset:0}
@media(max-width:600px){
 body header.mobix-shared-header:is(.header,.content-header).has-account-menu{--shared-header-padding:12px;--shared-header-gap:8px}
 body header.mobix-shared-header:is(.header,.content-header)>.header-actions{gap:8px}
}
@media(max-width:360px){
 body header.mobix-shared-header:is(.header,.content-header).has-account-menu{--shared-header-gap:6px}
 body header.mobix-shared-header:is(.header,.content-header)>.header-actions{gap:4px}
 body header.mobix-shared-header:is(.header,.content-header) .theme-search-stack{gap:4px}
 body header.mobix-shared-header:is(.header,.content-header) .icon-button{width:32px;min-width:32px}
 body header.mobix-shared-header:is(.header,.content-header) .menu-trigger{width:32px}
}

/* Compact navigation everywhere; keep 44px minimum interactive row heights. */
dialog.account-menu{width:min(270px,67.5vw);max-width:67.5vw;padding:16px 14px max(18px,env(safe-area-inset-bottom))}
.account-menu .dialog-head{margin-bottom:12px;direction:rtl}
html[dir=ltr] .account-menu .dialog-head{direction:ltr}
.account-menu .dialog-head h2{font-size:16.5px;margin:0}
.account-menu .dialog-head button{width:44px;height:44px;min-height:44px;flex:none}
.account-menu .menu-profile{gap:9px;padding:10px 0 16px}
.account-menu .menu-avatar{width:55px;height:55px}
.account-menu .menu-avatar svg{width:28px;height:28px}
.account-menu .menu-user-name{font-size:13.5px}
.account-menu .menu-account-button{font-size:12px;padding:9px 7px;min-height:44px;display:flex;align-items:center;justify-content:center}
.account-menu .menu-logout{font-size:12px;padding:7px 12px}
.account-menu .menu-languages{padding:13px 0;gap:6px;font-size:12px}
.account-menu .menu-language-choices{padding:3px;gap:3px}
.account-menu .menu-language-choices button{font-size:12px;padding:6px;min-height:44px}
.account-menu .menu-links{gap:6px;padding-top:9px}
.account-menu .menu-links :is(a,button){font-size:12px;line-height:1.5;padding:8px 9px;min-height:44px;overflow-wrap:anywhere;text-align:start}

/* Reference-style circular search and flag language picker. */
body header.mobix-shared-header:is(.header,.content-header)>.brand{flex:1 1 auto;min-width:0;overflow:hidden}
body header.mobix-shared-header:is(.header,.content-header) .header-cart{display:none!important}
body header.mobix-shared-header:is(.header,.content-header) .header-search{width:32px;min-width:32px;height:32px;min-height:32px;border:1px solid var(--line,#e6e6e6);border-radius:50%;background:var(--card-surface,#fff);color:var(--ink,#111)}
body header.mobix-shared-header:is(.header,.content-header) .header-search svg{width:20px;height:20px;stroke-width:1.5}
.header-language{position:relative;flex:none;direction:ltr;color:var(--ink,#111);font-family:Arial,sans-serif}
.header-language-trigger{display:flex;align-items:center;justify-content:center;gap:5px;width:46px;height:32px;min-height:32px;padding:4px 6px;border:1px solid var(--line,#e6e6e6);border-radius:20px;background:var(--card-surface,#fff);color:var(--muted,#999);cursor:pointer}
.header-language .language-flag{display:flex;align-items:center;justify-content:center;flex:none;width:17px;height:17px;border-radius:50%;overflow:hidden;background:#fff}
.header-language .language-flag svg{display:block;flex:none;width:26px;height:17px;stroke:none}
.header-language .language-chevron{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.2;transition:transform .15s}
.header-language-trigger[aria-expanded=true] .language-chevron{transform:rotate(180deg)}
.header-language-options{position:absolute;top:calc(100% + 8px);right:0;z-index:60;width:136px;padding:6px;border:1px solid var(--line,#f1f1f1);border-radius:15px;background:var(--card-surface,#fff);box-shadow:0 8px 24px #162b4920}
.header-language-options[hidden]{display:none!important}
.header-language-options button{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:8px 9px;border:0;border-radius:11px;background:transparent;color:var(--ink,#555);font:400 11px/1.4 Arial,sans-serif;text-align:left;white-space:nowrap;cursor:pointer}
.header-language-options button[aria-checked=true]{background:var(--ice,#e8f3fb);color:var(--blue,#3687b6)}
.header-language .language-check{width:12px;height:12px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.5;visibility:hidden}
.header-language-options button[aria-checked=true] .language-check{visibility:visible}
.header-language :is(button):focus-visible{outline:2px solid var(--blue,#0878f9);outline-offset:2px}
@media(max-width:360px){body header.mobix-shared-header:is(.header,.content-header) .theme-search-stack{gap:4px}.header-language-trigger{width:42px}}
@media(prefers-reduced-motion:reduce){.header-language .language-chevron{transition:none}}
