@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ================== VARIABLES Y FUNDAMENTOS ================== */
:root {
  /* Colores principales (tema morado) */
  --bg: #0e0616; /* fondo profundo morado */
  --bg-2: #150a24; /* degradado inferior */
  --bg-card: #1b0d2e; /* tarjetas oscuras moradas */
  --text: #eeeaf8; /* texto principal claro */
  --text-muted: #b8a9d6; /* texto secundario lila */

  /* Acentos morados y detalles */
  --red-primary: #7a3cff; /* usamos esta variable como acento principal morado */
  --red-dark: #5b21b6; /* morado profundo */
  --red-light: #a78bfa; /* lila claro */
  --gold: #ffce6a; /* dorado suave para badges */
  --gold-light: #ffe38a;
  --gold-dark: #b77f1f;

  /* Efectos y sombras (adaptados a morado) */
  --glow-red: 0 0 30px rgba(122, 60, 255, 0.4);
  --glow-gold: 0 0 30px rgba(255, 206, 106, 0.25);
  --shadow-card: 0 10px 40px rgba(19, 10, 36, 0.65);
  --shadow-elevated: 0 20px 60px rgba(19, 10, 36, 0.8);

  /* Espaciado */
  --radius: 16px;
  --radius-lg: 24px;
  --topbar-h: 60px;

  /* Paleta adicional */
  --purple-1: #7a3cff;
  --purple-2: #a855f7;
  --violet: #6d28d9;
  --pink: #ff2bd6;
}

/* ================== RESET Y BASE ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family:
    "Fira Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  font-weight: 400;
  font-style: normal;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  /* display: block; */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ================== TOPBAR ================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 10, 36, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122, 60, 255, 0.35);
  box-shadow: 0 8px 24px rgba(19, 10, 36, 0.55);
}

.topbar-inner {
  max-width: 100%;
  /* margin: 0 auto; */
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-1), var(--violet));
  box-shadow: var(--glow-red);
}

/* Imagen del logo de marca */
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 10px;
}

/* Compact header */
.topbar--compact .brand-logo {
  height: 32px;
}

/* Footer brand logo más grande */
.footer-brand .brand-logo {
  height: 48px;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 64px;
  }
  .footer-brand .brand-logo {
    height: 40px;
  }
}

/* ====== Sidebar listado vertical (estilo Mafia) ====== */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.05s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-item .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 22px; /* soporta íconos de fuente */
  line-height: 1;
}

.menu-item span {
  font-size: 14px;
  font-weight: 600;
}

.menu-item.is-active {
  background: #3b0f14;
  box-shadow: inset 0 0 0 1px #851c2b;
}

.rewards-title {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #ffd56a;
}

.rewards-list .menu-item {
  background: rgba(255, 255, 255, 0.06);
}

/* Variantes de color para elementos de recompensas */
.menu-item.variant-blue {
  background: #0f2a4a;
}
.menu-item.variant-green {
  background: #123b2a;
}
.menu-item.variant-orange {
  background: #4a2a12;
}
.menu-item.variant-purple {
  background: #2a1b4a;
}
.menu-item.variant-pink {
  background: #4a1b3a;
}
.menu-item.variant-cyan {
  background: #0f3a4a;
}
.menu-item.variant-brown {
  background: #3a2a1b;
}
.menu-item.variant-skyblue {
  background: #1b3a4a;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-compact {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-compact.btn-primary {
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 60, 255, 0.35);
  border-color: rgba(168, 85, 247, 0.6);
}

.btn-compact.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(122, 60, 255, 0.45);
}

.btn-compact.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.btn-compact.btn-outline:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.85);
}

.btn-compact.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
  box-shadow: var(--glow-gold);
}

.btn-compact.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

/* Botón de acceso (login) estilo morado */
.btn-login {
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.7);
  box-shadow: 0 12px 28px rgba(122, 60, 255, 0.4);
  font-weight: 900;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(122, 60, 255, 0.5);
}

.balance-pill {
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-weight: 900;
  color: var(--gold);
  box-shadow: var(--glow-gold);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(255, 213, 77, 0.1);
  border: 1px solid rgba(255, 213, 77, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.profile-pill:hover {
  background: rgba(255, 213, 77, 0.2);
  border-color: var(--red-primary);
}

.profile-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* ================== HERO MAIN ================== */
/* Decoración de fondo para hero (orbits y brillos) */
.hero-carousel-wrapper .hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-decor::before,
.hero-bg-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-bg-decor::before {
  width: 700px;
  height: 700px;
  left: -10%;
  top: -10%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 229, 168, 0.18),
    transparent 60%
  );
}
.hero-bg-decor::after {
  width: 500px;
  height: 500px;
  right: -10%;
  top: 20%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(245, 214, 123, 0.15),
    transparent 60%
  );
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.hero-bg-decor::before {
  animation: drift 12s ease-in-out infinite;
}
.hero-bg-decor::after {
  animation: drift 18s ease-in-out infinite;
}

/* Chips de categorías bajo el hero */
.categories-chips {
  padding: 16px 20px;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 229, 168, 0.2);
  border-bottom: 1px solid rgba(0, 229, 168, 0.2);
}
.categories-chips .chips-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.categories-chips .chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 168, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
}
.categories-chips .chip:hover {
  border-color: var(--red-primary);
  background: rgba(0, 229, 168, 0.12);
}
.categories-chips .chip.is-active {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: #fff;
  box-shadow: var(--glow-red);
  border-color: transparent;
}
@media (max-width: 768px) {
  .categories-chips {
    padding: 12px 8px;
  }
}
.hero-main {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content-overlay {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 25px;
  margin-bottom: 20px;
  box-shadow: var(--glow-gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title-main {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: white;
  margin: 0 0 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  max-width: 900px;
}

.hero-subtitle-main {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  max-width: 700px;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: white;
  box-shadow: 0 10px 40px rgba(122, 60, 255, 0.45);
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(122, 60, 255, 0.7);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-4px);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 213, 77, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
  background: rgba(255, 213, 77, 0.8);
  border-color: var(--red-primary);
  box-shadow: var(--glow-red);
}

.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: var(--gold);
  box-shadow: var(--glow-gold);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-title-main {
    font-size: 2.2rem;
  }
  .hero-subtitle-main {
    font-size: 1rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  .hero-nav-btn {
    display: none;
  }
}

/* ================== GRID DE JUEGOS ================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(122, 60, 255, 0.5);
}

.game-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.game-info {
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(27, 13, 46, 0.9),
    rgba(21, 10, 36, 1)
  );
}

.game-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.game-provider {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge de "HOT" o "NEW" */
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-hot {
  background: linear-gradient(135deg, #ff4d4d, #b91c1c);
  color: white;
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

/* Responsive Grid */
@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
  }
}

/* ================== SECTION HEADERS ================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.section-title i {
  color: var(--gold);
}

.see-all {
  font-size: 0.9rem;
  color: var(--red-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.see-all:hover {
  color: #fff;
}

/* ================== SEARCH BAR ================== */
.search-container {
  padding: 0 16px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px 14px 48px;
  border-radius: 999px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--red-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(122, 60, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}

/* ================== LAYOUT PRINCIPAL (App Container) ================== */
.app-container {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
  position: relative;
}

/* Sidebar para desktop */
.sidebar {
  width: 260px;
  background: rgba(14, 6, 22, 0.6); /* Transparencia estilo mafia */
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(122, 60, 255, 0.2);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  z-index: 90;
  overflow-y: auto;
  padding: 20px 16px;
}

.main-content {
  flex: 1;
  width: 100%;
  padding-bottom: 80px; /* espacio footer */
}

/* Cuando hay sidebar, empujamos el main content */
@media (min-width: 1024px) {
  .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
}

/* Sidebar oculto en móvil/tablet */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  /* Overlay para cerrar sidebar en móvil */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .sidebar.is-open + .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================== BOTTOM NAVIGATION (MOBILE) ================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(21, 10, 36, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(122, 60, 255, 0.3);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.nav-item.active {
  color: var(--red-light);
  background: rgba(122, 60, 255, 0.15);
}

.nav-item.active i {
  color: var(--red-primary);
  text-shadow: 0 0 12px rgba(122, 60, 255, 0.6);
}

/* Botón central flotante (tipo 'Jugar') */
.nav-fab {
  transform: translateY(-24px);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 206, 106, 0.4);
  border: 4px solid var(--bg);
  color: #000;
  font-size: 1.6rem;
}

/* ================== FORMS & INPUTS ================== */
.form-group {
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--red-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* ================== UTILITIES ================== */
.text-gold {
  color: var(--gold);
}
.text-red {
  color: #ef4444;
}
.text-green {
  color: #10b981;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.d-none {
  display: none !important;
}

.mt-4 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 16px;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(21, 10, 36, 0.95);
  border: 1px solid rgba(122, 60, 255, 0.3);
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 300px;
  backdrop-filter: blur(10px);
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid #10b981;
}
.toast.error {
  border-left: 4px solid #ef4444;
}
.toast.info {
  border-left: 4px solid var(--red-primary);
}

/* Loader */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(122, 60, 255, 0.3);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Marquee de ganadores (opcional) */
.winners-marquee {
  background: linear-gradient(90deg, #2a0a38, #150520);
  padding: 8px 0;
  border-bottom: 1px solid rgba(122, 60, 255, 0.2);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding-left: 100%;
}
.winner-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.winner-item strong {
  color: var(--gold);
}
@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* Modal base */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(122, 60, 255, 0.3);
  border-radius: 24px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #fff;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Range slider personalizado (opcional) */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 206, 106, 0.5);
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* Checkbox bonito */
.custom-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.custom-check input {
  display: none;
}
.check-box {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.custom-check input:checked + .check-box {
  background: var(--red-primary);
  border-color: var(--red-primary);
}
.check-box::after {
  content: "âœ“";
  color: white;
  font-size: 14px;
  display: none;
}
.custom-check input:checked + .check-box::after {
  display: block;
}

/* Badge en Topbar */
.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* Tooltip básico */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
[data-tooltip]:hover::before {
  opacity: 1;
}

/* Efecto Glass */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Gradiente texto */
.text-gradient {
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* color: transparent; fallback */
}

/* Mask image para suavizar bordes de listas scrollables */
.fade-edges {
  /* mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

/* Avatar con anillo de nivel */
.avatar-ring {
  position: relative;
  display: inline-block;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold), var(--red-primary));
  border-radius: 50%;
}
.avatar-ring img {
  display: block;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

/* Separador bonito */
.hr-glow {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(122, 60, 255, 0.5),
    transparent
  );
  margin: 24px 0;
}

/* Botón 'Cargar más' */
.btn-load-more {
  display: block;
  margin: 30px auto;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-load-more:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Iconos de redes sociales */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}
.social-link:hover {
  background: var(--red-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(122, 60, 255, 0.4);
}

/* Layout específico para 'Missions' o 'Tasks' */
.task-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.task-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(122, 60, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--red-primary);
}
.task-info {
  flex: 1;
}
.task-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.task-reward {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}
.btn-claim {
  padding: 8px 16px;
  background: var(--gold);
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 206, 106, 0.3);
}
.btn-claim:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

/* ================== CSS SHAPES (Separadores de sección) ================== */
.shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.shape-divider-bottom .shape-fill {
  fill: var(--bg);
}

/* Ajustes finales de tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

strong {
  color: #fff;
}

/* Fix para evitar parpadeo en cargas */
[v-cloak] {
  display: none;
}

/* Utilidad para truncar texto */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================== GLOBAL BUTTONS ================== */
.btn {
  background: linear-gradient(180deg, var(--red-primary), var(--violet));
  color: white;
  border: 1px solid rgba(168, 85, 247, 0.6);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(122, 60, 255, 0.35);
  text-align: center;
  display: inline-block;
  font-size: 1rem;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(122, 60, 255, 0.5);
  background: linear-gradient(180deg, var(--red-light), var(--red-primary));
}
.btn:active {
  transform: translateY(0);
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  text-align: center;
  display: inline-block;
}
.btn-danger:hover {
  background: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

/* Botones pequeños en tabla (override) */
td .btn-danger {
  width: auto;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
  box-shadow: none;
}
