.topbar{
  position: relative;
  z-index: 50;
  padding: 14px 0 10px;
}

.topbar-inner,
.nav-shell{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.nav-shell{
  margin-top: 10px;
}
.logo-link{
  display: block;
}

.banner{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.nav-card{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;

  width: 100%;
  min-height: 58px;
  padding: 10px 12px;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-tabs{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.main-tabs::-webkit-scrollbar{
  display: none;
}

.main-tabs a{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  height: 46px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.96);

  color: #0f172a;
  text-decoration: none;
  line-height: 1.05;
  text-align: center;
  box-sizing: border-box;

  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.main-tabs a:hover{
  background: rgba(255,255,255,.98);
  border-color: rgba(15,23,42,.18);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.main-tabs a.active{
  background: rgba(235,244,255,.98);
  border-color: rgba(37,99,235,.24);
  box-shadow: 0 10px 20px rgba(15,23,42,.10);
  color: #0b2b50;
}

.main-tabs a.active::after{
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg,#1d4ed8 0%, #f8fafc 50%, #dc2626 100%);
}

.tab-top{
  display: block;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tab-sub{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  opacity: .72;
  white-space: nowrap;
}

.flag-fr{
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  background: linear-gradient(
    to right,
    #0055A4 0%,
    #0055A4 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #EF4135 66.66%,
    #EF4135 100%
  );
}

.nav-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.x-btn,
.discord-btn,
.user-menu-toggle{
  flex: 0 0 auto;
}

.x-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.96);
}

.discord-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: #5865F2;
  border: 1px solid rgba(88,101,242,.35);
  font-weight: 900;
  font-size: 12.5px;
}

.user-menu{
  position: relative;
}

.user-menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.96);
}

.user-icon{
  width: 18px;
  height: 18px;
  fill: #0f172a;
}

.user-menu-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: .12s ease;
  z-index: 300;
}

.user-menu.is-open .user-menu-dropdown{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu-label{
  padding: 6px 14px 8px;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.user-menu-link{
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  color: #0f172a;
}

.user-menu-link:hover{
  background: #f8fafc;
}

.nav-burger{
  display: none;
}

.mobile-menu{
  display: none;
}

@media (max-width: 760px){
  .main-tabs{
    display: none;
  }

  .nav-burger{
    display: inline-flex;
    width: 42px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.96);
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
  }

  .nav-burger span{
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
  }

  .mobile-menu{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
  }

  .mobile-menu.is-open{
    pointer-events: auto;
    opacity: 1;
  }
}