.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 16px 0;
  background: transparent;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 18px;
  background: rgba(26, 58, 92, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow:
    0 10px 24px -8px rgba(15, 23, 42, 0.3),
    0 4px 12px -4px rgba(15, 23, 42, 0.18);
  color: white;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner {
    background: rgba(26, 58, 92, 0.92);
  }
}

.header-logo {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* alinha o centro do logo com o centro do semicírculo esquerdo da pílula:
     altura do header ≈ 28 (logo) + 16 (padding vertical) = 44px → raio 22px;
     padding-left do header-inner = 18px; logo precisa começar a 8px → -10px */
  margin-left: -5px;
}

.header h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: white;
}

.header-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.header-nav-list a {
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-nav-list a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
}

.header-nav-list a.active {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.header-nav-list a.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.header-nav-list a i[data-lucide],
.header-nav-list a svg.lucide {
  width: 14px;
  height: 14px;
}

.header-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  padding: 6px 8px;
  border-radius: 9999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.header-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.header-nav-toggle i[data-lucide],
.header-nav-toggle svg.lucide {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: nowrap; gap: 12px; }
  .header-nav-toggle { display: inline-flex; }
  .header-nav-list { display: none; }
  .header-nav.open .header-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: rgba(26, 58, 92, 0.95);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow:
      0 10px 24px -8px rgba(15, 23, 42, 0.4),
      0 4px 12px -4px rgba(15, 23, 42, 0.25);
    z-index: 1000;
  }
  .header-nav.open .header-nav-list a {
    border-radius: 10px;
    padding: 10px 12px;
  }
}
