.nodeAiotHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass-color-20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.nodeAiotHeaderContainer {
  max-width: 1440px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* --- Logo --- */
.nodeAiotLogo {
  display: flex;
  height: fit-content;
  cursor: pointer;
  z-index: 1001;
}

.nodeAiotLogo img {
  height: 35px;
}

/* --- Ações / Botões (Desktop) --- */
.nodeAiotHeaderActions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nodeAiotBtnSecondary {
  background: var(--bg-glass-color-20);
  color: var(--color-text-primary);
  border: var(--color-outline-secondary);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.nodeAiotBtnSecondary:hover {
  border: var(--color-outline-primary);
  background: var(--color-tag-bg-blue);
  border-radius: 30px;
}

.nodeAiotBtnPrimary {
  background: var(--node-blue);
  color: var(--node-white);
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--color-background-hover);
  transition: all 0.2s ease-in-out;
}

.nodeAiotBtnPrimary:hover {
  filter: brightness(1.1);
  border-radius: 20px;
  transform: translateY(-1px);
}

.nodeAiotBtnPrimary:active,
.nodeAiotBtnSecondary:active {
  transform: scale(0.96);
}

/* --- Mobile Toggle & Overlay --- */
.nodeAiotMobileToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.nodeAiotMobileToggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 2px;
}

.nodeAiotOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 768px) {
  .nodeAiotMobileToggle {
    display: flex;
  }

  .nodeAiotHeaderActions {
    position: fixed;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    padding: 100px 24px 40px;

    background: var(--color-background-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 999;
  }

  /* Exibe Overlay e Menu quando ativo */
  .nodeAiotHeader.is-active .nodeAiotHeaderActions {
    right: 0;
  }

  .nodeAiotHeader.is-active .nodeAiotOverlay {
    display: block;
    opacity: 1;
  }

  /* Transformação do Hambúrguer para "X" */
  .nodeAiotHeader.is-active .nodeAiotMobileToggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nodeAiotHeader.is-active .nodeAiotMobileToggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .nodeAiotHeader.is-active .nodeAiotMobileToggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Ajuste de botões no mobile */
  .nodeAiotBtnPrimary,
  .nodeAiotBtnSecondary {
    text-align: center;
    padding: 14px;
    font-size: 16px;
  }

  .nodeAiotSwitchers {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
  }
}