/* styles-premium.css - Estilos "Premium" para Star5BNB */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #0f172a 0%, #1a1a2e 100%);
  color: #ffffff;
  margin: 0 auto;
  padding: 0 1rem; /* 馃憟 Padding horizontal para m贸viles */
  text-align: center;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

/* Botones */
button {
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 12px;
  background: linear-gradient(135deg, #4da6ff, #0077ff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4);
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #4da6ff, #3399ff);
}

/* Contenedor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  background: #0f3460;
  padding: 20px;
  border-bottom: 4px solid #4da6ff;
  text-shadow: 0px 0px 6px #4da6ff;
}

/* Footer */
.footer {
  background: #0f172a;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer a {
  color: #4da6ff;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* Cards */
.card {
  background: rgba(15, 52, 96, 0.7);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 119, 255, 0.6);
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a2e;
  border-radius: 15px;
  overflow: hidden;
}

table th, table td {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  text-align: left;
}

table th {
  background-color: #0f172a;
  color: #4da6ff;
  font-weight: 600;
}

table tr:hover {
  background-color: #2c2c44;
}

/* Animaciones */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

/* Glow efecto para cambios de saldo */
.glow-update {
  animation: glowFade 1.5s ease-in-out;
}

@keyframes glowFade {
  0% { box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
}

/* Responsive */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    width: 100%;
    padding: 0; /* ✅ Sin espacios laterales en móviles */
    margin: 0;
  }

  button {
    padding: 10px 16px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  #arbolReferidos {
    padding: 1rem 0.5rem;
  }

  .node {
    font-size: 0.75rem; /* Opcional: nodos más compactos */
  }
}

@media (min-width: 640px) {
  body {
    padding: 0 1rem;
  }
}

/* Toast */
#toastMessage.hidden {
  display: none;
}

#toastMessage {
  transition: all 0.3s ease;
}
