:root{
  --jb-menu-bg:#f4f7fb;
  --jb-menu-panel:#ffffff;
  --jb-menu-line:#dbe5f0;
  --jb-menu-text:#1c2a39;
  --jb-menu-muted:#5d6b7b;
  --jb-menu-brand:#1a3c6e;
  --jb-menu-shadow:0 10px 30px rgba(20,40,80,.08);
}

*{box-sizing:border-box}

html,body{overflow-x:hidden}

#jbSharedMenu,
#jbSharedMenu *{
  box-sizing:border-box;
}

#jbSharedMenu{
  width:100%;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.45;
  color:var(--jb-menu-text);
}

.jb-menu-wrap{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:18px;
}

.jb-menu{
  background:linear-gradient(135deg,#17365f 0%,#21497f 60%,#2f5e98 100%);
  color:#fff;
  border-radius:22px;
  box-shadow:var(--jb-menu-shadow);
  overflow:hidden;
}

.jb-menu-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.16);
}

.jb-brand{min-width:0}

.jb-suite{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.85;
  font-weight:800;
  margin-bottom:5px;
  white-space:normal;
  overflow-wrap:anywhere;
}

.jb-title{
  font-size:28px;
  font-weight:900;
  line-height:1.1;
  margin:0;
  white-space:normal;
  overflow-wrap:anywhere;
}

.jb-subtitle{
  margin:6px 0 0;
  color:rgba(255,255,255,.88);
  font-size:14px;
  white-space:normal;
  overflow-wrap:anywhere;
}

.jb-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.jb-logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  line-height:0;
}

.jb-logo{
  width:112px;
  max-width:22vw;
  height:auto;
  display:block;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.22));
}

.jb-lang-btn,
.jb-mobile-toggle{
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
  color:#fff;
  padding:10px 13px;
  border-radius:12px;
  min-height:42px;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  font-family:inherit;
  white-space:normal;
}

.jb-lang-btn.active{
  background:#fff;
  color:var(--jb-menu-brand);
  border-color:#fff;
}

.jb-mobile-toggle{display:none;min-width:48px}

.jb-menu-body{padding:14px 18px 18px}

.jb-nav-grid{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  gap:10px;
  align-items:stretch;
}

.jb-nav-item{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.20);
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  min-height:48px;
  transition:background .18s ease, transform .18s ease, border-color .18s ease;
}

.jb-nav-item:hover{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.34);
  transform:translateY(-1px);
}

.jb-nav-item.active{
  background:#fff;
  color:var(--jb-menu-brand);
  border-color:#fff;
}

.jb-nav-icon{
  font-size:18px;
  line-height:1;
  flex:0 0 auto;
}

.jb-nav-text{
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.2;
}

.jb-nav-external{
  font-size:13px;
  opacity:.85;
  margin-left:auto;
}

.jb-nav-group{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:16px;
  padding:10px;
  min-width:0;
}

.jb-nav-group-title{
  color:rgba(255,255,255,.74);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.10em;
  font-weight:900;
  margin:0 4px 8px;
  white-space:normal;
  overflow-wrap:anywhere;
}

.jb-nav-group-items{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.jb-nav-group .jb-nav-item{
  flex:1 1 120px;
  padding:10px 12px;
}

.jb-nav-portal{min-width:150px}
.jb-nav-live{min-width:170px}
.jb-nav-fun{min-width:210px}

@media(max-width:1100px){
  .jb-nav-grid{grid-template-columns:1fr 1fr}
  .jb-nav-portal,
  .jb-nav-live,
  .jb-nav-fun{min-width:0}
}

@media(max-width:720px){
  .jb-menu-wrap{padding:12px}
  .jb-menu{border-radius:18px}
  .jb-menu-top{padding:16px;align-items:center}
  .jb-title{font-size:24px}
  .jb-subtitle{font-size:13px}
  .jb-mobile-toggle{display:inline-flex;align-items:center;justify-content:center}
  .jb-logo{width:76px;max-width:24vw}
  .jb-menu-body{display:none;padding:12px 14px 16px}
  .jb-menu.open .jb-menu-body{display:block}
  .jb-nav-grid{grid-template-columns:1fr;gap:9px}
  .jb-nav-group-items{display:grid;grid-template-columns:1fr;gap:8px}
  .jb-nav-item{width:100%;min-height:48px}
  .jb-actions{flex:0 0 auto}
}

@media(max-width:420px){
  .jb-menu-top{flex-direction:column;align-items:stretch}
  .jb-actions{justify-content:flex-start}
  .jb-logo-link{order:-1;margin-bottom:2px}
  .jb-logo{width:64px;max-width:28vw}
  .jb-lang-btn{flex:1 1 0}
  .jb-mobile-toggle{flex:1 1 100%}
}
