/* ===== Casino Fichas - Estilos compartidos ===== */
:root {
  --bg-0: #05060c;
  --bg-1: #0a0e1a;
  --card-bg: rgba(22, 27, 41, 0.82);
  --card-border: rgba(255, 255, 255, 0.08);
  --btn-bg: rgba(30, 36, 54, 0.9);
  --btn-bg-hover: rgba(44, 52, 78, 0.95);
  --btn-border: rgba(255, 255, 255, 0.10);
  --text: #f1f3f8;
  --text-dim: #aab0c0;
  --gold: #f2c14e;
  --green: #16a34a;
  --green-soft: #1f9d6b;
  --red: #7f2b2b;
  --red-hover: #9a3434;
  --teal: #14b8a6;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  /* margin:auto en .card centra vertical y horizontal SIN recortar la parte
     de arriba cuando el contenido es más alto que la pantalla (bug del móvil) */
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(6, 8, 16, 0.88), rgba(6, 8, 16, 0.92)),
    url("../img/fondo.jpg?v=23") center center / cover no-repeat fixed,
    var(--bg-0);
}

/* Fichas/luces de fondo (decorativo, generado por JS) */
.bg-chips {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-chips .chip {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.5;
  box-shadow: 0 0 24px currentColor, inset 0 0 12px rgba(255,255,255,0.25);
  border: 4px dashed rgba(255, 255, 255, 0.35);
  animation: floatChip linear infinite;
}
@keyframes floatChip {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-40px) rotate(360deg); }
}

/* ===== Tarjeta central ===== */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 32px 30px;
}
.card.narrow { max-width: 400px; }

.title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.subtitle { text-align: center; color: var(--text-dim); margin-bottom: 22px; font-size: 0.95rem; }

/* Aviso contraseña */
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(242, 193, 78, 0.08);
  border: 1px solid rgba(242, 193, 78, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
}
.notice .warn-ico { font-size: 1.3rem; }
.notice b { color: var(--gold); }

.divider { height: 1px; background: var(--card-border); margin: 18px 0; }

/* ===== Botones ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}
.btn:hover { background: var(--btn-bg-hover); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { font-size: 1.15rem; }

.btn-casino {
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(40,48,72,0.95), rgba(28,34,52,0.95));
  font-size: 1.05rem;
}
.btn-rojo {
  background: linear-gradient(180deg, #ef4358, #d6283f);
  border-color: rgba(255,120,130,0.25);
  font-size: 1.05rem;
}
.btn-rojo:hover { filter: brightness(1.08); }
.login-dice {
  width: 64px; height: 64px; margin: 6px auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.3rem; background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border); border-radius: 16px;
}
/* Logo de marca en login/registro (reemplaza al dado) */
.login-logo {
  display: block; width: 160px; max-width: 62%; height: auto;
  margin: 2px auto 14px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}
.brand {
  text-align: center; color: var(--gold); font-weight: 800;
  letter-spacing: 1.5px; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 10px;
}
.login-title { text-align: center; font-size: 2.4rem; font-weight: 800; margin: 0 0 4px; }
.login-bonus { text-align: center; color: var(--gold); font-weight: 700; margin: 0 0 22px; font-size: 1rem; }
.login-foot { text-align: center; color: var(--text-dim); margin: 18px 0 0; font-size: 0.95rem; }
.login-foot a { color: var(--gold); text-decoration: none; font-weight: 700; }

.back-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border);
  color: var(--text); text-decoration: none; font-size: 1.3rem;
}
.carga-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.carga-line { margin: 10px 0; font-size: 0.98rem; line-height: 1.45; }
.carga-line .lbl { color: var(--text-dim); }
.carga-warn { text-align: center; color: var(--gold); font-size: 0.86rem; margin: 14px 0; }
.copy-pin { cursor: pointer; user-select: none; }

.btn-logout { background: var(--red); border-color: rgba(255,120,120,0.18); margin-top: 8px; }
.btn-logout:hover { background: var(--red-hover); }
.btn-primary { background: linear-gradient(180deg, var(--green-soft), var(--green)); border-color: rgba(255,255,255,0.15); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }

/* ===== Dashboard v2 — Premium casino ===== */
.dash-header { text-align: center; margin-bottom: 8px; }
.dash-crown { display: block; font-size: 1.4rem; line-height: 1; margin-bottom: 1px; }
.dash-welcome { font-size: 1.55rem; font-weight: 800; letter-spacing: 0.3px; margin: 0; }

.dash-saldo {
  background: linear-gradient(135deg, rgba(242,193,78,0.08), rgba(242,193,78,0.03));
  border: 1px solid rgba(242,193,78,0.18); border-radius: 12px;
  padding: 10px 14px; text-align: center; margin-bottom: 8px;
}
.dash-saldo-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase; }
.dash-saldo-amount { display: block; font-size: 1.7rem; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.15; margin: 1px 0; }
.dash-saldo-updated { display: block; font-size: 0.65rem; color: var(--text-dim); }

.dash-divider {
  display: flex; align-items: center; gap: 10px; margin: 8px 0 6px;
}
.dash-divider::before, .dash-divider::after { content: ""; flex: 1; height: 1px; background: var(--card-border); }
.dash-divider span { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.8px; color: var(--text-dim); white-space: nowrap; }

.dash-casino {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 13px 16px; margin-bottom: 6px;
  border: 1px solid rgba(242,193,78,0.4); border-radius: 14px;
  background: linear-gradient(135deg, rgba(242,193,78,0.14), rgba(242,193,78,0.04));
  color: var(--text); text-decoration: none;
  box-shadow: 0 0 20px rgba(242,193,78,0.08);
  transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dash-casino:hover { transform: translateY(-2px); border-color: rgba(242,193,78,0.6); box-shadow: 0 0 28px rgba(242,193,78,0.15); }
.dash-casino:active { transform: translateY(0); }
.dash-casino-icon { font-size: 1.6rem; flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(242,193,78,0.15); border-radius: 12px; }
.dash-casino-body { flex: 1; text-align: left; }
.dash-casino-body b { display: block; font-size: 1.1rem; font-weight: 800; }
.dash-casino-body small { font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; }
.dash-casino-arrow { font-size: 1.6rem; color: var(--gold); flex: 0 0 auto; font-weight: 300; }

.dash-promo-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 2px; }

.dash-ruleta-card {
  background: linear-gradient(135deg, #7c3aed, #5b21b6); border-radius: 12px;
  border: 1px solid rgba(196,168,255,0.3); overflow: hidden;
}
.dash-promo-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; color: #fff; text-decoration: none;
  transition: filter 0.15s ease;
}
.dash-promo-link:hover { filter: brightness(1.1); }
.dash-promo-icon { font-size: 1.2rem; flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); border-radius: 10px; }
.dash-promo-body { flex: 1; text-align: left; }
.dash-promo-body b { display: block; font-size: 0.9rem; font-weight: 700; }
.dash-promo-body small { font-size: 0.72rem; opacity: 0.75; }
.dash-promo-arrow { font-size: 1.3rem; opacity: 0.6; flex: 0 0 auto; font-weight: 300; }

.dash-ruleta-progress { margin: -4px 14px 10px; }
.dash-ruleta-progress .progreso-barra { background: rgba(255,255,255,0.15); }
.dash-ruleta-progress .progreso-fill { background: linear-gradient(90deg, #a855f7, #e9d5ff); }
.dash-ruleta-progress .progreso-texto { color: rgba(255,255,255,0.7); }

.dash-referidos-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #0e9f6e, #05704b); border-radius: 12px;
  border: 1px solid rgba(140,240,200,0.3);
  transition: filter 0.15s ease, transform 0.12s ease;
}
.dash-referidos-card:hover { filter: brightness(1.1); transform: translateY(-1px); }

.dash-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
.dash-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 12px 6px 10px; text-align: center;
  border: 1px solid var(--btn-border); border-radius: 12px;
  background: var(--btn-bg); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
}
.dash-action:hover { background: var(--btn-bg-hover); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.dash-action-icon { font-size: 1.6rem; margin-bottom: 2px; }
.dash-action b { font-size: 0.8rem; font-weight: 700; line-height: 1.25; }
.dash-action small { font-size: 0.64rem; color: var(--text-dim); line-height: 1.2; }

.dash-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }

.dash-logout {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 11px 18px; border: 1px solid rgba(255,120,120,0.2); border-radius: 12px;
  background: linear-gradient(135deg, #7f2b2b, #5c1e1e); color: var(--text);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: filter 0.15s ease, transform 0.12s ease;
}
.dash-logout:hover { filter: brightness(1.12); transform: translateY(-1px); }
.dash-logout:active { transform: translateY(0); }
.dash-logout-icon { font-size: 1.1rem; }

.dash-descanso {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.75rem; color: var(--text-dim); padding: 6px 12px;
  transition: color 0.15s ease;
}
.dash-descanso:hover { color: var(--gold); }

/* Grid 2x2 */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 10px;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  min-height: 120px;
}
.tile:hover { background: var(--btn-bg-hover); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.tile .tico { font-size: 1.8rem; }

/* ===== Formularios ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 7px; }
.input {
  width: 100%;
  padding: 14px 14px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease;
}
.input:focus { border-color: rgba(120, 160, 255, 0.5); }
.input::placeholder { color: #6b7282; }

/* Campo de teléfono: TODO el recuadro es el campo, arranca con "+54 9" fijo
   (el jugador solo escribe área + número; el prefijo no se puede borrar) */
.phone-wrap {
  display: flex; align-items: stretch;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  transition: border-color 0.18s ease;
}
.phone-wrap:focus-within { border-color: rgba(120, 160, 255, 0.5); }
.phone-prefix {
  display: flex; align-items: center; padding-left: 14px; white-space: nowrap;
  color: var(--text); font-size: 1rem;
}
.phone-wrap .input {
  background: transparent; border: none; border-radius: 0; padding-left: 6px; outline: none;
}

/* Barra de progreso "creando usuario" (registro) */
.progress {
  height: 12px; background: rgba(255, 255, 255, 0.1);
  border-radius: 999px; overflow: hidden; margin-top: 16px;
}
.progress > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-soft), var(--green));
  border-radius: 999px; transition: width 0.5s ease;
}
.progress-label { text-align: center; color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; }
.progress-label.err { color: #f87171; }

.balance {
  text-align: center;
  margin-bottom: 18px;
}
.balance .lbl { color: var(--text-dim); font-size: 0.85rem; }
.balance .amount { font-size: 2.2rem; font-weight: 800; color: var(--gold); }

.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.amounts .chip-amt {
  flex: 1 1 28%;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--btn-bg);
  cursor: pointer;
  font-weight: 600;
}
.amounts .chip-amt:hover { background: var(--btn-bg-hover); }

.account-box {
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.account-box .row { display: flex; justify-content: space-between; padding: 6px 0; }
.account-box .row span:first-child { color: var(--text-dim); }
.account-box .copy { color: var(--teal); cursor: pointer; font-size: 0.85rem; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); text-decoration: none; font-size: 0.95rem; margin-bottom: 8px;
  border: 1px solid var(--btn-border); background: var(--btn-bg);
  padding: 8px 14px; border-radius: 10px;
}
.back-link:hover { background: var(--btn-bg-hover); border-color: rgba(255,255,255,0.2); }

.toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 25, 40, 0.96);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 14px 20px; border-radius: 12px;
  z-index: 100; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.ok { border-color: rgba(34,197,94,0.4); }
.toast.err { border-color: rgba(220,80,80,0.5); }

/* Ayuda flotante */
.help-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #16b8a8, #0e8f83);
  color: #fff; border: none; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 30px rgba(20,184,166,0.35);
  text-decoration: none;
}
.help-fab:hover { filter: brightness(1.08); }

.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.status-pendiente { background: rgba(242,193,78,0.15); color: var(--gold); }
.status-aprobado  { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-rechazado { background: rgba(220,80,80,0.15); color: #f87171; }
.status-cancelado { background: rgba(148,163,184,0.18); color: #cbd5e1; }

/* ===== Admin ===== */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-head .title { margin: 0; text-align: right; }
.menu-grid { display: flex; flex-direction: column; gap: 12px; }

/* ===== Admin menu v2 ===== */
.adm-header { text-align: center; margin-bottom: 6px; position: relative; }
.adm-exit {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); text-decoration: none; font-size: 0.88rem;
  border: 1px solid var(--btn-border); background: var(--btn-bg);
  padding: 8px 14px; border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.adm-exit:hover { background: var(--btn-bg-hover); border-color: rgba(255,255,255,0.2); }
.adm-title-block { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.adm-title-icon { font-size: 1.3rem; color: var(--gold); }
.adm-title { font-size: 1.7rem; font-weight: 800; margin: 0; letter-spacing: 0.5px; }
.adm-subtitle { color: var(--text-dim); font-size: 0.82rem; margin: 2px 0 0; }

.adm-menu { display: flex; flex-direction: column; gap: 4px; }

.adm-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--btn-border); border-radius: 12px;
  background: var(--btn-bg); color: var(--text);
  cursor: pointer; text-decoration: none; font-family: inherit; font-size: 1rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.adm-item:hover { background: var(--btn-bg-hover); border-color: rgba(255,255,255,0.18); transform: translateY(-1px); }
.adm-item:active { transform: translateY(0); }

.adm-icon {
  flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 1.05rem; font-weight: 700; font-style: normal;
}
.adm-ic-usuarios   { background: rgba(124,58,237,0.18); color: #a78bfa; }
.adm-ic-transfer    { background: rgba(34,197,94,0.15); color: #4ade80; }
.adm-ic-retiros     { background: rgba(34,197,94,0.15); color: #4ade80; }
.adm-ic-cuentas     { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.adm-ic-caja        { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.adm-ic-ganancias   { background: rgba(244,63,94,0.15); color: #fb7185; }
.adm-ic-historial   { background: rgba(251,146,60,0.15); color: #fb923c; }
.adm-ic-consumo     { background: rgba(148,163,184,0.15); color: #94a3b8; }
.adm-ic-inactivos   { background: rgba(242,193,78,0.15); color: var(--gold); }
.adm-ic-ruleta      { background: rgba(244,63,94,0.15); color: #fb7185; }
.adm-ic-referidos   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.adm-ic-variables   { background: rgba(148,163,184,0.15); color: #94a3b8; }

.adm-item-body { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.adm-item-body b { font-size: 0.9rem; font-weight: 700; }
.adm-item-body small { font-size: 0.72rem; color: var(--text-dim); font-weight: 400; }

.adm-arrow {
  font-size: 1.4rem; color: var(--text-dim); flex: 0 0 auto; font-weight: 300;
  transition: transform 0.15s ease;
}
.adm-item:hover .adm-arrow { transform: translateX(3px); color: var(--text); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--card-border); }
table.data th { color: var(--text-dim); font-weight: 600; }

/* Ancho del panel admin. El menú y los formularios quedan angostos (760px); las vistas
   con tabla se ensanchan (.panel-wide, la pone js/admin.js) para que entren todas las
   columnas sin scroll horizontal. */
#adminPanel { max-width: 760px; }
#adminPanel.panel-wide { max-width: 1180px; }
/* Compactado de las tablas cuando el panel está ancho: el objetivo es que las 7 columnas
   de Retiros entren enteras. */
.panel-wide table.data th, .panel-wide table.data td { padding: 9px 10px; vertical-align: middle; }
.panel-wide table.data td { overflow-wrap: anywhere; white-space: normal; }
.panel-wide table.data td.td-accion { white-space: nowrap; }
.panel-wide table.data td.td-accion .mini-btn { display: block; width: 100%; margin: 3px 0; }
.panel-wide table.data .re-sel { width: 100%; }

.mini-btn { padding: 6px 12px; font-size: 0.82rem; border-radius: 8px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--text); cursor: pointer; }
.mini-btn.ok { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.4); }
.mini-btn.no { background: rgba(220,80,80,0.18); border-color: rgba(220,80,80,0.4); }
.mini-btn.del { background: #e0322f; border-color: #e0322f; color: #fff; font-weight: 700; }
.mini-btn.del:hover { filter: brightness(1.08); }
.hidden { display: none !important; }

/* ===== Vista Transferencias (admin) ===== */
.tf-controls { display: flex; gap: 10px; margin-bottom: 16px; }
.tf-controls .input { flex: 1; }
.tf-tab {
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--text); font-weight: 700; cursor: pointer;
}
.tf-tab.active { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: rgba(255,255,255,0.2); }
.tf-list { display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.tf-empty {
  border: 1px solid var(--btn-border); border-radius: 12px; background: rgba(10,14,24,0.5);
  padding: 34px 16px; text-align: center; color: var(--text-dim);
}
.tf-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--btn-border); border-radius: 12px; background: var(--btn-bg);
  padding: 14px 16px;
}
/* Filas de Transferencias coloreadas por estado */
table.data tr.fila-usada td { background: rgba(34, 197, 94, 0.13); }
table.data tr.fila-usada td:first-child { border-left: 4px solid #16a34a; }
table.data tr.fila-sinusar td { background: rgba(245, 158, 11, 0.13); }
table.data tr.fila-sinusar td:first-child { border-left: 4px solid #f59e0b; }

/* Retiros: aviso cuando el jugador se lleva más de lo que cargó */
.ret-sub { display: block; color: var(--text-dim); font-size: 0.74rem; margin-top: 3px; font-weight: 400; }
/* El nombre de usuario NO se parte: con "overflow-wrap: anywhere" (que necesitan
   las otras celdas) "Roro229" quedaba cortado como "Roro22 / 9". */
.ret-user { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.ret-alerta { cursor: help; font-size: 0.95rem; }
table.data tr.fila-alerta td { background: rgba(220, 80, 80, 0.16); }
table.data tr.fila-alerta td:first-child { border-left: 4px solid #dc2626; }

/* Tabla de Transferencias: encabezado azul + filas más marcadas (estilo pedido) */
.tf-tabla th { background: var(--btn-bg); color: var(--text); font-weight: 700; }
.tf-tabla th:first-child { border-top-left-radius: 8px; }
.tf-tabla th:last-child { border-top-right-radius: 8px; }
.tf-tabla tr.fila-usada td { background: rgba(34, 197, 94, 0.20); }
.tf-tabla tr.fila-sinusar td { background: rgba(245, 158, 11, 0.18); }
.tf-monto { font-size: 1.25rem; font-weight: 800; color: var(--gold); min-width: 92px; }
.tf-info { flex: 1; }
.tf-info .tf-sub { color: var(--text-dim); font-size: 0.82rem; margin-top: 2px; }
.tf-del {
  background: rgba(220, 80, 80, 0.15); border: 1px solid rgba(220, 80, 80, 0.4);
  color: #f87171; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.84rem; flex: 0 0 auto; line-height: 1; white-space: nowrap;
}
.tf-del:hover { background: rgba(220, 80, 80, 0.3); }
/* Tarjetas de Transferencias (estilo del ejemplo) */
.tf-card {
  position: relative;
  border: 1px solid var(--card-border);
  border-left: 5px solid #16a34a;
  border-radius: 14px;
  background: rgba(10, 16, 26, 0.55);
  padding: 18px 16px 16px;
  text-align: center;
}
.tf-card.sinusar { border-left-color: #f59e0b; }
.tf-card-user { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: 0.3px; }
.tf-card-sub { color: var(--text-dim); font-family: "Consolas", monospace; font-size: 0.92rem; margin-top: 2px; }
.tf-card-monto { font-size: 1.5rem; font-weight: 800; color: #46e08a; margin: 14px 0; }
.tf-card.sinusar .tf-card-monto { color: #fb923c; }
.tf-card-fechas { color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.tf-card-fechas b { font-weight: 700; }
.tf-card-del {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 8px; line-height: 1; cursor: pointer;
  background: rgba(220, 80, 80, 0.15); border: 1px solid rgba(220, 80, 80, 0.4); color: #f87171;
}
.tf-card-del:hover { background: rgba(220, 80, 80, 0.32); }

.tf-pager { display: flex; align-items: center; justify-content: center; gap: 18px; font-weight: 700; }
.tf-pager .mini-btn { padding: 10px 18px; font-size: 1rem; }
.mini-btn:disabled { opacity: 0.4; cursor: default; }

/* ===== Caja (compacta) ===== */
.caja-box {
  background: var(--btn-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px; margin-bottom: 12px;
}
.caja-box .grid2 { margin: 0; }
.caja-box .grid2 .btn { padding: 11px; font-size: 0.95rem; }
.resumen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.resumen-card {
  background: rgba(10, 14, 24, 0.5); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px 8px; text-align: center;
}
.resumen-card span { display: block; color: var(--text-dim); font-size: 0.74rem; margin-bottom: 3px; }
.resumen-card b { font-size: 1rem; }

/* ===== Mobile / responsive ===== */
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* ===== Ruleta diaria ===== */
.ruleta-wrap { position: relative; width: 300px; max-width: 88vw; aspect-ratio: 1; margin: 18px auto 8px; }
.ruleta-aro {
  position: absolute; inset: -10px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #7a5b16 45%, var(--gold));
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.ruleta {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 4px solid rgba(0,0,0,0.35);
  transition: transform 4.4s cubic-bezier(0.16, 0.84, 0.22, 1);
  will-change: transform;
}
.ruleta-gajo { position: absolute; inset: 0; }
.ruleta-label {
  position: absolute; left: 50%; top: 0; width: 108px; margin-left: -54px; height: 50%;
  transform-origin: 50% 100%; display: flex; justify-content: center; padding-top: 16px;
  font-size: 0.68rem; font-weight: 800; line-height: 1.15; text-align: center;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); pointer-events: none;
}
.ruleta-pointer {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 24px solid var(--gold); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); z-index: 3;
}
.ruleta-centro {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; z-index: 2; cursor: pointer;
  border: 4px solid var(--gold); background: linear-gradient(180deg, #1b2436, #0d1420);
  color: #fff; font-weight: 900; font-size: 0.92rem; letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.ruleta-centro:disabled { opacity: 0.55; cursor: default; }
.ruleta-centro:not(:disabled):hover { filter: brightness(1.12); }
.ruleta-premio {
  text-align: center; font-size: 1.35rem; font-weight: 900; color: var(--gold);
  min-height: 34px; margin: 6px 0 2px;
}
.ruleta-sub { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin: 0 0 6px; }
.ruleta-reloj { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }
.bono-banner {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  border: 1px solid rgba(242,193,78,0.45); border-radius: 14px;
  background: rgba(242,193,78,0.12); padding: 14px 16px;
}
.bono-banner .bono-pct { font-size: 1.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.bono-banner .bono-txt { flex: 1; font-size: 0.9rem; }
.bono-banner .bono-txt small { display: block; color: var(--text-dim); margin-top: 2px; }
/* confeti del premio */
.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confeti i {
  position: absolute; top: -12px; width: 9px; height: 14px; opacity: 0.95;
  animation: caeConfeti linear forwards;
}
@keyframes caeConfeti {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0.2; }
}
/* botón del giro diario en el dashboard */
.btn-ruleta {
  margin-bottom: 18px; font-size: 1.05rem;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  border-color: rgba(196,168,255,0.35);
}
.btn-ruleta:hover { filter: brightness(1.12); }
/* punto rojo de "tenés giro disponible" */
.tile, .btn-ruleta { position: relative; }
.punto {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 4px;
  vertical-align: middle; background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.28);
  animation: latido 1.4s ease-in-out infinite;
}
@keyframes latido { 50% { transform: scale(1.25); } }
/* barrita de progreso hacia el mínimo de carga que desbloquea la ruleta */
.progreso-ruleta { margin: -4px 0 8px; }
.progreso-barra {
  height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden;
  border: 1px solid var(--card-border);
}
.progreso-fill {
  height: 100%; border-radius: 6px; transition: width 0.5s ease;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}
.progreso-texto { margin: 6px 0 0; font-size: 0.82rem; color: var(--text-dim); text-align: center; }
.ruleta-wrap.bloqueada { opacity: 0.45; filter: grayscale(0.35); }

/* ===== Filtros por fecha (historial de caja) ===== */
.fecha-filtros {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px;
}
.fecha-filtros > div { flex: 1 1 140px; }
.fecha-filtros .mini-btn { padding: 13px 16px; }

/* ===== Servicio suspendido (instalaciones alquiladas) ===== */
.servicio-off {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(4, 7, 14, 0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.servicio-off-card {
  max-width: 380px; text-align: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow);
}
.servicio-off-ico { font-size: 3rem; margin-bottom: 10px; }
.servicio-off-card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.servicio-off-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* ===== Ganancias ===== */
/* Saldo del jugador en el dashboard (lo sincroniza el bot desde torrevip) */
.saldo-box {
  background: rgba(10,14,24,0.55); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 12px 10px; text-align: center; margin-bottom: 8px;
}
.saldo-box .lbl { display: block; color: var(--text-dim); font-size: 0.72rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.saldo-monto {
  display: block; font-size: 1.8rem; font-weight: 900; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.saldo-sub { display: block; color: var(--text-dim); font-size: 0.68rem; margin-top: 2px; }

.gan-destacados { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gan-card {
  background: rgba(10,14,24,0.55); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 18px 12px; text-align: center;
}
.gan-card .lbl { display: block; color: var(--text-dim); font-size: 0.78rem; margin-bottom: 6px; }
.gan-card b { font-size: 1.7rem; font-weight: 900; color: #4ade80; word-break: break-all; }
.gan-card b.negativo { color: #f87171; }
.gan-linea {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--card-border); font-size: 0.92rem;
}
.gan-linea:last-child { border-bottom: none; }
.gan-linea b { font-variant-numeric: tabular-nums; }
.gan-linea.gan-total {
  margin-top: 6px; border-top: 2px solid var(--card-border); border-bottom: none;
  padding-top: 14px; font-weight: 800; font-size: 1.05rem;
}
.gan-linea.gan-total b { font-size: 1.35rem; color: #4ade80; }
.gan-linea.gan-total b.negativo { color: #f87171; }

/* ===== Aviso de usuarios sin crear en torrevip ===== */
.sin-torrevip {
  border: 1px solid rgba(245,158,11,0.5); border-radius: 12px;
  background: rgba(245,158,11,0.12); padding: 14px; margin-bottom: 14px;
}
.sin-torrevip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-weight: 700;
}
.sin-torrevip .mini-btn { white-space: nowrap; }

/* ===== Referidos ===== */
.btn-referidos {
  margin-bottom: 18px; font-size: 1.05rem;
  background: linear-gradient(180deg, #0e9f6e, #05704b);
  border-color: rgba(140,240,200,0.35);
}
.btn-referidos:hover { filter: brightness(1.12); }
.ref-codigo-box {
  border: 1px dashed rgba(242,193,78,0.55); border-radius: 14px;
  background: rgba(242,193,78,0.10); padding: 16px; text-align: center; margin-bottom: 16px;
}
.ref-codigo-box .lbl { color: var(--text-dim); font-size: 0.82rem; }
.ref-codigo {
  font-size: 1.6rem; font-weight: 900; color: var(--gold); letter-spacing: 0.5px;
  margin: 4px 0 2px; cursor: pointer; word-break: break-all;
}
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ref-stat {
  background: rgba(10,14,24,0.5); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px 8px; text-align: center;
}
.ref-stat b { display: block; font-size: 1.35rem; margin-top: 2px; }
.ref-stat span { color: var(--text-dim); font-size: 0.78rem; }
.ref-lista { display: flex; flex-direction: column; gap: 8px; }
.ref-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--btn-border); border-radius: 12px;
  background: var(--btn-bg); padding: 12px 14px; font-size: 0.9rem;
}
.ref-item .ref-nombre { flex: 1; font-weight: 700; word-break: break-all; }
.ref-item .ref-estado { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }
.ref-item.cobrado { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.12); }
.ref-item.cobrado .ref-estado { color: #4ade80; font-weight: 700; }
/* Nivel progresivo del padrino */
.ref-nivel-box {
  border: 1px solid rgba(242,193,78,0.35); border-radius: 14px;
  background: rgba(242,193,78,0.08); padding: 14px 16px; margin-bottom: 16px;
}
.ref-nivel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 8px;
}
.ref-nivel-label {
  font-weight: 800; font-size: 1.05rem; color: var(--gold);
}
.ref-nivel-fichas {
  font-weight: 700; font-size: 0.92rem; color: var(--text-dim);
}
.ref-nivel-bar {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden;
}
.ref-nivel-fill {
  height: 100%; border-radius: 4px; transition: width 0.4s ease;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
}
.ref-nivel-msg {
  margin: 8px 0 0; font-size: 0.82rem; color: var(--text-dim); text-align: center;
}

/* Fila de nivel en el admin */
.admin-nivel-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap;
}
.admin-nivel-row .input { margin: 0; }

.ref-pasos { counter-reset: paso; padding: 0; margin: 0 0 16px; list-style: none; }
.ref-pasos li {
  position: relative; padding-left: 34px; margin-bottom: 10px;
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.4;
}
.ref-pasos li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(242,193,78,0.18); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem;
}

/* Tablas anchas → TARJETAS apiladas (cada fila es una tarjeta legible).
   Las que tienen .keep-cols se quedan como tabla compacta (ver el bloque de 640px).
   Corta en 900px y no en 640px para que también agarre celulares grandes, tablets y
   ventanas de PC achicadas, donde la tabla no entra pero tampoco colapsaba. */
@media (max-width: 900px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data:not(.keep-cols), table.data:not(.keep-cols) tbody { display: block; width: 100%; }
  table.data:not(.keep-cols) tr { display: block; margin-bottom: 12px; padding: 4px 2px;
    border: 1px solid var(--btn-border); border-radius: 12px; background: var(--btn-bg); }
  table.data:not(.keep-cols) tr:first-child { display: none; }   /* oculta la fila de encabezados */
  table.data:not(.keep-cols) td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 9px 14px; border-bottom: 1px solid var(--card-border);
    white-space: normal; text-align: right; font-size: 0.92rem;
  }
  table.data:not(.keep-cols) tr td:last-child { border-bottom: none; }
  table.data:not(.keep-cols) td::before {
    content: attr(data-label); color: var(--text-dim); font-weight: 600;
    text-align: left; flex: 0 0 auto; font-size: 0.82rem;
  }
  table.data:not(.keep-cols) td:empty { display: none; }         /* celdas de acción vacías */
  /* La fila del desplegable de cuenta apila etiqueta arriba + select al ancho completo,
     si no el nombre de la cuenta queda cortado. (Si el navegador no soporta :has(),
     queda como antes: etiqueta y select en la misma línea.) */
  /* La celda de Usuario apila etiqueta / nombre / subtítulo: si van todos en la
     misma línea, el nombre se aprieta contra el "Cargó … · Retiró …" y se corta. */
  table.data:not(.keep-cols) td:has(.ret-sub) { flex-direction: column; align-items: flex-end; gap: 2px; }
  table.data:not(.keep-cols) td:has(.ret-sub)::before { text-align: left; align-self: flex-start; }
  table.data:not(.keep-cols) td:has(.re-sel) { flex-direction: column; align-items: stretch; gap: 6px; }
  table.data:not(.keep-cols) td:has(.re-sel)::before { text-align: left; }
  table.data:not(.keep-cols) td .re-sel { width: 100%; }
  /* la celda de acciones ocupa todo el ancho y el botón es grande y cómodo */
  table.data:not(.keep-cols) td[data-label=""],
  table.data:not(.keep-cols) td.td-accion { justify-content: stretch; }
  table.data:not(.keep-cols) td.td-accion::before { display: none; }
  table.data:not(.keep-cols) td.td-accion { flex-direction: column; gap: 8px; }
  table.data:not(.keep-cols) td.td-accion .mini-btn,
  table.data:not(.keep-cols) td.td-accion .tf-del { width: 100%; padding: 11px; font-size: 0.95rem; margin: 0; }
  table.data:not(.keep-cols) td.td-accion .input { width: 100%; }
  /* el borde de color por estado se mantiene a la izquierda de la tarjeta */
  table.data:not(.keep-cols) tr.fila-usada td:first-child,
  table.data:not(.keep-cols) tr.fila-sinusar td:first-child { border-left: none; }
  table.data:not(.keep-cols) tr.fila-usada { border-left: 4px solid #16a34a; }
  table.data:not(.keep-cols) tr.fila-sinusar { border-left: 4px solid #f59e0b; }
  /* el aviso de retiro sospechoso manda sobre el color de estado */
  table.data:not(.keep-cols) tr.fila-alerta td:first-child { border-left: none; }
  table.data:not(.keep-cols) tr.fila-alerta { border-left: 4px solid #dc2626; }
  /* en tarjeta, el nombre y su subtítulo van juntos a la derecha */
  table.data:not(.keep-cols) td .ret-sub { text-align: right; }
}

@media (max-width: 640px) {
  body { padding: 10px; background-attachment: scroll; }
  .card, .card.narrow { max-width: 100%; padding: 22px 16px; }
  .title { font-size: 1.6rem; }
  .login-title { font-size: 2rem; }
  .login-dice { width: 56px; height: 56px; font-size: 2rem; }
  .admin-head .title { font-size: 1.5rem; }

  /* Tablas COMPACTAS (.keep-cols): se quedan en columnas también en celular */
  table.data.keep-cols { font-size: 0.8rem; }
  table.data.keep-cols th, table.data.keep-cols td { padding: 8px 5px; vertical-align: middle; }
  table.data.keep-cols th:first-child, table.data.keep-cols td:first-child { padding-left: 4px; }
  table.data.keep-cols td:last-child, table.data.keep-cols th:last-child { padding-right: 2px; }
  table.data.keep-cols td.td-accion { text-align: right; }
  /* botones de acción apilados y al ancho de su columna (entran siempre) */
  table.data.keep-cols td.td-accion .mini-btn { display: block; width: 100%; padding: 7px 8px; font-size: 0.76rem; margin: 3px 0; white-space: nowrap; }
  table.data.keep-cols .status-pill { font-size: 0.72rem; padding: 2px 8px; }

  /* Búsqueda + tabs que envuelven bien */
  .tf-controls { flex-wrap: wrap; gap: 8px; }
  .tf-controls .input { flex: 1 1 100%; }
  .tf-tab { flex: 1 1 auto; padding: 10px 12px; font-size: 0.9rem; }

  /* Formularios de 2 columnas pasan a 1 */
  .form-grid2 { grid-template-columns: 1fr; }

  /* Tarjetas tipo transferencia/caja */
  .tf-item { gap: 10px; padding: 12px; }
  .tf-monto { font-size: 1.05rem; min-width: 74px; }

  /* Botón de ayuda flotante más chico */
  .help-fab { padding: 10px 14px; font-size: 0.85rem; right: 12px; bottom: 12px; }

  /* Inputs y botones cómodos para el dedo */
  .input { padding: 13px 13px; font-size: 16px; }  /* 16px evita el zoom de iOS */
  .tile { min-height: 100px; padding: 18px 8px; }
  .dash-welcome { font-size: 1.45rem; }
  .dash-crown { font-size: 1.3rem; }
  .dash-saldo { padding: 12px 14px; }
  .dash-saldo-amount { font-size: 1.7rem; }
  .dash-casino { padding: 14px 16px; gap: 12px; }
  .dash-casino-icon { width: 42px; height: 42px; font-size: 1.5rem; }
  .dash-casino-body b { font-size: 1rem; }
  .dash-promo-link { padding: 11px 12px; }
  .dash-promo-icon { width: 30px; height: 30px; font-size: 1.1rem; }
  .dash-promo-body b { font-size: 0.84rem; }
  .dash-action { padding: 14px 4px 12px; }
  .dash-action-icon { font-size: 1.4rem; }
  .dash-action b { font-size: 0.74rem; }
  .dash-action small { font-size: 0.6rem; }
  .dash-divider { margin: 10px 0 8px; }
  .dash-logout { padding: 11px 16px; font-size: 0.88rem; }
  .dash-descanso { font-size: 0.7rem; }

  /* Admin menu v2 */
  .adm-exit { padding: 6px 10px; font-size: 0.82rem; }
  .adm-title { font-size: 1.6rem; }
  .adm-title-icon { font-size: 1.3rem; }
  .adm-subtitle { font-size: 0.82rem; }
  .adm-item { padding: 12px 12px; gap: 10px; }
  .adm-icon { width: 34px; height: 34px; font-size: 1rem; }
  .adm-item-body b { font-size: 0.88rem; }
  .adm-item-body small { font-size: 0.72rem; }

  /* Ganancias: en celular las dos tarjetas van UNA DEBAJO DE LA OTRA.
     Compartiendo el ancho, un número como $652.733,4 se partía en dos
     renglones. Con el ancho completo entra entero. */
  .gan-destacados { grid-template-columns: 1fr; gap: 10px; }
  .gan-card { padding: 14px 12px; }
  .gan-card b { font-size: 1.55rem; word-break: normal; }
}

@media (max-width: 380px) {
  .login-title { font-size: 1.7rem; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile .tico { font-size: 1.5rem; }
}

/* En PC, la lista "Mis retiros" (Retirar) tiene scroll propio así toda la
   sección entra en pantalla sin tener que alejar el zoom. */
@media (min-width: 641px) {
  #lista-retiros { max-height: min(320px, 40vh); overflow-y: auto; padding-right: 6px; }
}
