/* ============================================================
   jnpadel — Tema deportivo oscuro
   Variables CSS + utilidades custom
   ============================================================ */

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

/* ── Variables globales (Stitch Kinetic Precision) ─────── */
:root {
  --bg-base:       #041329; /* Surface */
  --bg-card:       #112036; /* Surface Container */
  --bg-card-hover: #1c2a41; /* Surface Container High */
  --bg-input:      #0d1c32; /* Surface Container Low */
  --border:        #27354c; /* Surface Variant */
  --border-bright: #354956;
  --text-primary:  #d6e3ff; /* On Surface */
  --text-muted:    #c3caac; /* On Surface Variant */
  --text-dim:      #526775;

  /* Acento principal (Stitch Lime) */
  --sport-color:   #bef500;
  --sport-color-15: rgba(190, 245, 0, 0.15);
  --sport-color-30: rgba(190, 245, 0, 0.30);

  --green-neon:  #bef500;
  --orange-neon: #ff9157;
  --blue-neon:   #4299e1;
  --yellow-neon: #f6c90e;
  --red-neon:    #e94f37;
  --purple-neon: #a78bfa;

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-score:    'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-neon: 0 0 15px rgba(190, 245, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(190, 245, 0, 0.08);
  --transition:  all 0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sport-color); }

/* ── Tipografía ──────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.score-font { font-family: var(--font-score); font-weight: 700; }
.display-font { font-family: var(--font-display); }

/* ── Neon text ───────────────────────────────────────────── */
.text-neon {
  color: var(--sport-color);
  text-shadow: 0 0 10px var(--sport-color-30);
}
.text-neon-green  { color: var(--green-neon);  text-shadow: 0 0 10px rgba(0,255,135,.3); }
.text-neon-orange { color: var(--orange-neon); text-shadow: 0 0 10px rgba(255,107,53,.3); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: rgba(39, 53, 76, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card-sport-accent {
  border-left: 3px solid var(--sport-color);
}
.card-glow {
  box-shadow: var(--shadow-neon);
  border-color: var(--sport-color) !important;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: .85rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .03em;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--sport-color) 0%, rgba(190, 245, 0, 0.6) 100%);
  color: #041329;
  box-shadow: 0 8px 20px -4px rgba(190, 245, 0, 0.5);
  border-radius: var(--radius);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 0 15px var(--sport-color-30);
}
.btn-secondary {
  background: transparent;
  color: var(--sport-color);
  border: 1px solid var(--sport-color);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--sport-color-15);
}
.btn-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239,68,68,.15);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--text-dim);
}
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: .35rem .75rem; font-size: .78rem; }

/* ── Formularios ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .6rem .85rem;
  width: 100%;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--sport-color);
  box-shadow: 0 0 0 3px var(--sport-color-15);
}
.form-input.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: .75rem; margin-top: .15rem; }
.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 90px; }

/* ID-type toggle ─── */
.id-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.id-toggle button {
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  background: transparent;
  color: var(--text-dim);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.id-toggle button.active {
  background: var(--sport-color);
  color: #000;
}

/* ── Modales ─────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
  font-size: 1.2rem;
  transition: color .2s;
}
.modal-close:hover { color: #ef4444; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 19, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  align-self: flex-start;
  margin-top: 2px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.navbar-logo:hover {
  filter: drop-shadow(0 0 8px var(--sport-color-30));
  transform: scale(1.02);
}
.navbar-links { display: flex; align-items: center; gap: .25rem; }
.navbar-link {
  color: var(--text-dim);
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.navbar-link:hover, .navbar-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.navbar-link.active { color: var(--sport-color); }

/* ── Layout ──────────────────────────────────────────────── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 1.25rem 2rem;
}
.page-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title { line-height: 1.1; }
.page-subtitle { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

/* ── Grids ───────────────────────────────────────────────── */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .navbar-links { gap: .1rem; }
  .navbar-link span.label { display: none; }
}

/* ── Tabla de posiciones ─────────────────────────────────── */
.standings-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
}
.standings-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: .7825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .6rem .75rem;
  text-align: center;
}
.standings-table th:first-child { text-align: center; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.standings-table th:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) { text-align: left; }

.standings-row {
  background: var(--bg-card);
  transition: var(--transition);
  cursor: default;
}
.standings-row:hover { background: var(--bg-card-hover); }
.standings-row td {
  padding: .7rem .75rem;
  font-family: var(--font-score);
  font-size: .88rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.standings-row td:first-child {
  text-align: center;
  border-left: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.standings-row td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.standings-row.classified td:first-child {
  border-left: 3px solid var(--sport-color) !important;
}
.standings-row.classified { background: rgba(0,0,0,.2); }
.standings-row.champion td:first-child {
  border-left: 3px solid #f6c90e !important;
}

.pts-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: .2rem .5rem;
  background: var(--sport-color-15);
  color: var(--sport-color);
  border-radius: 4px;
  font-weight: 700;
}

/* ── Utilidades Stitch "Kinetic Precision" ─────────────────────── */
.glass-card {
  background: rgba(39, 53, 76, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.power-gradient {
  background: linear-gradient(135deg, var(--sport-color) 0%, rgba(190, 245, 0, 0.6) 100%);
  color: #000;
}
.text-glow {
  text-shadow: 0 0 15px rgba(190, 245, 0, 0.4);
}

/* ── Fixture / match cards ───────────────────────────────── */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  display: grid;
  grid-template-columns: 70px 1fr auto 1fr auto;
  align-items: center;
  gap: .75rem;
  transition: var(--transition);
  cursor: pointer;
}
.match-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--sport-color);
  box-shadow: 0 0 12px var(--sport-color-15);
}
/* Ficha de grupo por ronda */
.round-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.round-group-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.25rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sport-color);
}
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .85rem .75rem;
  cursor: pointer;
  transition: background var(--transition);
}
.match-row:hover { background: var(--bg-card-hover); }
.match-row-finished { opacity: .88; }
.match-round-label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.match-team {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.3;
}
.match-score-center {
  text-align: center;
  min-width: 90px;
}
.match-score-center .score-sets {
  font-family: var(--font-score);
  font-size: 1.5625rem;
  font-weight: 700;
  color: var(--sport-color);
  white-space: nowrap;
  letter-spacing: .04em;
}
.match-score-center .score-vs {
  font-family: var(--font-score);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .15em;
}

/* Badges de estado */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-pending  { background: rgba(107,114,128,.2); color: var(--text-muted); }
.badge-live     { background: rgba(239,68,68,.2);    color: #ef4444; animation: pulse-badge 1.5s infinite; }
.badge-finished { background: rgba(0,255,135,.15);   color: var(--green-neon); }
.badge-setup    { background: rgba(167,139,250,.15); color: var(--purple-neon); }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

/* ── Avatar ──────────────────────────────────────────────── */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .9rem;
  color: #000;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.1);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg  { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar-sm  { width: 32px; height: 32px; font-size: .7rem; }

/* ── Wizard steps ────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
}
.wizard-step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.wizard-step.active   .wizard-step-indicator { background: var(--sport-color); border-color: var(--sport-color); color: #000; }
.wizard-step.done     .wizard-step-indicator { background: var(--sport-color-15); border-color: var(--sport-color); color: var(--sport-color); }
.wizard-step-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wizard-step.active .wizard-step-label { color: var(--text-primary); }
.wizard-connector { width: 40px; height: 2px; background: var(--border); flex-shrink: 0; }
.wizard-connector.done { background: var(--sport-color); }

/* ── Sport selector cards ────────────────────────────────── */
.sport-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.sport-card:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.sport-card.selected { border-color: var(--sport-color); background: var(--sport-color-15); box-shadow: 0 0 15px var(--sport-color-15); }
.sport-card .sport-emoji { font-size: 2rem; }
.sport-card .sport-name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ── Bracket ─────────────────────────────────────────────── */
.bracket-svg text { fill: var(--text-primary); font-family: var(--font-body); }
.bracket-svg .bracket-line { stroke: var(--border-bright); stroke-width: 1.5; fill: none; }
.bracket-svg .bracket-match-bg { fill: var(--bg-card); stroke: var(--border); stroke-width: 1; rx: 8; }
.bracket-svg .bracket-match-bg.clickable { cursor: pointer; }
.bracket-svg .bracket-match-bg.clickable:hover { fill: var(--bg-card-hover); stroke: var(--sport-color); }
.bracket-svg .bracket-match-bg.finished { stroke: var(--sport-color); }
.bracket-svg .winner-text { fill: var(--sport-color) !important; font-weight: 700; }

/* ── Champion celebration (Kinetic Precision) ──────────────── */
.champion-banner {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(39, 53, 76, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(190, 245, 0, 0.15);
  box-shadow: 0 8px 32px rgba(190, 245, 0, 0.08);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.champion-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(190, 245, 0, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.champion-trophy { font-size: 5rem; animation: trophy-bounce 1s ease infinite alternate; position: relative; z-index: 2; filter: drop-shadow(0 0 20px var(--sport-color-40)); }
@keyframes trophy-bounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-10px) scale(1.05); }
}
.champion-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-style: italic;
  color: #041329; /* On Primary (Dark) */
  background: linear-gradient(135deg, var(--sport-color) 0%, rgba(190, 245, 0, 0.6) 100%);
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  transform: skewX(-5deg);
  box-shadow: 0 8px 20px -4px rgba(190, 245, 0, 0.5);
  display: inline-block;
  line-height: 1;
  margin: .5rem 0;
  position: relative;
  z-index: 2;
}

/* ── Search input ────────────────────────────────────────── */
.search-wrapper { position: relative; }
.search-wrapper i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrapper .form-input { padding-left: 2.5rem; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; color: var(--border-bright); }
.empty-state h3 { color: var(--text-dim); margin-bottom: .5rem; }

/* ── Divider zona clasificatoria ─────────────────────────── */
.zone-divider td {
  padding: 2px 0;
  border: none !important;
  background: transparent !important;
}
.zone-divider-line {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sport-color) 0, var(--sport-color) 8px, transparent 8px, transparent 16px);
  opacity: .5;
  border-radius: 1px;
  width: 100%;
}

/* ── Notyf override ──────────────────────────────────────── */
.notyf__toast { border-radius: var(--radius-sm) !important; font-family: var(--font-body) !important; }

/* ── SweetAlert2 override ────────────────────────────────── */
.swal2-popup { background: var(--bg-card) !important; border: 1px solid var(--border-bright) !important; color: var(--text-primary) !important; border-radius: var(--radius-lg) !important; }
.swal2-title { color: var(--text-primary) !important; font-family: var(--font-display) !important; }
.swal2-confirm { background: var(--sport-color) !important; color: #000 !important; font-weight: 700 !important; }
.swal2-cancel { background: transparent !important; border: 1px solid var(--border-bright) !important; color: var(--text-dim) !important; }

/* ── Loader ──────────────────────────────────────────────── */
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--sport-color);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Transitions Alpine.js ───────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Pagination / round tabs ─────────────────────────────── */
.round-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.round-tab {
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.round-tab.active, .round-tab:hover {
  background: var(--sport-color-15);
  border-color: var(--sport-color);
  color: var(--sport-color);
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 640px) {
  .page-container { padding: 1.25rem .875rem; }
  .modal-box { padding: 1.25rem; }
  .match-card {
    grid-template-columns: 55px 1fr auto 1fr auto;
    padding: .75rem 1rem;
    gap: .4rem;
  }
  .match-row {
    grid-template-columns: 1fr auto 1fr auto;
    padding: .75rem 1rem;
    gap: .4rem;
  }
  .match-team { font-size: .82rem; }
  .match-score-center .score-sets { font-size: 1.2625rem; }
  .match-round-label { font-size: .65rem; }
  .wizard-step-label { display: none; }
  .wizard-connector { width: 20px; }
}

/* ── Standings extras ───────────────────────────────────── */
.standings-legend {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--border-color);
}
.legend-dot.classified { background: var(--sport-color); }

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  background: var(--bg-input);
  color: var(--text-muted);
}
.pos-badge-1 { background: #f6c90e; color: #000; }
.pos-badge-2 { background: #9ca3af; color: #000; }
.pos-badge-3 { background: #b45309; color: #fff; }

.pts-col { color: var(--sport-color); font-weight: 700; }

.row-classified { background: var(--sport-color-15) !important; }
.row-last td { opacity: .65; }
.champion-row td { font-weight: 700; }

.team-avatar-sm {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

/* ── Progress bar ───────────────────────────────────── */
.progress-bar-track {
  height: 6px;
  border-radius: 99px;
  background: var(--bg-input);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
}

/* ── Summary stat cards ─────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--sport-color); }
.stat-card > i { font-size: 1.4rem; margin-bottom: .5rem; display: block; }
.stat-value { font-size: 1.6rem; font-weight: 800; font-family: var(--font-score); }
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .15rem; }

/* ── Standing Cards (Estilo Summary) ─────────────────── */
.standings-cards-list { display: flex; flex-direction: column; gap: 0.6rem; }
.standing-card {
  display: flex; align-items: stretch; background: rgba(255,255,255,0.03); 
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.standing-card:hover { border-color: rgba(255,255,255,0.15); transform: translateX(2px); }
.standing-card.champion-card { 
  background: rgba(190, 245, 0, 0.08); 
  border-color: rgba(190, 245, 0, 0.2); 
}
.rank-aside {
  width: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: #000;
  background: #2a2a2a;
}
.rank-aside span { opacity: 0.9; }
.card-body {
  flex: 1; display: flex; align-items: center; padding: 0.75rem 1rem; gap: 0.5rem; min-width: 0;
}
.team-info { 
  width: 140px; flex-shrink: 0; display: flex; flex-direction: column; 
  gap: 0.15rem; min-width: 0; 
}
.player-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.15;
  color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stats-grid {
  flex: 1; display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem; text-align: center; align-items: center;
}
.stat-val { 
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; 
  color: rgba(255,255,255,0.85); 
}
.stat-val.pts-box {
  background: var(--sport-color); color: #000;
  border-radius: 6px; padding: 0.2rem 0.4rem; font-size: 1.3rem; min-width: 34px;
}
@media (max-width: 600px) {
  .team-info { width: 100px; }
  .player-name { font-size: 1rem; }
  .stat-val { font-size: 1rem; }
  .stat-val.pts-box { font-size: 1.1rem; min-width: 28px; }
  .rank-aside { width: 26px; font-size: 0.9rem; }
}

