/* BetsTalent — tema oscuro premium. Paleta derivada del logo (cyan #00a8e8). */
:root {
  --bg: #0a0e16;
  --bg2: #0d1320;
  --surface: #121a2b;
  --surface2: #18223a;
  --border: #243049;
  --text: #e8eef7;
  --muted: #8da3c0;
  --cyan: #00a8e8;
  --cyan-d: #0089c2;
  --blue: #2f6bff;
  --green: #1fc77d;
  --green-bg: rgba(31, 199, 125, .12);
  --red: #ff5d73;
  --red-bg: rgba(255, 93, 115, .12);
  --amber: #f6b13d;
  --amber-bg: rgba(246, 177, 61, .12);
  --gold: #e7c14b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --maxw: 1180px;
}

/* ===== TEMA CLARO (modo día). El oscuro sigue siendo el de por defecto. ===== */
html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg2: #eef2f8;
  --surface: #ffffff;
  --surface2: #eef2f8;
  --border: #dfe6f0;
  --text: #0f1726;
  --muted: #5a6b85;
  --cyan: #0089c2;
  --cyan-d: #006e9c;
  --blue: #2f6bff;
  --green: #0f9e60;
  --green-bg: rgba(15, 158, 96, .12);
  --red: #e23a52;
  --red-bg: rgba(226, 58, 82, .12);
  --amber: #c77f12;
  --amber-bg: rgba(199, 127, 18, .14);
  --gold: #b8923a;
  --shadow: 0 8px 30px rgba(15, 23, 38, .10);
}
/* Overrides puntuales para colores hardcodeados que no siguen variables */
html[data-theme="light"] body { background: radial-gradient(1200px 600px at 70% -10%, #e3f0ff 0%, var(--bg) 55%) no-repeat, var(--bg); }
html[data-theme="light"] .site-header { background: rgba(246, 248, 252, .82); }
html[data-theme="light"] .hero-points li,
html[data-theme="light"] .plan li,
html[data-theme="light"] .reason { color: #3a4a63; }
html[data-theme="light"] .band { background: linear-gradient(135deg, #eef3fb, #e3ebf7); color: var(--text); }
html[data-theme="light"] .card:hover { border-color: #c5cfd9; }
html[data-theme="light"] #bt-tip { background: #fff; color: #0f1726; border-color: #dfe6f0; }
html[data-theme="light"] .cookie-banner { background: rgba(255, 255, 255, .97); }
/* Logo: versión blanca en oscuro, a color en claro */
.brand .logo-light { display: none; }
html[data-theme="light"] .brand .logo-dark { display: none; }
html[data-theme="light"] .brand .logo-light { display: block; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #16243f 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
/* Buscador de estadísticas: aprovechar (casi) todo el ancho de la pantalla para la rejilla */
.wrap.wrap-wide { max-width: min(1880px, calc(100vw - 36px)); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand img { height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 14px; transition: .15s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.lang a { padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang a.active { background: var(--cyan); color: #04121d; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 6px 18px rgba(0, 124, 200, .35); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface2); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { filter: brightness(1.07); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* Hero */
.hero { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--cyan), #6fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #cdd9ec; font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 900; }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 820px; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Sport tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs a { padding: 9px 16px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a.active { background: var(--cyan); border-color: var(--cyan); color: #04121d; }

/* Cards grid (predictions / value) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  transition: .15s;
}
.card:hover { border-color: #33456b; transform: translateY(-2px); }
.card.value { border-color: rgba(231, 193, 75, .4); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.card-league { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.team { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }
.team .nm { display: flex; align-items: center; gap: 8px; }

/* Probability bar 1X2 */
.probbar { display: flex; height: 30px; border-radius: 9px; overflow: hidden; margin-bottom: 14px; font-size: 12px; font-weight: 800; }
.probbar span { display: flex; align-items: center; justify-content: center; color: #06121f; min-width: 26px; }
.probbar .ph { background: var(--cyan); }
.probbar .pd { background: #5b6b8c; color: #fff; }
.probbar .pa { background: #6fb6ff; }

/* Pick / pills */
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface2); border: 1px solid var(--border); }
.pill.main { background: linear-gradient(135deg, var(--green), #15a76a); color: #04121d; border: 0; }
.pill.main .conf-dot { background: #04121d; }
.pill.green { background: var(--green-bg); color: var(--green); border-color: rgba(31,199,125,.3); }
.pill.amber { background: var(--amber-bg); color: var(--amber); border-color: rgba(246,177,61,.3); }
.pill.value { background: rgba(231,193,75,.14); color: var(--gold); border-color: rgba(231,193,75,.4); }
.conf-dot { width: 8px; height: 8px; border-radius: 50%; }
.conf-alta { background: var(--green); } .conf-media { background: var(--amber); } .conf-baja { background: var(--muted); }
.reason { font-size: 13px; color: #bccadf; border-top: 1px solid var(--border); padding-top: 11px; margin-top: 2px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.odds-mini { display: flex; gap: 6px; }
.odds-mini b { background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 700; }

/* Stats table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.stats { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
table.stats th, table.stats td { padding: 10px 12px; text-align: center; white-space: nowrap; }
table.stats thead th { background: var(--bg2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; border-bottom: 1px solid var(--border); }
table.stats tbody tr { border-top: 1px solid var(--border); }
table.stats tbody tr:hover { background: var(--surface2); }
table.stats td.match { text-align: left; font-weight: 700; }
table.stats td.lg { text-align: left; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.diff-hi { color: var(--gold); font-weight: 800; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.tag.s1 { background: var(--cyan); color: #04121d; } .tag.s2 { background: #6fb6ff; color: #04121d; } .tag.sX { background: #5b6b8c; color: #fff; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters select, .filters input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-family: inherit;
}
.filters input { min-width: 220px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.plan.pro { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 20px 40px rgba(0,124,200,.18); position: relative; }
.plan .price { font-size: 40px; font-weight: 900; margin: 6px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 9px; color: #cdd9ec; font-size: 15px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 900; }
.badge-pop { position: absolute; top: -12px; right: 20px; background: var(--gold); color: #1a1404; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.how .num { width: 34px; height: 34px; border-radius: 10px; background: var(--cyan); color: #04121d; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Newsletter / CTA band */
.band { background: linear-gradient(135deg, #11203a, #0c1526); border: 1px solid var(--border); border-radius: 20px; padding: 30px; text-align: center; }
.news-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.news-form input { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 11px; min-width: 260px; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 50px; padding: 34px 0; color: var(--muted); font-size: 13px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.site-footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.disclaimer { border-top: 1px solid var(--border); padding-top: 16px; font-size: 12px; }

.plus18 { display: inline-block; border: 1px solid var(--muted); border-radius: 6px; padding: 1px 6px; font-weight: 800; font-size: 11px; }

/* Herramienta de estadísticas — filtros compactos min/máx */
.fbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; align-items: end; }
.fb { display: flex; flex-direction: column; gap: 3px; }
.fb label { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.fb select, .fb input { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 7px 9px; border-radius: 8px; font-size: 13px; font-family: inherit; width: 100%; }
.fb select:focus, .fb input:focus { outline: none; border-color: var(--cyan); }
.fb .mm { display: flex; gap: 5px; } .fb .mm input { width: 50%; padding: 7px 6px; text-align: center; }
.fb.fchk label { flex-direction: row; align-items: center; gap: 6px; text-transform: none; font-size: 13px; color: var(--text); cursor: pointer; }
.filter-count { font-size: 12px; margin-bottom: 12px; font-weight: 800; color: var(--cyan); }
.fav { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--amber); line-height: 1; padding: 0; }
.fav.on { filter: drop-shadow(0 0 4px rgba(246, 177, 61, .6)); }

/* Tabla estilo BetsTalent original: cada partido = local + visitante + TOTAL */
table.bt-table { width: auto; max-width: 100%; margin: 0 auto; border-collapse: collapse; font-size: 13px; min-width: 860px; }
table.bt-table thead th { background: var(--bg2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 8px; text-align: center; position: sticky; top: 0; border-bottom: 2px solid var(--border); }
table.bt-table tbody.mrow { border-bottom: 3px solid var(--bg); }
table.bt-table td { padding: 7px 8px; text-align: center; white-space: nowrap; border-top: 1px solid var(--border); }
table.bt-table .fecha, table.bt-table .lg, table.bt-table .odds, table.bt-table .ln { vertical-align: middle; }
table.bt-table td.fecha { text-align: center; }
table.bt-table .fecha .fdate { display: block; color: var(--cyan); font-weight: 700; margin-bottom: 8px; }
table.bt-table .lg { text-align: left; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.bt-table td.team { text-align: left; font-weight: 700; }
table.bt-table tr.rtotal td { color: var(--cyan); font-weight: 800; }
table.bt-table tr.rtotal td.team { letter-spacing: .03em; font-size: 11px; }
table.bt-table td.odds, table.bt-table td.ln { font-size: 12px; color: var(--muted); line-height: 1.55; }
table.bt-table td.odds b, table.bt-table td.ln b { color: var(--text); }
table.bt-table .diff-hi b { color: var(--gold); }

/* Página de detalle del partido */
.teams-link { display: block; color: inherit; }
.teams-link:hover .nm { color: var(--cyan); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: center; }
table.compare thead th { color: var(--muted); font-size: 12px; }
table.compare td:first-child, table.compare th:first-child { text-align: left; color: var(--muted); }
.odds-big { display: flex; gap: 10px; margin-bottom: 10px; }
.odds-big > div { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.odds-big span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.odds-big b { font-size: 18px; }
/* 1X2: etiqueta y cuota en la MISMA línea (compacto); el handicap/línea (ah-odds) sigue apilado por etiquetas largas. */
.odds-big:not(.ah-odds) > div { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 10px; }
.odds-big:not(.ah-odds) span { display: inline; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }

/* Etiquetas de victoria/derrota dentro de la tabla comparativa */
.res-w-t { color: var(--green); font-weight: 800; }
.res-l-t { color: var(--red); font-weight: 800; }

/* Historial de últimos partidos (detalle del partido) */
.history-section { margin-top: 26px; }
.history-section > h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.history-section > p.muted { margin: 0 0 16px; font-size: 13.5px; max-width: 760px; }
/* Filtro del historial (liga / superficie) */
.hist-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.hist-filter > label { font-size: 13px; color: var(--muted); }
.hist-filter select { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; max-width: 260px; }
.surf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.surf-chips .chip { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.surf-chips .chip:hover { color: var(--text); }
.surf-chips .chip.active { background: var(--cyan); color: #04141f; border-color: var(--cyan); }
.hist-lg { font-size: 11px; line-height: 1.25; margin-top: 2px; }
.surf-tag { font-weight: 700; }
.surf-tag.s-clay { color: #e08a4b; }
.surf-tag.s-hard { color: #4aa3e0; }
.surf-tag.s-grass { color: #5fbf7a; }
.surf-tag.s-carpet { color: #b98ad0; }
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hist-card .hist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.hist-card .hist-head h3 { margin: 0; font-size: 17px; }
.formbar { display: flex; gap: 4px; }
.fdot { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.resb { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; }
.res-w { background: var(--green); color: #04121d; }
.res-l { background: var(--red); color: #fff; }
.res-d { background: #5b6b8c; color: #fff; }
table.hist { width: 100%; border-collapse: collapse; font-size: 13px; }
table.hist thead th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.hist td { padding: 7px 8px; text-align: center; border-top: 1px solid var(--border); white-space: nowrap; }
table.hist td.rival { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.hist tbody tr:hover { background: var(--surface2); }
table.hist tr.ht-zero td { background: rgba(141, 163, 192, .09); }
@media (max-width: 820px) { .hist-grid { grid-template-columns: 1fr; } }

/* ===== Buscador PRO: filtros agrupados por bloques + tooltips ===== */
.tool-help { font-size: 12.5px; margin: 0 0 10px; max-width: 920px; line-height: 1.45; }
.filters-pro { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.fgroup { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; flex: 1 1 230px; min-width: 220px; }
.fgroup-h { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--cyan); padding: 6px 12px; border-bottom: 1px solid var(--border); background: var(--bg2); border-radius: 11px 11px 0 0; }
.fgroup-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px 10px; padding: 9px 12px; }
.fgroup-actions { display: flex; align-items: center; gap: 16px; padding: 9px 14px; flex: 0 0 auto; }
.fgroup-actions .fchk { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.fb label { display: flex; align-items: center; gap: 4px; margin-bottom: 1px; }
.fgroup .fb label { font-size: 10px; }
.fgroup .fb select, .fgroup .fb input { padding: 5px 8px; font-size: 12px; border-radius: 7px; }
.fgroup .fb .mm { gap: 4px; } .fgroup .fb .mm input { padding: 5px 5px; }

/* Icono de ayuda + tooltip (filtros y cabeceras) */
.help { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); font-size: 10px; font-weight: 800; font-style: italic; font-family: Georgia, "Times New Roman", serif; align-items: center; justify-content: center; cursor: help; position: relative; vertical-align: middle; flex: 0 0 auto; }
.help:hover, .help:focus { color: var(--cyan); border-color: var(--cyan); outline: none; }
/* Tooltip propio (JS, position:fixed) con el estilo de la web — no lo recorta la tabla. */
#bt-tip {
  position: fixed; z-index: 9999; max-width: 280px; background: #0a1322; color: var(--text);
  border: 1px solid var(--cyan); border-radius: 9px; padding: 9px 11px; font-size: 12px; font-weight: 500;
  line-height: 1.45; text-align: left; box-shadow: var(--shadow); pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .12s; top: 0; left: 0;
}
#bt-tip.on { opacity: 1; visibility: visible; }
[data-tip] { cursor: help; }

/* Tarjetas amarillas/rojas separadas (rejilla fútbol) */
table.bt-table td.cards { display: flex; gap: 10px; justify-content: center; align-items: center; }
td.cards .cy, td.cards .cr { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
td.cards .cy::before { content: ""; width: 9px; height: 12px; background: var(--amber); border-radius: 2px; display: inline-block; }
td.cards .cr::before { content: ""; width: 9px; height: 12px; background: var(--red); border-radius: 2px; display: inline-block; }
table.bt-table tr.rtotal td.cards .cy, table.bt-table tr.rtotal td.cards .cr { color: var(--cyan); }

/* Botón "Ver análisis" + fila clicable (abrir el detalle del partido) */
.open-cell { text-align: center; }
.btn-open { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 6px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--cyan); border: 1px solid rgba(0, 168, 232, .45); background: rgba(0, 168, 232, .08); transition: .15s; }
.btn-open:hover { background: var(--cyan); color: #04121d; border-color: var(--cyan); transform: translateY(-1px); }
table.bt-table tbody.mrow { cursor: pointer; }
table.bt-table tbody.mrow:hover td { background: var(--surface2); }
table.bt-table tbody.mrow:hover .btn-open { background: var(--cyan); color: #04121d; }

/* Celdas especiales de las rejillas de puntos / tenis */
table.bt-table td.big { font-size: 16px; font-weight: 800; color: var(--cyan); }
table.bt-table td.h2h { font-size: 14px; }
table.bt-table td.h2h b { color: var(--text); }
table.bt-table .formbar { justify-content: center; }
table.bt-table thead th .help { margin-left: 3px; }

/* Donut de probabilidad + estimaciones (detalle del partido) */
.pred-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut { width: 96px; height: 96px; border-radius: 50%; flex: 0 0 auto; position: relative; }
.donut-hole { position: absolute; inset: 13px; background: var(--surface); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut-hole b { font-size: 21px; }
.donut-hole span { font-size: 11px; color: var(--muted); font-weight: 700; }
.pred-bar-wrap { flex: 1; min-width: 220px; }
.kv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 14px; }
.kv-row > div { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; text-align: center; }
.kv-row span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.kv-row b { font-size: 16px; color: var(--cyan); }

/* Análisis del modelo (estructurado en chips) */
.reason-h { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--cyan); margin-bottom: 6px; }
.analysis { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 14px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.an-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; }
.an-item .an-k { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.an-item .an-v { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.an-item.an-main { border-color: rgba(31, 199, 125, .5); background: rgba(31, 199, 125, .1); }
.an-item.an-main .an-v { color: var(--green); }
.an-item.an-value { border-color: rgba(231, 193, 75, .45); background: rgba(231, 193, 75, .07); }
.an-item.an-value .an-v { color: var(--gold); }
.an-item .an-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 3px; line-height: 1.3; }

/* Hándicap asiático en el aside (2 cajas claras) */
.ah-block { margin-top: 12px; }
.ah-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.ah-odds { margin-bottom: 0; }
.ah-odds > div { padding: 8px; }
.ah-odds span { font-size: 11px; }
.ah-odds b { font-size: 16px; }

/* Claves del partido (insights / apuestas sugeridas) */
.insights-card { border-color: rgba(0, 168, 232, .35); }
ul.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.insights .ins { position: relative; padding: 9px 12px 9px 36px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; line-height: 1.4; }
ul.insights .ins::before { position: absolute; left: 11px; top: 8px; font-size: 14px; }
.ins-value { border-color: rgba(231, 193, 75, .4); } .ins-value::before { content: "💎"; }
.ins-ht::before { content: "⏱"; } .ins-goals::before { content: "⚽"; } .ins-corners::before { content: "🚩"; }
.ins-cards::before { content: "🟨"; } .ins-fav::before { content: "⭐"; } .ins-h2h::before { content: "⚔️"; } .ins-serve::before { content: "🎾"; }

/* H2H (enfrentamientos directos) */
table.h2h-table td, table.h2h-table th { padding: 7px 10px; }
table.h2h-table tbody tr:hover { background: var(--surface2); }

/* Cabecera: enlace de login + ocultar Telegram en móvil para que quepan los botones */
.auth-link { color: var(--muted); font-weight: 700; font-size: 14px; padding: 6px 8px; white-space: nowrap; }
.auth-link:hover { color: var(--text); }

/* Cajas de login / registro */
.auth-card { padding: 26px 24px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.auth-form input { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 11px 12px; border-radius: 10px; font-size: 15px; font-family: inherit; }
.auth-form input:focus { outline: none; border-color: var(--cyan); }
.auth-err { background: var(--red-bg); border: 1px solid rgba(255, 93, 115, .35); color: #ffb3bf; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; }
.btn-google { width: 100%; justify-content: center; background: #fff; color: #1f2937; border: 1px solid #dadce0; font-weight: 700; }
.btn-google:hover { background: #f5f6f7; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; margin: 14px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Panel de administración */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.astat { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.astat span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.astat b { font-size: 24px; }

/* Cuota en la card: el selector 1/X/2 en gris para no confundirlo con el número de la cuota */
.odds-mini .osel { color: var(--muted); font-weight: 800; margin-right: 3px; }

/* Título de los filtros mín./máx. centrado sobre las dos casillas (más organizado) */
.fb-range label { justify-content: center; text-align: center; }

/* Filtros premium bloqueados (candado -> /premium), conservando la "i" de info */
.fb-lock label { color: var(--gold); }
.fb-lock input { opacity: .45; cursor: not-allowed; }
.fb-pro { font-style: normal; text-decoration: none; cursor: pointer; }

/* Ventajas premium detalladas (/premium) */
.premium-includes { max-width: 760px; margin: 44px auto 0; }
.adv-list { display: grid; gap: 12px; }
.adv { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.adv-t { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.adv-d { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Valor del día bloqueado para no premium */
.value-lock { text-align: center; }

/* 💎 valor alto (>=20%) bloqueado: solo premium, clicable a /premium */
.pill-lock, .an-lock { cursor: pointer; }
.pill-lock:hover, .an-lock:hover { filter: brightness(1.15); }

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 40px 0 20px; }
  .hide-sm { display: none; }
}

/* Banner de consentimiento de cookies (Consent Mode v2) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 14px 16px;
  background: rgba(13, 19, 32, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .4);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: space-between;
}
.cookie-banner__text { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--muted); }
.cookie-banner__text strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--text); }
.cookie-banner__text p { margin: 0; }
.cookie-banner__text a { color: var(--cyan); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
