.promo-bar {
    height: 30px;
    background-color: var(--accent-yellow);
    color: #000;
    font-size: 0.85rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1101;
    text-transform: uppercase;
}

/* --- HEADER COM EFEITO SCROLL --- */
.header-moderno {
  position: fixed; 
  top: var(--promo-height, 0px); 
  left: 0; 
  right: 0;
  height: 80px;
  background: var(--bg-header); 
  border-bottom: 1px solid var(--borda);
  display: flex; align-items: center; 
  justify-content: space-between;
  padding: 0 40px; 
  z-index: 1000;
  transition: var(--transicao);
}

/* Classe aplicada via JS ao rolar a página */
.header-moderno.scrolled {
  height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
}

.brand-logo {
  width: 42px; 
  height: 42px; 
  background: var(--primary-blue);
  border-radius: 10px; 
  display: flex; 
  align-items: center;
  justify-content: center;
  color: white; 
  font-weight: 800; 
  font-size: 22px;
  transition: var(--transicao);
}

.header-moderno.scrolled .brand-logo {
  width: 34px; 
  height: 34px; 
  font-size: 18px;
}

/* --- NAV DESKTOP --- */
.nav-desktop { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
}

.nav-desktop .nav-link {
  text-decoration: none; 
  color: #334155; 
  padding: 10px 18px;
  border-radius: 8px; 
  font-size: 15px; 
  font-weight: 600; 
  transition: var(--transicao);
}

.nav-desktop > .nav-link.active { 
  background: var(--secondary-blue);
  color: var(--white); 
}

/* --- ESTILO DO SUBMENU DESKTOP --- */
.has-submenu { 
  position: relative; 
  padding: 25px 0; 
}

.header-moderno.scrolled .has-submenu { 
  padding: 15px 0; 
}

.has-submenu > .dropdown-menu {
  position: absolute; 
  top: 100%; 
  left: 0; 
  background: white;
  min-width: 220px;
  border-radius: 12px; 
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--borda); 
  padding: 8px; 
  display: none;
  z-index: 3000;
  margin-top: -5px; 
  opacity: 0; 
  transform: translateY(10px);
  transition: var(--transicao);
}

.has-submenu:hover .dropdown-menu {
  display: flex; 
  flex-direction: column; 
  opacity: 1; 
  transform: translateY(0);
}

.dropdown-menu > .dropdown-link {
  text-decoration: none; 
  color: var(--text-dark); 
  padding: 12px 15px;
  border-radius: 8px; 
  font-size: 14px; 
  font-weight: 500; 
  transition: var(--transicao);
  display: block;
}

.dropdown-menu > .dropdown-link:hover {
  background: #f1f5f9; 
  color: var(--secondary-blue); 
  transform: translateX(5px);
}

/* --- ÁREA ADMIN --- */
.user-area { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

.user-area > .notifications { 
  position: relative; 
  cursor: pointer; 
}

.notifications > .badge {
  position: absolute; 
  top: -5px; 
  right: -5px; 
  background: #ff4d4d;
  color: white; 
  font-size: 10px; 
  padding: 2px 6px; 
  border-radius: 20px;
  border: 2px solid white; 
  font-weight: bold;
}

.user-profile-wrapper {
  position: relative; 
}

.user-profile {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 6px 15px;
  border: 1px solid var(--borda); 
  border-radius: 50px;
  cursor: pointer;
  background: #fff; 
  transition: var(--transicao);
}

.user-profile > .user-text > p{
  margin-bottom: 0;
}

.user-profile:hover { 
  border-color: var(--secondary-blue); 
}

.admin-dropdown {
  position: absolute; 
  top: 115%; 
  right: 0;
  width: 230px; 
  background: white;
  border-radius: 14px; 
  border: 1px solid var(--borda); 
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  display: none; 
  flex-direction: column; 
  padding: 10px; 
  z-index: 3001;
}

.admin-dropdown.show { 
  display: flex; 
  animation: slideIn 0.2s ease-out; 
}

.admin-dropdown-item {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 12px;
  text-decoration: none; 
  color: var(--text-dark); 
  font-size: 14px;
  font-weight: 500; 
  border-radius: 8px; 
  transition: var(--transicao);
}
.admin-dropdown-item:hover { 
  background: #f8fafc; 
  color: var(--secondary-blue); 
}

.admin-dropdown-item.sair { 
  color: #ef4444; 
}

/* --- SIDEBAR MOBILE --- */
.sidebar-mobile {
  position: fixed; 
  top: 0; 
  right: -100%; 
  width: 280px; 
  height: 100vh;
  background: white; 
  z-index: 4000; 
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1); 
  display: flex; 
  flex-direction: column; 
  padding: 30px 20px;
}

.sidebar-mobile.open { 
  right: 0; 
}

.sidebar-item {
  text-decoration: none; 
  color: #1e293b; 
  font-size: 18px; 
  font-weight: 600;
  padding: 16px 0; 
  border-bottom: 1px solid #f1f5f9; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  cursor: pointer;
}

.mobile-submenu {
  max-height: 0; 
  overflow: hidden; 
  background: #f8fafc;
  display: flex; 
  flex-direction: column; 
  padding-left: 15px;
  transition: max-height 0.3s ease-out;
}

.mobile-submenu.active { 
  max-height: 200px; 
  padding-bottom: 10px; 
}

.mobile-sub-link { 
  padding: 12px; 
  text-decoration: none; 
  color: #64748b; 
  font-size: 15px; 
}

.btn-sair-mobile { 
  color: #ff0000; 
  font-weight: 700; 
  margin-top: 30px; 
  text-decoration: none; 
  font-size: 18px; 
}

@keyframes slideIn { 
  from { opacity: 0; transform: translateY(-10px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.4); 
  display: none; 
  z-index: 3500; 
  backdrop-filter: blur(2px); 
}

.overlay.active { 
  display: block; 
}
.menu-toggle { 
  display: none; 
  font-size: 28px; 
  cursor: pointer; 
  border: none; 
  background: none; 
  color: var(--primary-blue); 
}

@media (max-width: 1100px) { 
  .nav-desktop { 
    display: none; 
  } 
  .menu-toggle { 
    display: block; 
  } 
}

@media (max-width: 650px) {
   .brand-name { 
    display: none; 
  } 
   .user-text { 
    display: none; 
  } 
}