/* NobexSkill Enterprise Header R1 - isolated from legacy eClass nav CSS */
:root{
  --nobex-header-bg:#ffffff;
  --nobex-header-text:#0f2740;
  --nobex-header-muted:#667085;
  --nobex-header-border:#e8edf2;
  --nobex-header-soft:#f6f8fb;
  --nobex-header-accent:#ff6f4f;
  --nobex-header-accent-dark:#ed5a38;
  --nobex-header-ring:rgba(255,111,79,.16);
  --nobex-header-shadow:0 10px 32px rgba(15,39,64,.08);
  --nobex-header-radius:12px;
}
.nobex-premium-header,
.nobex-premium-header *{box-sizing:border-box}
.nobex-premium-header{
  position:sticky;
  top:0;
  z-index:1045;
  width:100%;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--nobex-header-border);
  box-shadow:0 2px 10px rgba(15,39,64,.035);
  backdrop-filter:saturate(160%) blur(12px);
  -webkit-backdrop-filter:saturate(160%) blur(12px);
}
.nobex-header-shell{width:min(1440px,calc(100% - 48px));margin:0 auto}
.nobex-header-main{min-height:82px;display:flex;align-items:center;gap:22px}
.nobex-brand{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;text-decoration:none!important;min-width:150px}
.nobex-brand-logo{display:block!important;width:auto!important;max-width:168px!important;height:42px!important;object-fit:contain}
.nobex-brand-text{font-size:29px;font-weight:800;line-height:1;letter-spacing:-.8px;color:#0d5e7a;white-space:nowrap}
.nobex-brand-text-fallback{display:none}
.nobex-brand img[style*="display: none"]+.nobex-brand-text-fallback{display:inline-flex}
.nobex-desktop-nav{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.nobex-nav-link{height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:0;background:transparent;border-radius:10px;color:#263b50!important;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none!important;transition:.18s ease}
.nobex-nav-link:hover,.nobex-nav-link:focus{color:#0f2740!important;background:#f3f6f9;outline:none}
.nobex-nav-link svg{width:17px;height:17px;stroke-width:2}
.nobex-chevron{width:14px!important;height:14px!important;transition:transform .18s ease}
.nobex-category-menu{position:relative}
.nobex-category-menu.is-open .nobex-chevron{transform:rotate(180deg)}
.nobex-category-panel{position:absolute;top:calc(100% + 16px);left:0;width:min(760px,80vw);padding:20px;background:#fff;border:1px solid var(--nobex-header-border);border-radius:18px;box-shadow:0 24px 70px rgba(15,39,64,.18);opacity:0;visibility:hidden;transform:translateY(-7px);transition:.18s ease;z-index:1080}
.nobex-category-menu.is-open .nobex-category-panel{opacity:1;visibility:visible;transform:translateY(0)}
.nobex-category-panel:before{content:"";position:absolute;top:-7px;left:34px;width:14px;height:14px;background:#fff;border-left:1px solid var(--nobex-header-border);border-top:1px solid var(--nobex-header-border);transform:rotate(45deg)}
.nobex-category-panel-head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:2px 4px 16px;margin-bottom:12px;border-bottom:1px solid #eef1f4}
.nobex-category-panel-head strong{display:block;color:#132f49;font-size:16px;font-weight:700}
.nobex-category-panel-head span{display:block;color:#7b8794;font-size:12px;margin-top:3px}
.nobex-category-panel-head a{font-size:12px;font-weight:700;color:var(--nobex-header-accent)!important;text-decoration:none!important;white-space:nowrap}
.nobex-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.nobex-category-item{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 10px;border-radius:10px;color:#33475b!important;text-decoration:none!important;font-size:13px;font-weight:600;min-width:0;transition:.18s ease}
.nobex-category-item:hover{background:#f7f9fb;color:#0f2740!important;transform:translateY(-1px)}
.nobex-category-item>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.nobex-category-icon{width:31px;height:31px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:#fff0eb;color:var(--nobex-header-accent);flex:0 0 31px}
.nobex-category-item>svg{width:14px;height:14px;color:#aab3bc}
.nobex-header-search{height:44px;display:flex;align-items:center;gap:10px;flex:1;min-width:190px;max-width:400px;margin-left:auto;background:#f6f8fb;border:1px solid #e5eaf0;border-radius:12px;padding:0 6px 0 13px;transition:.2s ease}
.nobex-header-search:focus-within{background:#fff;border-color:#b9c6d1;box-shadow:0 0 0 4px rgba(17,94,122,.08)}
.nobex-header-search>svg{width:18px;height:18px;color:#81909d;flex:0 0 auto}
.nobex-header-search input{flex:1;min-width:0;height:40px;padding:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#162f46;font-size:13px}
.nobex-header-search input::placeholder{color:#98a3ae}
.nobex-header-search button{width:34px;height:34px;border:0;border-radius:9px;background:#fff;color:#496172;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.18s ease}
.nobex-header-search button:hover{background:var(--nobex-header-accent);color:#fff}
.nobex-header-search button svg{width:16px;height:16px}
.nobex-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.nobex-icon-button{position:relative;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:11px;background:transparent;color:#33485d!important;text-decoration:none!important;cursor:pointer;transition:.18s ease;padding:0}
.nobex-icon-button:hover,.nobex-icon-button:focus{background:#f4f7fa;border-color:#eef1f4;outline:none;color:#102a43!important}
.nobex-icon-button svg{width:20px;height:20px;stroke-width:1.9}
.nobex-action-badge{position:absolute;top:-3px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--nobex-header-accent);color:#fff;font-size:10px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
.nobex-guest-actions{display:flex;align-items:center;gap:8px;margin-left:4px}
.nobex-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 16px;border-radius:10px;font-size:13px;font-weight:700;text-decoration:none!important;transition:.18s ease;white-space:nowrap}
.nobex-btn-ghost{background:#fff;color:#20384e!important;border:1px solid #dce3e9}
.nobex-btn-ghost:hover{background:#f7f9fb;border-color:#cbd5dd}
.nobex-btn-primary{background:var(--nobex-header-accent);color:#fff!important;border:1px solid var(--nobex-header-accent);box-shadow:0 7px 17px rgba(255,111,79,.18)}
.nobex-btn-primary:hover{background:var(--nobex-header-accent-dark);border-color:var(--nobex-header-accent-dark);transform:translateY(-1px)}
.nobex-account-menu{position:relative;margin-left:2px}
.nobex-account-trigger{min-height:46px;display:flex;align-items:center;gap:9px;border:1px solid #e6ebf0;background:#fff;border-radius:13px;padding:4px 9px 4px 5px;cursor:pointer;transition:.18s ease}
.nobex-account-trigger:hover{border-color:#d2dae1;box-shadow:0 6px 18px rgba(15,39,64,.07)}
.nobex-account-trigger>svg{width:15px;height:15px;color:#7b8996}
.nobex-account-avatar{width:34px!important;height:34px!important;border-radius:10px!important;object-fit:cover!important;display:inline-flex!important;align-items:center;justify-content:center;background:#e9f3f6;color:#0d5e7a;font-size:14px;font-weight:800;flex:0 0 34px}
.nobex-account-copy{display:flex;flex-direction:column;min-width:74px;text-align:left;line-height:1.15}
.nobex-account-copy strong{font-size:12px;color:#21394e;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nobex-account-copy small{font-size:10px;color:#8a96a1;margin-top:3px}
.nobex-account-panel{position:absolute;right:0;top:calc(100% + 12px);width:270px;background:#fff;border:1px solid var(--nobex-header-border);border-radius:15px;box-shadow:0 24px 60px rgba(15,39,64,.16);padding:8px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:.18s ease;z-index:1085}
.nobex-account-menu.is-open .nobex-account-panel{opacity:1;visibility:visible;transform:translateY(0)}
.nobex-account-panel-head{padding:10px 11px 12px;margin-bottom:5px;border-bottom:1px solid #eef1f4}
.nobex-account-panel-head strong,.nobex-account-panel-head span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nobex-account-panel-head strong{font-size:13px;color:#1c3449}.nobex-account-panel-head span{font-size:11px;color:#88949f;margin-top:3px}
.nobex-account-panel>a{min-height:39px;display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:9px;color:#40566a!important;font-size:12px;font-weight:600;text-decoration:none!important}
.nobex-account-panel>a:hover{background:#f6f8fa;color:#173047!important}.nobex-account-panel>a svg{width:16px;height:16px}
.nobex-account-divider{height:1px;background:#eef1f4;margin:6px 5px}.nobex-danger-link{color:#bd3a3a!important}
.nobex-mobile-menu-toggle,.nobex-mobile-search-toggle{display:none}
.nobex-mobile-menu-toggle{width:42px;height:42px;border:0;border-radius:11px;background:#f5f7f9;padding:10px;cursor:pointer}
.nobex-mobile-menu-toggle span{display:block;width:20px;height:2px;margin:4px auto;background:#21394e;border-radius:10px;transition:.2s ease}
.nobex-mobile-search{display:none;padding:0 0 12px}
.nobex-mobile-search form{height:46px;display:flex;align-items:center;gap:10px;background:#f6f8fb;border:1px solid #e4e9ee;border-radius:12px;padding:0 6px 0 13px}
.nobex-mobile-search svg{width:18px;height:18px;color:#81909d}.nobex-mobile-search input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;font-size:13px}.nobex-mobile-search button{height:34px;padding:0 13px;border:0;border-radius:9px;background:var(--nobex-header-accent);color:#fff;font-size:12px;font-weight:700}
.nobex-mobile-search.is-open{display:block}
.nobex-mobile-overlay{position:fixed;inset:0;background:rgba(12,28,43,.45);opacity:0;visibility:hidden;transition:.22s ease;z-index:1090}
.nobex-mobile-drawer{position:fixed;top:0;right:0;width:min(380px,92vw);height:100vh;background:#fff;box-shadow:-20px 0 60px rgba(15,39,64,.18);transform:translateX(105%);transition:.25s ease;z-index:1095;display:flex;flex-direction:column}
.nobex-premium-header.menu-open .nobex-mobile-overlay{opacity:1;visibility:visible}.nobex-premium-header.menu-open .nobex-mobile-drawer{transform:translateX(0)}
.nobex-mobile-drawer-head{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #edf1f4}.nobex-mobile-brand{min-width:0}.nobex-mobile-brand .nobex-brand-text{font-size:24px}.nobex-drawer-close{width:38px;height:38px;border:0;border-radius:10px;background:#f4f6f8;color:#32495d;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.nobex-drawer-close svg{width:18px;height:18px}
.nobex-mobile-drawer-body{flex:1;overflow-y:auto;padding:14px 16px 22px}.nobex-mobile-link{min-height:45px;display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;color:#2d455a!important;font-size:14px;font-weight:650;text-decoration:none!important}.nobex-mobile-link:hover{background:#f6f8fa}.nobex-mobile-link svg{width:18px;height:18px;color:#71808d}.nobex-mobile-count{margin-left:auto;background:#fff0eb;color:#e85e3f;border-radius:999px;padding:2px 7px;font-size:10px}
.nobex-mobile-section-title{padding:18px 10px 7px;color:#98a3ae;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.nobex-mobile-categories{display:grid;grid-template-columns:1fr 1fr;gap:7px}.nobex-mobile-categories>a{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;background:#f8fafb;border:1px solid #eef1f4;border-radius:10px;color:#40566a!important;font-size:12px;font-weight:600;text-decoration:none!important;min-width:0}.nobex-mobile-categories>a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nobex-mobile-categories>a span i{margin-right:7px;color:var(--nobex-header-accent)}.nobex-mobile-categories>a>svg{width:13px;height:13px;flex:0 0 auto}
.nobex-mobile-drawer-footer{display:flex;gap:9px;padding:14px 16px 18px;border-top:1px solid #edf1f4;background:#fff}.nobex-mobile-drawer-footer .nobex-btn{flex:1}
.nobex-promo-bar{background:#102d43;color:#fff}.nobex-promo-inner{min-height:34px;display:flex;align-items:center;justify-content:center;position:relative;padding:4px 42px}.nobex-promo-inner>a{color:#fff!important;font-size:11px;font-weight:600;text-decoration:none!important}.nobex-promo-close{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;background:transparent;color:#dce8ef;font-size:21px;line-height:1;cursor:pointer}
/* Upgrade the legacy home category rail directly below the header. */
#categories-tab.categories-tab-main-block{background:#fff!important;border-bottom:1px solid #edf1f4!important;box-shadow:none!important;padding:0!important;min-height:50px}
#categories-tab .categories-tab-block{padding:0!important}
#categories-tab .categories-tab-dtl{padding:0!important}
#categories-tab .categories-tab-dtl a{min-height:50px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 18px!important;color:#536879!important;background:transparent!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important;border-bottom:2px solid transparent!important;text-decoration:none!important;transition:.18s ease!important}
#categories-tab .categories-tab-dtl a:hover{color:var(--nobex-header-accent)!important;border-bottom-color:var(--nobex-header-accent)!important}
#categories-tab .categories-tab-dtl a i{color:#83919d!important;margin:0!important}
/* Neutralize old nav layout classes if stale fragments survive cached markup. */
.nobex-premium-header .smallscreen-search-block,.nobex-premium-header .fullscreen-search-block,.nobex-premium-header .mobile-bottom-bar{display:none!important}
@media (max-width:1360px){.nobex-header-shell{width:min(1320px,calc(100% - 36px))}.nobex-header-main{gap:15px}.nobex-desktop-nav{gap:1px}.nobex-nav-link{padding:0 9px}.nobex-header-search{max-width:320px}.nobex-account-copy{display:none}.nobex-account-trigger{padding-right:6px}}
@media (max-width:1180px){.nobex-desktop-nav,.nobex-desktop-search,.nobex-desktop-action{display:none!important}.nobex-header-main{min-height:70px;gap:10px}.nobex-header-actions{margin-left:auto}.nobex-mobile-menu-toggle,.nobex-mobile-search-toggle{display:inline-flex;align-items:center;justify-content:center}.nobex-brand{min-width:0}.nobex-brand-logo{height:36px!important;max-width:150px!important}.nobex-brand-text{font-size:25px}.nobex-header-shell{width:calc(100% - 32px)}}
@media (max-width:767px){.nobex-header-shell{width:calc(100% - 24px)}.nobex-header-main{min-height:64px}.nobex-brand-logo{height:32px!important;max-width:132px!important}.nobex-brand-text{font-size:22px;letter-spacing:-.5px}.nobex-header-actions{gap:4px}.nobex-icon-button,.nobex-mobile-menu-toggle{width:39px;height:39px;border-radius:10px}.nobex-mobile-categories{grid-template-columns:1fr}.nobex-promo-inner{min-height:32px}.nobex-promo-inner>a{font-size:10px}#categories-tab.categories-tab-main-block{min-height:44px}#categories-tab .categories-tab-dtl a{min-height:44px!important;padding:0 13px!important;font-size:11px!important}}
@media (max-width:420px){.nobex-header-shell{width:calc(100% - 18px)}.nobex-header-main{min-height:60px}.nobex-brand-text{font-size:20px}.nobex-brand-logo{height:29px!important;max-width:120px!important}.nobex-header-actions{gap:2px}.nobex-icon-button,.nobex-mobile-menu-toggle{width:37px;height:37px}.nobex-icon-button svg{width:18px;height:18px}.nobex-action-badge{top:-2px;right:-2px}.nobex-mobile-drawer{width:94vw}}
@media (prefers-reduced-motion:reduce){.nobex-premium-header *{transition:none!important;scroll-behavior:auto!important}}
/* RTL-safe header geometry retained from WR5 locale authority. */
[dir="rtl"] .nobex-category-panel{left:auto;right:0}
[dir="rtl"] .nobex-category-panel:before{left:auto;right:34px}
[dir="rtl"] .nobex-account-panel{right:auto;left:0}
[dir="rtl"] .nobex-account-copy{text-align:right}
[dir="rtl"] .nobex-header-search{margin-left:0;margin-right:auto}
[dir="rtl"] .nobex-mobile-drawer{right:auto;left:0;transform:translateX(-105%);box-shadow:20px 0 60px rgba(15,39,64,.18)}
[dir="rtl"] .nobex-premium-header.menu-open .nobex-mobile-drawer{transform:translateX(0)}
[dir="rtl"] .nobex-mobile-categories>a span i{margin-right:0;margin-left:7px}
\n\n/* ============================================================\n   NobexSkill Enterprise Header R2 — proven visual root-cause fix\n   A broken premium logo must NEVER inherit the generic media\n   fallback min-height (170px), otherwise the whole header grows.\n   ============================================================ */\n.nobex-premium-header .nobex-brand.nobex-media-fallback,\n.nobex-premium-header .nobex-mobile-brand.nobex-media-fallback {\n  min-height: 0 !important;\n  height: auto !important;\n  overflow: visible !important;\n  background: transparent !important;\n  background-image: none !important;\n}\n.nobex-premium-header .nobex-brand.nobex-media-fallback::after,\n.nobex-premium-header .nobex-mobile-brand.nobex-media-fallback::after {\n  display: none !important;\n  content: none !important;\n}\n.nobex-premium-header .nobex-brand.nobex-media-fallback > .nobex-brand-logo,\n.nobex-premium-header .nobex-mobile-brand.nobex-media-fallback > .nobex-brand-logo {\n  display: none !important;\n  visibility: hidden !important;\n}\n.nobex-premium-header .nobex-brand.nobex-media-fallback .nobex-brand-text-fallback,\n.nobex-premium-header .nobex-mobile-brand.nobex-media-fallback .nobex-brand-text-fallback,\n.nobex-premium-header .nobex-brand .nobex-brand-fallback {\n  display: inline-flex !important;\n}\n\n/* Premium category mega-panel/drawer is canonical; old rail is duplicate. */\n#categories-tab.categories-tab-main-block { display:none !important; }\n\n/* Production-grade vertical geometry. */\n.nobex-premium-header .nobex-header-main {height:82px;min-height:82px;max-height:82px}\n@media (max-width:1180px){.nobex-premium-header .nobex-header-main{height:70px;min-height:70px;max-height:70px}}\n@media (max-width:767px){.nobex-premium-header .nobex-header-main{height:64px;min-height:64px;max-height:64px}}\n@media (max-width:420px){.nobex-premium-header .nobex-header-main{height:60px;min-height:60px;max-height:60px}}\n