/* ==========================================================================
   REBOLEO ¡VAMOS! - STYLESHEET (SCORIFY SPORTS DARK THEME & MINT ACCENTS)
   ========================================================================== */

:root {
  /* Scorify Deep Dark Theme */
  --bg-app: #0B1315;
  --bg-card: #141F23;
  --bg-card-elevated: #1B292F;
  --bg-input: #172429;
  
  --brand-green: #00E599;           /* Scorify Electric Mint */
  --brand-green-dark: #00B377;
  --brand-green-light: rgba(0, 229, 153, 0.14);
  --brand-orange: #FF8A00;
  --brand-orange-light: rgba(255, 138, 0, 0.16);
  --brand-teal: #00E599;
  
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bottom-bar-height: 72px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==========================================================================
   TOP FLOATING HEADER (LOGO, SEARCH & CHIPS)
   ========================================================================== */
.top-header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 8px 16px 0;
  background: linear-gradient(180deg, #0B1315 0%, #0B1315 56px, rgba(11, 19, 21, 0.65) 72px, transparent 84px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.brand-nav-row, .filter-chips-row {
  pointer-events: auto;
}

/* Fila Superior: Logo Oficial & Menú Hamburguesa */
.brand-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 4px;
  gap: 8px;
  height: 52px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  padding: 0 4px;
  position: relative;
}

/* Halo de luz ambiental que funde el logo como un solo cuerpo con el header */
.brand-logo-container::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 153, 0.16) 0%, rgba(0, 229, 153, 0.03) 65%, transparent 80%);
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.official-logo-img {
  height: 48px;
  max-width: 210px;
  width: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(0, 229, 153, 0.22));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  cursor: pointer;
}

.official-logo-img:active {
  transform: scale(0.96);
}

.menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.menu-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.94);
}

/* Avatar de Usuario Circular con Foto */
.user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s ease;
}

.user-avatar-circle:active {
  transform: scale(0.94);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: var(--brand-green);
  border: 2px solid #0B1315;
  border-radius: 50%;
}

/* Barra de Búsqueda: ¿A dónde quieres ir? */
.search-pill-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.search-pill-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 15px;
  margin-left: 10px;
}

.search-pill-box input::placeholder {
  color: var(--text-muted);
}

.filter-tune-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Chips de Filtro Horizontales (Cerca de mí, Techadas, Con luz) */
.filter-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.filter-chips-row::-webkit-scrollbar {
  display: none;
}

.clean-chip {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: all 0.2s ease;
}

.clean-chip.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #0B1315;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.4);
}

.clean-chip.active svg {
  stroke: #0B1315 !important;
}

/* ==========================================================================
   CANVAS DE MAPA (CLARO & NÍTIDO)
   ========================================================================== */
#map {
  width: 100%;
  height: 100%;
  background: #F1F5F9;
  z-index: 1;
}

.leaflet-container {
  background: #F1F5F9 !important;
}
.leaflet-bar {
  display: none !important;
}

/* ==========================================================================
   PINES MINIMALISTAS (VERDE ESMERALDA & NARANJA CON CENTRO BLANCO)
   ========================================================================== */
/* ==========================================================================
   PINES DIFERENCIADOS (JUGADORES vs ESPECTADORES)
   ========================================================================== */
.clean-pin-container {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.custom-court-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-court-pin.selected {
  transform: scale(1.22) translateY(-4px);
  z-index: 1000 !important;
}

.pin-chip-badge {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 1.5px 6px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  margin-bottom: -5px;
  z-index: 2;
  text-transform: uppercase;
}
.pin-chip-badge.live {
  background: #E11D48;
  color: #FFFFFF;
  border: 1px solid #FFE4E6;
}
.pin-chip-badge.seeking {
  background: #FF6B00;
  color: #FFFFFF;
  border: 1px solid #FFEDD5;
}
.pin-chip-badge.open {
  background: #0284C7;
  color: #FFFFFF;
  border: 1px solid #E0F2FE;
}

.pin-marker-body {
  width: 32px;
  height: 38px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-center-icon {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

/* Pulso animado para partidos en vivo (Atrae espectadores) */
.pin-pulse-wave {
  position: absolute;
  top: 1px;
  left: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.28);
  animation: live-pin-pulse 1.8s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes live-pin-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.clean-drop-pin {
  width: 32px;
  height: 38px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clean-drop-pin:hover, .clean-drop-pin.selected {
  transform: scale(1.2) translateY(-4px);
}

/* Ubicación GPS del Usuario (Punto Azul con Halo Concétrico) */
.user-gps-pulse {
  width: 20px;
  height: 20px;
  background: #2563EB;
  border-radius: 50%;
  border: 3.5px solid #FFFFFF;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  position: relative;
}
.user-gps-pulse::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
  animation: gps-wave 2s infinite ease-out;
}

@keyframes gps-wave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Botón Flotante Circular de Navegación / Brújula */
.floating-compass-btn {
  position: absolute;
  right: 16px;
  bottom: calc(var(--bottom-bar-height) + 230px);
  z-index: 999;
  width: 44px;
  height: 44px;
  background: #141F23;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-green);
  transition: transform 0.2s ease;
}
.floating-compass-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   TARJETA FLOTANTE INFERIOR (MODERNA & COMPACTA)
   ========================================================================== */
/* ==========================================================================
   CARRUSEL HORIZONTAL INFERIOR DE TARJETAS (CARDS)
   ========================================================================== */
.bottom-carousel-container {
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + 16px);
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.bottom-carousel-container.hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: auto;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-court-card {
  flex: 0 0 calc(100vw - 44px);
  max-width: 380px;
  height: fit-content;
  min-height: auto;
  align-self: flex-end;
  scroll-snap-align: center;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-court-card.selected-court {
  border-color: var(--brand-green);
  box-shadow: 0 8px 24px rgba(0, 229, 153, 0.2);
}

.spectator-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 11px;
  color: #FCD34D;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

.spectator-box strong {
  color: #FCD34D;
}

.bottom-card-container {
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + 16px);
  left: 12px;
  right: 12px;
  z-index: 1000;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.bottom-card-container.hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.bottom-card-container > * {
  pointer-events: auto;
}

.card-close-btn {
  background: #1B282D;
  border: none;
  color: #94A3B8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 6px;
}
.card-close-btn:active { transform: scale(0.9); }

.match-sheet-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 13px 15px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ready-pill-badge {
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ready-pill-badge.full {
  background: var(--brand-green);
  color: #0B1315;
}

.eta-status-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eta-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-green);
}

.transport-badge {
  background: #1B282D;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.court-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.court-name-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.waze-live-btn {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: #FB7185;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.waze-live-btn.reported {
  background: rgba(0, 229, 153, 0.12);
  border-color: rgba(0, 229, 153, 0.25);
  color: #00E599;
}
.waze-live-btn:active { transform: scale(0.94); }

.court-meta-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.level-tag {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.25);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.roles-compact-box {
  background: #0B1315;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 6px 8px;
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.role-pill-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-radius: 10px;
  background: #141F23;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.role-pill-compact .role-name {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.role-pill-compact .role-state {
  font-size: 11px;
  margin-top: 1px;
}

.role-pill-compact.needed {
  background: rgba(255, 138, 0, 0.15);
  border-color: rgba(255, 138, 0, 0.35);
  color: #FFA133;
  box-shadow: 0 1px 4px rgba(255, 138, 0, 0.15);
}

.role-pill-compact.confirmed {
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.35);
  color: #00E599;
}

.trio-alert-banner {
  background: #09201C;
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: #00E599;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  animation: slide-banner 0.3s ease-out;
}

/* ============================================================
   NUEVAS TARJETAS: CONVOCATORIA (3 SLOTS) Y EN VIVO (FACE-OFF)
   ============================================================ */

/* 1. Convocatorias: Orden Colocador, Servidor, Volador */
.roles-three-slots-box {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.role-box-confirmed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: #141F23;
  border: 1px solid rgba(0, 229, 153, 0.35);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.role-box-confirmed:hover {
  background: #1A282D;
}

.role-box-confirmed:active {
  transform: scale(0.97);
}

.role-box-title {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.role-box-player {
  font-size: 11px;
  font-weight: 800;
  color: #00E599;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.role-box-sub {
  font-size: 8.5px;
  color: #718096;
  margin-top: 2px;
}

/* Toda la caja que falta es un botón con brillo naranja neón continuo (suavizado elegante) */
@keyframes neonPulseGlow {
  0% {
    box-shadow: 0 0 4px rgba(255, 107, 0, 0.3), 0 0 8px rgba(255, 107, 0, 0.15);
    border-color: #FF6B00;
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5), 0 0 16px rgba(255, 107, 0, 0.25);
    border-color: #FFA133;
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    box-shadow: 0 0 4px rgba(255, 107, 0, 0.3), 0 0 8px rgba(255, 107, 0, 0.15);
    border-color: #FF6B00;
  }
}

.role-box-needed-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 3px;
  background: rgba(255, 107, 0, 0.12);
  border: 1.5px solid #FF6B00;
  border-radius: 12px;
  color: #FFA133;
  cursor: pointer;
  box-shadow: none !important;
  text-align: center;
  transition: transform 0.15s ease;
  font-family: inherit;
}

.role-box-needed-btn:active {
  transform: scale(0.96);
}

.role-box-needed-text {
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: none !important;
  margin-top: 1px;
  letter-spacing: -0.2px;
}

.role-box-glow-hint {
  font-size: 8px;
  font-weight: 800;
  color: #FFB366;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* 2. Tarjetas EN VIVO: Enfrentamiento cara a cara de Ponedores */
.badge-live-now {
  background: #E11D48 !important;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  animation: liveBeacon 1.2s infinite ease-in-out;
}

@keyframes liveBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.live-faceoff-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.55) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.faceoff-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.faceoff-ponedor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.faceoff-ponedor-card:hover {
  transform: translateY(-2px);
}

.faceoff-ponedor-card:active {
  transform: scale(0.96);
}

.faceoff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38BDF8;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
  margin-bottom: 3px;
}

.faceoff-ponedor-role {
  font-size: 8.5px;
  font-weight: 800;
  color: #7DD3FC;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.faceoff-ponedor-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 1px;
}

.faceoff-companions {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.25;
}

.faceoff-companions .clickable-player-tag {
  color: var(--text-light);
  cursor: pointer;
  text-decoration: underline dotted;
}

.faceoff-companions .clickable-player-tag:hover {
  color: #00E599;
}

.faceoff-vs-badge {
  font-size: 10.5px;
  font-weight: 900;
  color: #F59E0B;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-live-watch {
  background: var(--brand-green) !important;
  color: #0B1315 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* ============================================================
   PASO 2: CONTADORES DE POSICIÓN Y PRESETS CRIOLLOS (v1.5.13)
   ============================================================ */
.total-needed-badge {
  font-size: 11px;
  font-weight: 800;
  color: #FFA133;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.35);
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: -0.2px;
}

.preset-needed-chip {
  font-size: 11px !important;
  padding: 6px 10px !important;
  background: #141F23 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-light) !important;
}

.preset-needed-chip.selected {
  background: rgba(0, 229, 153, 0.18) !important;
  border-color: #00E599 !important;
  color: #00E599 !important;
  font-weight: 800;
}

.role-counters-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.role-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141F23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.role-counter-row.active {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.08);
}

.role-counter-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-counter-icon {
  font-size: 15px;
}

.role-counter-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.role-counter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-role-counter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1E2D33;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn-role-counter:active {
  transform: scale(0.92);
  background: #00E599;
  color: #0B1315;
}

.role-counter-qty {
  font-size: 15px;
  font-weight: 900;
  color: #FFA133;
  min-width: 16px;
  text-align: center;
}

@keyframes slide-banner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-play-btn {
  width: 100%;
  background: #00A86B;
  color: #FFFFFF !important;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none !important;
  transition: all 0.2s ease;
}
.action-play-btn svg {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
}
.action-play-btn.completed {
  background: #00B377;
  color: #FFFFFF !important;
}
.action-play-btn:active {
  transform: scale(0.97);
}

/* REGLA DE MARCA: Todo botón verde DEBE tener letras blancas puras de alta legibilidad */
.btn-whatsapp-join {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
.btn-whatsapp-join svg {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (FLOATING SCORIFY PILL DOCK)
   ========================================================================== */
.bottom-nav {
  position: absolute;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  height: 64px;
  background: rgba(20, 31, 35, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 153, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  padding: 6px 2px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: #64748B;
  stroke-width: 2;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.nav-item.active {
  color: var(--brand-green);
  font-weight: 800;
  text-shadow: none;
}

.nav-item.active::before {
  display: none !important;
}

.nav-item.active svg {
  stroke: var(--brand-green);
  transform: translateY(-2px) scale(1.05);
  filter: none;
}

/* Botón Central Elevado "Armar" */
.nav-item.nav-action-btn {
  position: relative;
  top: -12px;
  overflow: visible;
}

.nav-action-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  border: 3px solid #0B1315;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-action-circle svg {
  width: 22px;
  height: 22px;
  stroke: #0B1315;
  stroke-width: 2.6;
}

.nav-action-btn:active .nav-action-circle {
  transform: scale(0.92);
  box-shadow: none !important;
}

.nav-action-btn span {
  font-weight: 700;
  color: var(--brand-green);
  font-size: 11px;
}

/* Indicador de Avisos Comunitarios en Barra Inferior */
.nav-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-badge-dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #E11D48;
  border-radius: 50%;
  border: 1.5px solid #141F23;
}

/* Modal 3-Toques */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #141F23;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
  animation: slide-up 0.25s ease-out;
  color: #FFFFFF;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.modal-close {
  background: #1B282D;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.step-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brand-green);
  font-weight: 800;
  margin-bottom: 6px;
}
.form-group {
  margin-bottom: 16px;
}
.form-select {
  width: 100%;
  background: #0B1315;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 14px;
}
.chips-selector {
  display: flex;
  gap: 8px;
}
.touch-chip {
  flex: 1;
  background: #0B1315;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.touch-chip.selected {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* ==========================================================================
   PANTALLAS MODULARES (VISTAS SPA MULTI-PANTALLA)
   ========================================================================== */
.screen-view {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0B1315;
  overflow-y: auto;
  z-index: 950;
  display: none;
  padding: 68px 16px calc(var(--bottom-bar-height) + 28px) 16px;
  -webkit-overflow-scrolling: touch;
}

.screen-view.active {
  display: block;
}

.screen-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.screen-title-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.screen-subtitle-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 3px 8px;
  border-radius: 12px;
}

/* Chips de Filtro Interno en Pantallas */
.view-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.view-tabs-row::-webkit-scrollbar { display: none; }
.view-tab-pill {
  background: #141F23;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.view-tab-pill.active {
  background: var(--brand-green);
  color: #0B1315;
  font-weight: 800;
  border-color: var(--brand-green);
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.35);
}

/* Tarjetas de Pichangas (v1.6.2 - Armonía Visual & Cero Choque de Diseño) */
.pichanga-card {
  background: #141F23;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pichanga-card:active {
  transform: scale(0.99);
}

/* Modificadores sutiles por tipo para no competir visualmente */
.pichanga-card[data-match-type="needed"] {
  border-left: 3.5px solid #FF6B00;
}
.pichanga-card[data-match-type="challenge"] {
  border-left: 3.5px solid #00A86B;
}
.pichanga-card[data-match-type="live"] {
  border-left: 3.5px solid #EF4444;
}

.pichanga-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pichanga-badge-urgent {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #FFA133;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}
.pichanga-badge-ready {
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid rgba(0, 168, 107, 0.35);
  color: #00E599;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}
.pichanga-badge-live {
  background: #DC2626 !important;
  border: 1px solid #EF4444 !important;
  color: #FFFFFF !important;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
}
.pichanga-time-tag {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
}
.pichanga-court-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.pichanga-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pichanga-roles-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.pichanga-action-btn {
  width: 100%;
  background: var(--brand-green);
  color: #0B1315;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.pichanga-action-btn.secondary {
  background: rgba(0, 168, 107, 0.12);
  color: #00E599;
  border: 1.5px solid rgba(0, 168, 107, 0.4);
}
.pichanga-action-btn.secondary:hover {
  background: rgba(0, 168, 107, 0.2);
  border-color: #00E599;
}
.pichanga-action-btn:active {
  transform: scale(0.98);
}

/* Tarjetas de Avisos del Barrio */
.aviso-feed-card {
  background: #141F23;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.aviso-feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.aviso-category-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.aviso-category-pill.live { background: rgba(0, 229, 153, 0.15); color: #00E599; }
.aviso-category-pill.cancha { background: rgba(0, 229, 153, 0.15); color: #00E599; border: 1px solid rgba(0, 229, 153, 0.3); }
.aviso-category-pill.escuela { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.aviso-category-pill.torneo { background: rgba(251, 191, 36, 0.15); color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.3); }
.aviso-category-pill.tournament { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.aviso-category-pill.weather { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.aviso-category-pill.challenge { background: rgba(244, 114, 182, 0.15); color: #F472B6; }

.cartelera-highlights-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight-item {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.highlight-item strong {
  color: var(--text-main);
}

.cartelera-promo-badge {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.3);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #00E599;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cartelera-btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.aviso-time-ago {
  font-size: 11px;
  color: var(--text-light);
}
.aviso-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.aviso-card-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.aviso-cta-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pantalla de Perfil */
.profile-card-main {
  background: #141F23;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.profile-avatar-large {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3px solid var(--brand-green);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  margin: 0 auto 10px;
  position: relative;
}
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-name-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}
.profile-sector-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.profile-level-box {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: left;
}
.profile-level-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #FBBF24;
  margin-bottom: 6px;
}
.profile-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.profile-progress-fill {
  width: 78%;
  height: 100%;
  background: var(--brand-green);
  border-radius: 10px;
}

/* Métricas del Perfil (Grid 3 sin ranking temporal) */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-box-card {
  background: #141F23;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}
.stat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Badges / Medallas */
.profile-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.badge-pill {
  background: #141F23;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

/* Drawer Menú Lateral (Hamburguesa) */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2500;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #111A1D;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  color: #FFFFFF;
}
.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-green);
}
.drawer-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}
.drawer-badge {
  font-size: 11px;
  color: var(--brand-green);
  font-weight: 700;
}
.drawer-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
}
.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.drawer-nav-item:active {
  background: #172429;
}
.drawer-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}
.drawer-footer {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   PANTALLA DE RANKING NACIONAL & BARRIAL (#screenRanking)
   ========================================================================== */
#screenRanking {
  background: var(--bg-app);
}

.ranking-header-banner {
  background: linear-gradient(135deg, #09201C 0%, #004D36 100%);
  border: 1px solid rgba(0, 229, 153, 0.25);
  color: #FFFFFF;
  padding: 18px 16px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranking-header-text h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.ranking-header-text p {
  font-size: 11.5px;
  opacity: 0.9;
  color: var(--text-muted);
}

.ranking-header-badge {
  background: rgba(0, 229, 153, 0.2);
  color: var(--brand-green);
  border: 1px solid rgba(0, 229, 153, 0.35);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

/* Selector Horizontal de Provincias */
.province-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.province-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.province-tab-btn {
  background: #141F23;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.province-tab-btn.active {
  background: var(--brand-green);
  color: #0B1315;
  font-weight: 800;
  border-color: var(--brand-green);
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.35);
}

/* Tarjeta de Fila de Ranking */
.ranking-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ranking-player-card {
  background: #141F23;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ranking-player-card:active {
  transform: scale(0.98);
  border-color: var(--brand-green);
}

.ranking-pos-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #1B282D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-main);
  flex-shrink: 0;
}

.ranking-pos-box.gold {
  background: rgba(251, 191, 36, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 15px;
}
.ranking-pos-box.silver {
  background: rgba(148, 163, 184, 0.18);
  color: #E2E8F0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 15px;
}
.ranking-pos-box.bronze {
  background: rgba(249, 115, 22, 0.18);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 15px;
}

.ranking-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ranking-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ranking-level-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--brand-green);
  color: #0B1315;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border: 1px solid #0B1315;
}

.ranking-info-wrap {
  flex: 1;
  min-width: 0;
}

.ranking-player-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.ranking-player-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-stats-col {
  text-align: right;
  flex-shrink: 0;
}

.ranking-points-text {
  font-size: 14px;
  font-weight: 900;
  color: var(--brand-green);
}

.ranking-record-text {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light);
}

/* ==========================================================================
   MODAL FICHA DEPORTIVA PÚBLICA DEL JUGADOR (#playerCardModal)
   ========================================================================== */
.player-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.player-card-sheet {
  background: #141F23;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 20px 32px;
  overflow-y: auto;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
  color: #FFFFFF;
}

.player-modal-overlay.open .player-card-sheet {
  transform: translateY(0);
}

.player-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.player-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-avatar-large-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.player-avatar-large-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-green);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.player-level-badge-float {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #0B1315;
  color: var(--brand-green);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(0, 229, 153, 0.4);
}

.player-header-names h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.player-header-names .player-nick {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-orange);
  margin-bottom: 3px;
}

.player-header-names .player-loc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.player-close-btn {
  background: #1B282D;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

/* Bloque Cara a Cara: "El Pique Criollo" */
.pique-confrontation-box {
  background: linear-gradient(135deg, #0D191D 0%, #15272E 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.pique-confrontation-box::before {
  content: "⚡";
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 72px;
  opacity: 0.08;
  pointer-events: none;
}

.pique-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #FBBF24;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pique-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.pique-player-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pique-player-label .label-name {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
}

.pique-player-label .label-wins {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
}

.pique-vs-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.pique-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}

.pique-progress-user {
  height: 100%;
  background: var(--brand-green);
  transition: width 0.3s ease;
}

.pique-progress-rival {
  height: 100%;
  background: #EF4444;
  transition: width 0.3s ease;
}

.pique-last-match-text {
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
}

/* Botón de Desafío a la Revancha */
.btn-challenge-whatsapp {
  width: 100%;
  background: var(--brand-green);
  color: #0B1315;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.btn-challenge-whatsapp:active {
  transform: scale(0.98);
  background: #00B377;
}

/* Métricas en Grid */
.player-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.metric-card {
  background: #0B1315;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.metric-card .metric-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 2px;
}

.metric-card .metric-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Posiciones y Trío */
.player-roles-block {
  background: #0B1315;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.player-section-subtitle {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roles-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.role-tag-pill {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
}

.role-tag-pill.primary {
  background: rgba(0, 229, 153, 0.16);
  color: var(--brand-green);
}

.role-tag-pill.secondary {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
}

.player-trio-info {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Enlace Interactivo de Jugador Clickable */
.clickable-player-tag {
  color: var(--brand-green);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clickable-player-tag:hover {
  color: #38BDF8;
}

.role-pill-compact.confirmed {
  cursor: pointer;
}

/* ==========================================================================
   BARRA PARA EMPUJAR / DESLIZAR PANTALLAS HACIA ABAJO Y VER EL MAPA
   ========================================================================== */
.screen-dismiss-drag-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 12px 0;
  margin: -10px -16px 10px -16px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
  transition: all 0.2s ease;
  position: sticky;
  top: -10px;
  z-index: 10;
}

.screen-dismiss-drag-bar:hover,
.screen-dismiss-drag-bar:active {
  background: rgba(0, 229, 153, 0.05);
}

.drag-handle-indicator {
  width: 38px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-dismiss-drag-bar:hover .drag-handle-indicator,
.screen-dismiss-drag-bar:active .drag-handle-indicator {
  background: var(--brand-green);
  width: 48px;
  box-shadow: 0 0 10px var(--brand-green);
}

.drag-handle-label {
  display: none;
}

/* ==========================================================================
   SWITCH DE PRIVACIDAD DE FICHA DEPORTIVA
   ========================================================================== */
.privacy-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.privacy-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s ease;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s ease;
  border-radius: 50%;
}

.privacy-switch input:checked + .privacy-slider {
  background-color: var(--brand-green);
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.4);
}

.privacy-switch input:checked + .privacy-slider:before {
  transform: translateX(20px);
  background-color: #0B1315;
}

/* ==========================================================================
   SELECTOR DE HORARIO MULTI-MODO (AHORITA / RELATIVO / FECHA Y HORA)
   ========================================================================== */
.time-mode-chip.selected {
  background: rgba(0, 229, 153, 0.2) !important;
  color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.3);
}

.relative-chip {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
  background: #141F23;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.relative-chip.selected {
  background: var(--brand-green);
  color: #0B1315;
  border-color: var(--brand-green);
  font-weight: 800;
}

/* ==========================================================================
   MODAL DE CONTACTO INTERNO (SOLO POR REBOLEO)
   ========================================================================== */
.quick-msg-chip {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 16px;
  background: #141F23;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-msg-chip:hover,
.quick-msg-chip:active {
  background: rgba(0, 229, 153, 0.15);
  color: #00E599;
  border-color: rgba(0, 229, 153, 0.3);
}

/* ==========================================================================
   CONMUTADOR DE TEMA (MODO OSCURO / MODO CLARO)
   ========================================================================== */
.drawer-theme-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 10px 16px 8px 16px;
  background: #141F23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.drawer-theme-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

/* Intercambio de Logotipo Dinámico */
body:not(.theme-light) .logo-dark-mode {
  display: block;
}
body:not(.theme-light) .logo-light-mode {
  display: none !important;
}

body.theme-light .logo-dark-mode {
  display: none !important;
}
body.theme-light .logo-light-mode {
  display: block !important;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

/* ==========================================================================
   ESTILOS MODO CLARO (PLATEADO DEPORTIVO ELEGANTE & ZERO-GLARE)
   ========================================================================== */
body.theme-light {
  --bg-card: #FFFFFF;
  --bg-card-elevated: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-light: #CBD5E1;
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

body.theme-light .top-header-wrapper {
  background: linear-gradient(180deg, #E2E8F0 0%, #E2E8F0 56px, rgba(226, 232, 240, 0.85) 72px, transparent 84px) !important;
}

body.theme-light .brand-logo-container {
  background: transparent !important;
}

body.theme-light .menu-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .menu-btn svg {
  stroke: #084851 !important;
}

body.theme-light .clean-chip {
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .clean-chip.active {
  background: linear-gradient(135deg, #00A86B 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border-color: #00A86B !important;
  box-shadow: 0 2px 10px rgba(0, 168, 107, 0.3) !important;
}

body.theme-light .clean-chip.active svg {
  stroke: #FFFFFF !important;
}

body.theme-light .bottom-bar-wrapper {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .nav-item {
  color: #64748B !important;
}

body.theme-light .nav-item svg {
  stroke: #64748B !important;
}

body.theme-light .nav-item.active {
  color: #00A86B !important;
  text-shadow: none !important;
}

body.theme-light .nav-item.active svg {
  stroke: #00A86B !important;
  filter: none !important;
}

body.theme-light .nav-item.active::before {
  display: none !important;
}

body.theme-light .screen-view {
  background: #E2E8F0 !important;
}

body.theme-light .screen-title-text {
  color: #0F172A !important;
}

body.theme-light .view-tab-pill {
  background: #FFFFFF !important;
  color: #64748B !important;
  border-color: #CBD5E1 !important;
}

body.theme-light .view-tab-pill.active {
  background: #00A86B !important;
  color: #FFFFFF !important;
  border-color: #00A86B !important;
}

body.theme-light .pichanga-card,
body.theme-light .aviso-feed-card,
body.theme-light .profile-card-main,
body.theme-light .stat-box-card,
body.theme-light .metric-card,
body.theme-light .player-roles-block,
body.theme-light .drawer-panel,
body.theme-light .ranking-shortcut-banner {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .pichanga-court-title,
body.theme-light .aviso-card-title,
body.theme-light .profile-name-text,
body.theme-light .stat-number,
body.theme-light .metric-val,
body.theme-light .drawer-name {
  color: #0F172A !important;
}

body.theme-light .drawer-theme-toggle-box {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .drawer-theme-label {
  color: #0F172A !important;
}

body.theme-light .drawer-header {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .drawer-nav-item {
  color: #334155 !important;
}

body.theme-light .drawer-nav-item:active {
  background: #F1F5F9 !important;
}

body.theme-light .drawer-nav-item svg {
  stroke: #64748B !important;
}

body.theme-light .modal-sheet,
body.theme-light .player-card-sheet {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .modal-title,
body.theme-light .step-label {
  color: #0F172A !important;
}

body.theme-light .form-select,
body.theme-light .form-input,
body.theme-light #txtContactMessage {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

body.theme-light .drag-handle-indicator {
  background: rgba(0, 0, 0, 0.18) !important;
}

body.theme-light .drag-handle-indicator:hover,
body.theme-light .drag-handle-indicator:active {
  background: #00A86B !important;
  box-shadow: 0 0 8px rgba(0, 168, 107, 0.4) !important;
}

body.theme-light .privacy-setting-box {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .privacy-setting-box div {
  color: #0F172A !important;
}

/* ==========================================================================
   TARJETAS DEL MAPA EN MODO CLARO (MATCH SHEET & PREVIEW CARDS)
   ========================================================================== */
body.theme-light .carousel-court-card,
body.theme-light .match-sheet-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .carousel-court-card.selected-court {
  border-color: #00A86B !important;
  box-shadow: 0 14px 38px rgba(0, 168, 107, 0.22), 0 0 0 2px #00A86B !important;
}

body.theme-light .court-name-title {
  color: #0F172A !important;
}

body.theme-light .court-sub-info,
body.theme-light .court-meta-compact,
body.theme-light .court-meta-compact .meta-item {
  color: #475569 !important;
}

body.theme-light .court-meta-compact .meta-item svg {
  stroke: #64748B !important;
}

body.theme-light .badge-pill {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .level-tag {
  background: #FFF7ED !important;
  border: 1px solid #FDBA74 !important;
  color: #C2410C !important;
}

body.theme-light .spectator-box {
  background: #FFF7ED !important;
  border: 1px solid #FDBA74 !important;
  color: #C2410C !important;
}

/* Botones Secundarios en Modo Claro: Grises elegantes con letras claras */
body.theme-light .pichanga-action-btn.secondary,
body.theme-light .btn-locate-court-trigger,
body.theme-light #btnPichangaMap,
body.theme-light #btnEditProfile,
body.theme-light #btnShareProfile,
body.theme-light #btnBackFromRanking,
body.theme-light .card-close-btn,
body.theme-light .btn-secondary {
  background: #475569 !important;
  color: #F8FAFC !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
  font-weight: 700 !important;
}

body.theme-light .pichanga-action-btn.secondary:hover,
body.theme-light .pichanga-action-btn.secondary:active,
body.theme-light .btn-locate-court-trigger:active,
body.theme-light #btnPichangaMap:active {
  background: #334155 !important;
  color: #FFFFFF !important;
}

/* Botones Verdes en Modo Claro: Letras siempre blancas de alta legibilidad */
body.theme-light .pichanga-action-btn:not(.secondary),
body.theme-light .action-play-btn,
body.theme-light .btn-primary,
body.theme-light #btnViewMyPublicCard,
body.theme-light .modal-action-btn.primary,
body.theme-light .view-tab-pill.active {
  background: linear-gradient(135deg, #00A86B 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: none !important;
}

body.theme-light .action-play-btn svg,
body.theme-light .btn-primary svg {
  stroke: #FFFFFF !important;
  fill: #FFFFFF !important;
}

body.theme-light .waze-live-btn {
  background: #FFF1F2 !important;
  border-color: #FECDD3 !important;
  color: #E11D48 !important;
}

body.theme-light .waze-live-btn.reported {
  background: #F0FDF4 !important;
  border-color: #86EFAC !important;
  color: #15803D !important;
}

body.theme-light .eta-text {
  color: #00A86B !important;
}

body.theme-light .transport-badge {
  background: #F1F5F9 !important;
  color: #475569 !important;
}

body.theme-light .roles-compact-box {
  background: #F8FAFC !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .role-pill-compact {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}

body.theme-light .role-pill-compact.needed {
  background: #FFF7ED !important;
  border-color: #FDBA74 !important;
  color: #C2410C !important;
  box-shadow: 0 1px 4px rgba(251, 146, 60, 0.2) !important;
}

body.theme-light .role-pill-compact.confirmed {
  background: #F0FDF4 !important;
  border-color: #86EFAC !important;
  color: #15803D !important;
}

body.theme-light .trio-alert-banner {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #065F46 !important;
}

/* ==========================================================================
   MENÚ INFERIOR DOCK EN MODO CLARO
   ========================================================================== */
body.theme-light .bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .nav-action-circle {
  background: linear-gradient(135deg, #00A86B 0%, #059669 100%) !important;
  border: 4px solid #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

body.theme-light .nav-action-circle svg {
  stroke: #FFFFFF !important;
}

/* Cartelera Comercial en Modo Claro */
body.theme-light .aviso-category-pill.cancha {
  background: #F0FDF4 !important;
  color: #15803D !important;
  border-color: #86EFAC !important;
}

body.theme-light .aviso-category-pill.escuela {
  background: #F0F9FF !important;
  color: #0369A1 !important;
  border-color: #BAE6FD !important;
}

body.theme-light .aviso-category-pill.torneo {
  background: #FFF7ED !important;
  color: #C2410C !important;
  border-color: #FDBA74 !important;
}

body.theme-light .cartelera-highlights-box {
  background: #F8FAFC !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .highlight-item {
  color: #475569 !important;
}

body.theme-light .highlight-item strong {
  color: #0F172A !important;
}

body.theme-light .cartelera-promo-badge {
  background: #F0FDF4 !important;
  color: #15803D !important;
  border-color: #86EFAC !important;
}

body.theme-light .cartelera-sponsor-callout {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%) !important;
  border-color: rgba(0, 168, 107, 0.4) !important;
}

body.theme-light .cartelera-sponsor-callout h4 {
  color: #0F172A !important;
}

body.theme-light .cartelera-sponsor-callout p {
  color: #475569 !important;
}

/* Modo Claro: Convocatorias y En Vivo */
body.theme-light .role-box-confirmed {
  background: #F0FDF4 !important;
  border-color: #86EFAC !important;
}

body.theme-light .role-box-title {
  color: #64748B !important;
}

body.theme-light .role-box-player {
  color: #15803D !important;
}

body.theme-light .role-box-sub {
  color: #16A34A !important;
}

body.theme-light .role-box-needed-btn {
  background: #FFF7ED !important;
  border-color: #EA580C !important;
  color: #C2410C !important;
  box-shadow: none !important;
}

body.theme-light .role-box-needed-text {
  color: #9A3412 !important;
  text-shadow: none !important;
}

body.theme-light .role-box-glow-hint {
  color: #C2410C !important;
}

body.theme-light .live-faceoff-container {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.theme-light .faceoff-ponedor-name {
  color: #0F172A !important;
}

body.theme-light .faceoff-ponedor-role {
  color: #0284C7 !important;
}

body.theme-light .faceoff-avatar {
  border-color: #0284C7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;
}

body.theme-light .faceoff-companions {
  color: #475569 !important;
}

body.theme-light .faceoff-companions .clickable-player-tag {
  color: #0F172A !important;
}

body.theme-light .faceoff-vs-badge {
  background: #FEF3C7 !important;
  color: #D97706 !important;
  border-color: #FDE68A !important;
}

body.theme-light .total-needed-badge {
  background: #FFF7ED !important;
  border-color: #FDBA74 !important;
  color: #C2410C !important;
}

body.theme-light .preset-needed-chip {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}

body.theme-light .preset-needed-chip.selected {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #047857 !important;
}

body.theme-light .role-counter-row {
  background: #F8FAFC !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .role-counter-row.active {
  background: #FFF7ED !important;
  border-color: #FDBA74 !important;
}

body.theme-light .role-counter-name {
  color: #0F172A !important;
}

body.theme-light .btn-role-counter {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.theme-light .btn-role-counter:active {
  background: #00A86B !important;
  color: #FFFFFF !important;
}

body.theme-light .role-counter-qty {
  color: #EA580C !important;
}

/* ============================================================
   v1.5.18: ARMONIZACIÓN EN VIVO, FICHAS Y MODAL ANUNCIAR
   ============================================================ */

/* Insignia En Vivo con Pulsación Dinámica sin recuadros toscos */
.badge-live-now {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 14px;
  border: none !important;
  animation: liveBadgePulse 1.6s infinite ease-in-out;
}

@keyframes liveBadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    transform: scale(1.02);
  }
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  animation: liveBeacon 1.2s infinite ease-in-out;
}

/* Armonización de Fichas en Modo Claro (Cero Rojo Desentonado) */
body.theme-light .badge-live-now {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4) !important;
}

body.theme-light .live-faceoff-container {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
}

body.theme-light .faceoff-avatar {
  border: 2px solid #334155 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .faceoff-ponedor-role {
  color: #EA580C !important;
  font-weight: 800 !important;
}

body.theme-light .faceoff-ponedor-name {
  color: #0F172A !important;
}

body.theme-light .faceoff-vs-badge {
  color: #334155 !important;
  background: #E2E8F0 !important;
  border: 1px solid #CBD5E1 !important;
}

body.theme-light .faceoff-companions {
  color: #64748B !important;
}

body.theme-light .btn-live-watch {
  background: #00A86B !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* Organizado por y Caja de Fotos */
body.theme-light .spectator-box {
  background: #FFF7ED !important;
  border: 1px solid #FDBA74 !important;
  color: #9A3412 !important;
}

body.theme-light .spectator-box strong {
  color: #C2410C !important;
}

.court-photo-gallery {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  border-radius: 12px;
}

body.theme-light .court-photo-gallery {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  padding: 8px !important;
  border-radius: 12px !important;
}

body.theme-light .court-photo-gallery img {
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Tarjetas de Precios en Modal Anunciar */
.pricing-plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  transition: all 0.2s ease;
}

.pricing-plan-card:hover,
.pricing-plan-card:has(input:checked) {
  border-color: #00E599;
  background: rgba(0, 229, 153, 0.08);
}

body.theme-light .pricing-plan-card {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
}

body.theme-light .pricing-plan-card:hover,
body.theme-light .pricing-plan-card:has(input:checked) {
  border-color: #00A86B !important;
  background: #F0FDF4 !important;
}

body.theme-light .pricing-plan-card div[style*="color: #FFFFFF"] {
  color: #0F172A !important;
}

body.theme-light .pricing-plan-card div[style*="color: #E2E8F0"] {
  color: #334155 !important;
}

body.theme-light #formAnnounceCourt input {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.theme-light .btn-anunciar-compact {
  background: #00A86B !important;
  color: #FFFFFF !important;
}

/* Quitar brillo y resplandor excesivo a todos los botones del sistema */
button,
.action-play-btn,
.pichanga-action-btn,
.btn-live-watch,
.role-box-needed-btn,
.btn-role-counter,
.touch-chip,
.level-req-chip,
.quality-chip,
.btn-anunciar-compact,
.btn-rate-court-trigger,
.nav-action-circle {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Selector de Resultado del Partido */
.match-result-card {
  user-select: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.match-result-card:hover {
  transform: translateY(-2px);
}

.match-result-card.win:has(input:checked) {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3) !important;
}

.match-result-card.loss:has(input:checked) {
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.14) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3) !important;
}

.match-result-card.loss:has(input:checked) div[style*="color: #94A3B8"] {
  color: #EF4444 !important;
}

/* Chips de Cualidades Deportivas e Instalaciones */
.quality-chip {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.quality-chip:hover {
  border-color: rgba(0, 229, 153, 0.4);
  background: rgba(0, 229, 153, 0.08);
  color: #FFFFFF;
}

.quality-chip.selected {
  background: #00E599 !important;
  color: #0B1315 !important;
  border-color: #00E599 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.35) !important;
}

/* Chips de Nivel Requerido / Considerado (Beneficio de la Duda) */
.level-req-chip {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-req-chip:hover {
  border-color: rgba(0, 229, 153, 0.4);
}

.level-req-chip.selected {
  background: var(--brand-green) !important;
  color: #0B1315 !important;
  border-color: var(--brand-green) !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.3) !important;
}

/* Filas del Selector de Nivel de Cancha */
.level-select-row {
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-select-row:hover {
  border-color: rgba(0, 229, 153, 0.35) !important;
}

.level-select-row:has(input:checked) {
  border-color: #00E599 !important;
  background: rgba(0, 229, 153, 0.09) !important;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.25) !important;
}

/* Armonización de Calificaciones en Modo Claro */
body.theme-light .match-result-card.win {
  border-color: #10B981 !important;
  background: #ECFDF5 !important;
}

body.theme-light .match-result-card.win:has(input:checked) {
  border-color: #059669 !important;
  background: #D1FAE5 !important;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.2) !important;
}

body.theme-light .match-result-card.loss {
  border-color: #CBD5E1 !important;
  background: #F8FAFC !important;
}

body.theme-light .match-result-card.loss:has(input:checked) {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.2) !important;
}

body.theme-light .quality-chip {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #334155 !important;
}

body.theme-light .quality-chip:hover {
  border-color: #00A86B !important;
  background: #F0FDF4 !important;
  color: #0F172A !important;
}

body.theme-light .quality-chip.selected {
  background: #00A86B !important;
  color: #FFFFFF !important;
  border-color: #00A86B !important;
  box-shadow: 0 3px 10px rgba(0, 168, 107, 0.3) !important;
}

body.theme-light .level-req-chip {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}

body.theme-light .level-req-chip.selected {
  background: #00A86B !important;
  color: #FFFFFF !important;
  border-color: #00A86B !important;
  box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3) !important;
}

body.theme-light .level-select-row {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}

body.theme-light .level-select-row:hover {
  border-color: #00A86B !important;
}

body.theme-light .level-select-row:has(input:checked) {
  border-color: #00A86B !important;
  background: #F0FDF4 !important;
  box-shadow: 0 2px 8px rgba(0, 168, 107, 0.2) !important;
}

body.theme-light .btn-rate-court-trigger {
  background: #FFF7ED !important;
  border-color: #EA580C !important;
  color: #C2410C !important;
}

body.theme-light .btn-rate-court-trigger:hover,
body.theme-light .btn-rate-court-trigger:active {
  background: #FFEDD5 !important;
}

body.theme-light #btnOpenRatePlayerModal {
  background: #EA580C !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   SPRINT v1.6.0: RITMO DE JUEGO, RECONOCIMIENTOS & TERCER TIEMPO
   ========================================================================== */

/* Selector de Ritmo en Modal Convocatoria */
.pacing-select-chip {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.pacing-select-chip:hover:not(:disabled) {
  border-color: #00E599;
}

.pacing-select-chip.selected[data-pacing="suave"] {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.12);
}

.pacing-select-chip.selected[data-pacing="fogueado"] {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
}

.pacing-select-chip.selected[data-pacing="bravo"] {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.14);
}

/* Chips y Badges de Ritmo en UI */
.pacing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.pacing-badge-pill.pacing-suave {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pacing-badge-pill.pacing-fogueado {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pacing-badge-pill.pacing-bravo {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modal Tercer Tiempo & Reconocimientos Positivos */
.endorsement-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.endorsement-card:hover {
  border-color: #00E599;
}

.endorsement-card.selected {
  border-color: #00E599;
  background: rgba(0, 229, 153, 0.12);
}

.endorsement-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.endorsement-info {
  flex: 1;
}

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

.endorsement-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.endorsement-check {
  font-size: 16px;
  font-weight: 900;
  color: transparent;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.endorsement-card.selected .endorsement-check {
  background: #00E599;
  border-color: #00E599;
  color: #0B1315;
}

/* Botones Bitácora Privada */
.logbook-result-btn {
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.logbook-result-btn.selected[data-result="VICTORIA"] {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.logbook-result-btn.selected[data-result="DERROTA"] {
  border-color: #94A3B8;
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
}

.logbook-quinces-btn {
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.logbook-quinces-btn.selected {
  border-color: #00E599;
  background: rgba(0, 229, 153, 0.15);
  color: #00E599;
}

/* Rodaje en Perfil */
.rodaje-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.rodaje-card {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.rodaje-card-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
}

.rodaje-card-label {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tema Claro Ajustes */
body.theme-light .pacing-select-chip {
  background: #F8FAFC;
}

body.theme-light .pacing-select-chip:hover:not(:disabled) {
  border-color: #00A86B;
}

body.theme-light .pacing-select-chip.selected[data-pacing="suave"] {
  border-color: #059669;
  background: #ECFDF5;
}

body.theme-light .pacing-select-chip.selected[data-pacing="fogueado"] {
  border-color: #D97706;
  background: #FFFBEB;
}

body.theme-light .pacing-select-chip.selected[data-pacing="bravo"] {
  border-color: #DC2626;
  background: #FEF2F2;
}

body.theme-light .endorsement-card {
  background: #F8FAFC;
}

body.theme-light .endorsement-card:hover {
  border-color: #00A86B;
}

body.theme-light .endorsement-card.selected {
  border-color: #00A86B;
  background: #ECFDF5;
}

body.theme-light .endorsement-card.selected .endorsement-check {
  background: #00A86B;
  border-color: #00A86B;
  color: #FFFFFF;
}

body.theme-light .logbook-result-btn,
body.theme-light .logbook-quinces-btn,
body.theme-light .rodaje-card {
  background: #F8FAFC;
}

body.theme-light .logbook-quinces-btn.selected {
  border-color: #00A86B;
  background: #ECFDF5;
  color: #00A86B;
}

/* =======================================================
   CONVOCATORIA: ENFRENTAMIENTO TRÍO A VS TRÍO B (v1.6.6)
   ======================================================= */
.convocatoria-teams-faceoff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.convocatoria-team-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
}

.convocatoria-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.team-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.team-tag.tag-a {
  color: #38BDF8;
}

.team-tag.tag-b {
  color: #FFA94D;
}

.convocatoria-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -1px 0;
}

.vs-pill-mini {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.vs-wager-pill {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: #00E599;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 10px;
}

.seeking-rival-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px dashed rgba(255, 107, 0, 0.35);
  border-radius: 8px;
}

.seeking-rival-title {
  font-size: 11px;
  font-weight: 800;
  color: #FFA94D;
}

.btn-claim-rival-match {
  background: var(--brand-green);
  color: #FFFFFF !important;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.btn-claim-rival-match:active {
  transform: scale(0.96);
}

/* =======================================================
   AUTOCOMPLETE EN FORMULARIO DE ALERTA (v1.6.6)
   ======================================================= */
.player-autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 65px;
  right: 0;
  background: #142226;
  border: 1px solid rgba(0, 229, 153, 0.4);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 1050;
  max-height: 170px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.autocomplete-item:hover, .autocomplete-item.active {
  background: rgba(0, 229, 153, 0.15);
}

.autocomplete-item-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #00E599;
}

.autocomplete-item-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.autocomplete-item-pos {
  font-size: 10px;
  color: var(--text-light);
  margin-left: auto;
}

/* Soporte Light Mode */
body.theme-light .convocatoria-team-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.theme-light .team-tag.tag-a {
  color: #0284C7 !important;
}

body.theme-light .team-tag.tag-b {
  color: #D97706 !important;
}

body.theme-light .autocomplete-dropdown {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .autocomplete-item {
  border-bottom-color: #F1F5F9 !important;
}

body.theme-light .autocomplete-item:hover {
  background: #ECFDF5 !important;
}

body.theme-light .autocomplete-item-name {
  color: #0F172A !important;
}

body.theme-light .btn-claim-rival-match {
  background: #00A86B !important;
  color: #FFFFFF !important;
}

/* =======================================================
   SUPLENTE DE EMERGENCIA / POR SI ACASO (Sprint v1.6.7)
   ======================================================= */
.btn-backup-trigger {
  margin-top: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px dashed #F59E0B;
  color: #FBBF24;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.btn-backup-trigger:hover {
  background: rgba(245, 158, 11, 0.25);
  border-style: solid;
}

.btn-backup-trigger:active {
  transform: scale(0.95);
}

.backup-tag-confirmed {
  margin-top: 3px;
  font-size: 7.5px;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 4px;
  border-radius: 4px;
  display: inline-block;
}

.role-box-en-camino {
  border-color: rgba(56, 189, 248, 0.45) !important;
}

body.theme-light .btn-backup-trigger {
  background: #FFFBEB !important;
  border-color: #F59E0B !important;
  color: #B45309 !important;
}

body.theme-light .backup-tag-confirmed {
  background: #F0F9FF !important;
  border-color: #BAE6FD !important;
  color: #0369A1 !important;
}

/* =======================================================
   CIERRE DE PARTIDO & CHECK-IN EN CANCHA (Sprint v1.6.8)
   ======================================================= */
.btn-finish-match-trigger {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1.5px solid #F59E0B;
  color: #FBBF24 !important;
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: 12px;
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-finish-match-trigger:hover {
  background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
}

.btn-finish-match-trigger:active {
  transform: scale(0.97);
}

.match-winner-select-btn {
  transition: all 0.2s ease;
}

.match-winner-select-btn.selected {
  border-color: #00E599 !important;
  background: rgba(0, 229, 153, 0.15) !important;
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.25);
}

.close-quinces-chip.selected {
  background: #00E599 !important;
  color: #0B1315 !important;
  font-weight: 800;
  border-color: #00E599 !important;
}

.role-box-en-cancha {
  border-color: rgba(0, 229, 153, 0.8) !important;
  background: rgba(0, 229, 153, 0.08) !important;
}

body.theme-light .btn-finish-match-trigger {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #92400E !important;
}

body.theme-light .match-winner-select-btn {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

body.theme-light .match-winner-select-btn.selected {
  border-color: #00A86B !important;
  background: #ECFDF5 !important;
  color: #065F46 !important;
}






