.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: relative;
  z-index: 100;
  background-color: var(--cor-fundo-header, transparent);
}

.logo {
  max-width: 220px !important;
  max-height: 60px !important;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.theme-modern .logo {
  animation: floatLogo 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(38, 150, 255, 0.3)) 
          drop-shadow(0 0 30px rgba(38, 150, 255, 0.15))
          drop-shadow(0 0 45px rgba(250, 204, 21, 0.12));
  transition: all 0.3s ease;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.theme-modern .logo:hover {
  filter: drop-shadow(0 0 20px rgba(38, 150, 255, 0.4)) 
          drop-shadow(0 0 40px rgba(38, 150, 255, 0.22))
          drop-shadow(0 0 60px rgba(250, 204, 21, 0.18));
  animation: none;
  transform: scale(1.05);
}

.header-main-container {
  display: flex;
  align-items: center;
  gap: 70px;
}

.header-main-container-interactions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-secondary-container {
  display: flex;
  align-items: center;
  gap: 14.5px;
  position: relative;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.user:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 100%;
  color: var(--cor-texto-principal);
  border: 1px solid var(--cor-borda-principal);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--cor-primaria);
}

/* Dropdown Styles */
.header-balance-wrapper,
.header-user-wrapper {
  position: relative;
}


.header-balance-dropdown,
.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
  background: linear-gradient(145deg, var(--cor-fundo-card) 0%, var(--cor-fundo-principal) 100%);
  border: 1px solid var(--cor-borda-principal);
  border-radius: 12px;
  box-shadow: var(--sombra-lg);
  z-index: 9999;
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--cor-texto-principal);
  text-decoration: none;
}

a.dropdown-item {
  color: var(--cor-texto-principal);
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--cor-primaria);
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dropdown-item-title {
  font-size: 14px;
  font-weight: 500;
}

.dropdown-item-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--cor-primaria);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--cor-borda-principal);
  margin: 4px 0;
}

.dropdown-balance-info {
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dropdown-balance-label {
  font-size: 13px;
  color: var(--cor-texto-secundario);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-balance-label i {
  color: var(--cor-primaria);
  width: 14px;
}

.dropdown-balance-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--cor-texto-principal);
}

.dropdown-balance-bonus .dropdown-balance-label i {
  color: var(--cor-sucesso, #22c55e);
}

.dropdown-balance-value--bonus {
  color: var(--cor-sucesso, #22c55e);
}

.small {
  width: 100px;
  height: 24px;
}

/* ========================================
   🎮 HEADER MODERNO - SEM BORDAS CINZAS
   ======================================== */

.theme-modern .header {
  padding: 20px 0;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
}

.theme-modern .header-main-container {
  gap: 80px;
}

.theme-modern .user {
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  background: var(--cor-fundo-card);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(38, 150, 255, 0.3),
    0 0 40px rgba(38, 150, 255, 0.15),
    0 0 60px rgba(250, 204, 21, 0.15);
  transition: all 0.2s ease;
  animation: floatHeader 5s ease-in-out infinite;
}

@keyframes floatHeader {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3.5px);
  }
}

.theme-modern .user:hover {
  border: none;
  background: var(--cor-fundo-card);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(38, 150, 255, 0.4),
    0 0 50px rgba(38, 150, 255, 0.25),
    0 0 75px rgba(250, 204, 21, 0.2);
  animation: none;
}

.theme-modern .user-icon {
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 18px;
}

.theme-modern .user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 3px solid var(--cor-primaria);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-modern .header-balance-dropdown,
.theme-modern .header-user-dropdown {
  border: none;
  border-radius: 20px;
  background: var(--cor-fundo-card);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 25px rgba(38, 150, 255, 0.3),
    0 0 50px rgba(38, 150, 255, 0.15),
    0 0 75px rgba(250, 204, 21, 0.15);
  backdrop-filter: blur(10px);
}

.theme-modern .dropdown-item {
  border-radius: 12px;
  margin: 6px 10px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.theme-modern .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-modern .dropdown-item i {
  font-size: 18px;
  width: 24px;
}

.theme-modern .dropdown-item-title {
  font-size: 15px;
  font-weight: 600;
}

.theme-modern .dropdown-item-value {
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-modern .dropdown-divider {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  height: 1px;
  margin: 8px 10px;
}

@media (max-width: 991px) {
  .logo {
    max-width: 180px !important;
    max-height: 50px !important;
  }
}

@media (max-width: 768px) {
  .header-main-container {
    display: block;
    gap: none;
  }

  .header-main-container-interactions,
  .header-secondary-container-invisible {
    display: none;
  }

  .logo {
    max-width: 250px !important;
    max-height: 65px !important;
    width: auto !important;
    height: auto !important;
  }
  
  .theme-modern .header {
    padding: 16px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
  }
  
  .theme-modern .header-secondary-container {
    gap: 8px;
  }
  
  .theme-modern .header-secondary-container .button {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .theme-modern .header-balance-button .button {
    padding: 10px 12px;
  }

  .theme-modern .user {
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .theme-modern .user-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .theme-modern .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  
  .theme-modern .header-balance-dropdown,
  .theme-modern .header-user-dropdown {
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  .theme-modern .dropdown-item {
    border-radius: 10px;
    margin: 4px 8px;
    padding: 10px 14px;
  }
  
  .theme-modern .dropdown-item-value {
    font-size: 16px;
  }
  
  .theme-modern .dropdown-item-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 245px !important;
    max-height: 62px !important;
  }
  
  .theme-modern .header {
    padding: 14px 0;
  }
  
  .theme-modern .header-secondary-container {
    gap: 6px;
  }
  
  .theme-modern .header-secondary-container .button {
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
    font-weight: 600;
  }
  
  .theme-modern .header-balance-button .button {
    padding: 9px 10px;
    font-size: 0.85rem;
  }
  
  .theme-modern .user {
    padding: 8px 10px;
    border-radius: 10px;
    gap: 6px;
  }
  
  .theme-modern .user-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .theme-modern .user span {
    font-size: 0.85rem;
  }
  
  .theme-modern .dropdown-item {
    padding: 9px 12px;
  }
  
  .theme-modern .dropdown-item-title {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .logo {
    max-width: 225px !important;
    max-height: 58px !important;
  }
  
  .theme-modern .header {
    padding: 12px 0;
  }
  
  .theme-modern .header-secondary-container {
    gap: 5px;
  }
  
  .theme-modern .header-secondary-container .button {
    padding: 8px 10px;
    font-size: 0.8rem;
    border-radius: 9px;
  }
  
  .theme-modern .header-balance-button .button {
    padding: 8px 9px;
    font-size: 0.8rem;
  }
  
  .theme-modern .user {
    padding: 7px 9px;
    border-radius: 9px;
    gap: 5px;
  }
  
  .theme-modern .user-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  
  .theme-modern .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }
  
  .theme-modern .user span {
    font-size: 0.8rem;
  }
}
