:root{
  --bg0:#081124;
  --bg1:#0a1630;

  --panelTop: rgba(18, 32, 60, .78);
  --panelBot: rgba(12, 24, 45, .86);

  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.16);

  --text:#eaf2ff;
  --muted:rgba(234,242,255,.70);
  --muted2:rgba(234,242,255,.50);

  --green:#22c55e;
  --shadow: 0 18px 45px rgba(0,0,0,.28);

  --radius:18px;
  --gap:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(34,197,94,.14), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(34,197,94,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.app{min-height:100%; display:flex; flex-direction:column;}
.shell{width:min(1320px, 100%); margin:0 auto; padding:18px 16px 28px;}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(8,17,36,.92), rgba(8,17,36,.68));
  border-bottom:1px solid var(--stroke);
}
.topbarInner{
  padding-top:12px; padding-bottom:12px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.brand{display:flex; align-items:center; gap:12px; min-width:240px;}
.logo{
  width:42px;height:42px;border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(34,197,94,.45), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border:1px solid var(--stroke2);
  box-shadow: 0 10px 25px rgba(0,0,0,.28);
}
.titles{display:flex; flex-direction:column; line-height:1.15;}
.titles strong{font-size:14px; letter-spacing:.2px;}
.titles span{font-size:12px; color:var(--muted); margin-top:2px;}

.nav{display:flex; align-items:center; gap:10px;}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--text);
  font-weight:700;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.pill:hover{transform: translateY(-1px); border-color: rgba(34,197,94,.38)}
.pill.active{
  border-color: rgba(34,197,94,.62);
  background: rgba(34,197,94,.14);
  color: #c9f7d8;
  box-shadow: 0 0 0 6px rgba(34,197,94,.08);
}
.iconbtn{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  display:grid; place-items:center;
  cursor:pointer;
  transition: border-color .12s ease, transform .12s ease;
}
.iconbtn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.22)}
.hamburger{width:18px;height:12px; position:relative;}
.hamburger span{position:absolute; left:0; right:0; height:2px; border-radius:99px; background: rgba(234,242,255,.92);}
.hamburger span:nth-child(1){top:0}
.hamburger span:nth-child(2){top:5px; opacity:.85}
.hamburger span:nth-child(3){bottom:0; opacity:.7}

.mobileMenu{display:none; padding:0 0 14px;}
.mobileMenu .panel{
  border:1px solid var(--stroke);
  border-radius:16px;
  background: rgba(12,24,45,.85);
  box-shadow: var(--shadow);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobileMenu .pill{justify-content:center}

.pageTitle{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin-top:18px; margin-bottom:14px;
}
h1{margin:0; font-size: clamp(28px, 2.7vw, 38px); letter-spacing:.2px;}
.subtle{color:var(--muted); font-size:13px; font-weight:650;}

/* GRID */
.grid{
  display:grid;
  gap:var(--gap);
  grid-template-columns: 1fr;
  align-items:stretch;
}
@media (min-width:1100px){
  .grid{grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);}
}

/* CARD */
.card{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 32, 60, .78), rgba(12, 24, 45, .86));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.card::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(700px 260px at 20% 5%, rgba(34,197,94,.16), transparent 62%);
  pointer-events:none;
  opacity:.95;
}
.card > *{position:relative}
.cardBody{padding:16px}

.cardHeader{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px;}
.cardTitle{font-weight:900}

.kicker{
  font-size:12px; letter-spacing:.12em;
  color: rgba(34,197,94,.95);
  font-weight:900;
  text-transform:uppercase;
}
.badge{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.40);
  background: rgba(34,197,94,.14);
  color:#c9f7d8;
  font-weight:900;
  font-size:12px;
  letter-spacing:.04em;
}

.nextTitle{font-size: clamp(18px, 1.6vw, 22px); font-weight:900; margin:4px 0 10px;}
.metaRow{display:flex; flex-wrap:wrap; gap:10px 12px; align-items:center; color:var(--muted); font-size:13px;}
.sep{opacity:.7}
.tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight:750;
  font-size:12px;
}
.tagGreen{
  border-color: rgba(34,197,94,.40);
  background: rgba(34,197,94,.14);
  color:#c9f7d8;
}

.cta{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap;}
.btn{
  border:1px solid rgba(34,197,94,.40);
  background: rgba(34,197,94,.14);
  color:#c9f7d8;
  font-weight:900;
  border-radius: 14px;
  padding:11px 14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(34,197,94,.62); background: rgba(34,197,94,.18)}
.btn.secondary{
  border-color: var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
}

/* Columns inside */
.leftCol{display:grid; gap:var(--gap);}

/* 2-up */
.twoUp{display:grid; gap:var(--gap); grid-template-columns:1fr;}
@media (min-width:780px){ .twoUp{grid-template-columns:1fr 1fr;} }

/* 4-up */
.fourUp{display:grid; gap:var(--gap); grid-template-columns:1fr;}
@media (min-width:620px){ .fourUp{grid-template-columns:1fr 1fr;} }
@media (min-width:980px){ .fourUp{grid-template-columns:1fr 1fr 1fr 1fr;} }

/* Big stat */
.statBig{display:flex; align-items:flex-end; gap:10px; margin-top:10px;}
.statBig .num{font-size: clamp(34px, 3.5vw, 48px); font-weight:950; letter-spacing:.3px;}
.statBig .den{color:var(--muted); font-weight:900; margin-bottom:7px;}

/* Small header pills */
.miniPill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:900;
  font-size:12px;
}
.miniPillGreen{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  color:#c9f7d8;
}

/* Jornadas progress extra */
.progressMeta{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

/* Segmented progress (más gruesa) */
.segWrap{margin-top:14px;}
.segBar{
  display:grid;
  grid-template-columns: repeat(var(--total, 18), minmax(0, 1fr));
  gap:6px;
  width:100%;
}
.seg{
  height:12px;
  border-radius:999px;
  background: rgba(234,242,255,.14);
  border:1px solid rgba(255,255,255,.08);
}
.seg.on{
  background: rgba(34,197,94,.80);
  border-color: rgba(34,197,94,.22);
  box-shadow: 0 0 0 6px rgba(34,197,94,.08);
}

/* Charts */
.chartBox{ width:100%; position:relative; margin-top:12px; }
.chartBox canvas{ width:100% !important; height:100% !important; }

/* puntos de liga compacto */
.chartPoints{ height:140px; }
.chartPoints.compact{ height:110px; }
@media (min-width:1100px){
  .chartPoints.compact{ height:120px; }
}

/* KPI donuts */
.donutSmall{
  position:relative;
  height:112px;
  width:112px;
  flex:0 0 auto;
  margin-inline:auto;
}

.kpiRing{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:12px;
  flex-wrap:wrap;
}

/* Desktop: centrado sin romper móvil */
@media (min-width: 980px){
  .kpiRing{ justify-content:center; }
  .miniLegend{ min-width:140px; max-width:180px; }
}

.centerText{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  text-align:center;
  transform: translateY(1px);
}
.centerText .big{
  font-weight:950;
  font-size:24px;
  letter-spacing:.2px;
  line-height:1;
}
.centerText .small{
  margin-top:4px;
  font-size:12px;
  font-weight:750;
  color: var(--muted);
}

.miniLegend{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1 1 160px;
  min-width:160px;
  margin-inline:auto;
  justify-content:center;
}

.chipPill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.chipPill span{
  font-weight:950;
  font-size:14px;
  min-width: 22px;
}
.chipPill small{
  color: var(--muted);
  font-weight:750;
  font-size:12px;
}
.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(234,242,255,.22);
  border:1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}

/* Chat */
.chat{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height: 520px;
}
.chatTop{
  padding:14px 16px;
  border-bottom:1px solid var(--stroke);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.chatTop h3{margin:0; font-size:16px; font-weight:950;}
.chatTop small{display:block; color:var(--muted); font-weight:650; margin-top:3px;}

.chatBody{
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.msg{display:flex; gap:10px; align-items:flex-start;}
.avatar{
  width:34px;height:34px;border-radius:12px;
  background: rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.30);
  display:grid; place-items:center;
  font-weight:950;
  color:#c9f7d8;
  flex:0 0 auto;
}
.bubble{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding:12px 12px;
  max-width: 92%;
}
.bubble p{margin:0; color:var(--text); font-weight:700}
.bubble p + p{margin-top:8px; color:var(--muted)}

.chatInput{
  padding:14px 16px;
  border-top:1px solid var(--stroke);
  display:flex;
  gap:10px;
  align-items:center;
}
.input{
  flex:1;
  height:42px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--text);
  padding:0 12px;
  outline:none;
}
.input::placeholder{color: rgba(234,242,255,.45)}
.send{
  height:42px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(34,197,94,.40);
  background: rgba(34,197,94,.14);
  color:#c9f7d8;
  font-weight:950;
  cursor:pointer;
}

/* Nav responsive */
.navDesktop{display:none}
.hamb{display:inline-grid}
@media (min-width:900px){
  .navDesktop{display:flex}
  .hamb{display:none}
  .mobileMenu{display:none !important;}
}

/* ===== Chat: no estirar la página (desktop) ===== */
@media (min-width:1100px){
  /* la columna derecha no debe crecer por el contenido */
  .chat{
    max-height: calc(100vh - 190px); /* ajusta si quieres */
    min-height: 520px;              /* lo que ya tenías */
  }

  /* el body del chat es el que scrollea */
  .chatBody{
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* En general: si hay mucho texto, que el bubble no rompa el layout */
.bubble{
  overflow-wrap: anywhere;
}

/* Scrollbar acorde al tema */
.chatBody{
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(34,197,94,.35) rgba(255,255,255,.05);
}

.chatBody::-webkit-scrollbar{
  width: 10px;
}
.chatBody::-webkit-scrollbar-track{
  background: rgba(255,255,255,.05);
  border-left: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
}
.chatBody::-webkit-scrollbar-thumb{
  background: rgba(34,197,94,.30);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 999px;
}
.chatBody::-webkit-scrollbar-thumb:hover{
  background: rgba(34,197,94,.45);
}
/* Que los <a> no se vean como links feos */
a{
  color: inherit;
  text-decoration: none;
}

/* Por si un <a> usa clases de botón */
a.btn, a.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* PAGE HEAD */
.pageHead{
  margin-top: 10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.pageTitle h1{
  margin:0;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing:.2px;
}
.subtitle{
  margin:6px 0 0;
  color: var(--muted);
  font-weight:800;
  letter-spacing:.04em;
}

.pageActions{
  display:flex;
  gap:12px;
  align-items:stretch;
  flex-wrap:wrap;
}

.pointsPill{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width: 170px;
}
.pointsLabel{
  color: var(--muted2);
  font-weight:900;
  font-size: 11px;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.pointsValue{
  margin-top:6px;
  font-weight:1000;
  font-size: 18px;
}
.pointsValue span{color: var(--text);}

.sortBox{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width: 170px;
}
.sortLabel{
  color: var(--muted2);
  font-weight:900;
  font-size: 11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.sortSelect{
  width:100%;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,24,45,.55);
  color: var(--text);
  padding: 10px 10px;
  font-weight: 900;
  outline: none;
}

/* Cards list */
.cardsWrap{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Jornada Card (similar al ejemplo) */
.roundCard{
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(18, 32, 60, .70), rgba(12, 24, 45, .86));
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  text-decoration:none;
  transition: transform .12s ease, border-color .12s ease;
}
.roundCard:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.roundCard:active{ transform: translateY(0); }

.roundCard::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(700px 220px at 10% 0%, rgba(34,197,94,.10), transparent 62%);
  opacity:.90; pointer-events:none;
}
.roundCard > *{ position:relative; }

.rcTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.rcTitle{
  font-weight: 1000;
  letter-spacing:.2px;
  font-size: 16px;
  margin:0;
}
.rcDate{
  color: rgba(234,242,255,.82);
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
  opacity:.95;
}

.rcMid{
  margin-top: 6px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.rcLeft{
  min-width:0;
}
.rcRival{
  margin:0;
  font-weight: 950;
  font-size: 16px;
  letter-spacing:.15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rcMeta{
  margin-top: 4px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color: var(--muted);
  font-weight: 850;
}
.tag{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  letter-spacing:.02em;
}
.tag.loc{ border-color: rgba(34,197,94,.25); }
.tag.vis{ border-color: rgba(147,197,253,.20); }

.rcRight{
  text-align:right;
  flex: 0 0 auto;
  min-width: 120px;
}
.rcScore{
  font-weight:1000;
  font-size: 18px;
  letter-spacing:.4px;
}
.rcPts{
  margin-top: 2px;
  font-weight: 950;
  font-size: 14px;
  opacity:.95;
}
.rcPts.good{ color: color-mix(in srgb, var(--good) 75%, white); }
.rcPts.zero{ color: rgba(234,242,255,.55); }

.rcBottom{
  margin-top: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.rcClub{
  color: rgba(234,242,255,.70);
  font-weight: 850;
  font-size: 13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.state{
  font-weight: 950;
  font-size: 12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.85;
}
.state.edit{ color: rgba(234,242,255,.78); }
.state.lock{ color: rgba(250,204,21,.78); }
.state.none{ color: rgba(234,242,255,.55); }

/* estado visual en el borde */
.roundCard[data-status="done"]{ opacity: .92; }
.roundCard[data-status="pending"]{ border-color: rgba(34,197,94,.18); }
.roundCard[data-status="none"]{ opacity: .80; }

/* Responsive */
@media (max-width:520px){
  .rcDate{ font-size: 12px; }
  .rcRight{ min-width: 92px; }
  .rcScore{ font-size: 16px; }
  .rcPts{ font-size: 13px; }
}
/* ===== Jornadas: ajustes verdes (mínimos) ===== */

/* Título "Jornada X" en verde */
.rcTitle{
  color: rgba(34,197,94,.95);
}

/* Estado Editable en verde (mismo tono dashboard) */
.state.edit{
  color: rgba(34,197,94,.95);
}

/* Puntos de la jornada (+X pts) en verde */
.rcPts.good{
  color: rgba(34,197,94,.95);
}

/* Opcional: que el cero quede más apagado */
.rcPts.zero{
  color: rgba(234,242,255,.55);
}
.roundCard::before{
  background: radial-gradient(700px 260px at 20% 5%, rgba(34,197,94,.16), transparent 62%);
}

/* ===== Page transitions (simple & elegant) ===== */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior:auto !important; }
}

/* Micro animación para cards al entrar */
.staggerIn > *{
  animation: cardIn 260ms ease-out both;
}
.staggerIn > *:nth-child(1){ animation-delay: 0ms; }
.staggerIn > *:nth-child(2){ animation-delay: 25ms; }
.staggerIn > *:nth-child(3){ animation-delay: 50ms; }
.staggerIn > *:nth-child(4){ animation-delay: 75ms; }
.staggerIn > *:nth-child(5){ animation-delay: 100ms; }
.staggerIn > *:nth-child(6){ animation-delay: 125ms; }
.staggerIn > *:nth-child(7){ animation-delay: 150ms; }
.staggerIn > *:nth-child(8){ animation-delay: 175ms; }
@keyframes cardIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ================================
   Matchday detail (Jornada detalle)
   ================================ */

.bgFixed{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(34,197,94,.14), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(34,197,94,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  transform: translateZ(0);
}

/* Header página */
.pageHeader{
  margin-top: 10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.pageTitle{
  margin:0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 1000;
  letter-spacing:.2px;
}
.pageSub{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color: var(--muted);
  font-weight: 850;
}
.backLink{
  color: rgba(234,242,255,.86);
  text-decoration:none;
  border-bottom: 1px dashed rgba(234,242,255,.25);
}
.backLink:hover{ border-bottom-color: rgba(34,197,94,.55); }
.dot{opacity:.55}
.statePill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(234,242,255,.84);
  font-size: 12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.pageRight{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Botones */
.lockBtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 950;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.lockBtn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.lockDot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 0 7px rgba(34,197,94,.10);
}

.saveBtn{
  border:1px solid rgba(34,197,94,.45);
  background: rgba(34,197,94,.14);
  color: #c9f7d8;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 1000;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.saveBtn:hover{ transform: translateY(-1px); border-color: rgba(34,197,94,.62); }
.saveBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

/* Card genérica “panel” (misma estética) */
.panelCard{
  margin-top: 14px;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 32, 60, .70), rgba(12, 24, 45, .86));
  box-shadow: var(--shadow);
  padding: 16px;
  position:relative;
  overflow:hidden;
}
.panelCard::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(900px 240px at 15% 0%, rgba(34,197,94,.10), transparent 62%);
  opacity:.9; pointer-events:none;
}
.panelCard > *{position:relative}

.panelHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
  flex-wrap:wrap;
}
.panelHead h2{
  margin:0;
  font-size: 16px;
  letter-spacing:.2px;
  font-weight: 950;
}

/* Puntos */
.pointsCard{
  margin-top: 14px;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 32, 60, .70), rgba(12, 24, 45, .86));
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  position:relative;
  overflow:hidden;
}
.pointsCard::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(800px 240px at 10% 0%, rgba(34,197,94,.12), transparent 62%);
  opacity:.90; pointer-events:none;
}
.pointsCard > *{position:relative}

.pointsKicker{
  color: var(--muted2);
  font-weight: 900;
  font-size: 11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.pointsBig{
  margin-top: 6px;
  font-weight: 1000;
  font-size: 26px;
}
.pointsBig span{ color: var(--text);}
.pointsBreak{
  margin-top: 4px;
  color: rgba(234,242,255,.70);
  font-weight: 850;
  font-size: 13px;
}

.pointsRight{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.mini{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 130px;
}
.miniK{
  color: var(--muted2);
  font-weight: 900;
  font-size: 10px;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.miniV{
  margin-top: 6px;
  font-weight: 1000;
  font-size: 16px;
}

/* Two columns Datos + Foto */
.twoCol{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 980px){
  .twoCol{ grid-template-columns: 1.45fr 0.85fr; }
  .twoCol .panelCard{ margin-top: 0; }
}

/* Form grid */
.formGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width:900px){
  .formGrid{ grid-template-columns: 1fr 1fr 1fr; }
}
.field label{
  display:block;
  margin-bottom: 6px;
  color: rgba(234,242,255,.76);
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.field input,
.field select{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,24,45,.55);
  color: var(--text);
  padding: 12px 12px;
  font-weight: 900;
  outline: none;
}
.field input:disabled,
.field select:disabled{
  opacity:.60;
  cursor:not-allowed;
}

/* Foto */
.photoCard{ display:flex; flex-direction:column; }
.photoBox{
  width:100%;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(255,255,255,.02);
  padding: 0;
  cursor:pointer;
  overflow:hidden;
  position:relative;
  min-height: 220px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.photoBox:hover{
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.30);
}
.photoBox:disabled{
  opacity:.70;
  cursor:not-allowed;
}
.photoEmpty{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding: 18px;
  min-height: 220px;
  color: rgba(234,242,255,.78);
}
.photoIcon{
  width:44px; height:44px;
  border-radius: 14px;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 20px;
}
.photoTitle{ font-weight:1000; font-size: 16px; }
.photoSub{
  margin-top:4px;
  color: rgba(234,242,255,.65);
  font-weight: 850;
  font-size: 13px;
}
.photoImg{
  width:100%;
  height: 100%;
  object-fit: cover;
  display:none;
}
.photoActions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.ghostBtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(234,242,255,.90);
  padding: 11px 12px;
  border-radius: 14px;
  font-weight: 950;
  cursor:pointer;
}
.ghostBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Chips selectable */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chipSel{
  position:relative;
  display:inline-flex;
}
.chipSel input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.chipSel span{
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-weight: 900;
  font-size: 13px;
  color: rgba(234,242,255,.88);
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.chipSel input:checked + span{
  border-color: rgba(34,197,94,.55);
  background: rgba(34,197,94,.14);
  box-shadow: 0 0 0 6px rgba(34,197,94,.08);
  color: #c9f7d8;
}
.chipSel input:focus-visible + span{
  outline: 2px solid rgba(147,197,253,.55);
  outline-offset: 2px;
}

/* Courts */
.courts{display:flex;flex-direction:column;gap:12px;}
.courtCard{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 14px;
}
.courtTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.courtTitle{font-weight: 1000;font-size: 15px;letter-spacing:.2px;}
.courtStatus{
  font-weight: 950;
  font-size: 12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.9;
}
.courtStatus.win{ color: rgba(34,197,94,.95); }
.courtStatus.loss{ color: rgba(239,68,68,.95); }
.courtStatus.pending{ color: rgba(234,242,255,.60); }

.playersRow{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width:700px){
  .playersRow{ grid-template-columns: 1fr 1fr; }
}
.selectWrap label{
  display:block;
  margin-bottom: 6px;
  color: rgba(234,242,255,.76);
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.selectWrap select{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,24,45,.55);
  color: var(--text);
  padding: 12px 12px;
  font-weight: 900;
  outline: none;
}
.selectWrap select:disabled{opacity:.60;cursor:not-allowed;}

.setsBlock{margin-top:12px;}
.setsGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width:900px){
  .setsGrid{ grid-template-columns: repeat(3, 1fr); }
}
.setCard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 10px;
}
.setLabel{
  color: rgba(234,242,255,.60);
  font-weight: 900;
  font-size: 11px;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.scoreRow{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap:8px;
}
.scoreRow input{
  width: 64px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,24,45,.55);
  color: var(--text);
  padding: 10px 10px;
  font-weight: 1000;
  text-align:center;
  outline:none;
}
.scoreRow input:disabled{opacity:.55;cursor:not-allowed;}
.dash{opacity:.65;font-weight:1000;}

/* Locked (se activa si quieres añadir class="locked" al body o wrapper) */
.locked .lockDot{
  background: rgba(250,204,21,.95);
  box-shadow: 0 0 0 7px rgba(250,204,21,.10);
}
.locked .lockBtn{
  border-color: rgba(250,204,21,.30);
  background: rgba(250,204,21,.08);
}
/* ===== Fondo fijo global (para TODAS las vistas) ===== */

html, body { height: 100%; }

body{
  margin:0;
  background: transparent !important; /* el fondo vive en .bgFixed */
}

/* Fondo fijo */
.bgFixed{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(34,197,94,.14), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(34,197,94,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  transform: translateZ(0);
}
/* ===== Fix título jornada detalle ===== */
.pageHeader .pageTitle{
  display: inline-block;   /* evita comportamiento flex heredado */
  gap: 0;
}
.pageHeader{
  align-items: center;
}

.pageTitle{
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 1000;
}
/* =========================
   TITLES SYSTEM (GLOBAL)
   ========================= */

/* Título principal de página (Dashboard / Jornadas / Jornada X / Jugadores / etc.) */
.pageTitle h1,
h1.pageTitle,
.pageTitle{
  margin: 0 0 12px; /* separa del contenido */
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 1000;
  letter-spacing: .2px;
  line-height: 1.1;
}

/* Subtítulo bajo el h1 si existe */
.pageTitle .subtle,
.pageTitle .subtitle,
.subtle,
.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

/* Títulos de secciones dentro de cards/panels */
.panelHead h2,
.cardTitle,
h2{
  margin: 0 0 12px; /* separación consistente */
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1.2;
}

/* Si alguna sección usa h3 */
h3{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .15px;
}
/* =========================================================
   JUGADORES
========================================================= */

/* Header consistente */
.pageH1{
  margin: 12px 0 22px;
  font-size: clamp(28px, 2.7vw, 38px);
  letter-spacing:.2px;
  font-weight: 1000;
}

/* Grid */
.playersGrid{
  display:grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px){
  .playersGrid{ grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px){
  .playersGrid{ grid-template-columns: 1fr 1fr 1fr; }
}

/* Card */
.playerCard{
  display:block;
  text-decoration:none;
  color:inherit;
}

.playerCardInner{
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background: linear-gradient(
    180deg,
    rgba(18,32,60,.78),
    rgba(12,24,45,.86)
  );
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  overflow:hidden;
  position:relative;
  padding:18px;
  transition: transform .15s ease, border-color .15s ease;
}

/* Glow verde igual que dashboard */
.playerCardInner::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(
    700px 260px at 20% 5%,
    rgba(34,197,94,.16),
    transparent 62%
  );
  pointer-events:none;
  opacity:.9;
}

.playerCardInner > *{
  position:relative;
}

.playerCard:hover .playerCardInner{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.20);
}

.playerCard:active .playerCardInner{
  transform: translateY(0);
}

/* Layout lateral */
.layoutRight{
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:stretch;
}

.leftContent{
  flex:1 1 auto;
  min-width:0;
}

/* Nombre */
.playerName{
  margin:0;
  font-weight:1000;
  font-size:19px;
  letter-spacing:.2px;
}

.playerName.oneLine{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Meta */
.metaRow{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(234,242,255,.65);
  font-weight:850;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.lic{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

/* Stats */
.statsRow{
  margin-top:16px;
  display:flex;
  gap:12px;
}

.miniStat{
  flex:1;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:10px 12px;
}

.miniStat .k{
  color: rgba(234,242,255,.50);
  font-weight:850;
  font-size:10px;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.miniStat .v{
  margin-top:6px;
  font-weight:1000;
  font-size:15px;
}

/* ===== EFICACIA LATERAL ===== */

.effSide{
  flex:0 0 100px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid rgba(255,255,255,.08);
  position:relative;
}

/* Glow vertical */
.effSide::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--eff) 14%, transparent),
    transparent 70%
  );
  pointer-events:none;
  opacity:.6;
}

.effBig{
  position:relative;
  font-size:30px;
  font-weight:1000;
  letter-spacing:.4px;
  color: color-mix(in srgb, var(--eff) 78%, white);
  text-shadow: 0 0 18px color-mix(in srgb, var(--eff) 30%, transparent);
}

.effBig span{
  font-size:14px;
  font-weight:900;
  margin-left:2px;
  opacity:.9;
}

/* Responsive */
@media (max-width:520px){

  .layoutRight{
    flex-direction:column;
  }

  .effSide{
    border-left:none;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:14px;
    margin-top:14px;
    flex:0 0 auto;
  }

  .effBig{
    font-size:24px;
  }

  .statsRow{
    flex-direction:column;
  }
}

/* ===== Mobile compact players ===== */
@media (max-width: 520px){

  .playerCardInner{
    padding: 14px;
  }

  .playerName{
    font-size:16px;
  }

  .statsRow{
    gap:8px;
  }

  .miniStat{
    padding:8px 8px;
  }

  .miniStat .v{
    font-size:13px;
  }

  .effSide{
    flex:0 0 70px;
  }

  .effBig{
    font-size:20px;
  }

  .effBig span{
    font-size:11px;
  }

}
/* ===== Players específicos ===== */

.playerCard .rcTitle{
  color: var(--text); /* blanco como en jornadas */
}

.playerCard .rcScore{
  font-size: 20px;
  color: rgba(34,197,94,.95); /* verde principal */
}

.playerCard .rcPts{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* ===== Eficacia dinámica ===== */

.effGood{
  color: rgba(34,197,94,.95);
  text-shadow: 0 0 18px rgba(34,197,94,.25);
}

.effWarn{
  color: rgba(250,204,21,.95);
  text-shadow: 0 0 18px rgba(250,204,21,.25);
}
/* ===== Eficacia dinámica (forzar sobre estilos previos) ===== */

/* si rcScore tiene color por defecto, lo neutralizamos */
.rcScore{
  color: rgba(234,242,255,.92);
}

/* ahora sí aplicamos el color según clase */
.rcScore.effGood,
.effGood{
  color: rgba(34,197,94,.95) !important;
  text-shadow: 0 0 18px rgba(34,197,94,.25);
}

.rcScore.effWarn,
.effWarn{
  color: rgba(250,204,21,.95) !important;
  text-shadow: 0 0 18px rgba(250,204,21,.25);
}
/* Colores dinámicos en jornadas del jugador */

.jourCard.win{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.06);
}

.jourCard.loss{
  border-color: rgba(250,204,21,.35);
  background: rgba(250,204,21,.06);
}
/* =========================================================
   PLAYER DETAIL PAGE
   (encapsulado para no afectar otras vistas)
========================================================= */

.playerDetailPage .heroCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(18,32,60,.78), rgba(12,24,45,.88));
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  padding:18px;
  margin-top:14px;
  position:relative;
  overflow:hidden;
}

.playerDetailPage .heroCard::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(900px 280px at 20% 0%, rgba(34,197,94,.13), transparent 62%);
  pointer-events:none;
  opacity:.95;
}

.playerDetailPage .heroMain{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}

.playerDetailPage .playerName{
  margin:0;
  font-weight:1000;
  font-size:clamp(20px,2vw,28px);
  line-height:1.15;
}

.playerDetailPage .subRow{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:rgba(234,242,255,.70);
  font-weight:800;
}

.playerDetailPage .chip{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  width:fit-content;
}

/* ---- EFICACIA ---- */

.playerDetailPage .heroRight{
  min-width:120px;
  text-align:right;
  position:relative;
}

.playerDetailPage .heroRight::before{
  content:"";
  position:absolute;
  inset:-12px;
  background: radial-gradient(circle at 70% 50%,
    color-mix(in srgb, var(--eff) 14%, transparent),
    transparent 75%);
  opacity:.4;
  pointer-events:none;
}

.playerDetailPage .effLabel{
  font-size:11px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(234,242,255,.50);
}

.playerDetailPage .effBig{
  font-weight:1000;
  font-size:42px;
  margin-top:6px;
  line-height:1;
  color: color-mix(in srgb, var(--eff) 80%, white);
  text-shadow: 0 0 14px color-mix(in srgb, var(--eff) 18%, transparent);
}

.playerDetailPage .effBig span{
  font-size:16px;
  font-weight:900;
  margin-left:4px;
}

/* ---- PANEL STATS ---- */

.playerDetailPage .panelCard{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(18,32,60,.70), rgba(12,24,45,.86));
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  padding:16px;
  position:relative;
  overflow:hidden;
}

.playerDetailPage .panelCard::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(900px 240px at 15% 0%, rgba(34,197,94,.10), transparent 62%);
  pointer-events:none;
  opacity:.9;
}

.playerDetailPage .panelHead h2{
  margin:0;
  font-size:16px;
  font-weight:950;
}

/* ---- TABLA ---- */

.playerDetailPage .tableWrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.playerDetailPage .statsTable{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}

.playerDetailPage .statsTable thead th{
  text-align:left;
  padding:12px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(234,242,255,.75);
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.playerDetailPage .statsTable tbody td{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-weight:800;
  color:rgba(234,242,255,.86);
}

.playerDetailPage .statsTable tbody tr:last-child td{
  border-bottom:none;
}

/* ---- JORNADAS ---- */

.playerDetailPage .jornadasGrid{
  display:grid;
  gap:12px;
  grid-template-columns:1fr;
}

@media (min-width:900px){
  .playerDetailPage .jornadasGrid{
    grid-template-columns:1fr 1fr;
  }
}

.playerDetailPage .jourCard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:16px;
  padding:14px;
  transition: transform .12s ease, border-color .12s ease;
}

.playerDetailPage .jourCard:hover{
  transform:translateY(-1px);
  border-color: rgba(255,255,255,.18);
}

.playerDetailPage .jourTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.playerDetailPage .jourTitle{
  font-weight:950;
}

.playerDetailPage .badge{
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.playerDetailPage .badge.win{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.12);
  color:#c9f7d8;
}

.playerDetailPage .badge.loss{
  border-color: rgba(250,204,21,.45);
  background: rgba(250,204,21,.10);
  color:#ffeaa7;
}
/* =========================================================
   PLAYER DETAIL – REFINES VERDES
========================================================= */

/* --- Cápsula licencia con toque verde --- */
.playerDetailPage .chip{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.08);
  color: #c9f7d8;
  box-shadow: 0 0 0 4px rgba(34,197,94,.06);
}


/* --- Títulos de la tabla en verde --- */
.playerDetailPage .statsTable thead th{
  color: #7ee7b1;
}


/* --- Resaltar columna TOTAL sin saturar --- */
.playerDetailPage .statsTable tbody td:last-child{
  font-weight: 1000;
  position: relative;
}

.playerDetailPage .statsTable tbody td:last-child::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background: linear-gradient(
    90deg,
    rgba(34,197,94,.0),
    rgba(34,197,94,.55),
    rgba(34,197,94,.0)
  );
  opacity:.7;
}


/* --- Título de las jornadas en verde --- */
.playerDetailPage .jourTitle{
  color: #7ee7b1;
}


/* --- Micro detalle elegante en hover de jornada --- */
.playerDetailPage .jourCard:hover .jourTitle{
  text-shadow: 0 0 10px rgba(34,197,94,.25);
}

/* =========================================================
   LOGIN (namespaced) — pegar al final de styles.css
========================================================= */

.loginPage{
  min-height:100%;
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text, #eaf2ff);
  background: transparent; /* el fondo lo pone .bgFixed */
}

/* Contenedor centrado */
.loginContainer{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* Card (más grande) */
.loginCard{
  width:100%;
  max-width:480px;
  background: linear-gradient(180deg, rgba(18, 32, 60, .82), rgba(12, 24, 45, .92));
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  padding:50px 40px;
  text-align:center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* Logo */
.loginLogoWrap{
  display:flex;
  justify-content:center;
  margin-bottom:26px;
}

.loginLogoCircle{
  width:130px;
  height:130px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(34,197,94,.40), transparent 60%),
    rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 0 0 10px rgba(34,197,94,.08);
  overflow:hidden;
}

.loginLogoCircle img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Text */
.loginTitle{
  margin:0;
  font-size:22px;
  letter-spacing:.08em;
}

.loginSubtitle{
  margin:8px 0 26px;
  font-size:12px;
  color: rgba(234,242,255,.60);
  letter-spacing:.10em;
  text-transform:uppercase;
}

/* Form */
.loginForm{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.loginInputGroup{
  position:relative;
}

.loginInputGroup input{
  width:100%;
  height:56px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(234,242,255,.95);
  padding:0 54px 0 16px;
  font-size:15px;
  font-weight:750;
  outline:none;
  transition:border-color .2s ease, transform .2s ease;
}

.loginInputGroup input:focus{
  border-color: rgba(34,197,94,.60);
  transform:translateY(-1px);
}

.loginInputGroup input::placeholder{
  color: rgba(234,242,255,.35);
}

.loginToggle{
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  display:grid;
  place-items:center;
  color: rgba(234,242,255,.85);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}

.loginToggle:hover{
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
  transform:translateY(-50%) scale(1.03);
}

.loginToggle:active{
  transform:translateY(-50%) scale(0.98);
}

/* Flash */
.loginFlash{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
  text-align:left;
}

.loginFlashItem{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:10px 12px;
  font-weight:850;
  color: rgba(234,242,255,.90);
}

.loginFlashItem.ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
  color:#c9f7d8;
}

.loginFlashItem.error{
  border-color: rgba(250,204,21,.35);
  background: rgba(250,204,21,.10);
  color: rgba(234,242,255,.92);
}

/* Button */
.loginBtn{
  width:100%;
  height:56px;
  border-radius:16px;
  border:1px solid rgba(34,197,94,.50);
  background: rgba(34,197,94,.15);
  color:#c9f7d8;
  font-weight:950;
  letter-spacing:.07em;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.loginBtn:hover{
  transform:translateY(-1px);
  background: rgba(34,197,94,.20);
  border-color: rgba(34,197,94,.70);
}

.loginBtn:active{ transform:translateY(0); }
.loginBtn:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.loginLoader{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.30);
  border-top-color: rgba(255,255,255,.95);
  display:none;
  animation: loginSpin .8s linear infinite;
}

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

.loginBtn.loading .loginLoader{ display:block; }
.loginBtn.loading .loginBtnText{ opacity:.72; }

/* Mobile */
@media (max-width:520px){
  .loginCard{
    padding:38px 18px;
    border-radius:20px;
  }
  .loginLogoCircle{
    width:112px;
    height:112px;
  }
}
.logo{
  width:42px;
  height:42px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

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

/* =========================================================
   PLAYER DETAIL – FIXES (mobile + total first + clickable)
   Pegar al final de styles.css
========================================================= */

/* -------- HERO: evitar corte de eficacia en móviles estrechos -------- */

/* En tu CSS actual hay min-width en .heroRight; lo neutralizamos en móvil
   y apilamos el hero para que siempre quepa. */
@media (max-width: 420px){
  .playerDetailPage .heroMain{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .playerDetailPage .heroRight{
    min-width: 0;        /* clave: quita el mínimo que empuja fuera */
    width: 100%;
    text-align: left;
  }

  .playerDetailPage .effBig{
    font-size: clamp(34px, 10vw, 46px); /* nunca se corta */
  }

  .playerDetailPage .effBig span{
    font-size: 14px;
  }
}

/* -------- STATS: cards en móvil + tabla en desktop -------- */

/* Cards: por defecto ocultas (desktop usa tabla) */
.playerDetailPage .statsCards{
  display: none;
  gap: 12px;
}

/* Card individual */
.playerDetailPage .statCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px;
  background: rgba(255,255,255,.03);
}

/* Top: nombre + total destacado */
.playerDetailPage .statTop{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.playerDetailPage .statName{
  font-weight:950;
  color: var(--text);
}

.playerDetailPage .statTotal{
  font-weight:1000;
  font-size:20px;
  line-height:1;
}

/* Bottom: local / visitante */
.playerDetailPage .statBottom{
  margin-top:10px;
  display:flex;
  gap:10px;
}

.playerDetailPage .statMini{
  flex:1 1 0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 10px;
  background: rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color: var(--muted);
  font-weight:850;
}

.playerDetailPage .statMini span{
  font-size:12px;
  color: var(--muted2);
  font-weight:900;
  letter-spacing:.06em;
  text-transform: uppercase;
}

.playerDetailPage .statMini strong{
  color: var(--text);
  font-weight:1000;
}

/* Móvil: mostrar cards y ocultar tabla para evitar scroll “invisible” */
@media (max-width: 640px){
  .playerDetailPage .statsCards{ display: grid; }
  .playerDetailPage .statsTableWrap{ display: none; }
}

/* -------- Resaltado de TOTAL en tabla (ahora es la 2ª columna) -------- */
/* Tu CSS actual resalta last-child; eso ya no vale.
   Reforzamos el resaltado sobre la columna 2 (TOTAL). */
.playerDetailPage .statsTable tbody td:nth-child(2){
  font-weight: 1000;
  position: relative;
}

.playerDetailPage .statsTable tbody td:nth-child(2)::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background: linear-gradient(
    90deg,
    rgba(34,197,94,.0),
    rgba(34,197,94,.55),
    rgba(34,197,94,.0)
  );
  opacity:.7;
}

/* -------- Jornadas: link clicable con focus visible -------- */
.playerDetailPage .jourCardLink{
  display:block;
  color: inherit;
  text-decoration: none;
}

.playerDetailPage .jourCardLink:focus-visible{
  outline: 2px solid rgba(234,242,255,.35);
  outline-offset: 4px;
  border-radius: 16px;
}

/* =========================================================
   PLAYER DETAIL – HERO: eficacia nunca se corta (FIX)
   Pegar al final de styles.css
========================================================= */

/* 1) Asegura que el bloque izquierdo pueda encoger y no empuje a la derecha */
.playerDetailPage .heroLeft{
  flex: 1 1 auto;
  min-width: 0; /* CLAVE para que el texto no rompa el flex */
}

/* 2) Permite que el hero pueda "wrappear" si hace falta (sin recortar) */
.playerDetailPage .heroMain{
  flex-wrap: wrap;
}

/* 3) Evita mínimos peligrosos en la eficacia */
.playerDetailPage .heroRight{
  min-width: 0;           /* anula el min-width:120 que tienes antes */
  flex: 0 0 auto;
}

/* 4) En móvil real (hasta 560px), apila siempre: nombre arriba + eficacia abajo */
@media (max-width: 560px){
  .playerDetailPage .heroMain{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .playerDetailPage .heroRight{
    width: 100%;
    text-align: left;
  }

  .playerDetailPage .effBig{
    font-size: clamp(32px, 10vw, 46px); /* nunca se sale */
  }

  .playerDetailPage .effBig span{
    font-size: 14px;
  }
}
/* =========================================================
   MATCHDAY DETAIL – edit with key (no lock visuals)
   Pegar al final de styles.css
========================================================= */

.editBtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 950;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.editBtn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.20); }
.editBtn:active{ transform: translateY(0); }

/* =========================================================
   MATCHDAYS LIST – puntos más grandes (cards)
   (esto no quita el texto "Editable/Bloqueada": eso es en el HTML)
========================================================= */

.roundCard .rcPts{
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: .06em;
}

@media (max-width:520px){
  .roundCard .rcPts{
    font-size: 15px;
  }
}

/* Jornadas list: puntos más protagonistas */
.roundCard .rcPts{
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: .06em;
}
.roundCard .rcScore{
  font-size: 20px;
}
@media (max-width:520px){
  .roundCard .rcPts{ font-size: 15px; }
  .roundCard .rcScore{ font-size: 18px; }
}

/* =========================================================
   MATCHDAY DETAIL – modo lectura SIN oscurecer (pero no editable)
   Pegar al final de styles.css
========================================================= */

.matchdayDetailPage input:disabled,
.matchdayDetailPage select:disabled,
.matchdayDetailPage textarea:disabled{
  opacity: 1 !important;
  color: rgba(234,242,255,.92) !important;
  -webkit-text-fill-color: rgba(234,242,255,.92) !important;
  background: rgba(12,24,45,.55) !important; /* mismo look */
  cursor: default;
}

/* chips / checkboxes: que no parezcan “apagados” */
.matchdayDetailPage .chipSel input:disabled + span{
  opacity: 1 !important;
}

/* Foto: no bajar opacidad en modo lectura */
.matchdayDetailPage .photoBox:disabled{
  opacity: 1 !important;
  cursor: default;
}

/* Botón quitar foto y otros disabled: sin “apagado” visual (sigue disabled) */
.matchdayDetailPage .ghostBtn:disabled{
  opacity: 1 !important;
  cursor: default;
}

/* Guardar sí queremos que se note que no está activo */
.matchdayDetailPage .saveBtn:disabled{
  opacity: .55 !important;
  cursor: not-allowed;
}

/* =========================================================
   Matchday detail — FIX checkbox gris sobre chips
   (forzamos a ocultar el checkbox nativo incluso en disabled)
========================================================= */

.matchdayDetailPage .chipSel{
  position: relative;
  display: inline-flex;
}

/* El input NO debe verse NUNCA (ni disabled, ni enabled) */
.matchdayDetailPage .chipSel > input[type="checkbox"]{
  -webkit-appearance: none !important;
  appearance: none !important;

  position: absolute !important;
  inset: 0 !important;

  /* clave: aunque haya reglas globales de disabled, esto gana */
  opacity: 0 !important;

  /* sin caja visible */
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;

  /* mantiene click a través del label cuando está enabled */
  cursor: pointer;
}

/* Si tu CSS global pone pointer-events o similares, forzamos */
.matchdayDetailPage .chipSel > input[type="checkbox"]:disabled{
  opacity: 0 !important;
}

/* (Opcional pero recomendado) que el chip no parezca “apagado” por disabled */
.matchdayDetailPage .chipSel > input[type="checkbox"]:disabled + span{
  opacity: 1 !important;
  filter: none !important;
}
/* ========================= */
/* Matchday Detail - Fix móvil */
/* ========================= */

/* 1️⃣ Evitar que el grid fuerce 2 columnas en móvil */
@media (max-width: 640px){
  .matchdayDetailPage .formGrid{
    grid-template-columns: 1fr !important;
  }
}

/* 2️⃣ Permitir que los campos reduzcan tamaño real */
.matchdayDetailPage .formGrid .field{
  min-width: 0; /* MUY IMPORTANTE */
}

/* 3️⃣ Hacer que los inputs nunca se salgan */
.matchdayDetailPage .formGrid input,
.matchdayDetailPage .formGrid select{
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 4️⃣ Asegurar que el panel no permita overflow lateral */
.matchdayDetailPage .panelCard{
  overflow: hidden;
}
.matchdayDetailPage input[type="date"],
.matchdayDetailPage input[type="time"]{
  appearance: none;
}