.main-header{
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  width: 100%;
  height: 120px;
  position: sticky;
  top: 0;
  margin-bottom: 30px;
  padding: 0 clamp(16px, 4vw, 64px);
  gap: clamp(10px, 2vw, 28px);
  box-sizing: border-box;
  backdrop-filter: blur(6px);

    border-bottom: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 1px 0 rgba(255,255,255,.03),
        0 10px 30px rgba(0,0,0,.45);

    z-index:1000;
}

.logo{
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 0;
  width: 120px;
  height: auto;
}
.main-header > .logo {
  grid-column: 1;
  justify-self: start;
}
.main-header > .logo a {
  display: flex;
  align-items: center;
}
.main-header > .logo img.logo {
  width: clamp(138px, 15vw, 210px);
  height: auto;
  object-fit: contain;
}
.menu-carrossel {
  position: relative;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  min-width: 0;
}
.lista-links{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.lista-links a{
  color: #dce7e0;
  text-decoration: none;
  margin: 0;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s, color 0.3s;
  border-radius: 20px;
  border: 1px solid transparent;
  padding: 9px clamp(9px, 1vw, 14px);
  white-space: nowrap;
}
.lista-links a:hover {
  background: rgba(18, 224, 108, 0.1);
  color: #72f1a7;
  border-color: rgba(18, 224, 108, 0.35);
  transform: translateY(-1px);
}
.lista-links a.ativo,
.lista-links a[aria-current="page"] {
  color: #12e06c;
  border-color: rgba(18, 224, 108, 0.72);
  background: rgba(18, 224, 108, 0.12);
  box-shadow: 0 0 16px rgba(18, 224, 108, 0.16);
}
.lista-links a.ativo:hover,
.lista-links a[aria-current="page"]:hover {
  color: #12e06c;
  border-color: #12e06c;
  background: rgba(18, 224, 108, 0.16);
}
.notification-icon{
  display: flex;
  align-items: center;
  cursor: pointer;
}

.notification-icon[hidden],
.email-container[hidden] {
  display: none !important;
}
.bell-icon {
  transition: transform 0.2s ease;
}
.notification-icon:hover .bell-icon {
  transform: rotate(15deg);
}
.login-header {
  grid-column: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  white-space: nowrap;
}

#login-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.header-menu-toggle {
  display: none;
}

/* Corrige o pequeno deslocamento vertical causado pela altura visual do logo. */
@media (min-width: 769px) {
  .main-header > .logo,
  .main-header > .menu-carrossel,
  .main-header > .login-header {
    position: relative;
    top: -8px;
  }

  .main-header > .login-header {
    padding-left: 8px;
  }
}

@media (min-width: 769px) and (max-width: 1320px) {
  .main-header {
    grid-template-columns: minmax(120px, 0.8fr) auto minmax(150px, 0.8fr);
    padding-inline: clamp(14px, 2.2vw, 30px);
    gap: 8px;
  }

  .main-header > .logo img.logo {
    width: clamp(126px, 12vw, 166px);
  }

  .lista-links {
    gap: 2px;
  }

  .lista-links a {
    padding: 8px 7px;
    font-size: clamp(11px, 1vw, 13px);
  }

  .hu-convidar-btn {
    width: 38px;
    min-width: 38px;
    padding-inline: 0;
  }

  .hu-convidar-btn strong {
    display: none;
  }

  .login,
  .cadastra-se {
    font-size: 13px;
    padding: 9px 11px;
  }
}
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.notification-badge.hidden {
  display: none;
}





.email-container {
    display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: balancar 2s ease-in-out infinite
}

.email-icon {
  width: 21px;
  height: 21px;
  fill: white;
  transition: transform 0.3s ease;
}

/* Efeito Hover com CSS */
.email-container:hover {
  transform: scale(1.2);
  transform: rotate(15deg );
}

/* Classe de animação aplicada via JS */
.email-container.animar {
  animation: shake 0.5s ease-in-out;
}
@keyframes balancar {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-5deg); }
  50% { transform: translateX(4px) rotate(5deg); }
  75% { transform: translateX(-4px) rotate(-5deg); }
}









.login{
  background-color:var(--cor-texto-claro);
  color: #050B14;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 10px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 15px rgba(18, 224, 108, 0.4); /* Brilho neon */
}
.cadastra-se{
  
  background-color: #12E06C;
  color: #050B14;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 15px rgba(18, 224, 108, 0.4); /* Brilho neon */
}
.login-header button:hover{
   transform: translateY(-5px); /* Sobe um pouquinho ao passar o mouse */
  box-shadow: 0 0 25px rgba(18, 224, 108, 0.7); /* Aumenta o brilho */
}
/* =====================================================
   HEADER AUTH — cole no seu style.css
   ===================================================== */
 
/* Wrapper que o JS injeta dentro de #login-header */
.header-usuario {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
 
/* Foto redonda */
.hu-foto {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #12E06C;
  transition: border-color 0.2s;
}
.header-usuario:hover .hu-foto {
  border-color: #fff;
}
 
/* Bolinha verde de "online" */
.hu-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.hu-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12E06C;
  border: 2px solid #0d0d0d;   /* combine com a cor de fundo do header */
}
 
/* Nome ao lado da foto */
.hu-nome {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
/* ── Dropdown ── */
.hu-dropdown {
  display: none;          /* escondido por padrão */
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 180px;
  padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 999;
  flex-direction: column;
}
.hu-dropdown.aberto {
  display: flex;
}
 
.hu-drop-item {
  display: block;
  padding: 10px 16px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hu-drop-item:hover {
  background: #252525;
  color: #12E06C;
}
 
.hu-drop-divider {
  height: 1px;
  background: #2a2a2a;
  margin: 4px 0;
}
 
.hu-sair {
  color: #e06612 !important;
}
.hu-sair:hover {
  color: #ff8040 !important;
}

/* Central de convites e indicadores de pendências */
.hu-convidar-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(18, 224, 108, 0.55);
  border-radius: 999px;
  background: rgba(18, 224, 108, 0.1);
  color: #f4fff8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 700 0.75rem 'Montserrat', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.login-header .hu-convidar-btn:hover,
.login-header .hu-convidar-btn:focus-visible {
  transform: none;
  border-color: #12e06c;
  background: #12e06c;
  color: #04140b;
  box-shadow: 0 0 18px rgba(18, 224, 108, 0.24);
}

.hu-total-badge,
.hu-item-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #12e06c;
  color: #03130a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 0.67rem 'Montserrat', sans-serif;
}

.hu-total-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  border: 2px solid #08110d;
  z-index: 2;
}

.hu-drop-item {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hu-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  padding: 20px;
  background: rgba(1, 7, 4, 0.8);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

.hu-share-overlay[hidden],
.hu-total-badge[hidden],
.hu-item-badge[hidden] {
  display: none !important;
}

.hu-share-modal {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(18, 224, 108, 0.3);
  border-radius: 20px;
  background: linear-gradient(145deg, #121714, #090d0b);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #f7fff9;
  text-align: center;
}

.hu-share-kicker {
  color: #12e06c;
  font: 800 0.7rem 'Montserrat', sans-serif;
  letter-spacing: 0.12em;
}

.hu-share-modal h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.hu-share-modal > p {
  margin: 0 auto;
  color: #b8c5bd;
  line-height: 1.6;
}

.hu-share-fechar {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #303933;
  border-radius: 50%;
  background: #171d19;
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}

.login-header .hu-share-fechar:hover,
.hu-share-fechar:hover {
  transform: none;
  border-color: #12e06c;
  box-shadow: none;
}

.hu-share-link {
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid #2b352f;
  border-radius: 10px;
  background: #080b09;
  color: #8fa298;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hu-share-acoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hu-share-acoes button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #344039;
  border-radius: 10px;
  background: #171d19;
  color: #fff;
  font: 700 0.76rem 'Montserrat', sans-serif;
  cursor: pointer;
}

.hu-share-acoes button:hover,
.hu-share-acoes button:focus-visible {
  transform: none;
  border-color: #12e06c;
  color: #12e06c;
  box-shadow: none;
}

.hu-share-acoes .hu-share-whatsapp {
  background: #12e06c;
  border-color: #12e06c;
  color: #03130a;
}

.hu-share-feedback {
  min-height: 22px;
  margin-top: 13px !important;
  color: #12e06c !important;
  font-size: 0.78rem;
}

body.hu-modal-aberto {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hu-convidar-btn strong {
    display: none;
  }

  .hu-convidar-btn {
    width: 38px;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .hu-convidar-btn {
    display: none;
  }

  .hu-share-acoes {
    grid-template-columns: 1fr;
  }

  .hu-share-modal {
    text-align: left;
  }
}

/* =====================================================
   aba do meu perfil
   ===================================================== */

   .main-header-perfil{
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 150px;
   }

/*============================================================
                      media queries para o headaer 
============================================================*/
