.chillybot-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-width: 0;
  margin-bottom: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #26323f;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.chillybot-nav a {
  box-sizing: border-box;
  color: #a4b4c5;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.chillybot-nav .chillybot-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: #f1f5f9;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.chillybot-brand img {
  display: block;
  width: 44px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.chillybot-nav__products {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chillybot-nav__products a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.chillybot-nav__products a[aria-current='page'] {
  color: #d9ecff;
  background: #1a3043;
  border-color: #34516a;
}

.chillybot-nav__community {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.chillybot-nav__community a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 10px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 6px;
}

.chillybot-nav__community span {
  color: #7b90a6;
}

.chillybot-nav a:hover {
  color: #f1f5f9;
}

.chillybot-nav__products a:hover,
.chillybot-nav__community a:hover {
  background: #18232f;
}

.chillybot-nav a:focus-visible {
  outline: 2px solid #a8d5f7;
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .chillybot-nav {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .chillybot-nav__community {
    margin-left: auto;
  }

  .chillybot-nav__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 0 100%;
    order: 3;
  }

  .chillybot-nav__products a {
    padding: 10px 8px;
  }

  .chillybot-nav__community a {
    padding: 10px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chillybot-nav a {
    transition: none;
  }
}
