/* BetTheDrop — terminal de value contra el mercado de referencia */
:root {
  --bg: #0a0d12;
  --bg-2: #0f131a;
  --panel: #131821;
  --panel-2: #19202b;
  --panel-3: #202836;
  --line: #252e3d;
  --line-2: #2f3a4c;
  --campo: #5f6b82;          /* borde de los campos: 3:1 con el fondo (WCAG 1.4.11) */
  --text: #eef2f8;
  --muted: #8d97aa;
  --dim: #808a9d;            /* texto tenue: 4,5:1 sobre los paneles */
  --lime: #c8ff3a;
  --lime-ink: #0d1400;
  --lime-soft: rgba(200, 255, 58, .12);
  --amber: #ffb83d;
  --amber-soft: rgba(255, 184, 61, .13);
  --red: #ff4d61;
  --red-soft: rgba(255, 77, 97, .13);
  --blue: #52a8ff;
  --blue-soft: rgba(82, 168, 255, .12);
  --live: #d91f3c;
  --radius: 10px;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(200, 255, 58, .07), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(82, 168, 255, .07), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 9px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ── cabecera ─────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center;
  padding: 12px 20px;
  background: rgba(10, 13, 18, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { display: block; flex: none; width: 34px; height: 34px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { display: grid; text-transform: uppercase; line-height: 1; }          /* «BET THE» pequeño sobre «DROP» */
.brand-name small { font: 700 9.5px/1 var(--f-display); letter-spacing: .34em; color: var(--text); margin-bottom: 1px; }
.brand-name b { font: 800 24px/.86 var(--f-display); letter-spacing: .01em; color: var(--lime); }

.search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 44px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.search svg { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.search kbd {
  position: absolute; right: 12px; top: 11px; padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--line-2); color: var(--muted); font: 12px/18px var(--f-mono);
}

.top-right { display: flex; align-items: center; gap: 10px; }
.feed {
  display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap;
}
.feed i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.feed.mal i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.tabs { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs button {
  white-space: nowrap;
  border: 0; background: none; padding: 7px 14px; border-radius: 7px; color: var(--muted);
  font: 600 15px/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase;
}
.tabs button.on { background: var(--panel-3); color: var(--text); }
.user { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.btn-ghost {
  border: 1px solid var(--line-2); background: none; border-radius: 8px; padding: 6px 10px; color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ── estructura ───────────────────────────── */
.layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 370px; gap: 20px;
  padding: 18px 20px 40px; align-items: start;
}
.layout.solo { grid-template-columns: minmax(0, 1fr); }

/* ── carril de deportes ───────────────────── */
.rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 0; border-radius: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.seg button.on { background: var(--panel-3); color: var(--text); }
.seg button[data-filtro="vivo"].on { background: var(--red-soft); color: var(--live); }
.sports { display: flex; flex-direction: column; gap: 2px; }
.sport {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--muted);
}
.sport:hover { background: var(--panel); color: var(--text); }
.sport.on { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--lime); }
.sport .n { font: 12px var(--f-mono); color: var(--dim); }
.sport .v { color: var(--live); font: 11px var(--f-mono); margin-right: 6px; }
.rail-note { font-size: 12px; color: var(--dim); padding: 0 10px; }

/* ── lista de partidos ───────────────────── */
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 12px; }
.list-head h1 { margin: 0; font: 700 28px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.list-head span { color: var(--muted); font-size: 13px; }
.league { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.league-h {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font: 600 14px/1.2 var(--f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.league-h .cols { display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; text-align: center; color: var(--dim); }
.match {
  color: inherit; text-decoration: none;
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s;
  animation: entra .3s ease both;
}
.match:last-child { border-bottom: 0; }
.match:hover { background: var(--panel-2); }
.when { font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
.when b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.when.live b { color: var(--live); }
.when .tag-live {
  display: inline-block; font: 700 10px/1 var(--f-body); letter-spacing: .08em; color: #fff; background: var(--live);
  padding: 3px 5px; border-radius: 4px; margin-bottom: 3px; animation: late 1.6s infinite;
}
.teams { min-width: 0; }
.teams div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.teams .extra { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.chip { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 999px; }
.chip.warn { color: var(--amber); border-color: rgba(255, 184, 61, .4); }
.chip.live { color: var(--live); border-color: var(--live); }
.c-blue { color: var(--blue); }
.nowrap { white-space: nowrap; }
.sub.live { color: var(--live); }
.chip.sport-chip { color: var(--blue); border-color: rgba(82, 168, 255, .35); }
.odds3 { display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; }
.odd-mini {
  height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--bg-2);
  border: 1px solid var(--line); font: 600 13.5px var(--f-mono);
}
.odd-mini.vacio { color: var(--dim); }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty b { display: block; color: var(--text); font: 700 22px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }

/* ── ficha de partido ────────────────────── */
.back { border: 0; background: none; color: var(--muted); padding: 0; margin-bottom: 12px; display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--text); }
.hero {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 16px;
  background:
    linear-gradient(120deg, rgba(200, 255, 58, .08), transparent 45%),
    linear-gradient(300deg, rgba(82, 168, 255, .08), transparent 45%),
    var(--panel);
  margin-bottom: 14px;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .025);
}
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 12px 0 10px; }
.hero-teams .t { font: 700 clamp(22px, 3.2vw, 36px)/1.02 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.hero-teams .t:last-child { text-align: right; }
.score {
  font: 700 30px/1 var(--f-display); padding: 8px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2);
  text-align: center; min-width: 84px;
}
.score small { display: block; font: 600 12px/1.4 var(--f-mono); color: var(--live); }
.score.vs { color: var(--dim); font-size: 20px; }
.hero-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.age { display: inline-flex; gap: 6px; align-items: center; }
.age i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.age.viejo i { background: var(--amber); }

.fichas { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.fichas button {
  border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); padding: 8px 16px; border-radius: 9px;
  font: 700 16px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
}
.fichas button.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.periodos { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; }
.periodos button {
  border: 1px solid var(--line); background: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: 13px;
}
.periodos button.on { color: var(--text); border-color: var(--text); }

.market { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.market-h {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.market-h h3 { margin: 0; font: 700 17px/1.1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.market-h .tags { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.tag { white-space: nowrap; font: 500 11.5px var(--f-mono); color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
.market-b { padding: 10px; }
.market-nota { padding: 8px 14px; font-size: 12.5px; color: var(--blue); background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.row-ml { display: grid; gap: 8px; }
.row-ml.c2 { grid-template-columns: 1fr 1fr; }
.row-ml.c3 { grid-template-columns: 1fr 1fr 1fr; }
.lines { display: flex; flex-direction: column; gap: 6px; }
.lines-h { display: none; grid-template-columns: 1fr 56px 1fr; gap: 8px; margin: 0 0 6px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lines-h span { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line { display: grid; grid-template-columns: 1fr 74px 1fr; gap: 8px; align-items: stretch; border-radius: 9px; }
.line .lab {
  display: grid; place-items: center; font: 600 13px var(--f-mono); color: var(--muted);
  background: var(--bg-2); border-radius: 8px; border: 1px solid var(--line);
}
.line.main .lab { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.mas { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 8px 4px 2px; }
.mas:hover { color: var(--text); }

.odd {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 48px; padding: 6px 12px; border-radius: 9px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .12s, background .12s, transform .08s;
}
.odd:hover { border-color: var(--line-2); background: var(--panel-3); }
.odd:active { transform: scale(.985); }
.odd .nm { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.odd .px { text-align: right; flex-shrink: 0; }
.odd .px b { display: block; font: 700 17px/1.1 var(--f-mono); color: var(--text); }
.odd .px small { display: block; font: 500 11px/1.3 var(--f-mono); color: var(--dim); }
.odd.sel { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 0 1px var(--lime) inset; }
.odd.sube b { animation: sube 1.6s ease; }
.odd.baja b { animation: baja 1.6s ease; }
.odd:disabled { opacity: .4; cursor: not-allowed; }

/* ── boleto de value ─────────────────────── */
.slip { position: sticky; top: 86px; }
.slip-card {
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.slip-h {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font: 700 16px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
}
.slip-h .x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; display: none; min-width: 44px; min-height: 44px; }
.slip-b { padding: 16px; }
.slip-empty { color: var(--muted); text-align: center; padding: 26px 8px; }
.slip-empty .big { font: 800 52px/1 var(--f-display); color: var(--line-2); margin-bottom: 8px; }
.slip-ev { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slip-match { font-weight: 600; margin: 4px 0 2px; }
.slip-pick { font: 700 24px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 2px; }
.slip-mk { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.stat span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat b { font: 700 19px/1.3 var(--f-mono); }
.stat.pin b { color: var(--blue); }
.stat.fair b { color: var(--lime); }
.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.field input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--campo); outline: none;
}
.field input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.field select, .alta select {
  width: 100%; height: 40px; padding: 0 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--campo); outline: none;
}
.field select:focus, .alta select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.alta select { width: auto; height: 42px; }
.plan-sin { margin: 2px 0 12px; }
.mycuota { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.mycuota input { height: 56px; text-align: center; font: 700 28px var(--f-mono); }
.mycuota button { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 9px; font: 600 20px var(--f-mono); color: var(--muted); }
.mycuota button:hover { color: var(--text); border-color: var(--muted); }
.verdict {
  border-radius: 12px; padding: 14px; margin: 6px 0 12px; text-align: center; border: 1px solid var(--line);
  background: var(--bg-2); transition: background .2s, border-color .2s;
}
.verdict .lbl { font: 700 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.verdict .num { font: 800 54px/1.05 var(--f-display); letter-spacing: .01em; }
.verdict .sub { font-size: 12.5px; color: var(--muted); }
.verdict.pos { background: var(--lime-soft); border-color: rgba(200, 255, 58, .5); }
.verdict.pos .num, .verdict.pos .lbl { color: var(--lime); }
.verdict.mid { background: var(--amber-soft); border-color: rgba(255, 184, 61, .5); }
.verdict.mid .num, .verdict.mid .lbl { color: var(--amber); }
.verdict.neg { background: var(--red-soft); border-color: rgba(255, 77, 97, .5); }
.verdict.viejo { background: var(--panel-3); border-color: var(--line-2); }
.verdict.viejo .num { color: var(--dim); text-decoration: line-through; }
.verdict.viejo .lbl { color: var(--amber); }
.banda-aviso { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: var(--blue-soft); color: var(--text); border: 1px solid rgba(82, 168, 255, .35); }
.banda-aviso b { color: var(--blue); }
.mi-cuota-campo { margin-top: 12px; }
.stats { margin-top: 14px; }
.verdict.neg .num, .verdict.neg .lbl { color: var(--red); }
.gauge { position: relative; height: 8px; border-radius: 99px; margin: 10px 4px 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, var(--amber) 50%, var(--lime) 60%, var(--lime) 100%); opacity: .85; }
.gauge i { position: absolute; left: 50%; top: -5px; width: 4px; height: 18px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--bg); transform: translateX(-2px); transition: left .25s; }
.gauge-l { display: flex; justify-content: space-between; font: 11px var(--f-mono); color: var(--dim); margin: 0 2px 4px; }
.ladder { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.ladder div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px; text-align: center; }
.ladder span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ladder b { font: 700 15px var(--f-mono); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.btn-main {
  width: 100%; height: 50px; border: 0; border-radius: 11px; background: var(--lime); color: var(--lime-ink);
  font: 800 19px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(200, 255, 58, .25); transition: transform .08s, filter .12s;
}
.btn-main:hover { filter: brightness(1.06); }
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled { background: var(--panel-3); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.warn-box { margin-top: 10px; padding: 9px 11px; border-radius: 9px; font-size: 12.5px; background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(255, 184, 61, .35); }
.warn-box.err { background: var(--red-soft); color: var(--red); border-color: rgba(255, 77, 97, .35); }
.hint { font-size: 12px; color: var(--dim); margin-top: 10px; text-align: center; }

/* ── mis apuestas ────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.kpi span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.kpi b { font: 800 34px/1.15 var(--f-display); }
.kpi.good b { color: var(--lime); }
.kpi.bad b, .kpi.neg b { color: var(--red); }
.kpi.pos b { color: var(--lime); }
.kpi.mid b { color: var(--amber); }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: var(--panel); }
table.bets { width: 100%; border-collapse: collapse; font-size: 13px; }
.bets th {
  text-align: left; padding: 10px 12px; background: var(--panel-2); color: var(--muted); white-space: nowrap;
  font: 600 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.bets td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bets tr:last-child td { border-bottom: 0; }
.bets .num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.bets .sub { color: var(--muted); font-size: 12px; }
.ev-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 12.5px var(--f-mono); }
.ev-pill.pos { background: var(--lime-soft); color: var(--lime); }
.ev-pill.mid { background: var(--amber-soft); color: var(--amber); }
.ev-pill.neg { background: var(--red-soft); color: var(--red); }
.del { border: 0; background: none; color: var(--dim); font-size: 16px; padding: 2px 6px; border-radius: 6px; }
.del:hover { color: var(--red); background: var(--red-soft); }
.bets-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.bets-tools h1 { margin: 0; font: 700 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }

/* ── usuarios y ventana de contraseña ───── */
.admin-box { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px; margin-bottom: 16px; }
.admin-box h3 { margin: 0 0 10px; font: 700 17px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.alta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alta input:not([type]) { flex: 1 1 220px; height: 42px; padding: 0 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--campo); outline: none; }
.alta input:not([type]):focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.alta .btn-main { width: auto; height: 42px; padding: 0 22px; font-size: 17px; }
.btn-main.btn-sm { width: auto; height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.check { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.chip.ok { color: var(--lime); border-color: rgba(200, 255, 58, .4); }

/* ── pestaña Cuenta ─────────────────────── */
.cuenta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cuenta-grid .admin-box { margin-bottom: 0; }
.prueba-box { border-color: var(--lime); background: linear-gradient(180deg, rgba(200, 255, 58, .08), var(--panel) 70%); box-shadow: 0 0 40px -22px rgba(200, 255, 58, .6); }
.prueba-box h3 { color: var(--lime); }
.pasos-prueba { border-color: rgba(200, 255, 58, .45); }
.pasos-prueba h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pasos-prueba ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pasos-prueba li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.pasos-prueba li p { margin: 4px 0 0; }
.paso-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--f-mono); border: 1px solid var(--lime); color: var(--lime); }
.pasos-prueba li.hecho .paso-num { background: var(--lime); color: var(--lime-ink); }
.pasos-prueba li.hecho b { color: var(--muted); text-decoration: line-through; }
.cuenta-plan { margin: 4px 0 8px; font: 800 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.cuenta-plan.off { color: var(--amber); }
.cuenta-dato { margin: 0 0 12px; color: var(--muted); }
.cuenta-dato b { color: var(--text); }
.cuenta-grid p a { color: var(--lime); }
.cuenta-acc { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.cuenta-acc .btn-main { width: auto; height: 42px; padding: 0 20px; font-size: 16px; }
.tg-ok { color: var(--lime); font-weight: 700; }
.cuenta-planes { grid-column: 1 / -1; }
.planes-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-mini { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); }
.plan-mini.destacado { border-color: rgba(200, 255, 58, .55); }
.plan-mini b { font: 800 22px/1 var(--f-display); text-transform: uppercase; }
.plan-mini .mono { font: 700 20px var(--f-mono); color: var(--lime); }
.plan-mini small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.plan-mini p { margin: 0 0 6px; flex: 1; }
.plan-mini a, .plan-mini button { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 920px) { .planes-mini { grid-template-columns: minmax(0, 1fr); } }
.tg-espera { margin-top: 12px; padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; }
.sin-plan { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.sin-plan .cuenta-plan { margin-bottom: 12px; }
@media (max-width: 920px) { .cuenta-grid { grid-template-columns: minmax(0, 1fr); } }
.small { font-size: 12.5px; }
.solo-movil { display: none; }
.cred { margin-top: 14px; padding: 14px; border-radius: 11px; border: 1px solid rgba(200, 255, 58, .5); background: var(--lime-soft); }
.cred p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.cred-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cred code { font: 700 22px var(--f-mono); color: var(--lime); letter-spacing: .04em; user-select: all; }
.canal-estado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.canal-estado div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.canal-estado span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.admin-box h4 { margin: 16px 0 8px; font: 700 14px/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.todos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.todos input, .dep-fila input:not([type=checkbox]), .cuotas-cfg input { width: 72px; height: 34px; padding: 0 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); font: 600 14px var(--f-mono); outline: none; }
.todos input:focus, .dep-fila input:not([type=checkbox]):focus, .cuotas-cfg input:focus { border-color: var(--lime); }
.dep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.dep-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.dep-fila.off { opacity: .5; }
.dep-fila .check { color: var(--text); }
.dep-fila .pcts { display: inline-flex; gap: 10px; margin-left: auto; }
.dep-fila .pct { display: inline-flex; gap: 5px; align-items: center; }
.dep-fila .pct input { width: 52px; text-align: center; }
.mk-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); padding: 3px 9px 3px 6px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; }
.mk-chip:has(input:checked) { color: var(--text); border-color: rgba(200, 255, 58, .45); background: var(--lime-soft); }
.mk-chip input { margin: 0; accent-color: var(--lime); }
.res-pos { color: var(--lime); }
.res-neg { color: var(--red); }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.res-tabla { overflow-x: auto; }
.res-tabla table { width: 100%; border-collapse: collapse; font-size: 13px; }
.res-tabla th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; padding: 4px 6px; white-space: nowrap; }
.res-tabla td { text-align: right; padding: 5px 6px; border-top: 1px solid var(--line); font-family: var(--f-mono); white-space: nowrap; }
.res-tabla th:first-child, .res-tabla td:first-child { text-align: left; font-family: inherit; white-space: normal; }
.res-det { margin-top: 12px; }
.res-det summary { cursor: pointer; font: 700 14px/1.2 var(--f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.res-ultimos { display: grid; gap: 6px; margin-top: 8px; }
.res-u { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; display: grid; gap: 2px; }
.cuotas-cfg { display: flex; gap: 16px; flex-wrap: wrap; }
.cuotas-cfg label { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.guardar-cfg { margin-top: 18px; }
@media (max-width: 560px) { .dep-grid, .res-grid { grid-template-columns: 1fr; } .res-tabla table { font-size: 12px; } .res-tabla th, .res-tabla td { padding: 4px 3px; } }
.canal-estado b.ok { color: var(--lime); }
.canal-estado b.warn { color: var(--amber); }
@media (max-width: 560px) { .canal-estado { grid-template-columns: 1fr 1fr; } }
.acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.acciones .btn-ghost { font-size: 12.5px; padding: 5px 9px; }
.btn-ghost.peligro:hover { color: var(--red); border-color: var(--red); }
dialog.modal { border: 0; padding: 16px; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--text); }
dialog.modal[open] { display: grid; place-items: center; }
dialog.modal::backdrop { background: rgba(4, 6, 9, .72); backdrop-filter: blur(6px); }
.modal-card { width: 100%; max-width: 420px; border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: entra .25s ease both; }
.modal-card h2 { margin: 0 0 6px; font: 800 30px/1 var(--f-display); text-transform: uppercase; }
.modal-card p { margin: 0 0 16px; }
.modal-card .err { min-height: 20px; color: var(--red); font-size: 13px; margin: 2px 0 10px; }
.modal-acc { display: flex; gap: 10px; justify-content: flex-end; }
.modal-acc .btn-main { width: auto; padding: 0 26px; height: 44px; font-size: 17px; }

/* ── avisos ──────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 60;
  background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45); transition: transform .25s, opacity .25s; max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(200, 255, 58, .55); }
.toast.err { border-color: rgba(255, 77, 97, .6); }
.skeleton { height: 58px; border-radius: 10px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: brillo 1.2s infinite; }
.scrim { display: none; }

/* ── login ───────────────────────────────── */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login {
  width: 100%; max-width: 400px; border: 1px solid var(--line-2); border-radius: 18px; padding: 30px 26px 24px;
  background: linear-gradient(160deg, rgba(200, 255, 58, .07), transparent 40%), var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: entra .4s ease both;
}
.login .brand { margin-bottom: 22px; }
.login h1 { font: 800 40px/1 var(--f-display); text-transform: uppercase; margin: 0 0 6px; letter-spacing: .01em; }
.login p { color: var(--muted); margin: 0 0 22px; }
.login .err { min-height: 20px; color: var(--red); font-size: 13px; margin: 2px 0 10px; }
.login .foot { margin-top: 18px; font-size: 12px; color: var(--dim); text-align: center; }
.login .foot a { color: var(--muted); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; height: 46px; margin: 4px 0 16px;
  border-radius: 10px; background: #fff; border: 1px solid #dadce0; color: #1f1f1f; text-decoration: none;
  font: 600 15px/1 var(--f-body); transition: box-shadow .15s, transform .15s;
}
.btn-google:hover { box-shadow: 0 6px 18px -8px rgba(255, 255, 255, .45); transform: translateY(-1px); }
.btn-google svg { width: 20px; height: 20px; }
.o-sep { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.o-sep::before, .o-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.aviso-acceso { margin: 0 0 16px; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255, 90, 110, .4);
  background: rgba(255, 90, 110, .08); color: #ffc2ca; font-size: 13.5px; line-height: 1.45; }
.aviso-acceso.ok { border-color: rgba(200, 255, 58, .4); background: var(--lime-soft); color: var(--text); }
.olvido { display: block; margin-top: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.olvido:hover { color: var(--lime); }
.cambio { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.cambio a { color: var(--lime); }

@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes late { 50% { opacity: .55; } }
@keyframes brillo { to { background-position: -200% 0; } }
@keyframes sube { 0%, 40% { color: var(--lime); } }
@keyframes baja { 0%, 40% { color: var(--red); } }

/* ── responsive ──────────────────────────── */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr) 330px; gap: 14px; }
  .top { grid-template-columns: 190px 1fr auto; }
  .feed span { display: none; }
}
@media (max-width: 920px) {
  .top { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 10px 16px; }
  .brand-name { display: none; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search kbd { display: none; }
  .top-right { justify-self: end; }
  .user .who { display: none; }
  #btn-pw { display: none; }
  .solo-movil { display: inline-block; }
  .tabs button { font-size: 13.5px; padding: 7px 9px; }
  .layout, .layout.solo { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 120px; }
  .rail { position: static; }
  .layout.en-partido .rail { display: none; }
  .sports { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .sport { flex: 0 0 auto; border: 1px solid var(--line); }
  .sport.on { box-shadow: none; border-color: var(--lime); }
  .rail-note { display: none; }
  .slip { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; transform: translateY(110%); transition: transform .28s ease; }
  .slip.open { transform: none; }
  .slip-card { border-radius: 18px 18px 0 0; max-height: 86vh; overflow-y: auto; }
  .slip-h .x { display: block; }
  .search input, .field input, .field select, .alta input, .alta select, .modal-card input, .todos input, .dep-fila input, .cuotas-cfg input { font-size: 16px; }   /* iOS no hace zoom al enfocar */
  .mycuota input { font-size: 28px; }
  .scrim.on { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lines-h { display: grid; }
  .row-ml.c2 { grid-template-columns: 1fr; }
  .market-h { flex-wrap: wrap; row-gap: 6px; }
  .list-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .list-head h1 { font-size: 24px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 14px 16px 12px; }
  .hero-teams { margin: 8px 0; }
  .hero-teams .t { font-size: 24px; }
  .hero-foot span:last-child { display: none; }
  .score { min-width: 0; padding: 6px 12px; font-size: 24px; }
  /* tablas como tarjetas */
  table.bets thead { display: none; }
  table.bets, .bets tbody, .bets tr, .bets td { display: block; width: 100%; }
  .bets tr { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; position: relative; }
  .bets tr:last-child { border-bottom: 0; }
  .bets td { border: 0; padding: 0; text-align: left; }
  .bets td.num { text-align: left; }
  .bets td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1px; font-family: var(--f-body); }
  .bets td.ancha { grid-column: 1 / -1; }
  .bets td.borrar { position: absolute; top: 6px; right: 6px; width: auto; }
  .match { grid-template-columns: 56px minmax(0, 1fr); }
  .match .odds3 { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .league-h .cols { display: none; }
  .hero-teams { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero-teams .t:last-child { text-align: center; }
  .score { justify-self: center; }
  .line { grid-template-columns: 1fr 56px 1fr; }
  .odd .nm { display: none; }
  .row-ml .odd .nm { display: block; }
  .row-ml.c3 { grid-template-columns: 1fr; }
  .tabs button { padding: 7px 10px; }
}
@media (max-width: 560px) {
  .top-right { min-width: 0; }
  .tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; }
}
@media (max-width: 470px) {
  .top .brand { display: none; }
  .top { grid-template-columns: minmax(0, 1fr); }
  .top-right { justify-self: stretch; justify-content: space-between; }
  .feed { display: none; }
}

/* ── movimiento de la selección (gráfico del boleto) ── */
.mov { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-2); }
.mov-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mov-h b { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-transform: none; letter-spacing: 0; }
.mov-h b.leve { color: var(--amber); border-color: rgba(255, 184, 61, .4); }
.mov-h b.fuerte { color: var(--lime); border-color: rgba(200, 255, 58, .5); }
.mov-txt { margin: 8px 0 6px; font-size: 13px; color: var(--text); }
.mov-graf { display: block; width: 100%; height: auto; aspect-ratio: 300 / 120; }
.mov-graf .eje { stroke: var(--line-2); stroke-width: 1; }
.mov-graf path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mov-graf .g-cuota { stroke: var(--blue); }
.mov-graf .g-justa { stroke: var(--lime); stroke-dasharray: 4 3; }
.mov-graf .g-txt { fill: var(--dim); font: 9px var(--f-mono); }
.mov-ley { display: flex; gap: 14px; margin: 4px 0 6px; font-size: 11.5px; color: var(--muted); }
.mov-ley span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin: 0 6px 3px 0; vertical-align: middle; }
.mov-ley .l-cuota::before { background: var(--blue); }
.mov-ley .l-justa::before { background: var(--lime); }
.mov-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
.mov-tabla th { text-align: left; font-weight: 600; color: var(--dim); font-size: 11px; padding: 3px 4px; border-bottom: 1px solid var(--line); }
.mov-tabla td { padding: 3px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.mov-tabla tr:last-child td { border-bottom: 0; }
.seg.periodo-pago { display: inline-grid; grid-template-columns: repeat(2, auto); margin: 0 0 12px; }
.seg.periodo-pago button { padding: 7px 14px; }
.cuenta-acc .small { align-self: center; }

/* ── accesibilidad ───────────────────────── */
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
#main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── cuenta: seguridad y datos ───────────── */
.sesiones { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sesiones li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.dos-pasos { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: start; }
.dos-pasos .qr svg { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.dos-pasos .alta input { flex: 0 1 140px; font: 700 18px var(--f-mono); letter-spacing: .12em; }
.clave-2fa { font: 600 12px var(--f-mono); color: var(--text); word-break: break-all; user-select: all; }
.codigos { display: block; font: 700 16px/1.6 var(--f-mono); }
.borrar-cuenta { margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 77, 97, .45); background: var(--red-soft); }
.btn-main.btn-peligro { background: var(--red); color: #fff; box-shadow: none; }
.btn-ghost.peligro { color: var(--muted); }
a.btn-ghost { display: inline-flex; align-items: center; text-decoration: none; }
.cuenta-grid .seg { display: inline-grid; grid-template-columns: repeat(2, auto); }
.cuenta-grid .seg button { padding: 7px 14px; }
@media (max-width: 560px) { .dos-pasos { grid-template-columns: minmax(0, 1fr); } .dos-pasos .qr { max-width: 200px; } }

/* ── entrar y crear cuenta ───────────────── */
.login-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.login-cab .brand { margin-bottom: 0; text-decoration: none; color: inherit; }
.idioma-login { font: 600 13px var(--f-body); color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; }
.idioma-login:hover { color: var(--lime); border-color: var(--lime); }
.cond-check { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cond-check input { margin-top: 3px; accent-color: var(--lime); }
.cond-check a { color: var(--lime); }
.login .paso { margin: 0; }
.login .small { font-size: 12.5px; margin: -6px 0 10px; }
.enlace { border: 0; background: none; padding: 0; color: var(--lime); font: inherit; text-decoration: underline; cursor: pointer; }
.login a.btn-main { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 8px; }
.modal-card .cond-check a { color: var(--lime); }
