/* MUGEX Global Navigation — Phase 2A.4 */
.mugex-navigation-page{max-width:1280px}.mugex-navigation-page *{box-sizing:border-box}
.mugex-navigation-live-panel{overflow:hidden}.mugex-navigation-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mugex-navigation-grid-desktop{grid-template-columns:minmax(0,1fr)}.mugex-navigation-grid-mobile{grid-template-columns:1fr 1fr}.mx-nav-state-frame{width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid var(--mx-border);border-radius:12px;background:#040A10;scrollbar-width:thin;scrollbar-color:var(--mx-border) transparent}.mx-nav-state-frame>.mx-global-header{min-width:920px}.mx-nav-live-shell{position:relative;min-height:560px;overflow:hidden;border:1px solid var(--mx-border);border-radius:14px;background:var(--mx-bg);color:var(--mx-text)}

/* Shared desktop header */
.mx-global-header{position:relative;z-index:30;width:100%;height:74px;background:#040A10;border-bottom:1px solid var(--mx-border);font-family:var(--mx-font-ui);color:var(--mx-text);transition:height var(--mx-motion-menu) var(--mx-ease),background var(--mx-motion-menu) var(--mx-ease),box-shadow var(--mx-motion-menu) var(--mx-ease)}
.mx-global-header.is-scrolled{height:60px;background:rgba(4,10,16,.96);box-shadow:0 8px 30px rgba(0,0,0,.22);backdrop-filter:blur(16px)}
.mx-global-header-inner{height:100%;max-width:var(--mx-content-max);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:30px}
.mx-global-brand{display:flex;align-items:center;width:134px;height:68px;overflow:visible;line-height:0}.mx-global-brand img{display:block;width:auto;height:58px;max-width:132px;object-fit:contain}.mx-global-header.is-scrolled .mx-global-brand{height:56px;width:121px}.mx-global-header.is-scrolled .mx-global-brand img{height:50px;max-width:119px}
.mx-global-primary{display:flex;align-items:stretch;height:100%;gap:4px;min-width:0;white-space:nowrap;flex-wrap:nowrap}.mx-global-primary a{position:relative;display:flex;align-items:center;min-height:44px;padding:0 12px;color:var(--mx-text-2);font:650 13px/1 var(--mx-font-ui);text-decoration:none;border-radius:7px;transition:color var(--mx-motion-fast) var(--mx-ease),background var(--mx-motion-fast) var(--mx-ease)}.mx-global-primary a:hover{color:var(--mx-text);background:rgba(255,255,255,.035)}.mx-global-primary a.is-active{color:var(--mx-text)}.mx-global-primary a.is-active:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px;background:var(--mx-gold)}
.mx-global-utilities{justify-self:end;display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;flex-wrap:nowrap}.mx-global-utilities>*{flex:0 0 auto}.mx-global-search{position:relative;display:flex;align-items:center;width:235px;height:40px}.mx-global-search>svg{position:absolute;left:12px;width:17px;height:17px;color:var(--mx-text-3);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.mx-global-search input{width:100%;height:40px;border:1px solid var(--mx-border);border-radius:999px;background:var(--mx-surface-1);color:var(--mx-text);padding:0 14px 0 37px;font:500 12px var(--mx-font-ui);outline:none;transition:border-color var(--mx-motion-fast) var(--mx-ease),background var(--mx-motion-fast) var(--mx-ease),box-shadow var(--mx-motion-fast) var(--mx-ease)}.mx-global-search input::placeholder{color:var(--mx-text-3)}.mx-global-search input:hover{background:var(--mx-surface-2);border-color:#49515e}.mx-global-search input:focus{border-color:var(--mx-gold);box-shadow:0 0 0 3px rgba(214,166,50,.1)}
.mx-nav-utility,.mx-nav-icon,.mx-profile-trigger,.mx-coin-balance{height:40px;border:1px solid transparent;background:transparent;color:var(--mx-text-2);display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font:700 11px var(--mx-font-ui);cursor:pointer;text-decoration:none;transition:color var(--mx-motion-fast) var(--mx-ease),background var(--mx-motion-fast) var(--mx-ease),border-color var(--mx-motion-fast) var(--mx-ease)}.mx-nav-utility:hover,.mx-nav-icon:hover,.mx-profile-trigger:hover,.mx-coin-balance:hover{color:var(--mx-text);background:var(--mx-surface-1);border-color:var(--mx-border)}.mx-nav-icon{width:40px}.mx-nav-icon svg,.mx-nav-utility svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mx-language-switch{padding:0 8px;gap:2px}.mx-language-switch svg{width:14px;height:14px}.mx-coin-balance{padding:0 9px;gap:6px;color:var(--mx-gold)}.mx-coin-balance strong{font-size:11px}.mx-coin-balance .mx-coin-dot{width:16px;height:16px}
.mx-profile-menu-wrap{position:relative}.mx-profile-trigger{width:40px;padding:2px;overflow:hidden;border-color:var(--mx-border);background:var(--mx-surface-1)}.mx-profile-trigger img{width:32px;height:32px;border-radius:50%;object-fit:cover}.mx-profile-trigger>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.mx-profile-menu{position:absolute;z-index:60;right:0;top:48px;width:170px;padding:7px;border:1px solid var(--mx-border);border-radius:12px;background:var(--mx-surface-1);box-shadow:0 18px 50px rgba(0,0,0,.42)}.mx-profile-menu a{display:flex;align-items:center;min-height:40px;padding:0 10px;border-radius:7px;color:var(--mx-text-2);text-decoration:none;font:600 12px var(--mx-font-ui)}.mx-profile-menu a:hover{background:var(--mx-surface-2);color:var(--mx-text)}
.mx-global-header a:focus-visible,.mx-global-header button:focus-visible,.mx-global-header input:focus-visible,.mx-mobile-bottom-nav a:focus-visible{outline:2px solid var(--mx-gold);outline-offset:2px}

/* Mobile top header is embedded in the desktop DOM and swapped by media query. */
.mx-mobile-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#040A10;color:var(--mx-text);border-bottom:1px solid var(--mx-border)}.mx-mobile-header.is-embedded{display:none}.mx-mobile-brand{height:56px;width:126px;display:flex;align-items:center;overflow:visible}.mx-mobile-brand img{height:50px;width:auto;max-width:124px;object-fit:contain}.mx-mobile-actions{display:flex;align-items:center;gap:4px}.mx-mobile-actions .mx-coin-balance{height:42px}.mx-mobile-actions .mx-nav-icon{width:42px;height:42px}
.mx-mobile-search-panel{position:absolute;z-index:70;top:58px;left:0;right:0;padding:10px 12px;display:flex;gap:8px;background:#040A10;border-bottom:1px solid var(--mx-border);box-shadow:0 14px 30px rgba(0,0,0,.28)}.mx-mobile-search-panel[hidden]{display:none!important}.mx-mobile-search-panel label{position:relative;display:flex;align-items:center;flex:1}.mx-mobile-search-panel label>svg{position:absolute;left:12px;width:18px;height:18px;fill:none;stroke:var(--mx-text-3);stroke-width:1.8}.mx-mobile-search-panel input{width:100%;height:44px;padding:0 12px 0 40px;border:1px solid var(--mx-border);border-radius:10px;background:var(--mx-surface-1);color:var(--mx-text);font:500 13px var(--mx-font-ui);outline:none}.mx-mobile-search-panel input:focus{border-color:var(--mx-gold);box-shadow:0 0 0 3px rgba(214,166,50,.1)}.mx-mobile-search-panel>button{width:44px;height:44px;border:1px solid var(--mx-border);border-radius:10px;background:var(--mx-surface-1);color:var(--mx-text);display:grid;place-items:center}.mx-mobile-search-panel>button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}

/* Bottom primary navigation */
.mx-mobile-bottom-nav{display:none;height:70px;background:rgba(4,10,16,.98);border-top:1px solid var(--mx-border);grid-template-columns:repeat(5,1fr);align-items:stretch;padding:4px 4px max(4px,env(safe-area-inset-bottom));font-family:var(--mx-font-ui)}.mx-mobile-bottom-nav a{position:relative;min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:8px;color:var(--mx-text-3);text-decoration:none;font:650 10px/1 var(--mx-font-ui);transition:color var(--mx-motion-fast) var(--mx-ease),background var(--mx-motion-fast) var(--mx-ease)}.mx-mobile-bottom-nav a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mx-mobile-bottom-nav a:hover{color:var(--mx-text);background:rgba(255,255,255,.035)}.mx-mobile-bottom-nav a.is-active{color:var(--mx-gold)}.mx-mobile-bottom-nav a.is-active:after{content:"";position:absolute;bottom:0;width:30px;height:2px;background:var(--mx-gold);border-radius:2px}

/* Lab content / comparisons */
.mx-nav-demo-content{min-height:485px;padding:70px clamp(22px,6vw,74px) 110px;background:radial-gradient(circle at 80% 0%,rgba(214,166,50,.07),transparent 28%),var(--mx-bg)}.mx-nav-demo-kicker{color:var(--mx-gold);font-size:10px;font-weight:800;letter-spacing:.18em}.mx-nav-demo-content h3{max-width:600px;margin:9px 0 10px;color:var(--mx-text);font-size:34px}.mx-nav-demo-content p{max-width:620px;margin:0;color:var(--mx-text-2);font-size:13px;line-height:1.65}.mx-nav-demo-placeholder-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:34px;max-width:760px}.mx-nav-demo-placeholder-grid i{display:block;aspect-ratio:7/10;border-radius:8px;background:linear-gradient(145deg,var(--mx-surface-2),var(--mx-surface-1));border:1px solid var(--mx-border)}
.mx-mobile-preview-frame{position:relative;width:min(390px,100%);height:420px;margin:0 auto;overflow:hidden;border:1px solid var(--mx-border);border-radius:18px;background:var(--mx-bg)}.mx-mobile-preview-frame .mx-mobile-header{display:flex}.mx-mobile-preview-body{padding:44px 18px}.mx-mobile-fake-line{height:10px;border-radius:6px;background:var(--mx-surface-2);margin:12px 0}.mx-mobile-fake-line.w70{width:70%}.mx-mobile-fake-line.w45{width:45%}.mx-mobile-fake-line.w60{width:60%}.mx-mobile-fake-line.w80{width:80%}.mx-mobile-preview-nav-only .mx-mobile-bottom-nav{display:grid;position:absolute;left:0;right:0;bottom:0}.mx-nav-rules{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mx-nav-rules>div{padding:16px;border:1px solid var(--mx-border);border-radius:10px;background:var(--mx-bg)}.mx-nav-rules strong{color:var(--mx-text);font-size:13px}.mx-nav-rules p{margin:6px 0 0;color:var(--mx-text-2);font-size:11px;line-height:1.55}

.mx-nav-state-frame .mx-global-header{height:74px}.mx-nav-state-frame .mx-global-header.is-scrolled{height:60px}.mx-nav-state-frame .mx-global-header-inner{min-width:920px;gap:16px;padding:0 18px}.mx-nav-state-frame .mx-global-primary a{padding:0 8px;font-size:12px}.mx-nav-state-frame .mx-global-search{width:180px}.mx-nav-state-frame .mx-language-switch{display:none}.mx-nav-state-frame .mx-global-brand{width:120px}.mx-nav-state-frame .mx-global-brand img{max-width:118px}.mx-nav-state-frame .mx-global-utilities{gap:5px}
@media(max-width:1120px) and (min-width:900px){.mx-global-header-inner{gap:12px;padding:0 14px}.mx-global-primary{gap:2px}.mx-global-primary a{padding:0 7px;font-size:11.5px}.mx-global-search{width:clamp(145px,17vw,180px)}.mx-global-brand{width:116px}.mx-global-brand img{max-width:114px;height:54px}.mx-language-switch{display:none}.mx-global-utilities{gap:4px}.mx-nav-icon,.mx-profile-trigger{width:38px}.mx-coin-balance{padding:0 7px}}
@media(max-width:1000px){.mugex-navigation-grid-mobile{grid-template-columns:1fr}.mx-nav-rules{grid-template-columns:1fr 1fr}}
@media(max-width:899px){.mx-global-header{height:58px}.mx-global-header-inner{display:block;padding:0;max-width:none}.mx-global-header>.mx-global-header-inner>.mx-global-brand,.mx-global-primary,.mx-global-utilities{display:none}.mx-mobile-header.is-embedded{display:flex}.mx-nav-live-shell .mx-mobile-bottom-nav{display:grid;position:absolute;left:0;right:0;bottom:0;z-index:35}.mx-nav-demo-content{padding:46px 22px 110px;min-height:500px}.mx-nav-demo-content h3{font-size:28px}.mx-nav-demo-placeholder-grid{grid-template-columns:repeat(2,1fr);max-width:420px}.mx-nav-state-frame .mx-global-header>.mx-global-header-inner>.mx-global-brand,.mx-nav-state-frame .mx-global-primary,.mx-nav-state-frame .mx-global-utilities{display:flex}.mx-nav-state-frame .mx-global-header-inner{display:grid}.mx-nav-state-frame .mx-mobile-header.is-embedded{display:none}}
@media(max-width:620px){.mx-nav-rules{grid-template-columns:1fr}.mugex-navigation-page{padding:14px!important}.mx-nav-demo-placeholder-grid{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.mx-global-header,.mx-global-primary a,.mx-global-search input,.mx-nav-utility,.mx-nav-icon,.mx-profile-trigger,.mx-coin-balance,.mx-mobile-bottom-nav a{transition:none!important}}

/* v2.8.0: public navigation controls must be real, not QA placeholders. */
.mx-global-search{margin:0}.mx-global-search>label{display:flex;align-items:center;width:100%}.mx-global-search input{min-width:0}
.mx-mobile-search-form{display:flex;align-items:center;flex:1}.mx-mobile-search-form>label{display:flex;align-items:center;flex:1;min-width:0}.mx-mobile-search-form input{width:100%;min-width:0}
.mx-language-static{display:inline-flex;align-items:center;justify-content:center;cursor:default}
a.mx-coin-balance{text-decoration:none}

/* v2.9.0 public hardening: legacy theme/WooCommerce form rules must not leak
   into the standalone MUGEX header. The previous form markup nests the search
   icon inside a label, so style that real structure explicitly. */
.mx-global-header .mx-global-search>label{position:relative;display:flex!important;align-items:center;width:100%;height:40px;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.mx-global-header .mx-global-search>label>svg{position:absolute;z-index:2;left:12px;width:17px!important;height:17px!important;color:var(--mx-text-3)!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mx-global-header .mx-global-search input[type="search"]{-webkit-appearance:none!important;appearance:none!important;box-sizing:border-box!important;width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;border:1px solid var(--mx-border)!important;border-radius:999px!important;background:var(--mx-surface-1)!important;background-image:none!important;color:var(--mx-text)!important;padding:0 14px 0 37px!important;font:500 12px/1 var(--mx-font-ui)!important;box-shadow:none!important;outline:none!important}
.mx-global-header .mx-global-search input[type="search"]::placeholder{color:var(--mx-text-3)!important;opacity:1}
.mx-global-header .mx-global-search input[type="search"]:focus{border-color:var(--mx-gold)!important;box-shadow:0 0 0 3px rgba(214,166,50,.1)!important}
.mx-global-header button.mx-profile-trigger,.mx-global-header button.mx-nav-icon,.mx-global-header button.mx-nav-utility{-webkit-appearance:none!important;appearance:none!important;margin:0!important;padding:0!important;background:transparent!important;background-image:none!important;color:var(--mx-text-2)!important;border:1px solid transparent!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important}
.mx-global-header button.mx-profile-trigger{width:40px!important;height:40px!important;padding:2px!important;border-color:var(--mx-border)!important;background:var(--mx-surface-1)!important;border-radius:8px!important}
.mx-global-header button.mx-profile-trigger:hover,.mx-global-header button.mx-profile-trigger:focus-visible{background:var(--mx-surface-2)!important;color:var(--mx-text)!important;border-color:#49515e!important}
.mx-global-header button.mx-profile-trigger>svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
.mx-global-header .mx-mobile-search-panel input[type="search"]{-webkit-appearance:none!important;appearance:none!important;background:var(--mx-surface-1)!important;color:var(--mx-text)!important;border:1px solid var(--mx-border)!important;box-shadow:none!important}
.mx-global-header .mx-mobile-search-panel label>svg{fill:none!important;stroke:var(--mx-text-3)!important}
