/* BossEdge — Design System · Signal Observatory */

:root {
  --theme-bg: var(--bg0);
  --topbar-h: 5.5rem;
  --landing-max: var(--content-max);
  --daily-max: var(--content-max-wide, var(--content-max));
}

/* —— Ambient: malla de telemetría + resplandor de señal —— */
body {
  letter-spacing: -0.012em;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--primary-rgb), 0.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(var(--edge-rgb), 0.04), transparent 50%),
    var(--bg0);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 39px,
      rgba(var(--primary-rgb), 0.018) 39px,
      rgba(var(--primary-rgb), 0.018) 40px
    ),
    repeating-linear-gradient(
      55deg,
      transparent,
      transparent 39px,
      rgba(var(--edge-rgb), 0.012) 39px,
      rgba(var(--edge-rgb), 0.012) 40px
    );
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 10%, transparent 70%);
}

/* —— Tipografía de datos (firma BossEdge) —— */
.prob-triple-pct,
.match-score-inline,
.content-metric-value,
.perf-kpi-value,
.perf-stat-value,
.mock-edge,
.preview-pick-text,
.subscribe-price .amount,
.step::before {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* —— Marcador de señal en kickers —— */
.hero-kicker,
.section-eyebrow,
.bet-pick-kicker,
.explain-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-kicker::before,
.section-eyebrow::before,
.bet-pick-kicker::before,
.explain-kicker::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--be-edge-beacon);
  box-shadow: var(--be-signal-glow);
}
h1,
h2,
h3,
.brand-page h1,
.daily-lane-head h2,
.perf-topband-intro h1,
.subscribe-brand h1,
.hero-title,
.section-title,
.section-title--display {
  font-family: var(--font-ui);
  letter-spacing: -0.028em;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  line-height: 1.25;
}

h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-base); }

.muted,
.text-muted {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* —— Kill amateur uppercase labels globally —— */
.badge,
.vs,
.bet-pick-kicker,
.site-nav-label,
.freemium-banner-badge,
.trial-banner-badge,
.section-eyebrow,
.perf-kpi-label,
.perf-tier-label,
.perf-table th,
.results-eval-label,
.results-section-label,
.recap-index-kicker,
.recap-article-kicker,
.match-card .side-markets-summary,
.daily-pick-lane-badge,
.sport-explorer-label,
.mobile-more-label,
.filter-league-label,
.explain-kicker,
.explain-section-label,
.page-landing .section-eyebrow,
.matchday-chip-label {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-weight: 500 !important;
}

.badge {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
}

.vs,
.match-vs-label {
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--muted);
  background: var(--bg-hover);
  border-color: var(--stroke);
}

/* —— Brand —— */
.brand-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  font-style: normal;
  letter-spacing: -0.02em;
  text-transform: none;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--text);
}

.brand-home:hover {
  background: var(--bg-hover);
}

.brand-logo--mark {
  box-shadow: 0 0 0 1px var(--stroke), var(--be-signal-glow);
  border-radius: var(--radius-md);
}

/* —— App chrome —— */
.app-header {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--stroke);
}

.landing-topbar,
.auth-strip {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--stroke);
}

.topbar {
  padding-bottom: 0;
}

/* —— Primary navigation —— */
.site-nav-primary {
  gap: 0.1rem;
  padding-bottom: var(--space-3);
}

.site-nav-primary-link {
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.4rem 0.7rem;
  gap: 0.35rem;
  transition:
    color 140ms var(--ease-out),
    background 140ms var(--ease-out);
}

.site-nav-primary-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.site-nav-primary-link.is-active {
  color: var(--accent-bright);
  background: var(--bg-active);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.site-nav-primary-icon {
  opacity: 0.72;
}

.site-nav-primary-link.is-active .site-nav-primary-icon,
.site-nav-primary-link:hover .site-nav-primary-icon {
  opacity: 1;
}

/* —— Breadcrumbs —— */
.breadcrumbs {
  padding: 0 var(--page-gutter) var(--space-2);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-xs);
}

.breadcrumbs-item:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--muted);
  opacity: 0.6;
}

.breadcrumbs-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}

.breadcrumbs-item a:hover {
  color: var(--text);
}

.breadcrumbs-item span {
  color: var(--text-soft);
}

/* —— Mobile tab bar —— */
.mobile-tab-bar {
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
  min-height: var(--mobile-tab-h);
  padding: 0.25rem 0.2rem max(0.35rem, env(safe-area-inset-bottom, 0px));
}

.mobile-tab-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: -0.01em;
  gap: 0.2rem;
}

.mobile-tab-link:hover,
.mobile-tab-link:active {
  transform: none;
  background: transparent;
  color: var(--text);
}

.mobile-tab-link.is-active {
  color: var(--accent-bright);
  background: transparent;
  font-weight: 600;
}

.mobile-tab-link.is-active::before {
  top: auto;
  bottom: 0.2rem;
  width: 1.125rem;
  height: 2px;
  border-radius: 1px;
  background: var(--be-edge-beacon);
  box-shadow: var(--be-signal-glow);
}

.mobile-tab-icon,
.mobile-tab-link.is-active .mobile-tab-icon {
  filter: none;
}

.mobile-more-drawer,
.mobile-sports-drawer {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow);
  background: var(--bg1);
  border-top: 1px solid var(--stroke);
}

.mobile-more-drawer-link,
.mobile-sports-drawer-link {
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  transition: background 140ms var(--ease-out);
}

.mobile-more-drawer-link:hover,
.mobile-sports-drawer-link:hover {
  background: var(--bg-hover);
}

/* —— Sport explorer —— */
.sport-explorer-all,
.sport-explorer-pill,
.sport-explorer-trigger,
.sport-explorer-featured {
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  text-transform: none;
  border-color: var(--stroke);
  transition:
    background 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    color 140ms var(--ease-out);
}

.sport-explorer-pill.is-active,
.sport-explorer-featured.is-active {
  background: var(--bg-active);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--accent-bright);
}

.sport-explorer-pill:hover,
.sport-explorer-featured:hover {
  background: var(--bg-hover);
  border-color: var(--stroke-strong);
}

/* —— Buttons —— */
.btn-primary,
.hero-cta .btn-primary,
.final-cta .btn-primary,
.recap-teaser-cta .btn-primary,
.content-compare-actions .btn-primary,
.freemium-banner-btn,
.match-card-lock-btn,
.subscribe-auth-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-ink);
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  padding: 0.55rem 1rem;
  min-height: 2.375rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out);
}

.btn-primary:hover,
.hero-cta .btn-primary:hover,
.final-cta .btn-primary:hover,
.recap-teaser-cta .btn-primary:hover,
.content-compare-actions .btn-primary:hover,
.freemium-banner-btn:hover,
.match-card-lock-btn:hover,
.subscribe-auth-cta .btn-primary:hover {
  background: var(--primary-hover);
  border-color: rgba(var(--primary-rgb), 0.7);
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 22px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-secondary:focus-visible,
.ghost-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-ghost,
.hero-cta .btn-ghost,
.ghost-link,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text-soft);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  padding: 0.5rem 0.9rem;
  min-height: 2.375rem;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    color 140ms var(--ease-out);
}

.btn-secondary {
  background: var(--bg-hover);
}

.btn-ghost:hover,
.ghost-link:hover,
.btn-secondary:hover {
  background: var(--bg-active);
  border-color: var(--stroke-strong);
  color: var(--text);
  transform: none;
}

.ghost-link-accent,
.topbar-account .ghost-link-accent {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
}

.ghost-link-accent:hover,
.topbar-account .ghost-link-accent:hover {
  background: var(--primary-hover);
  color: var(--primary-ink);
  border-color: rgba(var(--primary-rgb), 0.7);
}

.topbar-account .ghost-link {
  color: var(--text-soft);
  border-color: var(--stroke);
  font-size: var(--text-sm);
}

.topbar-account .ghost-link:hover {
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-compact {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  font-size: var(--text-xs);
}

/* —— Cards & panels (edge beacon = firma visual) —— */
.card,
.match-card,
.panel,
.subscribe-card,
.daily-pick-card,
.daily-parlay-card,
.preview-card,
.empty-card,
.perf-panel,
.perf-snapshot > *,
.perf-owner-snapshot > * {
  border-radius: var(--be-radius-card);
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card::before,
.match-card::before,
.daily-pick-card::before,
.daily-parlay-card::before,
.preview-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-radius: 0 1px 1px 0;
  background: var(--be-edge-beacon);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

.match-card::before,
.daily-pick-card::before,
.preview-card::before {
  opacity: 0.55;
}

.card:hover::before,
.match-card:hover::before,
.daily-pick-card:hover::before {
  opacity: 1;
}

.match-card,
.daily-pick-card,
.card,
.panel {
  transition:
    border-color 140ms var(--ease-out),
    background 140ms var(--ease-out);
}

.match-card:hover,
.daily-pick-card:hover,
.card:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.1), 0 10px 28px rgba(0, 0, 0, 0.32);
  border-color: rgba(var(--primary-rgb), 0.28);
  background: var(--card-hover);
}

.match-card:focus-within {
  box-shadow: var(--focus-ring);
  border-color: var(--stroke-strong);
}

.panel {
  padding: var(--space-4) var(--space-5);
}

.panel .callout,
.controls .callout,
.hint-row .callout,
.match-card .callout-compact {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  box-shadow: none;
  padding: var(--space-3) var(--space-4);
}

.callout-warn {
  border-color: rgba(var(--warning-rgb), 0.28);
  background: var(--warning-dim);
}

.callout-soft {
  border-color: var(--stroke);
  background: transparent;
}

.empty-card {
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--muted);
}

.empty-card p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* —— Dashboard layout —— */
.page-dashboard .dashboard-layout {
  max-width: var(--content-max-wide);
}

.perf-shell,
.daily-picks-shell,
.page-jornada-results main,
.page-jornadas main,
.page-recap main {
  max-width: var(--content-max-wide);
}

@media (min-width: 1280px) {
  .page-dashboard .dashboard-layout,
  .perf-shell,
  .daily-picks-shell,
  .page-jornada-results main,
  .page-jornadas main {
    max-width: none;
  }
}

.dashboard-sidebar .panel,
.controls-sticky .panel {
  padding: var(--space-4);
}

.dashboard-today-jump {
  border-radius: var(--radius-md);
  background: var(--bg-hover);
  border-color: var(--stroke);
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.65rem;
  gap: 0.5rem 0.85rem;
}

.featured-predictions-head h2,
.matches-section-head h2,
.daily-lane-head h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

/* —— Filters & forms —— */
.controls,
.filter-form {
  gap: var(--space-3);
}

.field,
.subscribe-form .field,
.filter-form label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  gap: var(--space-2);
}

.field select,
.field input,
.subscribe-form input,
.copilot-form textarea,
.filter-form select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background-color: var(--bg1);
  color: var(--text);
  font-size: var(--text-base);
  letter-spacing: -0.011em;
  padding: 0.6rem 2.25rem 0.6rem 0.75rem;
  min-height: 2.5rem;
  transition:
    border-color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out),
    background 140ms var(--ease-out);
}

.field select:hover,
.field input:hover,
.filter-form select:hover {
  border-color: var(--stroke-strong);
}

.field select:focus,
.field input:focus,
.subscribe-form input:focus,
.copilot-form textarea:focus,
.filter-form select:focus-visible {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: var(--focus-ring);
}

.setup-details {
  border-radius: var(--radius-md);
  border-color: var(--stroke);
  background: var(--card);
}

.setup-details summary {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  color: var(--text-soft);
}

/* —— Pills —— */
.pill,
.pill-bet-tier,
.pill-pick,
.pill-phase-live,
.pill-phase-upcoming,
.pill-phase-finished,
.match-phase-badge,
.pill-tiny,
.freemium-banner-badge,
.daily-pick-lane-badge,
.trial-banner-badge {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--stroke);
  background: var(--bg-hover);
  color: var(--text-soft);
  animation: none;
  box-shadow: none;
}

.pill-bet-tier-strong_pick,
.match-card .bet-pick-pills .pill-bet-tier-strong_pick {
  color: var(--accent-bright);
  border-color: rgba(var(--primary-rgb), 0.45);
  background: var(--primary-dim);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.12);
}

.pill-bet-tier-valid_pick {
  color: var(--accent-bright);
  border-color: rgba(var(--primary-rgb), 0.32);
  background: rgba(var(--primary-rgb), 0.12);
}

.pill-bet-tier-lean {
  color: var(--warning);
  border-color: rgba(var(--warning-rgb), 0.28);
  background: var(--warning-dim);
}

.pill-live {
  color: var(--warning);
  border-color: rgba(var(--warning-rgb), 0.32);
  background: var(--warning-dim);
}

.pill-soft {
  color: var(--muted);
  border-color: var(--stroke);
  background: transparent;
}

/* —— Estado del partido: badge + card tint (debe ganar al reset genérico de pills) —— */
.match-phase-badge,
.pill-phase {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.match-phase-live::before,
.pill-phase-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(var(--live-rgb, 239, 68, 68), 0.7);
  animation: match-phase-live-ping 1.35s ease-out infinite;
}

.match-phase-live,
.pill-phase-live,
.pill-live {
  color: #fff;
  background: var(--live, #ef4444);
  border-color: var(--live, #ef4444);
  box-shadow: 0 0 0 1px rgba(var(--live-rgb, 239, 68, 68), 0.35),
    0 0 16px rgba(var(--live-rgb, 239, 68, 68), 0.35);
}

.match-phase-upcoming,
.pill-phase-upcoming {
  color: #04202c;
  background: var(--phase-upcoming, #38bdf8);
  border-color: var(--phase-upcoming, #38bdf8);
  box-shadow: 0 0 0 1px rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.28);
}

.match-phase-finished,
.pill-phase-finished,
.pill-finished {
  color: #0f1419;
  background: var(--phase-finished, #94a3b8);
  border-color: var(--phase-finished, #94a3b8);
}

.match-phase-other,
.pill-phase-other {
  color: #1a1408;
  background: var(--warning);
  border-color: var(--warning);
}

.card.match-card.match-card-phase-live,
.card.daily-pick-card.daily-pick-card-phase-live,
.page-predictions-feed .match-card.match-card-phase-live {
  border-color: rgba(var(--live-rgb, 239, 68, 68), 0.55);
  background:
    linear-gradient(180deg, rgba(var(--live-rgb, 239, 68, 68), 0.14), rgba(var(--live-rgb, 239, 68, 68), 0.04) 42%, var(--card) 100%);
  box-shadow: 0 0 0 1px rgba(var(--live-rgb, 239, 68, 68), 0.22),
    0 10px 28px rgba(var(--live-rgb, 239, 68, 68), 0.12);
}

.card.match-card.match-card-phase-upcoming,
.card.daily-pick-card.daily-pick-card-phase-upcoming,
.page-predictions-feed .match-card.match-card-phase-upcoming {
  border-color: rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.42);
  background:
    linear-gradient(180deg, rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.12), rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.03) 40%, var(--card) 100%);
}

.card.match-card.match-card-phase-finished,
.card.daily-pick-card.daily-pick-card-phase-finished,
.page-predictions-feed .match-card.match-card-phase-finished {
  border-color: rgba(var(--phase-finished-rgb, 148, 163, 184), 0.38);
  background:
    linear-gradient(180deg, rgba(var(--phase-finished-rgb, 148, 163, 184), 0.1), var(--card) 48%);
}

.card.match-card.match-card-phase-other,
.card.daily-pick-card.daily-pick-card-phase-other,
.page-predictions-feed .match-card.match-card-phase-other {
  border-color: rgba(var(--warning-rgb), 0.45);
  background:
    linear-gradient(180deg, rgba(var(--warning-rgb), 0.12), var(--card) 48%);
}

.card.match-card.match-card-phase-live::before,
.card.daily-pick-card.daily-pick-card-phase-live::before {
  background: var(--live, #ef4444);
  opacity: 1;
  width: 4px;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

.card.match-card.match-card-phase-upcoming::before,
.card.daily-pick-card.daily-pick-card-phase-upcoming::before {
  background: var(--phase-upcoming, #38bdf8);
  opacity: 1;
  width: 4px;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

.card.match-card.match-card-phase-finished::before,
.card.daily-pick-card.daily-pick-card-phase-finished::before {
  background: var(--phase-finished, #94a3b8);
  opacity: 0.95;
  width: 4px;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

.card.match-card.match-card-phase-other::before,
.card.daily-pick-card.daily-pick-card-phase-other::before {
  background: var(--warning);
  opacity: 1;
  width: 4px;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

.card.match-card.match-card-phase-live:hover,
.card.daily-pick-card.daily-pick-card-phase-live:hover,
.page-predictions-feed .match-card.match-card-phase-live:hover {
  border-color: rgba(var(--live-rgb, 239, 68, 68), 0.75);
  background:
    linear-gradient(180deg, rgba(var(--live-rgb, 239, 68, 68), 0.18), rgba(var(--live-rgb, 239, 68, 68), 0.05) 42%, var(--card-hover) 100%);
}

.card.match-card.match-card-phase-upcoming:hover,
.card.daily-pick-card.daily-pick-card-phase-upcoming:hover,
.page-predictions-feed .match-card.match-card-phase-upcoming:hover {
  border-color: rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.6);
  background:
    linear-gradient(180deg, rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.16), rgba(var(--phase-upcoming-rgb, 56, 189, 248), 0.04) 40%, var(--card-hover) 100%);
}

.card.match-card.match-card-phase-finished:hover,
.card.daily-pick-card.daily-pick-card-phase-finished:hover,
.page-predictions-feed .match-card.match-card-phase-finished:hover {
  border-color: rgba(var(--phase-finished-rgb, 148, 163, 184), 0.5);
  background:
    linear-gradient(180deg, rgba(var(--phase-finished-rgb, 148, 163, 184), 0.14), var(--card-hover) 48%);
}

@keyframes match-phase-live-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--live-rgb, 239, 68, 68), 0.7);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 0.45rem rgba(var(--live-rgb, 239, 68, 68), 0);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--live-rgb, 239, 68, 68), 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-phase-live::before,
  .pill-phase-live::before {
    animation: none;
  }
}

/* —— Bet pick block —— */
.match-card .bet-pick,
.bet-pick {
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--edge);
  background: var(--bg-hover);
  box-shadow: none;
  border-top-color: var(--stroke);
  border-right-color: var(--stroke);
  border-bottom-color: var(--stroke);
}

.bet-pick-kicker {
  color: var(--success);
  font-size: var(--text-xs);
}

.prob-triple-cell.is-pick,
.match-card .side-markets .prob-row-pick {
  animation: none;
  box-shadow: var(--be-signal-glow);
  outline: 1px solid rgba(var(--edge-rgb), 0.35);
  background: rgba(var(--edge-rgb), 0.08);
}

.prob-triple-fill,
.prob-bar > span {
  border-radius: 1px;
}

/* —— Banners (freemium, trial, auth) —— */
.freemium-banner-inner {
  border-color: rgba(var(--warning-rgb), 0.22);
  background: rgba(var(--warning-rgb), 0.06);
}

.freemium-banner-badge {
  background: rgba(var(--warning-rgb), 0.14);
  color: var(--warning);
  border-color: rgba(var(--warning-rgb), 0.28);
}

.auth-status-banner-inner {
  border-color: rgba(var(--success-rgb), 0.28);
  background: rgba(var(--success-rgb), 0.06);
}

.trial-banner-inner {
  border-color: rgba(var(--warning-rgb), 0.24);
  background: rgba(var(--warning-rgb), 0.06);
}

.trial-banner-badge {
  background: rgba(var(--warning-rgb), 0.14);
  color: var(--warning);
  border-color: rgba(var(--warning-rgb), 0.28);
}

/* —— Auth & subscribe —— */
.subscribe-wrap {
  max-width: 26rem;
}

.subscribe-card {
  padding: var(--space-6);
}

.subscribe-brand h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.subscribe-price .amount {
  letter-spacing: -0.04em;
  font-weight: 600;
  font-size: 2.25rem;
}

.subscribe-features li::before {
  color: var(--success);
  font-weight: 600;
}

.subscribe-alert {
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

/* —— Performance dashboard —— */
.perf-panel {
  padding: var(--space-4) var(--space-5);
  background: var(--card);
  border-color: var(--stroke);
  border-radius: var(--radius-md);
}

.perf-topband {
  border-bottom-color: var(--stroke);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.perf-section-nav {
  border-color: var(--stroke);
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  gap: 0.15rem;
}

.perf-nav-link {
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  padding: 0.45rem 0.75rem;
  font-weight: 500;
}

.perf-nav-link:hover {
  background: var(--bg-hover);
}

.perf-nav-link.is-active {
  background: var(--bg-active);
  color: var(--text);
}

.perf-kpi-value {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.perf-kpi-label {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* —— Tables —— */
.table-wrap {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}

.table-wrap table {
  border-collapse: collapse;
  width: 100%;
}

.table-wrap th {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-hover);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.table-wrap td {
  border-bottom: 1px solid var(--stroke);
  font-size: var(--text-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-soft);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover td {
  background: var(--bg-hover);
}

.table-wrap td:first-child,
.table-wrap th:first-child {
  padding-left: var(--space-4);
}

.table-wrap td:last-child,
.table-wrap th:last-child {
  padding-right: var(--space-4);
}

/* —— Daily picks —— */
.daily-pick-card.pill-bet-tier-strong_pick {
  border-left: 2px solid rgba(var(--edge-rgb), 0.5);
}

.daily-pick-card.pill-bet-tier-valid_pick {
  border-left: 2px solid rgba(var(--edge-rgb), 0.35);
}

.daily-pick-card.pill-bet-tier-lean {
  border-left: 2px solid rgba(var(--warn-rgb), 0.35);
}

.daily-parlay-card-bomba,
.daily-parlay-card-mlb-totals {
  background: var(--card);
}

.daily-parlay-group-bomba .daily-parlay-group-title,
.daily-parlay-group-mlb-totals .daily-parlay-group-title {
  color: var(--text);
}

.daily-picks-toolbar {
  border-color: var(--stroke);
  background: var(--card);
  border-radius: var(--radius-md);
}

/* —— Matchday results & summary —— */
.results-eval-block,
.jornada-card,
.recap-index-card {
  border-radius: var(--radius-md);
  border-color: var(--stroke);
  background: var(--card);
}

.matchday-chip {
  border-radius: var(--radius-sm);
  border-color: var(--stroke);
  font-size: var(--text-sm);
  font-weight: 500;
}

.matchday-chip.is-active {
  background: var(--bg-active);
  border-color: var(--stroke-strong);
  color: var(--text);
}

/* —— Recap —— */
.recap-owner-banner,
.recap-teaser {
  border-color: rgba(var(--warning-rgb), 0.28);
  background: rgba(var(--warning-rgb), 0.06);
}

.recap-index-card:hover,
.recap-teaser:hover {
  border-color: var(--stroke-strong);
  transform: none;
  background: var(--card-hover);
}

.recap-share-btn {
  border-radius: var(--radius-sm);
  border-color: var(--stroke);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* —— Copilot —— */
.copilot-msg-user {
  background: var(--primary-dim);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  color: var(--text);
}

.copilot-msg-assistant {
  background: var(--bg-hover);
  border: 1px solid var(--stroke);
}

.copilot-msg {
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  line-height: 1.55;
}

.copilot-form textarea {
  min-height: 2.75rem;
  resize: vertical;
}

/*
 * —— Content patterns ——
 * Patrones de contenido propios de BossEdge. Elegir por función, no por estética.
 *
 * .content-metrics     KPIs y proof bar — el dato es el contenido (landing, transparencia).
 * .content-compare     Tabla feature × plan — pricing y comparativas (no cards simétricas).
 * .content-includes    Filas escaneables de lo incluido — checkout y suscripción.
 * .content-facts       2–4 hechos inline con divisor — contexto breve sin grid de features.
 * .content-status      dl de cuenta/estado — pantallas transaccionales post-login.
 * .content-notice      Barra contextual horizontal — freemium, trial, auth status.
 * .content-empty       Estado vacío plano — divisor + título + línea + enlace.
 * .content-locked      Bloque de funciones Pro al final del panel freemium.
 * .preview-card / .mock-panel  Demostración del producto real — no iconos decorativos.
 */

.content-metrics {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.content-metrics--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-metrics--strip {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--stroke);
}

.content-metric {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--be-radius-card, 6px 10px 10px 6px);
  border: 1px solid var(--stroke);
  background: rgba(var(--primary-rgb), 0.04);
  position: relative;
}

.content-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 2px;
  background: var(--be-edge-beacon);
  border-radius: 0 1px 1px 0;
  opacity: 0.45;
}

.content-metric--primary {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--edge-rgb), 0.06));
  border-color: rgba(var(--accent-rgb), 0.22);
}

.content-metric-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.content-metric-value {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.content-metric-value--text {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.content-metric-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.content-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.content-facts li {
  display: flex;
  align-items: center;
}

.content-facts li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85rem;
  margin: 0 0.85rem;
  background: var(--stroke);
}

.content-facts--center {
  justify-content: center;
}

.content-compare-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.content-compare th,
.content-compare td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}

.content-compare thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom-width: 2px;
}

.content-compare tbody th {
  font-weight: 500;
  color: var(--muted);
}

.content-compare-feature-col {
  width: 38%;
}

.content-compare-highlight-col {
  background: rgba(var(--accent-rgb), 0.04);
}

.content-compare-price {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.content-compare-period {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.content-compare-yes {
  color: var(--edge-bright, var(--edge));
  font-weight: 700;
}

.content-compare-no {
  color: var(--muted);
}

.content-compare-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.content-includes tbody th {
  width: auto;
  font-weight: 500;
  color: var(--text-soft);
}

.content-includes tbody td {
  width: 2.5rem;
  text-align: center;
  vertical-align: middle;
  color: var(--edge-bright, var(--edge));
  font-weight: 700;
}

.content-status {
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.content-status div {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--stroke);
}

.content-status div:last-child {
  border-bottom: none;
}

.content-status dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.content-status dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.4;
}

/*
 * .content-notice  Barra contextual (freemium, trial, auth status).
 *                   Horizontal: etiqueta + texto + acciones. No panel/card.
 * .content-empty    Estado vacío plano — divisor + título + una línea + enlace.
 */

.content-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem max(var(--page-gutter, 1rem), env(safe-area-inset-right, 0px))
    0.75rem max(var(--page-gutter, 1rem), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--stroke);
  background: rgba(var(--warning-rgb), 0.05);
}

.content-notice-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--warning);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--warning-rgb), 0.28);
  background: rgba(var(--warning-rgb), 0.1);
}

.content-notice-body {
  flex: 1 1 14rem;
  margin: 0;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.content-notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.content-notice--expired {
  background: rgba(var(--error-rgb), 0.05);
}

.content-notice--expired .content-notice-label {
  color: var(--err);
  border-color: rgba(var(--error-rgb), 0.28);
  background: rgba(var(--error-rgb), 0.1);
}

.content-notice--success {
  background: rgba(var(--success-rgb), 0.05);
  border-bottom-color: rgba(var(--success-rgb), 0.2);
}

.content-notice--success .content-notice-body {
  color: var(--text-soft);
}

.content-empty {
  padding: 1.35rem 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  max-width: 46ch;
}

.content-empty-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-empty-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.content-empty-action {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

.content-locked {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stroke);
}

.content-locked-head {
  margin-bottom: 0.85rem;
}

.content-locked-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-locked-meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 52ch;
}

.content-locked-table {
  margin-bottom: 0.85rem;
}

.content-locked-table tbody th {
  color: var(--text-soft);
}

.content-locked-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--bg-hover);
}

.content-locked-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .content-metrics--3,
  .content-compare-actions {
    grid-template-columns: 1fr;
  }

  .content-facts {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .content-facts li::after {
    display: none;
  }

  .content-compare-feature-col {
    display: none;
  }

  .content-compare tbody th {
    display: block;
    width: 100%;
    padding-bottom: 0.25rem;
    border-bottom: none;
    background: transparent;
  }

  .content-compare tbody td {
    display: block;
    width: 100%;
    padding-top: 0.15rem;
  }

  .content-compare tbody tr {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--stroke);
  }

  .content-compare tbody td:last-child {
    padding-bottom: 0.5rem;
  }

  .content-status div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .content-notice-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* —— Landing —— */
.page-landing .hero-cta .btn-primary:hover,
.page-landing .final-cta .btn-primary:hover {
  transform: none;
}

.page-landing .preview-card {
  border-color: var(--stroke);
}

.page-landing .faq-item {
  border-color: var(--stroke);
  border-radius: var(--radius-md);
}

/* —— Footer —— */
.page-footer,
.landing-footer {
  border-top: 1px solid var(--stroke);
  background: transparent;
  padding: var(--space-6) var(--page-gutter);
  font-size: var(--text-xs);
  color: var(--muted);
}

.page-footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}

.page-footer-links a:hover,
.page-footer-links a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

/* —— Locale switcher —— */
.locale-switcher {
  gap: 0.15rem;
}

.locale-switcher-btn {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.25rem 0.45rem;
  color: var(--muted);
  background: transparent;
  transition:
    background 140ms var(--ease-out),
    color 140ms var(--ease-out),
    border-color 140ms var(--ease-out);
}

.locale-switcher-btn.is-active {
  background: var(--bg-active);
  border-color: var(--stroke);
  color: var(--text);
}

.locale-switcher-btn:hover:not(.is-active) {
  background: var(--bg-hover);
  color: var(--text-soft);
}

@media (min-width: 1280px) {
  .freemium-banner,
  .trial-banner,
  .auth-status-banner,
  .site-flow {
    max-width: none;
    padding-left: var(--page-gutter-wide, clamp(1rem, 1.5vw, 1.75rem));
    padding-right: var(--page-gutter-wide, clamp(1rem, 1.5vw, 1.75rem));
  }
}

/* —— Iconography —— */
.mobile-tab-icon,
.nav-icon,
.site-nav-primary-link svg,
.sport-explorer-pill svg,
.brand-page svg {
  color: var(--icon);
  stroke: currentColor;
}

.mobile-tab-link.is-active .mobile-tab-icon,
.site-nav-primary-link.is-active svg,
.site-nav-primary-link:hover svg {
  color: var(--text);
}

/* —— Motion —— */
@keyframes be-card-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes be-drawer-up {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.league-grid > .match-card,
.daily-pick-list > .daily-pick-card,
.featured-grid > .match-card {
  animation: be-card-rise 240ms var(--ease-out) both;
}

.league-grid > .match-card:nth-child(n),
.featured-grid > .match-card:nth-child(n) {
  animation-delay: 0ms;
}

.mobile-more-drawer:not([hidden]),
.mobile-sports-drawer:not([hidden]) {
  animation: be-drawer-up 200ms var(--ease-out) both;
}

.mobile-more-backdrop:not([hidden]) {
  animation: be-card-rise 160ms var(--ease-out) both;
}

.prob-triple-cell.is-pick,
.match-card .side-markets .prob-row-pick {
  animation: none;
}

/* —— Disable amateur hover transforms globally —— */
.match-card:hover,
.daily-pick-card:hover,
.card:hover,
.recap-index-card:hover,
.btn-primary:hover,
.btn-ghost:hover,
.ghost-link:hover {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .league-grid > .match-card,
  .daily-pick-list > .daily-pick-card,
  .featured-grid > .match-card,
  .mobile-more-drawer:not([hidden]),
  .mobile-sports-drawer:not([hidden]),
  .mobile-more-backdrop:not([hidden]) {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════
   Signal Observatory — extensiones por página
   ══════════════════════════════════════════════════════════ */

/* —— Auth & Subscribe —— */
.page-subscribe {
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(var(--primary-rgb), 0.06), transparent 55%),
    var(--bg0);
}

.page-subscribe .subscribe-card {
  border-radius: var(--be-radius-card);
  position: relative;
}

.page-subscribe .subscribe-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: var(--be-edge-beacon);
  border-radius: 0 1px 1px 0;
  opacity: 0.6;
}

.page-subscribe .subscribe-price .amount,
.page-subscribe .content-metric-value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.page-subscribe .subscribe-alert,
.page-subscribe .subscribe-note-trial-warn {
  border-radius: var(--be-radius-card);
}

/* —— Performance —— */
.page-performance .perf-accuracy-value,
.page-performance .perf-stat-row-item dd,
.page-performance .perf-inline-value,
.page-performance .perf-recent-chip-value,
.page-performance .perf-stat-value,
.page-performance .perf-col-num,
.page-performance .perf-abstention-row dd {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.page-performance .perf-section-title {
  display: block;
}

.page-performance .perf-section-title::before {
  display: none;
}

/* —— Copilot —— */
.page-copilot .copilot-main {
  border-radius: var(--be-radius-card);
  border: 1px solid var(--stroke);
  background: var(--card);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.page-copilot .copilot-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6%;
  bottom: 6%;
  width: 2px;
  background: var(--be-edge-beacon);
  border-radius: 0 1px 1px 0;
  opacity: 0.55;
}

.page-copilot .copilot-msg {
  border-radius: var(--be-radius-card);
}

.page-copilot .copilot-msg-user {
  border-left: 2px solid var(--primary);
  border-radius: var(--be-radius-card);
}

.page-copilot .copilot-msg-assistant {
  border-left: 2px solid rgba(var(--edge-rgb), 0.45);
  border-radius: var(--be-radius-card);
}

.page-copilot .copilot-form textarea {
  font-family: var(--font-ui);
  border-radius: var(--radius-sm);
  background: var(--bg1);
}

/* —— Daily picks —— */
.page-daily-picks .daily-pick-card {
  border-radius: var(--be-radius-card);
}

.page-daily-picks .daily-pick-card.pill-bet-tier-strong_pick {
  border-left-color: var(--edge);
  box-shadow: var(--be-signal-glow);
}

.page-daily-picks .daily-lane-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-daily-picks .daily-lane-head h2::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--be-edge-beacon);
  box-shadow: var(--be-signal-glow);
}

.page-daily-picks .daily-picks-toolbar {
  border-radius: var(--be-radius-card);
}

.page-daily-picks .daily-parlay-card {
  border-radius: var(--be-radius-card);
}

/* —— Matchday (summary, results, recap) —— */
.page-jornadas .round-block,
.page-jornada-results .results-card,
.page-recap .recap-index-card,
.page-recap .recap-article {
  border-radius: var(--be-radius-card);
  position: relative;
}

.page-jornadas .round-block::before,
.page-jornada-results .results-card::before,
.page-recap .recap-index-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: var(--be-edge-beacon);
  border-radius: 0 1px 1px 0;
  opacity: 0.4;
}

.page-jornadas .stat-chip,
.page-jornada-results .results-sport-chip {
  border-radius: var(--radius-sm);
}

.page-jornadas .stat-chip-accent,
.page-jornada-results .results-sport-chip.is-active {
  border-color: rgba(var(--primary-rgb), 0.28);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

.page-jornada-results .results-eval-value,
.page-jornadas .stat-chip,
.page-recap .recap-stat-value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

/* —— Explain —— */
.explain-page .explain-article {
  border-radius: var(--be-radius-card);
  border: 1px solid var(--stroke);
  position: relative;
}

.explain-page .explain-article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5%;
  bottom: 5%;
  width: 2px;
  background: var(--be-edge-beacon);
  border-radius: 0 1px 1px 0;
  opacity: 0.5;
}

.explain-page .explain-section {
  border-radius: var(--be-radius-card);
  border-color: var(--stroke);
  background: rgba(var(--primary-rgb), 0.02);
}

.explain-page .explain-section-index {
  font-family: var(--font-data);
  color: var(--primary);
}

.explain-page .explain-plain-confidence,
.explain-page .explain-probs .prob-triple-pct {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.explain-page .explain-technical {
  border-radius: var(--be-radius-card);
  border-color: var(--stroke);
}

/* —— Transparency & legal —— */
.page-landing .content-metric-value,
.page-transparency .content-metric-value {
  font-family: var(--font-data);
}

.jornada-load-more {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 0.25rem;
}

/* —— Navegación: overlay de carga en páginas pesadas —— */
.nav-page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4, 1rem);
  padding: var(--space-6, 1.5rem);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text, #e8ecef);
  text-align: center;
  pointer-events: all;
}

.nav-page-loading[hidden] {
  display: none !important;
}

.nav-page-loading-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(var(--primary-rgb, 124, 58, 237), 0.2);
  border-top-color: rgba(var(--primary-rgb, 124, 58, 237), 0.95);
  border-radius: 50%;
  animation: nav-page-loading-spin 0.75s linear infinite;
}

.nav-page-loading-label {
  margin: 0;
  max-width: 22rem;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.5;
  color: var(--muted, rgba(200, 212, 224, 0.78));
}

@keyframes nav-page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

body.nav-page-loading-active {
  overflow: hidden;
}

/* —— Identidad púrpura: jerarquía (picks, filtros, métricas, progreso) —— */
.match-card:has(.bet-pick-strong_pick),
.match-card:has(.pill-bet-tier-strong_pick),
.parlay-card-recommended,
.parlay-card-cross.parlay-card-recommended,
.daily-pick-card.pill-bet-tier-strong_pick {
  border-color: rgba(var(--primary-rgb), 0.34);
  box-shadow: var(--glow-purple, 0 0 24px rgba(var(--primary-rgb), 0.14));
}

.jornada-chip.is-active,
.jornada-chip-round.is-active,
.sport-chip.is-active,
.sport-chip-football.is-active,
.sport-chip-baseball.is-active,
.sport-chip-hockey.is-active,
.sport-chip-tennis.is-active,
.sport-chip-esports.is-active,
.filter-chip.is-active {
  color: var(--accent-bright);
  border-color: rgba(var(--primary-rgb), 0.45);
  background: var(--bg-active);
}

.jornada-chip.is-active .jornada-chip-count,
.sport-chip.is-active .sport-chip-count,
.filter-chip.is-active .filter-chip-count {
  color: var(--accent-bright);
}

.locale-switcher-btn.is-active {
  color: var(--accent-bright);
  background: var(--primary-dim);
}

.prob-row-pick .fill {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.35), var(--primary));
}

.bet-pick-metric.is-value dd,
.bet-pick-metric.is-high dd {
  color: var(--accent-bright);
}

.page-performance .perf-recent-chip-value,
.content-metric--primary .content-metric-value {
  color: var(--accent-bright);
}

