.top-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #b8860b;
  border-radius: 10px;
  padding: 8px 15px;
  max-width: 1100px;
  height: 40px;
  margin: 1px auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text {
  font-family: 'MedievalSharp', cursive;
  font-size: 1.2rem;
  color: #d4af37;
  animation: pulseGlow 3s infinite; /* Efeito apenas no texto */
  padding: 0;
}

.top-buttons {
  display: flex;
  gap: 15px;
}

.top-btn {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #111;
  border: 2px solid #ffd700;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 100px;
  max-width: 100px;
}

.top-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
/* Animação do brilho pulsante */
@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
  }
}
/* BOTÃO DE SP - MESMO TAMANHO DO LOGOUT */
/* BOTÃO DE SP - MESMO TAMANHO DO LOGOUT */
.sp-button {
  background: linear-gradient(135deg, #8b4513, #a0522d) !important;
  border: 2px solid #b8860b !important;
  color: #ffd700 !important;
  padding: 8px 25px !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  font-family: 'MedievalSharp', cursive !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: default !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  min-width: 200px !important; /* ✅ LARGURA MAIOR */
  max-width: none !important; /* ✅ REMOVER LIMITE */
  height: 38px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.sp-button:hover {
  background: linear-gradient(135deg, #a0522d, #b8860b) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
}

.sp-icon {
  color: #ffd700 !important;
  font-size: 1.1rem !important;
}

.sp-value {
  font-size: 1rem !important;
  font-weight: bold !important;
}

/* GARANTIR ALINHAMENTO PERFEITO */
.user-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* DEIXAR OS DOIS BOTÕES IDÊNTICOS EM TAMANHO */
.sp-button, .top-buttons .top-btn {
  height: 38px; /* ALTURA IDÊNTICA */
  min-width: 100px;
  max-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}