@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0d0817;
  --bg-surface: #171029;
  --bg-surface-2: #201a3a;
  --bg-surface-3: #2a2249;
  --border: #362a54;
  --border-soft: #2a2148;
  --text-primary: #f5f3fb;
  --text-muted: #a79bc4;
  --gold: #ffd93d;
  --gold-2: #ffb238;
  --flame: #a855f7;
  --flame-2: #7c3aed;
  --blue: #4d7dff;
  --danger: #ff4d6a;
  --success: #3ddc97;
  --info: #4da6ff;
  --radius: 12px;
  --radius-lg: 18px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  /* "clip" en vez de "hidden": evita que algo empuje la página más ancha
     que la pantalla sin crear un contenedor de scroll propio en html/body.
     Con "hidden" aquí, la barra superior con position:sticky dejaba de
     quedarse fija al desplazar la pantalla en varios navegadores. */
  overflow-x: clip;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(255, 217, 61, 0.09), transparent),
    radial-gradient(ellipse 800px 600px at 100% 0%, rgba(77, 125, 255, 0.14), transparent),
    radial-gradient(ellipse 900px 700px at 50% 110%, rgba(168, 85, 247, 0.14), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-wrap: break-word; /* nombres largos, montos largos, etc. se ajustan en vez de desbordar */
  word-break: break-word;
}

body { -webkit-font-smoothing: antialiased; }

/* Cuando hay barra de navegación inferior fija, dejamos espacio para que
   el contenido no quede tapado detrás de ella (con margen para el "notch"
   de los teléfonos con gestos). */
body.has-bottom-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 0.5rem); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

.mono { font-family: var(--font-mono); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.08s ease, opacity 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Acción principal: dorado/ámbar, como pide la identidad "gamer premium" */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1327;
  box-shadow: 0 4px 16px rgba(255, 201, 61, 0.28);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 6px 20px rgba(255, 201, 61, 0.4); }
.btn-primary:disabled { box-shadow: none; }

.btn-secondary { background: var(--bg-surface-2); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--flame); }
.btn-danger { background: rgba(255, 77, 106, 0.15); color: var(--danger); border: 1px solid rgba(255, 77, 106, 0.4); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 0.4rem 0.7rem; }
.btn-ghost:hover:not(:disabled) { color: var(--text-primary); }

/* Botones compactos para filas con varias acciones (ej. lista de clientes) */
.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.76rem; }

input, select, textarea {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.15);
}
label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.35rem; display: block; }
.field { margin-bottom: 1rem; }

.wrap { max-width: 480px; margin: 0 auto; padding: 1.25rem; }
.wrap-wide { max-width: 760px; margin: 0 auto; padding: 1.25rem; }

.card {
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface) 60%, var(--bg-surface-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* --- Listas con scroll: evitan que la página baje sin fin con muchos registros --- */
.scroll-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--flame) var(--bg-surface-2);
}
.scroll-list::-webkit-scrollbar { width: 8px; }
.scroll-list::-webkit-scrollbar-track { background: var(--bg-surface-2); border-radius: 8px; }
.scroll-list::-webkit-scrollbar-thumb { background: var(--flame); border-radius: 8px; }

/* La lista de Ventas usa casi toda la altura de la pantalla, en vez del
   límite genérico de .scroll-list, para que se vean muchas más ventas
   de una vez sin tener que hacer scroll en la página completa. */
#orders-list {
  max-height: calc(100vh - 230px);
}

.count-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(255, 217, 61, 0.1);
  border: 1px solid rgba(255, 217, 61, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
}

/* --- Tarjetas del dashboard (pestaña Resumen del admin) --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}
@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface) 60%, var(--bg-surface-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.stat-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  margin-bottom: 0.6rem;
}
.stat-icon-wrap svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.stat-label { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.15rem; }
.stat-value { font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--text-primary); }
.stat-unit { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Selector de moneda dentro del menú de saldo */
.currency-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 0.3rem 0.4rem;
}
.currency-option.active {
  border-color: var(--flame);
  background: rgba(168, 85, 247, 0.18);
  color: var(--text-primary);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0;
  background: rgba(13, 8, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand .flame-dot { color: var(--gold); font-size: 1.2rem; text-shadow: 0 0 8px rgba(255, 217, 61, 0.9); }

/* --- Efecto neón para el nombre de la marca: solo text-shadow, sin imágenes --- */
.neon-text {
  color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.7),
    0 0 10px var(--blue),
    0 0 18px var(--blue),
    0 0 28px var(--flame);
  animation: neon-pulse 3.5s ease-in-out infinite;
}
@keyframes neon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
@media (prefers-reduced-motion: reduce) {
  .neon-text { animation: none; }
}

/* --- Logo hero de la página de entrada (index): wordmark a dos tonos + tagline --- */
.hero-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-logo-main .w { color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, 0.55); }
.hero-logo-main .g { color: var(--gold); text-shadow: 0 0 16px rgba(255, 217, 61, 0.65); }
.hero-logo-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}
.hero-logo-line {
  width: 30px; height: 2px;
  background: linear-gradient(90deg, #fff, var(--gold));
  border-radius: 2px;
}
.hero-logo-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.55);
}
@media (max-width: 480px) {
  .hero-logo-main { font-size: 2.1rem; }
  .hero-logo-tag { font-size: 0.98rem; }
}

/* --- Botón "Ver catálogo y precios": acción secundaria pero llamativa --- */
.btn-catalog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(77, 125, 255, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--radius);
  padding: 0.75rem 1.2rem;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.22);
  transition: transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn-catalog:hover {
  filter: brightness(1.08);
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.32);
  transform: translateY(-1px);
}
.btn-catalog:active { transform: scale(0.98); }
.btn-catalog .icon { font-size: 1.05rem; }

/* --- Insignia de saldo: elemento de firma, forma de diamante facetado --- */
.diamond-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem 0.4rem 0.5rem;
  background: linear-gradient(135deg, rgba(77, 125, 255, 0.16), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  max-width: 100%;
  min-width: 0;
  position: relative;
  cursor: pointer;
}
.diamond-badge .gem {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--gold), #fff3d1 40%, var(--gold));
  clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
  flex-shrink: 0;
}
.diamond-badge .amount { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 500; color: var(--gold); }

/* Menú desplegable del saldo: nunca más ancho que la pantalla, con margen a los lados */
.balance-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  width: min(260px, calc(100vw - 2rem));
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-align: left;
}

@media (max-width: 480px) {
  .topbar { padding: 0.65rem 0.75rem; }
  .brand { font-size: 0.95rem; }
  .brand .flame-dot { font-size: 1.05rem; }
  .diamond-badge { padding: 0.32rem 0.55rem 0.32rem 0.4rem; gap: 0.3rem; }
  .diamond-badge .gem { width: 13px; height: 13px; }
  .diamond-badge .amount { font-size: 0.76rem; }
  .btn-ghost { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
}

/* =========================================================================
   Topbar de home: campana de notificaciones a la izquierda, logo centrado,
   saldo + botón de recarga pegados al borde derecho.
   ========================================================================= */
.topbar-home {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
}
.topbar-home .hero-logo { grid-column: 2; justify-self: center; }
.topbar-home .hero-logo-main { font-size: 1.35rem; }
.topbar-home .hero-logo-tag { font-size: 0.68rem; }
.topbar-home .hero-logo-line { width: 18px; }
.topbar-home .topbar-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}
.topbar-home .icon-btn { grid-column: 1; justify-self: start; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--flame); color: var(--text-primary); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-btn .bell-emoji { font-size: 1.15rem; line-height: 1; filter: grayscale(0) saturate(1.15); }

.notif-badge {
  position: absolute;
  top: 6px; right: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 6px rgba(255, 77, 106, 0.85);
  border: 1.5px solid var(--bg-surface);
}

.btn-recharge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: #1c1327;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  box-shadow: 0 4px 14px rgba(255, 201, 61, 0.32);
  transition: filter 0.12s ease, transform 0.08s ease;
}
.btn-recharge:hover { filter: brightness(1.07); }
.btn-recharge:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .icon-btn .bell-emoji { font-size: 1rem; }
  .topbar-home .hero-logo-main { font-size: 1.05rem; }
  .topbar-home .hero-logo-tag { font-size: 0.58rem; }
  .topbar-home .hero-logo-line { width: 14px; }
  .btn-recharge { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
  .diamond-badge { padding: 0.28rem 0.5rem 0.28rem 0.35rem; }
  .diamond-badge .amount { font-size: 0.7rem; }
}


/* --- Pista de estado tipo HUD para los pedidos --- */
.status-track {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.status-track .notch {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
}
.status-track .notch.filled { background: var(--gold); }
.status-track .notch.done { background: var(--success); }
.status-track .notch.failed { background: var(--danger); }

.status-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}
.status-PENDING, .status-PROCESSING { background: rgba(255, 201, 77, 0.15); color: var(--gold); }
.status-COMPLETED { background: rgba(61, 220, 151, 0.15); color: var(--success); }
.status-FAILED, .status-REFUNDED { background: rgba(255, 77, 106, 0.15); color: var(--danger); }
.status-NEEDS_REVIEW { background: rgba(77, 125, 255, 0.18); color: var(--blue); }
.status-PAID { background: rgba(61, 220, 151, 0.15); color: var(--success); }
.status-REJECTED { background: rgba(255, 77, 106, 0.15); color: var(--danger); }

.count-badge.alert { color: var(--danger); background: rgba(255, 77, 106, 0.12); border-color: rgba(255, 77, 106, 0.35); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}
.offer {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  appearance: none;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.offer:hover { border-color: var(--gold); transform: translateY(-2px); }
.offer:active { transform: translateY(0) scale(0.98); }
.offer.selected {
  border-color: var(--flame);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0.06));
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.5), 0 0 18px rgba(168, 85, 247, 0.35);
}
.offer .name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.offer .price { font-family: var(--font-mono); color: var(--gold); font-size: 0.76rem; margin-top: 0.25rem; }

/* Ícono del juego dentro de la tarjeta: chiquito y compacto a propósito, para
   que pese poco (importa en el plan gratis de Railway) — funciona igual con
   un emoji (texto) que con una imagen pequeña que suba el admin. */
.game-icon { display: block; margin: 0 auto 0.4rem; }
.game-icon.game-icon-emoji {
  font-size: 1.5rem; line-height: 1;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.45rem;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--bg-surface-3), var(--bg-surface-2));
  border: 1px solid var(--border);
}
.game-icon.game-icon-img { width: 40px; height: 40px; object-fit: contain; border-radius: 11px; margin: 0 auto 0.45rem; }
#game-title .game-icon { display: inline-block; margin: 0; width: 32px; height: 32px; }
#game-title .game-icon.game-icon-emoji { font-size: 1.2rem; }
#recharge-game-icon .game-icon { display: inline-block; margin: 0; width: 52px; height: 52px; }
#recharge-game-icon .game-icon.game-icon-emoji { font-size: 1.8rem; }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 0.75rem;
}
.order-row:last-child { border-bottom: none; }
.order-row .meta { font-size: 0.82rem; color: var(--text-muted); }

.notif {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}
.notif.success { border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.07); }
.notif.error { border-color: rgba(255, 77, 106, 0.4); background: rgba(255, 77, 106, 0.07); }
.notif.info { border-color: rgba(77, 166, 255, 0.4); background: rgba(77, 166, 255, 0.07); }
.notif .when { color: var(--text-muted); font-size: 0.72rem; margin-top: 0.25rem; font-family: var(--font-mono); }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }

.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 0.5rem; }
.hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.3rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.tab.active { border-color: var(--flame); color: var(--text-primary); background: rgba(168, 85, 247, 0.15); box-shadow: 0 0 10px rgba(168, 85, 247, 0.35); }

@media (max-width: 480px) {
  .tab { padding: 0.42rem 0.8rem; font-size: 0.8rem; }
}

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { padding: 0.5rem; border-bottom: 1px solid var(--border); }

@media (max-width: 480px) {
  .wrap, .wrap-wide { padding: 0.85rem; }
}

/* =========================================================================
   BARRA DE NAVEGACIÓN INFERIOR — le da a la web la sensación de app nativa.
   Es puramente de navegación (enlaces reales); no reemplaza ninguna función
   existente. En móvil ocupa todo el ancho pegada abajo; en escritorio se
   convierte en un "dock" flotante centrado y más angosto (ver media query
   más abajo), en vez de desaparecer.
   ========================================================================= */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(15, 10, 27, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  z-index: 40;
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0.3rem 0.2rem;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.bn-item svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform 0.15s ease; }
.bn-item .bn-icon-wrap {
  width: 34px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.bn-item.active { color: var(--text-primary); }
.bn-item.active .bn-icon-wrap {
  background: rgba(168, 85, 247, 0.22);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}
.bn-item.active svg { stroke: var(--gold); transform: translateY(-1px); }
.bn-item:active svg { transform: scale(0.9); }

@media (min-width: 861px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 1.25rem;
    width: min(460px, calc(100% - 3rem));
    height: calc(var(--nav-h) - 8px);
    padding-bottom: 0;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  }
  .bn-item { font-size: 0.72rem; }
  body.has-bottom-nav { padding-bottom: calc(var(--nav-h) + 2rem); }
}

/* =========================================================================
   HERO de bienvenida (usado en el inicio del catálogo/juegos) — un bloque
   de apertura llamativo, ligero (solo CSS, sin imágenes pesadas).
   ========================================================================= */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 260px 180px at 90% -20%, rgba(255, 217, 61, 0.22), transparent),
    radial-gradient(ellipse 320px 220px at -10% 120%, rgba(168, 85, 247, 0.35), transparent),
    linear-gradient(160deg, #1c1435, #120c22 70%);
  border: 1px solid var(--border-soft);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.hero h1 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.5rem; }
.hero p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; max-width: 34ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.hero-badge {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 0.35rem 0.65rem;
}
.hero-badge svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Fondo de marca del hero de home: el escudo NashClub muy tenue detrás del
   texto, con brillo tipo "screen" — un solo jpg liviano (~50KB), sin animación
   costosa, para no pesar la carga. */
.hero-brand-bg { isolation: isolate; }
.hero-brand-bg::before {
  content: "";
  position: absolute;
  top: -15%; right: -15%; bottom: -15%; left: -15%;
  background-image: url('/img/nashclub-hero.jpg?v=2');
  background-size: 62%;
  background-repeat: no-repeat;
  background-position: 105% -10%;
  opacity: 0.4;
  mix-blend-mode: screen;
  filter: saturate(1.15);
  z-index: 0;
  pointer-events: none;
}
.hero-brand-bg::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg, #120c22 30%, rgba(18, 12, 34, 0.55) 65%, rgba(18, 12, 34, 0.15) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-brand-bg > * { position: relative; z-index: 1; }
@media (max-width: 480px) {
  .hero-brand-bg::before { background-size: 78%; background-position: 115% 0%; opacity: 0.32; }
}

@media (min-width: 861px) {
  .hero { padding: 2.4rem 2.2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { max-width: 46ch; }
}

/* Botón de contacto de soporte (WhatsApp / Telegram / Email) */
.contact-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; border-radius: var(--radius); background: var(--bg-surface-2); border: 1px solid var(--border); margin-bottom: 0.6rem; text-decoration: none; color: var(--text-primary); transition: border-color 0.12s ease, transform 0.12s ease; }
.contact-row:hover { border-color: var(--flame); transform: translateY(-1px); }
.contact-row .contact-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .contact-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.contact-row .contact-title { font-weight: 600; font-size: 0.92rem; }
.contact-row .contact-sub { font-size: 0.78rem; color: var(--text-muted); }
.contact-row .contact-go { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }
