/* ==========================================================================
   LA BOLETITA 117 - Sistema de Diseño Mobile-First & Minimalista Futbolero
   ========================================================================== */

:root {
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-dark: #047857;
  --primary-light: #ECFDF5;
  --accent-gold: #F59E0B;
  --accent-gold-light: #FEF3C7;
  --bg-main: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 185, 129, 0.08);
  --shadow-float: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #F1F5F9;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Contenedor Principal Estilo App Móvil */
#app-root {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-main);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 95px; /* Espacio para el footer flotante */
}

/* ==========================================================================
   HEADER PRINCIPAL (REHIDRATABLE)
   ========================================================================== */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

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

.user-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
  overflow: hidden;
  background: var(--primary-light);
  flex-shrink: 0;
}

.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-logout {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #FCA5A5;
  color: #991B1B;
}

/* Barrita de Saldos en Header */
.header-balances {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #A7F3D0;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-pill.winnings-pill {
  justify-content: flex-end;
  text-align: right;
}

.balance-icon {
  font-size: 16px;
  line-height: 1;
}

.balance-info {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.balance-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
}

.balance-amount.winnings {
  color: #B45309;
}

/* ==========================================================================
   VISTAS Y CONTENIDORES DE SECCIONES
   ========================================================================== */
.view-container {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tarjeta de Bienvenida */
.welcome-card {
  background: linear-gradient(135deg, #4977db 0%, #bdcdf7 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  width: 100%;
}

.welcome-logo-slogan-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.welcome-logo-slogan {
  max-width: 90%;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

/* ==========================================================================
   MODALES (CREAR BOLETA, CONFIRMAR COMPRA, DEPÓSITO, RESULTADO Y CROPPER)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  max-width: 420px;
  width: 100%;
  padding: 24px 20px;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-light);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  margin: auto;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  position: relative;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  padding-right: 32px;
}

/* Cuadrito Rojo de Cerrar en la Esquina Superior Derecha (Estilo Windows) */
.btn-close-modal {
  position: absolute;
  top: 0;
  right: 0;
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  line-height: 1;
}

.btn-close-modal:hover, .btn-close-modal:active {
  background: #DC2626 !important;
  transform: scale(1.08);
}

/* ==========================================================================
   FORMULARIO DE LOGIN (PANTALLA INICIAL)
   ========================================================================== */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 20px 16px;
}

.login-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  height: 52px;
  margin-bottom: 12px;
}

.login-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: #FAFAFA;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.alert-message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.alert-message.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.alert-message.success {
  display: block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #A7F3D0;
}

/* ==========================================================================
   ESTADO EN CONSTRUCCIÓN (VISTAS ROUTER)
   ========================================================================== */
.construction-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.construction-icon {
  font-size: 54px;
  background: var(--primary-light);
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--primary);
}

.construction-badge {
  background: var(--accent-gold-light);
  color: #B45309;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.construction-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.construction-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

/* ==========================================================================
   FOOTER STICKY (ANCHO MÁXIMO STRICTO 400px)
   ========================================================================== */
.app-footer-nav {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  width: calc(100% - 24px);
  max-width: 400px; /* Ancho Máximo Requerido: 400px */
  margin: 0 auto;
  z-index: 1000;
}

.footer-nav-container {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  padding: 6px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.nav-icon {
  font-size: 18px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-item.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.nav-item.active .nav-icon {
  transform: translateY(-1px);
}

/* Spinner de carga */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   SECCIÓN DE JUEGO & GRID DE EQUIPOS 2x2
   ========================================================================== */
.play-header {
  text-align: center;
  margin-bottom: 20px;
}

.play-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  background: var(--surface);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: inline-block;
  width: 100%;
}

.team-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.team-card:hover, .team-card:active {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.team-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #A7F3D0;
}

.team-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-name {
  font-size: 15px;
  font-weight: 800;
}

/* ==========================================================================
   VISTA DE BOLETITA / TABLERO 5x5
   ========================================================================== */
.board-header-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.match-status-banner {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.match-status-banner.scheduled { background: #E0F2FE; color: #0369A1; }
.match-status-banner.in_process { background: #FEF3C7; color: #B45309; }
.match-status-banner.finished { background: #DCFCE7; color: #15803D; }

.match-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.match-team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}

.match-team-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.match-vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-muted);
}

.match-date-info {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* GRID 5x5 RASCADITO */
.board-grid-container {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.board-grid-5x5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.cell {
  position: relative;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: default;
  overflow: hidden;
  user-select: none;
  transition: all 0.2s ease;
}

/* Casilla Disponible (Tapada con logo.png) */
.cell.available {
  cursor: pointer;
  background: #FFFFFF;
  border-color: #A7F3D0;
}

.cell.available:hover, .cell.available:active {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.cell-logo-cover {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Casilla Comprada por mí */
.cell.mine {
  background: #ECFDF5;
  border-color: var(--primary);
}

/* Casilla Comprada por otro (Reloj antes del partido) */
.cell.other-hidden {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
}

.cell-clock-icon {
  font-size: 20px;
}

/* Casilla Comprada por otro (Revelada durante/después del partido) */
.cell.other-revealed {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.cell-avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--primary);
  margin-bottom: 1px;
}

.cell-alias {
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96%;
  color: var(--text-main);
  line-height: 1.1;
}

.cell-score-badge {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--primary-dark);
  background: #D1FAE5;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  line-height: 1;
}

/* ==========================================================================
   SECCIÓN ACERCA DE (TARJETAS INFORMATIVAS)
   ========================================================================== */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 10px;
}

.info-card-icon {
  font-size: 24px;
}

.info-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

/* Lista de Pasos (¿Cómo se juega?) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

.step-num {
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* Sección Créditos y Ganancias */
.wallet-box-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-box {
  background: var(--primary-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.wallet-box.winnings-box {
  background: var(--accent-gold-light);
  border-color: #FDE68A;
}

.wallet-box-title {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.wallet-box.winnings-box .wallet-box-title {
  color: #B45309;
}

.wallet-box-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-box-list li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-box-list li::before {
  content: '•';
  font-weight: 900;
  color: var(--primary-dark);
}

.wallet-box.winnings-box .wallet-box-list li::before {
  color: #B45309;
}

/* Lista de Reglas */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-item {
  font-size: 13px;
  color: var(--text-main);
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-icon {
  font-size: 14px;
  color: var(--primary-dark);
}

/* Preguntas Frecuentes (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.faq-question {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Contacto */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
}

.btn-contact.whatsapp {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-contact.email {
  background: #0284C7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   SECCIÓN MI PERFIL & CROPPER DE AVATAR
   ========================================================================== */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--primary-light);
  cursor: pointer;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
}

.btn-avatar-action {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #A7F3D0;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-avatar-action:hover {
  background: #D1FAE5;
}

/* Modales para Cropper e Imagen Ampliada */
.cropper-img-container {
  max-width: 100%;
  max-height: 320px;
  overflow: hidden;
  margin: 12px 0;
  background: #000000;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cropper-img-container img {
  max-width: 100%;
  max-height: 320px;
  display: block;
}

.cropper-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-crop-tool {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
}

.btn-crop-tool:hover {
  background: #E2E8F0;
}

.avatar-large-view {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  margin: 10px auto;
  display: block;
}

/* ==========================================================================
   DASHBOARD DE ADMINISTRACIÓN (EXCLUSIVO USER ID 1)
   ========================================================================== */
.btn-settings {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-settings:hover {
  background: #E2E8F0;
  transform: scale(1.03);
}

.admin-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-title-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-primary:hover {
  background: var(--primary-dark);
}

/* Tarjetas de Administración */
.admin-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.admin-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
}

.admin-user-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.admin-user-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Acciones por Usuario */
.admin-user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  flex-wrap: wrap;
}

.btn-icon-action {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.btn-icon-action:hover {
  background: #E2E8F0;
}

.btn-icon-action.wa-btn {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}

.btn-icon-action.pay-btn {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.btn-icon-action.danger-btn {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FCA5A5;
}

/* Badges de Estatus */
.status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-badge.active { background: #D1FAE5; color: #065F46; }
.status-badge.suspended { background: #FEE2E2; color: #991B1B; }
.status-badge.nueva { background: #E0F2FE; color: #0369A1; }
.status-badge.en_proceso { background: #FEF3C7; color: #B45309; }
.status-badge.finalizada { background: #D1FAE5; color: #065F46; }
.status-badge.cancelled { background: #F3F4F6; color: #4B5563; }

/* Historial Contable (Cuentas) */
.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ledger-amount {
  font-size: 15px;
  font-weight: 900;
}

.ledger-amount.plus { color: #059669; }
.ledger-amount.minus { color: #DC2626; }

/* ==========================================================================
   CARDS DE JUGADORES ESTILO THY
   ========================================================================== */
.thy-card {
  background: #F8FAFC;
  border-radius: 20px;
  padding: 22px 16px 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thy-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.thy-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  margin-bottom: 10px;
}

.thy-card-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 2px;
}

.thy-card-fullname {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.thy-card-detail {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.thy-card-balance {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin: 8px 0 10px 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.thy-card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px dashed #CBD5E1;
}

.thy-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  text-decoration: none;
}

.thy-btn-icon:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.thy-btn-icon.edit { color: #D97706; background: #FEF3C7; border-color: #FDE68A; }
.thy-btn-icon.wa { color: #16A34A; background: #DCFCE7; border-color: #86EFAC; }
.thy-btn-icon.pay { color: #2563EB; background: #DBEAFE; border-color: #BFDBFE; }
.thy-btn-icon.suspend { color: #DC2626; background: #FEE2E2; border-color: #FCA5A5; }
.thy-btn-icon.activate { color: #059669; background: #D1FAE5; border-color: #A7F3D0; }

/* ==========================================================================
   TARJETA DE DATOS BANCARIOS & BOTÓN DE COPIAR
   ========================================================================== */
.bank-detail-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bank-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bank-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  gap: 8px;
}

.bank-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.5px;
  font-family: monospace, sans-serif;
  word-break: break-all;
}

.btn-copy {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: #E2E8F0;
}

.btn-copy.copied {
  background: #D1FAE5;
  color: #065F46;
  border-color: #86EFAC;
}

/* ==========================================================================
   HEADER CON ÍCONOS LIMPIOS (SIN BOTONES CON TEXTO NI BOTÓN DE SALIR)
   ========================================================================== */
.btn-icon-header {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn-icon-header:hover {
  transform: scale(1.18);
}

/* ==========================================================================
   VISTA DE MI PERFIL (MI ESPACIO ESTILO THY)
   ========================================================================== */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.profile-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-hero-avatar:hover {
  transform: scale(1.04);
}

.profile-hero-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 2px;
}

.profile-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-meta-card {
  background: #FFFDF9;
  border: 1px solid #F1ECE0;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
}

.profile-meta-label {
  font-weight: 800;
  color: var(--text-main);
}

.profile-meta-val {
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace, sans-serif;
  word-break: break-all;
}

.profile-grid-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}

.thy-space-card {
  background: #FFFDF9;
  border: 1px solid #F1ECE0;
  border-radius: 22px;
  padding: 20px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thy-space-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  background: #FFFFFF;
}

.thy-space-icon {
  font-size: 32px;
}

.thy-space-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-logout-full {
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-logout-full:hover {
  background: #DC2626;
  transform: translateY(-1px);
}




