.b3-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 64px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

.b3-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  gap: 12px;
}

.b3-nav__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.b3-brand {
  text-decoration: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.b3-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.b3-product-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 17px;
  font-weight: 300;
  margin: 0 2px;
}

.b3-product {
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.b3-product:hover {
  text-decoration: none;
  filter: brightness(1.2);
}

.b3-nav__center {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  justify-content: center;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.b3-nav__center::-webkit-scrollbar {
  display: none;
}

.b3-tab {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.b3-tab:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.b3-tab.active {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

.b3-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  border-radius: 1px;
  background: var(--accent, #3b82f6);
}

.b3-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.b3-util-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.b3-util-link:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.b3-userchip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b3-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.b3-logout:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.b3-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.b3-login:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  text-decoration: none;
  transform: translateY(-1px);
}

.b3-nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  padding: 4px 8px;
  cursor: pointer;
}

.b3-nav__mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.b3-mobile-link {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.b3-mobile-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.b3-mobile-link.active {
  color: rgba(255, 255, 255, 0.95);
}

.b3-mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

@media (max-width: 900px) {
  .b3-nav {
    height: 56px;
  }

  .b3-nav__center {
    display: none;
  }

  .b3-nav__right {
    display: none;
  }

  .b3-nav__mobile-toggle {
    display: block;
  }

  .b3-nav--open .b3-nav__mobile-menu {
    display: flex;
  }

  .b3-userchip {
    max-width: 160px;
  }
}

@media (min-width: 901px) {
  .b3-nav__mobile-toggle {
    display: none !important;
  }
  .b3-nav__mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .b3-userchip {
    display: none;
  }
}
