/* ─── Reset & Tokens ──────────────────────────────────── */
:root {
  --bg:            #07070a;
  --surface:       #121217;
  --surface-2:     #0f0f13;
  --surface-3:     #191922;
  --line:          rgba(255,255,255,0.05);
  --line-strong:   rgba(255,255,255,0.12);
  --border:        rgba(255,255,255,0.08);
  --shadow:        0 18px 44px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.035);
  --text:          #f4f4f5;
  --muted:         #94a3b8;
  --muted-2:       #64748b;
  --accent:        #7c3aed;
  --accent-2:      #a78bfa;
  --accent-soft:   rgba(124,58,237,0.06);
  --accent-border: rgba(124,58,237,0.3);
  --blue:          #3b82f6;
  --yellow:        #eab308;
  --danger:        #f43f5e;
  --green:         #10b981;
  --card-radius:   14px;
  --font:          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.08), transparent 45rem),
              linear-gradient(180deg, #09090d 0%, #050507 100%);
  font-family: var(--font);
  font-size: 13px; font-weight: 400; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { max-width: 100%; }

button, input { font: inherit; }
button { cursor: pointer; transition: all 0.2s ease; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.muted { color: var(--muted); }

/* ─── Splash Screen ──────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #080810;
  display: flex; align-items: center; justify-content: center;
}
.splash__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.splash__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
}
.splash__orb--tl {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(100,40,200,0.7), transparent 70%);
  top: -140px; left: -120px;
}
.splash__orb--br {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(90,30,180,0.5), transparent 70%);
  bottom: -130px; right: -100px;
}
.splash__arc {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(140,80,255,0.18);
}
.splash__arc--1 { width: 700px; height: 700px; bottom: -320px; left: -200px; }
.splash__arc--2 { width: 500px; height: 500px; top: -180px; right: -160px; }
.splash__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.splash__icon {
  position: relative;
  width: 108px; height: 108px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.splash__icon-glow {
  position: absolute; inset: -18px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(120,50,230,0.55), transparent 65%);
  filter: blur(18px);
  animation: splashGlow 2.4s ease-in-out infinite alternate;
}
.splash__icon-face {
  position: relative; z-index: 1;
  width: 108px; height: 108px;
  border-radius: 28px;
  background: linear-gradient(145deg, #8b45f0 0%, #6520c8 50%, #4a13a0 100%);
  box-shadow: 0 8px 32px rgba(100,40,200,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.splash__icon--brand {
  animation: splashLogoFloat 2.35s ease-in-out infinite;
}
.splash__logo {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 108px;
  display: block;
  border-radius: 28px;
  filter: drop-shadow(0 18px 40px rgba(124,58,237,.34));
  animation: splashLogoPulse 1.85s ease-in-out infinite;
}
.splash__shine {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  pointer-events: none;
}
.splash__shine::after {
  content: "";
  position: absolute;
  top: -25%;
  left: -65%;
  width: 52%;
  height: 150%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.32) 48%, transparent 100%);
  transform: rotate(14deg);
  animation: splashLogoShine 2.6s ease-in-out infinite;
}
.splash__name {
  font-size: 32px; font-weight: 700; letter-spacing: 0.22em;
  color: #fff; margin-bottom: 18px;
}
.splash__label {
  color: rgba(180,160,220,0.75); font-size: 14px; font-weight: 400;
  letter-spacing: 0.02em;
}
@keyframes splashGlow {
  from { opacity: 0.6; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.04); }
}
@keyframes splashLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes splashLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 18px 40px rgba(124,58,237,.34)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 24px 52px rgba(167,139,250,.46)); }
}
@keyframes splashLogoShine {
  0%, 40% { transform: translateX(0) rotate(14deg); opacity: 0; }
  52% { opacity: .75; }
  72%, 100% { transform: translateX(330%) rotate(14deg); opacity: 0; }
}
.splash--fade-out {
  animation: splashFadeOut 0.5s ease forwards;
}
@keyframes splashFadeOut {
  to { opacity: 0; pointer-events: none; }
}

/* ─── App Shell ──────────────────────────────────────── */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ─── Topbar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(9,9,13,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.topbar__inner {
  width: min(1560px, calc(100% - 38px)); margin: 0 auto;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 36px;
  background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(147,51,234,.14));
  box-shadow: 0 4px 14px rgba(124,58,237,0.22);
  overflow: hidden;
}
.brand__mark--logo {
  padding: 4px;
}
.brand__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(124,58,237,.18));
}
.brand__name {
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav { display: flex; gap: 24px; align-items: center; margin-left: 10px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 13.5px;
  position: relative; padding: 4px 0; transition: color 0.2s;
}
.nav a.is-active, .nav a:hover { color: var(--text); }
.nav a.is-active::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px; background: var(--accent); border-radius: 99px;
}
.match-tools { display: flex; gap: 10px; align-items: center; }

.mobile-nav {
  display: none;
}
.match-input {
  height: 36px; width: 120px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #0b0b0f; color: var(--text);
  padding: 0 12px; outline: 0; font-weight: 500; transition: border-color 0.2s;
}
.match-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.primary-btn {
  height: 36px; border: 0; border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), #6d28d9);
  color: white; padding: 0 16px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.auto-btn {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #0b0b0f; color: var(--muted);
  padding: 0 12px; display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px;
}
.auto-btn span { width: 6px; height: 6px; border-radius: 99px; background: var(--muted-2); transition: all 0.2s; }
.auto-btn.is-on { color: var(--text); border-color: rgba(124,58,237,0.4); }
.auto-btn.is-on span { background: var(--green); box-shadow: 0 0 8px var(--green); }
.clock { color: var(--muted-2); font-size: 12.5px; min-width: 60px; text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Page Layout ────────────────────────────────────── */
.page { width: min(1560px, calc(100% - 38px)); margin: 20px auto 48px; }
.card, .side-card, .state-card, .section-card {
  background: rgba(18,18,23,0.6);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.state-card {
  min-height: 200px; display: grid; place-items: center;
  text-align: center; padding: 40px 32px;
}
.state-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.state-card--error { border-color: rgba(244,63,94,0.3); background: rgba(244,63,94,0.02); }

.state-card--loading {
  position: relative;
  overflow: hidden;
  border-color: rgba(124,58,237,0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(124,58,237,0.13), transparent 28rem),
    rgba(18,18,23,0.64);
}
.state-card--loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.045) 42%, transparent 72%);
  transform: translateX(-100%);
  animation: loadingSweep 1.55s ease-in-out infinite;
  pointer-events: none;
}
.match-loader {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.match-loader--brand { gap: 12px; }
.match-loader__logo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  animation: betovenLoaderFloat 2.35s ease-in-out infinite;
  filter: drop-shadow(0 20px 38px rgba(0,0,0,0.38));
}
.match-loader__logo {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: block;
  border-radius: 22px;
  animation: betovenLoaderPulse 1.7s ease-in-out infinite;
}
.match-loader__glow {
  position: absolute;
  inset: 4px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 45%, rgba(167,139,250,.46), rgba(124,58,237,.12) 44%, transparent 72%);
  filter: blur(14px);
  animation: betovenGlowPulse 1.8s ease-in-out infinite;
}
.match-loader__orbit {
  position: absolute;
  inset: 2px;
  border-radius: 28px;
  border: 1px solid rgba(167,139,250,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 34px rgba(124,58,237,.18);
}
.match-loader__orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: 8px;
  top: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(167,139,250,.95), 0 0 34px rgba(124,58,237,.55);
  transform-origin: -32px 32px;
  animation: betovenOrbitDot 1.25s linear infinite;
}
.match-loader__shine {
  position: absolute;
  z-index: 3;
  inset: 7px;
  border-radius: 23px;
  overflow: hidden;
  pointer-events: none;
}
.match-loader__shine::before {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  width: 32%;
  left: -55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  animation: betovenLogoSheen 1.85s ease-in-out infinite;
}
.match-loader strong { color: #ddd6fe; font-weight: 700; }

.inline-brand-loader {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-color: rgba(124,58,237,0.24);
  background:
    radial-gradient(circle at 50% 16%, rgba(124,58,237,0.16), transparent 24rem),
    rgba(18,18,23,0.62);
  overflow: hidden;
}
.inline-brand-loader .match-loader--inline {
  gap: 10px;
}
.inline-brand-loader .match-loader__logo-wrap {
  width: 72px;
  height: 72px;
}
.inline-brand-loader .match-loader__logo {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}
.inline-brand-loader .match-loader__glow {
  inset: 3px;
}
.inline-brand-loader .match-loader__orbit {
  border-radius: 23px;
}
.inline-brand-loader .match-loader__orbit::after {
  width: 7px;
  height: 7px;
  right: 7px;
  top: 7px;
  transform-origin: -26px 26px;
}
.inline-brand-loader .match-loader__shine {
  inset: 6px;
  border-radius: 19px;
}
.inline-brand-loader strong {
  color: #ddd6fe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}
@media (max-width: 760px) {
  .inline-brand-loader { min-height: 145px; border-radius: 16px; }
  .inline-brand-loader .match-loader__logo-wrap { width: 64px; height: 64px; }
  .inline-brand-loader .match-loader__logo { width: 54px; height: 54px; border-radius: 16px; }
}
@keyframes betovenLoaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.015); }
}
@keyframes betovenLoaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes betovenGlowPulse {
  0%, 100% { opacity: .58; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes betovenOrbitDot { to { transform: rotate(360deg); } }
@keyframes betovenLogoSheen {
  0% { left: -55%; opacity: 0; }
  25%, 65% { opacity: 1; }
  100% { left: 124%; opacity: 0; }
}
@keyframes loadingSweep {
  0% { transform: translateX(-100%); opacity: 0; }
  20%, 70% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .match-loader__logo-wrap,
  .match-loader__logo,
  .match-loader__glow,
  .match-loader__orbit::after,
  .match-loader__shine::before,
  .state-card--loading::before { animation: none !important; }
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 20px; align-items: start;
  min-width: 0;
}
.main-stack { display: grid; gap: 20px; min-width: 0; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 80px; min-width: 0; }
.side-card { padding: 16px; background: var(--surface); }

/* ─── Match Hero ─────────────────────────────────────── */
.match-hero {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, rgba(20,20,26,0.95), rgba(13,13,18,0.98));
}
.match-hero__top {
  min-height: 44px; display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center; padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.round-btn {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--surface-3); color: var(--text);
  font-size: 18px; display: grid; place-items: center;
}
.round-btn:hover { background: rgba(255,255,255,0.1); }
.match-meta {
  justify-self: center; display: flex; align-items: center;
  gap: 10px; color: var(--muted); font-size: 12.5px;
}
.match-meta span:first-child { color: var(--text); font-weight: 600; }
.badge, .chip {
  border: 1px solid var(--accent-border); background: var(--accent-soft);
  color: var(--accent-2); border-radius: 6px;
  padding: 4px 8px; font-size: 11px; font-weight: 600; line-height: 1;
}
.match-submeta {
  min-height: 36px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2); display: flex; align-items: center;
  justify-content: center; text-align: center; font-size: 12px; gap: 6px;
}
.scoreboard {
  display: grid;
  grid-template-columns: minmax(0,1fr) 180px minmax(0,1fr);
  gap: 16px; align-items: center; padding: 34px 24px 22px;
}
.team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.team--home { justify-content: flex-end; text-align: right; }
.team--away { justify-content: flex-start; }
.team--away .team-name    { order: 1; text-align: left; }
.team--away .team-logo-wrap { order: 2; }
.team-logo-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 50%, #202027, #0f0f13);
  display: grid; place-items: center; flex: 0 0 auto;
}
.team-logo { width: 36px; height: 36px; object-fit: contain; }
.team-logo.is-hidden { display: none; }
.team-fallback { display: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.team-fallback.is-visible { display: inline; }
.team-name {
  margin: 0; color: var(--text);
  font-size: clamp(15px,1.8vw,22px); font-weight: 600; letter-spacing: -0.02em;
  min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scorebox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.main-score {
  color: var(--text);
  font-size: clamp(38px,3.5vw,48px); line-height: 1;
  letter-spacing: -0.02em; font-weight: 700; font-variant-numeric: tabular-nums;
}
.status-pill {
  border-radius: 99px; padding: 4px 12px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: #34d399; font-size: 11px; font-weight: 600;
}

/* Hero Ribbon (Status badge) */
.hero-ribbon {
  position: absolute;
  top: 80px;
  right: -1px;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
}
.hero-ribbon__face {
  position: relative; min-width: 188px; height: 50px;
  display: flex; align-items: center;
  padding: 0 16px 0 18px;
  border-radius: 13px 0 0 13px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 48%, #2e1065 100%);
  border: 1px solid rgba(173,130,255,0.24);
  box-shadow: 0 14px 26px rgba(17,8,38,0.34), inset 0 1px 0 rgba(255,255,255,0.11);
}
.hero-ribbon__shine {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.17), rgba(255,255,255,0.02) 35%, transparent 78%);
  opacity: 0.52;
}
.hero-ribbon__content {
  position: relative; display: flex; flex-direction: column;
  justify-content: center; gap: 1px;
}
.hero-ribbon__eyebrow {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(247,244,255,0.76);
}
.hero-ribbon__title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 750; letter-spacing: 0.025em; color: #fff;
}
.hero-ribbon__sub { font-size: 10.5px; color: rgba(239,233,255,0.78); }
.hero-ribbon__pulse {
  width: 7px; height: 7px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.62), 0 0 10px rgba(255,255,255,0.48);
  animation: livePulse 1.7s infinite;
}
.hero-ribbon__face.hero-ribbon--live {
  min-width: 136px; height: 34px;
  padding: 0 14px 0 16px;
  border-radius: 11px 0 0 11px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  background: linear-gradient(135deg,#8b5cf6 0%,#6d28d9 48%,#4c1d95 100%);
  box-shadow: 0 10px 22px rgba(109,40,217,0.26), inset 0 1px 0 rgba(255,255,255,0.14);
}
.hero-ribbon__face.hero-ribbon--live .hero-ribbon__content {
  width: 100%; flex-direction: row; align-items: center; justify-content: center; gap: 0;
}
.hero-ribbon__face.hero-ribbon--live .hero-ribbon__title {
  font-size: 13px; font-weight: 750; letter-spacing: 0; text-transform: none; line-height: 1;
}
.hero-ribbon__face.hero-ribbon--live .hero-ribbon__eyebrow,
.hero-ribbon__face.hero-ribbon--live .hero-ribbon__sub { display: none; }
.hero-ribbon__face.hero-ribbon--live .hero-ribbon__pulse { width: 6px; height: 6px; }
.hero-ribbon--finished{ background: linear-gradient(135deg,#7c3aed 0%,#4c1d95 55%,#1f103f 100%); }
.hero-ribbon--halftime{ background: linear-gradient(135deg,#8b5cf6 0%,#6d28d9 45%,#312e81 100%); }
.hero-ribbon--scheduled,
.hero-ribbon--postponed,
.hero-ribbon--default { background: linear-gradient(135deg,#6d28d9 0%,#4c1d95 50%,#2e1065 100%); }

@keyframes livePulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Hero Insight Bar */
.hero-insight {
  display: grid;
  grid-template-columns: minmax(240px,2.2fr) repeat(4, minmax(100px,1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124,58,237,0.04), rgba(255,255,255,0.01));
}
.hero-insight__lead,
.hero-insight__stat {
  min-height: 72px; padding: 12px 18px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-insight__lead { gap: 5px; }
.hero-insight__stat { border-left: 1px solid var(--line); gap: 3px; }
.hero-insight__label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted-2);
}
.hero-insight__text {
  font-size: 13px; line-height: 1.45; color: var(--text); font-weight: 500;
}
.hero-insight__stat strong {
  font-size: 14px; line-height: 1.3; color: var(--text);
  font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Tabs */
.tabs {
  display: flex; gap: 24px;
  border-top: 1px solid var(--line);
  padding: 0 24px; overflow-x: auto;
}
.tab {
  position: relative; border: 0; background: transparent;
  color: var(--muted); padding: 14px 0; font-weight: 600; font-size: 13px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent-2); }
.tab::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: transparent; transition: all 0.2s;
}
.tab.is-active::after { background: var(--accent); }

/* ─── Main Panels ────────────────────────────────────── */
.main-panel { min-width: 0; }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; gap: 16px; }
.section-card { padding: 20px; background: rgba(18,18,23,0.4); }
.stats-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.kicker {
  color: var(--accent-2); text-transform: uppercase;
  letter-spacing: .10em; font-size: 11px; font-weight: 700;
}
.section-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.section-text  { margin: 0; color: #cbd5e1; font-size: 13.5px; line-height: 1.6; }

/* Resumo quick actions button */
.resumo-action-btn {
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: rgba(255,255,255,0.03); color: var(--muted);
  padding: 5px 10px; font-size: 11.5px; font-weight: 500;
}
.resumo-action-btn:hover { background: rgba(124,58,237,0.08); color: var(--accent-2); }

/* ─── Pressure Bar ───────────────────────────────────── */
.pressure-line {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 10px; align-items: center; margin-top: 14px;
}
.pressure-name { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pressure-name.away { text-align: right; }
.pressure-track {
  height: 8px; border-radius: 99px; background: #0b0b0f;
  overflow: hidden; display: flex; padding: 1px;
  border: 1px solid var(--line); flex: 1;
}
.pressure-home { background: linear-gradient(90deg, var(--accent), #a78bfa); border-radius: 99px; transition: width 0.4s ease; }
.pressure-away { background: linear-gradient(90deg, #60a5fa, var(--blue)); border-radius: 99px; transition: width 0.4s ease; }
.pressure-score {
  display: flex; justify-content: space-between;
  color: var(--text); margin-top: 6px;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pressure-summary {
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
  font-style: italic; line-height: 1.5;
  border-left: 2px solid var(--accent); padding-left: 10px;
}

/* ─── Pressure chart (Linha) ─────────────────────────── */
.pressure-chart-wrap {
  margin-top: 14px; position: relative;
  height: 120px; width: 100%;
}
.pressure-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ─── Shot Pitch ─────────────────────────────────────── */
.pitch-card { min-width: 0; }
.pitch {
  --shot-home-color: var(--accent);
  --shot-away-color: #38bdf8;
  position: relative;
  width: 100%;
  height: clamp(204px, 15vw, 252px);
  border: 1px solid rgba(255,255,255,.11); border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 50%, rgba(124,58,237,.10), transparent 36%),
    radial-gradient(circle at 16% 50%, rgba(56,189,248,.06), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 10%, transparent 10% 20%),
    #0f0f18;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
/* Pitch markings via SVG drawn in JS */
.pitch__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.shot-legend {
  position: absolute; left: 14px; top: 12px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  background: rgba(8,8,13,.52);
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .01em;
  pointer-events: none;
  z-index: 3;
}
.shot-legend span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 148px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-legend__dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; flex: 0 0 auto; }
.shot-legend__dot--home { background: var(--shot-home-color, var(--accent)); box-shadow: 0 0 8px var(--shot-home-color, rgba(124,58,237,.75)); }
.shot-legend__dot--away { background: var(--shot-away-color, #38bdf8); box-shadow: 0 0 8px var(--shot-away-color, rgba(56,189,248,.65)); }
.shot-dot {
  --dot-color: var(--shot-home-color, var(--accent));
  --shot-size: 10px;
  position: absolute;
  width: var(--shot-size);
  height: var(--shot-size);
  min-width: var(--shot-size);
  min-height: var(--shot-size);
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  line-height: 0;
  display: block;
  transform: translate(-50%,-50%);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.shot-dot.away { --dot-color: var(--shot-away-color, #38bdf8); }
.shot-dot__core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--dot-color);
  border: 1.5px solid rgba(255,255,255,0.94);
  box-shadow: 0 0 8px var(--dot-color), 0 0 14px color-mix(in srgb, var(--dot-color) 42%, transparent);
  pointer-events: none;
}
.shot-dot.goal { --shot-size: 15px; }
.shot-dot.goal::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--dot-color);
  opacity: .34;
  filter: blur(.15px);
  pointer-events: none;
}
.shot-dot:hover { transform: translate(-50%,-50%) scale(1.55); filter: brightness(1.16); z-index: 10; }
.shot-tooltip {
  margin-top: 10px; padding: 8px 12px;
  background: rgba(11,11,15,0.9); border: 1px solid var(--line);
  border-radius: 8px; color: var(--muted); min-height: 36px;
  line-height: 1.4; font-size: 12px;
}

/* ─── Stats List ─────────────────────────────────────── */
.stat-list  { display: grid; gap: 14px; }
.stat-row   { display: grid; grid-template-columns: 42px 1fr 42px; gap: 10px; align-items: center; }
.stat-val   { color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-val:last-child { text-align: right; }
.stat-mid   { display: grid; gap: 4px; }
.stat-label { text-align: center; color: var(--muted); font-size: 12px; font-weight: 500; }
.stat-bar   { display: flex; height: 5px; border-radius: 99px; overflow: hidden; background: #0b0b0f; }
.stat-home  { background: linear-gradient(90deg, var(--accent), #a78bfa); border-radius: 99px 0 0 99px; transition: width 0.3s; }
.stat-away  { background: linear-gradient(90deg, #60a5fa, var(--blue)); border-radius: 0 99px 99px 0; transition: width 0.3s; }

/* ─── Timeline ───────────────────────────────────────── */
.timeline { display: grid; }
.timeline--live { overflow: visible; }
.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 22px minmax(0, 1fr) minmax(70px, auto);
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.event-row:last-child { border-bottom: 0; }
.event-row.is-new {
  margin: 2px 0;
  padding: 12px 12px;
  border-radius: 12px;
  border-bottom-color: rgba(167,139,250,0.18);
  background: linear-gradient(90deg, rgba(124,58,237,0.16), rgba(59,130,246,0.06), transparent 86%);
  box-shadow: inset 3px 0 0 rgba(167,139,250,0.95), 0 10px 28px rgba(124,58,237,0.12);
  animation: eventLiveIn 0.62s cubic-bezier(.2,.9,.2,1) both, eventLiveGlow 2.4s ease-out 0.15s both;
}
.event-row.is-new::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(167,139,250,0.18);
  pointer-events: none;
  animation: eventNewOutline 2.4s ease forwards;
}
.event-minute {
  grid-column: 1;
  min-width: 0;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.event-dot {
  grid-column: 2;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-3); display: grid; place-items: center;
  font-size: 9px; border: 1px solid var(--line-strong);
}
.event-body {
  grid-column: 3;
  min-width: 0;
}
.event-xg {
  grid-column: 4;
  justify-self: end;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.event-dot.is-goal { background: var(--green); color: white; border-color: #34d399; box-shadow: 0 0 10px rgba(16,185,129,0.3); }
.event-dot.is-card { background: var(--yellow); color: #000; border-color: #fef08a; }
.event-dot.is-stoppage {
  background: rgba(167,139,250,.14);
  color: #c4b5fd;
  border-color: rgba(167,139,250,.34);
  font-weight: 900;
  font-size: 13px !important;
  line-height: 1;
}
.event-dot.is-substitution {
  background: rgba(56,189,248,.12);
  color: #7dd3fc;
  border-color: rgba(125,211,252,.34);
  font-weight: 900;
  font-size: 12px !important;
}
.event-row.is-stoppage .event-minute,
.event-row.is-stoppage .event-title {
  color: #c4b5fd;
}
.event-row.is-substitution .event-minute,
.event-row.is-substitution .event-title {
  color: #bae6fd;
}
.event-row.is-interval {
  background: linear-gradient(90deg, rgba(124,58,237,.08), transparent 72%);
}
.event-dot.is-interval {
  background: rgba(124,58,237,.18);
  color: #ddd6fe;
  border-color: rgba(167,139,250,.34);
  box-shadow: 0 0 12px rgba(124,58,237,.18);
  font-weight: 800;
}
.event-row.is-interval .event-minute,
.event-row.is-interval .event-title {
  color: #c4b5fd;
}
.event-title { margin: 0; color: var(--text); font-size: 13.5px; font-weight: 600; overflow-wrap: normal; word-break: normal; }
.event-desc  { margin: 4px 0 0; color: var(--muted); line-height: 1.4; font-size: 12.5px; overflow-wrap: normal; word-break: normal; }

@keyframes eventLiveIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); filter: blur(2px); }
  58%  { opacity: 1; transform: translateY(2px) scale(1.004); filter: blur(0); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes eventLiveGlow {
  0%   { box-shadow: inset 3px 0 0 rgba(167,139,250,1), 0 0 0 rgba(124,58,237,0); }
  24%  { box-shadow: inset 3px 0 0 rgba(167,139,250,1), 0 0 34px rgba(124,58,237,0.22); }
  100% { box-shadow: inset 3px 0 0 rgba(167,139,250,0.45), 0 10px 28px rgba(124,58,237,0.07); }
}
@keyframes eventNewOutline {
  0%, 54% { opacity: 1; }
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .event-row.is-new, .event-row.is-new::after { animation: none; }
}

/* ─── Sidebar ────────────────────────────────────────── */
.side-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.side-title h3 {
  margin: 0; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
.brand-mini {
  color: var(--accent-2); border: 1px solid var(--accent-border);
  background: var(--accent-soft); border-radius: 4px;
  padding: 2px 6px; font-size: 10px; font-weight: 700;
}
.signal-empty {
  color: var(--muted-2); line-height: 1.55; font-size: 12px; text-align: center;
}
.signal-card {
  border: 1px solid rgba(124,58,237,0.2); border-radius: 8px; padding: 12px;
  background: rgba(124,58,237,0.03); display: grid; gap: 6px;
  border-left: 3px solid var(--accent);
}
.signal-market { font-size: 14px; font-weight: 600; color: var(--text); }
.signal-meta   { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.signal-odd    { color: #34d399; font-weight: 600; font-size: 13px; }

/* ─── Radar (Gauge) ──────────────────────────────────── */
.radar-gauge-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 4px;
}
.radar-canvas-container {
  position: relative; width: 100%; max-width: 240px; height: 140px;
}
.radar-canvas-container canvas { width: 100% !important; height: 100% !important; display: block; }
.radar-score-overlay {
  position: absolute; top: 54%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.radar-score-main {
  font-size: 30px; font-weight: 750; color: #fff;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.radar-strength-row {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 2px; font-size: 11px; color: var(--muted);
}
.radar-strength-team {
  min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 6px; padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.radar-strength-team b {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-size: 11px; font-weight: 650;
}
.radar-strength-team em { font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--radar-home); }
.radar-strength-team--away em { color: var(--radar-away); }
.radar-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.radar-dot--home { background: var(--radar-home); box-shadow: 0 0 8px var(--radar-home); }
.radar-dot--away { background: var(--radar-away); box-shadow: 0 0 8px var(--radar-away); }
.radar-sub {
  width: 100%; margin-top: 9px; color: var(--muted); font-size: 11px;
  text-align: center; font-variant-numeric: tabular-nums; line-height: 1.4;
  white-space: normal; position: relative; z-index: 2;
}

/* ─── Info grid ──────────────────────────────────────── */
.info-grid { display: grid; gap: 8px; }
.info-line {
  display: flex; justify-content: space-between; gap: 12px; min-width: 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.info-line:last-child { border-bottom: 0; padding-bottom: 0; }
.info-line span:first-child { color: var(--muted-2); }
.info-line span:last-child  { color: var(--text); font-weight: 500; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Roster ─────────────────────────────────────────── */
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roster-list { display: grid; gap: 4px; }
.player-row  {
  display: grid; grid-template-columns: 26px 1fr 36px;
  align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03); padding: 6px 0;
}
.player-row:last-child  { border-bottom: 0; }
.player-num  { color: var(--muted-2); font-size: 11.5px; font-variant-numeric: tabular-nums; font-weight: 500; }
.player-name { color: var(--text); font-size: 13px; }
.player-rating {
  color: #34d399; font-size: 12px; font-weight: 600;
  text-align: right; font-variant-numeric: tabular-nums;
  background: rgba(52,211,153,0.08); padding: 1px 4px; border-radius: 4px;
}
.player-rating[data-low="true"] { color: var(--muted); background: rgba(255,255,255,0.05); }
.empty-box {
  border: 1px dashed var(--line-strong); border-radius: 10px;
  padding: 32px 16px; color: var(--muted-2); text-align: center; font-size: 13px;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .topbar__inner { width: calc(100% - 24px); }
  .nav           { display: none; }
  .page          { width: calc(100% - 24px); }
  .game          { grid-template-columns: 1fr; }
  .sidebar       { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-layout  { grid-template-columns: 1fr; }
  .hero-insight  { grid-template-columns: 1fr 1fr; }
  .hero-insight__lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .splash__icon,
  .splash__logo { width: 86px; height: 86px; border-radius: 24px; }
  .splash__shine { border-radius: 24px; }
  .splash__name { font-size: 24px; }
  .topbar__inner { height: auto; padding: 12px 0; flex-direction: column; gap: 12px; align-items: stretch; }
  .match-tools   { width: 100%; justify-content: space-between; }
  .match-input   { flex: 1; }
  .scoreboard    { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .team, .team--home, .team--away { justify-content: center; text-align: center; }
  .team--away .team-name { order: 1; }
  .team--away .team-logo-wrap { order: 2; }
  .main-score    { font-size: 44px; }
  .tabs          { gap: 16px; padding: 0 16px; }
  .sidebar       { grid-template-columns: 1fr; }
  .pitch         { height: clamp(190px, 48vw, 238px); }
  .roster-grid   { grid-template-columns: 1fr; }
  .hero-ribbon   { top: auto; bottom: 0; right: 0; transform: none; }
  .hero-ribbon__face { min-width: 172px; height: 52px; }
  .hero-ribbon__face.hero-ribbon--live { min-width: 136px; height: 36px; }
}

/* ─── Classificação / H2H ────────────────────────────── */
.recent-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recent-form-card { overflow: hidden; }
.recent-form-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.recent-form-pills em { color: var(--muted-2); font-style: normal; font-size: 12px; }
.recent-form-row .h2h-league i { width: 18px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; margin-right: 6px; background: rgba(255,255,255,0.06); color: var(--muted); }
.recent-form-row .h2h-league i.is-win { color: #d1fae5; background: rgba(16,185,129,.22); }
.recent-form-row .h2h-league i.is-draw { color: #fef3c7; background: rgba(234,179,8,.18); }
.recent-form-row .h2h-league i.is-loss { color: #ffe4e6; background: rgba(244,63,94,.2); }
@media (max-width: 860px) { .recent-form-grid { grid-template-columns: 1fr; } }

.standings-card, .h2h-card { overflow: hidden; }
.standings-table { display: grid; gap: 0; overflow-x: auto; padding-bottom: 2px; }
.standings-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) repeat(5, 48px) 58px minmax(86px, 108px);
  gap: 8px; align-items: center;
  min-width: 780px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
}
.standings-row:last-child { border-bottom: 0; }
.standings-row--head {
  color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.015);
}
.standings-row.is-casa,
.standings-row.is-visitante {
  background: linear-gradient(90deg, rgba(124,58,237,0.18), rgba(124,58,237,0.05), transparent 82%);
  box-shadow: inset 3px 0 0 var(--accent-2);
  color: var(--text);
}
.standings-pos { color: var(--accent-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.standings-team { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings-row strong { color: #fff; font-variant-numeric: tabular-nums; }
.form-pills { display: inline-flex; gap: 4px; align-items: center; min-height: 18px; }
.form-pills i {
  width: 18px; height: 18px; border-radius: 999px;
  display: inline-grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,0.06); color: var(--muted);
}
.form-pills i.is-win { color: #d1fae5; background: rgba(16,185,129,.22); }
.form-pills i.is-draw { color: #fef3c7; background: rgba(234,179,8,.18); }
.form-pills i.is-loss { color: #ffe4e6; background: rgba(244,63,94,.2); }

.h2h-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px;
  margin-bottom: 14px;
}
.h2h-summary > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(255,255,255,0.015));
  padding: 14px 12px; text-align: center;
}
.h2h-summary strong { display: block; font-size: 28px; line-height: 1; color: #fff; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.h2h-summary span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-note {
  margin: -4px 0 12px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}
.h2h-list { display: grid; gap: 8px; }
.h2h-row {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr) 70px minmax(120px, 1fr) minmax(90px, 140px);
  gap: 10px; align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  color: var(--muted); font-size: 12.5px;
}
.h2h-row--summary { grid-template-columns: 1fr; color: var(--muted-2); }
.h2h-date, .h2h-league { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-team { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-team.is-focus { color: var(--text); font-weight: 700; }
.h2h-score {
  justify-self: center;
  min-width: 58px; padding: 5px 8px;
  border-radius: 8px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.22);
  color: #fff; text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .h2h-summary { grid-template-columns: 1fr; }
  .h2h-row { grid-template-columns: 1fr; gap: 6px; }
  .h2h-score { justify-self: start; }
}

/* ── Fase 2: páginas Operação / Sinais / Histórico ───────────── */
.app-page {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.match-tools--hidden .match-input,
.match-tools--hidden #loadBtn,
.match-tools--hidden #autoRefreshBtn { display: none; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, rgba(124,58,237,.10), rgba(18,18,23,.72));
  box-shadow: var(--shadow);
}
.page-head h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.page-badge {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ddd6fe;
  border: 1px solid rgba(167,139,250,.32);
  background: rgba(124,58,237,.18);
  padding: 8px 11px;
  border-radius: 999px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric-tile {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(18,18,23,.68);
}
.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.metric-tile strong {
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.04em;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.op-card .mono-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c4b5fd;
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid rgba(167,139,250,.18);
  background: rgba(124,58,237,.08);
  border-radius: 10px;
}
.signal-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18,18,23,.54);
}
.signal-page-toolbar span {
  color: var(--text);
  font-weight: 700;
}
.signal-list-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.signal-list-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18,18,23,.70);
  box-shadow: var(--shadow);
}
.signal-list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(148,163,184,.32);
}
.signal-list-card.is-main-market::before { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.signal-list-card.is-corner-market::before { background: linear-gradient(180deg, #38bdf8, #22c55e); }
.signal-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 16px;
}
.signal-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.signal-card-top h2 {
  margin: 9px 0 5px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.signal-card-top h2 span { color: var(--muted); font-size: 14px; }
.signal-card-top p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.market-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 9px;
  border: 1px solid rgba(167,139,250,.24);
  background: rgba(124,58,237,.16);
  border-radius: 999px;
}
.market-chip.is-corner {
  color: #bae6fd;
  border-color: rgba(56,189,248,.24);
  background: rgba(14,165,233,.10);
}
.rank-badge {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 10px 24px rgba(124,58,237,.22);
}
.rank-B { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.rank-C { background: linear-gradient(135deg, #0f766e, #34d399); }
.rank-D { background: linear-gradient(135deg, #475569, #94a3b8); }
.signal-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.mini-metric {
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.mini-metric span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mini-metric strong {
  font-size: 13px;
  color: var(--text);
}
.signal-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}
.result-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ddd6fe;
  border: 1px solid rgba(167,139,250,.26);
  background: rgba(124,58,237,.12);
  padding: 5px 8px;
  border-radius: 999px;
}
.result-pill.is-win {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.12);
}
.result-pill.is-loss {
  color: #fecdd3;
  border-color: rgba(244,63,94,.25);
  background: rgba(244,63,94,.12);
}
.result-pill.is-push {
  color: #fde68a;
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.12);
}
.signal-rank-mini {
  float: right;
  margin-left: 8px;
  color: #ddd6fe;
  font-size: 10px;
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 999px;
  padding: 2px 6px;
}
.empty-box.is-loading {
  border-style: solid;
  color: #c4b5fd;
}

@media (max-width: 960px) {
  .metric-grid, .signal-list-page, .panel-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .signal-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ── Sinais no padrão operacional antigo, com identidade roxa ── */
.legacy-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.022);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.legacy-filterbar__label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.28);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.legacy-filterbar strong {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 650;
}
.legacy-filterbar__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.legacy-filterbar__chips span {
  border: 1px solid rgba(167,139,250,.22);
  background: rgba(124,58,237,.10);
  color: #ddd6fe;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.legacy-filterbar__chips .chip-pending {
  border-color: rgba(245,158,11,.24);
  background: rgba(245,158,11,.08);
  color: #fcd34d;
}
.legacy-signals-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.legacy-signals-main {
  display: grid;
  gap: 18px;
}
.legacy-signal-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.024);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 48px rgba(0,0,0,.24);
}
.legacy-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 14px 16px 10px;
}
.legacy-panel-head h2 {
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.legacy-panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 20px;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 7px;
  background: rgba(124,58,237,.13);
  color: #ddd6fe;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.legacy-signal-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}
.signal-group-list {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
.signal-group-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 14px 36px rgba(0,0,0,.22);
}
.signal-group-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255,255,255,.16);
}
.signal-group-card.is-main-market::before {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed);
  box-shadow: 0 0 18px rgba(124,58,237,.36);
}
.signal-group-card.has-corners::before {
  background: linear-gradient(180deg, rgba(167,139,250,.85), rgba(109,40,217,.55));
}
.signal-group-card.is-pending-settlement {
  border-color: rgba(245,158,11,.12);
  background: linear-gradient(90deg, rgba(245,158,11,.035), rgba(255,255,255,.018));
}
.signal-group-card[open] {
  border-color: rgba(167,139,250,.24);
  background: linear-gradient(180deg, rgba(124,58,237,.05), rgba(255,255,255,.018));
}
.signal-group-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 96px auto;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  cursor: pointer;
}
.signal-group-summary::-webkit-details-marker { display: none; }
.signal-group-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.signal-group-kickoff {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.signal-group-kickoff small {
  color: rgba(255,255,255,.46);
  font-size: 11px;
  font-weight: 600;
}
.signal-group-main {
  min-width: 0;
}
.signal-group-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.signal-group-teams {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-group-teams span { color: rgba(255,255,255,.24); }
.signal-group-ribbon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.24);
  background: linear-gradient(135deg, rgba(124,58,237,.24), rgba(88,28,135,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 24px rgba(88,28,135,.18);
  color: #f5f3ff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.signal-group-league {
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255,255,255,.44);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-group-prob {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.signal-group-prob strong {
  color: #c4b5fd;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.signal-group-prob span {
  color: rgba(255,255,255,.44);
  font-size: 10.5px;
  font-weight: 650;
}
.signal-group-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.signal-group-central {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(167,139,250,.22);
  background: rgba(124,58,237,.08);
  color: #ddd6fe;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.signal-group-central:hover {
  border-color: rgba(196,181,253,.32);
  background: rgba(124,58,237,.16);
}
.signal-group-chevron {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: rgba(221,214,254,.88);
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}
.signal-group-card[open] .signal-group-chevron {
  transform: rotate(180deg);
}
.signal-group-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px 14px;
}
.signal-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(10,10,14,.44);
  padding: 12px 14px;
}
.signal-market-row.is-main-market {
  border-color: rgba(167,139,250,.18);
  background: linear-gradient(90deg, rgba(124,58,237,.08), rgba(255,255,255,.02));
}
.signal-market-row__main {
  min-width: 0;
}
.signal-market-row__title {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-market-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.signal-market-row__meta span {
  color: rgba(255,255,255,.42);
  font-size: 10.5px;
  font-weight: 650;
}
.signal-market-row__prob {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.signal-market-row__prob strong {
  color: #ddd6fe;
  font-size: 16px;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.signal-market-row__prob .legacy-rank,
.signal-market-row__prob .legacy-result-icon {
  width: 28px;
  height: 28px;
}
.legacy-signal-row {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.022);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.legacy-signal-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255,255,255,.14);
}
.legacy-signal-row.is-main-market::before {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed);
  box-shadow: 0 0 18px rgba(124,58,237,.38);
}
.legacy-signal-row.is-corner-market::before {
  background: linear-gradient(180deg, rgba(167,139,250,.85), rgba(109,40,217,.55));
}
.legacy-signal-row.is-pending-settlement {
  border-color: rgba(245,158,11,.12);
  background: linear-gradient(90deg, rgba(245,158,11,.035), rgba(255,255,255,.018));
}
.legacy-signal-row.is-pending-settlement::before {
  background: linear-gradient(180deg, rgba(245,158,11,.85), rgba(124,58,237,.38));
}
.legacy-signal-row:hover {
  border-color: rgba(167,139,250,.22);
  background: rgba(124,58,237,.052);
  transform: translateY(-1px);
}
.legacy-signal-link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 96px 36px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 13px 14px 13px 16px;
  color: inherit;
  text-decoration: none;
}
.legacy-status-block,
.legacy-prob-block,
.legacy-rank-block {
  min-width: 0;
}
.legacy-status-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.legacy-status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 6px;
  background: rgba(124,58,237,.10);
  color: #c4b5fd;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.legacy-status-pill.is-live {
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
  color: #fcd34d;
}
.legacy-status-pill.is-pending {
  border-color: rgba(245,158,11,.24);
  background: rgba(245,158,11,.08);
  color: #fde68a;
}
.legacy-status-pill.is-open {
  border-color: rgba(167,139,250,.26);
  background: rgba(124,58,237,.12);
  color: #ddd6fe;
}
.legacy-status-pill.is-win {
  border-color: rgba(34,197,94,.24);
  background: rgba(34,197,94,.10);
  color: #86efac;
}
.legacy-status-pill.is-loss {
  border-color: rgba(244,63,94,.24);
  background: rgba(244,63,94,.10);
  color: #fda4af;
}
.legacy-status-pill.is-push {
  border-color: rgba(148,163,184,.22);
  background: rgba(148,163,184,.08);
  color: #cbd5e1;
}
.legacy-kickoff {
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.legacy-match-block {
  min-width: 0;
}
.legacy-teams {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 740;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legacy-teams span { color: rgba(255,255,255,.24); }
.legacy-league {
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255,255,255,.42);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legacy-market {
  overflow: hidden;
  margin-top: 7px;
  color: rgba(255,255,255,.78);
  font-size: 11.3px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legacy-prob-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.legacy-prob-block strong {
  color: #c4b5fd;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.legacy-prob-block span {
  color: rgba(255,255,255,.42);
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.legacy-rank-block {
  display: flex;
  justify-content: flex-end;
}
.legacy-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 10px 22px rgba(124,58,237,.22);
}
.legacy-rank.rank-B { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.legacy-rank.rank-C { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.legacy-rank.rank-D { background: linear-gradient(135deg, #334155, #64748b); }
.legacy-result-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.42);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.legacy-result-icon.is-win { color: #4ade80; }
.legacy-result-icon.is-loss { color: #fb7185; }
.legacy-result-icon.is-push { color: #c4b5fd; }

@media (max-width: 900px) {
  .legacy-filterbar { align-items: flex-start; flex-direction: column; }
  .legacy-filterbar__chips { justify-content: flex-start; }
  .legacy-signal-link {
    grid-template-columns: 86px minmax(0, 1fr) 78px 30px;
    gap: 10px;
    padding: 12px;
  }
  .signal-group-summary {
    grid-template-columns: 86px minmax(0, 1fr) 78px auto;
    gap: 10px;
    padding: 12px;
  }
  .signal-group-topline {
    align-items: center;
  }
  .signal-group-ribbon {
    min-width: 66px;
    padding-inline: 8px;
  }
  .legacy-teams,
  .signal-group-teams { font-size: 13px; }
  .legacy-prob-block strong,
  .signal-group-prob strong { font-size: 16px; }
}
@media (max-width: 620px) {
  .legacy-signal-link {
    grid-template-columns: 1fr 64px;
    grid-template-areas:
      "match prob"
      "status rank";
  }
  .legacy-status-block { grid-area: status; flex-direction: row; align-items: center; }
  .legacy-match-block { grid-area: match; }
  .legacy-prob-block { grid-area: prob; }
  .legacy-rank-block { grid-area: rank; }
  .signal-group-summary {
    grid-template-columns: 1fr 64px;
    grid-template-areas:
      "main prob"
      "status actions";
    align-items: start;
  }
  .signal-group-status { grid-area: status; flex-direction: row; align-items: center; }
  .signal-group-main { grid-area: main; }
  .signal-group-prob { grid-area: prob; }
  .signal-group-actions { grid-area: actions; justify-content: flex-end; }
  .signal-group-kickoff {
    flex-direction: row;
    gap: 6px;
    align-items: center;
  }
  .signal-group-kickoff small { font-size: 10px; }
  .signal-group-central { display: none; }
  .signal-market-row {
    grid-template-columns: 1fr 72px;
    gap: 10px;
    padding: 11px 12px;
  }
  .signal-market-row__title { white-space: normal; }
}

/* ─── Fase 3: Operação, mercados e múltiplas ─────────── */
.panel-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.op-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.mini-metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  padding: 10px;
}
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.mini-metric strong {
  font-size: 18px;
  color: var(--text);
}
.operation-queues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.op-queue-card { padding: 14px; overflow: hidden; }
.op-row-list.compact .legacy-signal-row { margin-bottom: 8px; }
.op-row-list.compact .legacy-signal-link {
  grid-template-columns: 86px minmax(0, 1fr) 72px 42px;
  min-height: 68px;
  padding: 10px;
}
.op-row-list.compact .legacy-league,
.op-row-list.compact .legacy-market { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-table-card { margin-top: 16px; padding: 16px; }
.market-table { display: grid; gap: 6px; }
.market-table__head,
.market-table__row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 76px 76px 86px 76px;
  gap: 10px;
  align-items: center;
}
.market-table__head {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  padding: 0 10px 4px;
}
.market-table__row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  padding: 10px;
}
.market-table__row.is-public { border-color: rgba(124,58,237,0.28); background: rgba(124,58,237,0.045); }
.market-table__row strong { display: block; font-size: 12.5px; }
.market-table__row small { display: block; color: var(--muted); margin-top: 2px; }
.combo-preview { margin: 16px 0; padding: 16px; }
.combo-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.combo-card {
  border: 1px solid rgba(124,58,237,0.20);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(124,58,237,0.09), rgba(255,255,255,0.02));
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}
.combo-card__top,
.combo-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.combo-card__top strong { display: block; font-size: 15px; }
.combo-card__top span { color: var(--muted); font-size: 11px; }
.combo-card__top b {
  font-size: 22px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.combo-card__meta {
  margin: 10px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.combo-card__meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
}
.combo-card__legs { display: grid; gap: 6px; }
.combo-card__legs div {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}
.combo-card__legs span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  font-size: 10px;
  font-weight: 800;
}
.combo-card__legs small { display: block; color: var(--muted); margin-left: 28px; }
@media (max-width: 1100px) {
  .panel-grid--three,
  .operation-queues,
  .combo-preview__grid { grid-template-columns: 1fr; }
  .market-table__head { display: none; }
  .market-table__row { grid-template-columns: 1fr 60px 60px; }
  .market-table__row span:nth-child(4),
  .market-table__row span:nth-child(5) { display: none; }
}

/* ─── Fase 3.1: tipografia compacta e nomes limpos ─────────── */
.app-page {
  max-width: 1260px;
  gap: 14px;
}
.app-page .page-head {
  min-height: 104px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124,58,237,.085), rgba(18,18,23,.66));
}
.app-page .page-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 780;
}
.app-page .page-head p {
  max-width: 720px;
  font-size: 12.8px;
  line-height: 1.45;
  color: rgba(203,213,225,.82);
}
.app-page .page-badge,
.app-page .badge {
  font-size: 10px;
  letter-spacing: .07em;
  padding: 6px 9px;
  border-radius: 9px;
}
.app-page .kicker,
.app-page .legacy-panel-head h2,
.app-page .metric-tile span,
.app-page .mini-metric span,
.app-page .market-table__head {
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 760;
}
.app-page .metric-grid {
  gap: 10px;
}
.app-page .metric-tile {
  min-height: 76px;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(18,18,23,.58);
}
.app-page .metric-tile span { margin-bottom: 7px; }
.app-page .metric-tile strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 780;
}
.app-page .panel-grid,
.app-page .operation-queues {
  gap: 12px;
}
.app-page .section-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(18,18,23,.46);
}
.app-page .section-head {
  margin-bottom: 12px;
  padding-bottom: 8px;
}
.app-page .section-text {
  font-size: 12.2px;
  line-height: 1.55;
  color: rgba(203,213,225,.82);
}
.app-page .op-card .mono-line {
  font-size: 11px;
  padding: 9px 10px;
  border-radius: 9px;
}
.app-page .op-mini-grid { gap: 8px; margin: 10px 0; }
.app-page .mini-metric {
  padding: 9px 10px;
  border-radius: 10px;
}
.app-page .mini-metric strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 780;
}
.app-page .op-queue-card { padding: 12px; }
.app-page .op-row-list.compact .legacy-signal-link {
  grid-template-columns: 82px minmax(0, 1fr) 68px 34px;
  min-height: 62px;
  padding: 9px 10px;
  gap: 9px;
}
.app-page .op-row-list.compact .legacy-teams {
  font-size: 12.2px;
  font-weight: 720;
}
.app-page .op-row-list.compact .legacy-league,
.app-page .op-row-list.compact .legacy-market,
.app-page .op-row-list.compact .legacy-kickoff {
  font-size: 10px;
}
.app-page .op-row-list.compact .legacy-prob-block strong { font-size: 15px; }
.app-page .op-row-list.compact .legacy-prob-block span { font-size: 9.6px; }
.app-page .op-row-list.compact .legacy-rank {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 11px;
}
.app-page .market-table-card { margin-top: 14px; padding: 14px; }
.app-page .market-table { gap: 5px; }
.app-page .market-table__head,
.app-page .market-table__row {
  grid-template-columns: minmax(260px, 1fr) 70px 70px 82px 112px;
}
.app-page .market-table__row {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.app-page .market-table__row.is-public {
  border-color: rgba(124,58,237,.30);
  background: rgba(124,58,237,.04);
}
.app-page .market-table__row.is-internal {
  opacity: .72;
}
.app-page .market-table__row strong {
  font-size: 12px;
  font-weight: 720;
}
.app-page .market-table__row small {
  color: rgba(148,163,184,.78);
  font-size: 10.6px;
}
.app-page .combo-preview { margin: 14px 0; padding: 14px; }
.app-page .combo-card {
  padding: 12px;
  border-radius: 12px;
}
.app-page .combo-card__top strong { font-size: 13px; }
.app-page .combo-card__top span,
.app-page .combo-card__meta span { font-size: 10.5px; }
.app-page .combo-card__top b { font-size: 18px; }
.app-page .combo-card__legs div { font-size: 11.2px; }

@media (max-width: 1100px) {
  .app-page .market-table__row { grid-template-columns: 1fr 58px 58px; }
}

/* ─── Fase 3.2: monitor ao vivo na Operação ─────────── */
.op-monitor-card {
  border-color: rgba(167,139,250,.24);
  background:
    radial-gradient(circle at 20% 0%, rgba(124,58,237,.14), transparent 42%),
    rgba(18,18,23,.48);
}
.op-monitor-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(167,139,250,.16);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(124,58,237,.055);
  font-size: 11px;
}
.op-monitor-line span {
  color: rgba(148,163,184,.92);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 760;
}
.op-monitor-line strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}
.op-monitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.monitor-run-btn {
  display: none;
  width: 100%;
  margin: 2px 0 9px;
  border: 1px solid rgba(167,139,250,.34);
  border-radius: 11px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(124,58,237,.20);
}
.monitor-run-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.monitor-run-btn:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

/* Fase 4 — runtime automático */
.op-generator-card {
  border-color: rgba(168,85,247,.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(168,85,247,.16), transparent 42%),
    rgba(18,18,23,.50);
}
.badge-live {
  border-color: rgba(16,185,129,.36) !important;
  color: #a7f3d0 !important;
  background: rgba(16,185,129,.11) !important;
}
.op-monitor-card .section-text,
.op-generator-card .section-text {
  margin-top: 2px;
}

/* Fase 4.3 — Operação em tempo real */
.op-card.is-pulsing {
  box-shadow: 0 0 0 1px rgba(16,185,129,.24), 0 18px 45px rgba(124,58,237,.18);
  animation: betovenPulseCard 1.8s ease-in-out infinite;
}
@keyframes betovenPulseCard {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* Fase 4.4 — diagnóstico da pilha automática */
.stack-health-card {
  border-color: rgba(168,85,247,.30);
  background:
    radial-gradient(circle at 12% 0%, rgba(168,85,247,.18), transparent 38%),
    rgba(18,18,23,.50);
}
.stack-health-card--ok { border-color: rgba(16,185,129,.34); }
.stack-health-card--warn { border-color: rgba(245,158,11,.32); }
.stack-health-card--error { border-color: rgba(244,63,94,.34); }
.stack-health-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.stack-health-list div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  padding: 8px;
  min-width: 0;
}
.stack-health-list span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.stack-health-list strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}
.badge-warn {
  border-color: rgba(245,158,11,.36) !important;
  color: #fde68a !important;
  background: rgba(245,158,11,.11) !important;
}
.badge-danger {
  border-color: rgba(244,63,94,.36) !important;
  color: #fecdd3 !important;
  background: rgba(244,63,94,.11) !important;
}
@media (max-width: 900px) {
  .stack-health-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ─── Operação tipster: limpa, sem relatório técnico ───────── */
.tipster-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(167,139,250,.20);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 10%, rgba(124,58,237,.28), transparent 38%),
    linear-gradient(135deg, rgba(20,17,28,.94), rgba(12,11,17,.88));
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}
.tipster-hero__glow {
  position: absolute;
  inset: auto -90px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(124,58,237,.20);
  filter: blur(26px);
  pointer-events: none;
}
.tipster-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}
.tipster-hero__copy h2 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -.06em;
}
.tipster-hero__copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.tipster-live-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tipster-live-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #d8d3e8;
  font-size: 12px;
  font-weight: 800;
}
.tipster-live-row span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148,163,184,.70);
}
.tipster-live-row .is-on::before {
  background: #34d399;
  box-shadow: 0 0 14px rgba(52,211,153,.55);
}
.tipster-live-row .is-off::before {
  background: #fb7185;
  box-shadow: 0 0 14px rgba(251,113,133,.45);
}
.tipster-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tipster-hero__stats .tipster-kpi:first-child {
  grid-column: span 2;
}
.tipster-kpi {
  min-height: 88px;
  padding: 15px;
  border: 1px solid rgba(167,139,250,.16);
  border-radius: 17px;
  background: rgba(7,7,11,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.tipster-kpi span {
  display: block;
  margin-bottom: 8px;
  color: #a8b2c7;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tipster-kpi strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
}
.tipster-kpi small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.tipster-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tipster-column {
  min-height: 240px;
  padding: 16px;
  overflow: hidden;
}
.tipster-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tipster-column__head h3 {
  margin: 0;
  color: #f7f3ff;
  font-size: 16px;
  letter-spacing: -.02em;
}
.tipster-column__head span {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 999px;
  background: rgba(124,58,237,.15);
  color: #ddd6fe;
  font-weight: 900;
  font-size: 12px;
}
.tipster-signal-list .legacy-signal-row {
  margin-bottom: 10px;
}

.tipster-live-group-list {
  display: grid;
  gap: 10px;
}
.tipster-live-group {
  margin-bottom: 0;
  border-left-color: rgba(255,255,255,0.12);
}
.tipster-live-group.is-main-market {
  border-left-color: rgba(139,92,246,.95);
}
.tipster-live-group__link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: auto;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}
.tipster-live-group__header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tipster-live-group__status {
  min-width: 0;
}
.tipster-live-group__match {
  min-width: 0;
}
.tipster-live-group__match .legacy-teams {
  font-size: 14px;
}
.tipster-live-group__count {
  justify-self: end;
  white-space: nowrap;
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.24);
  background: rgba(124,58,237,.16);
}
.tipster-live-market-stack {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.055);
}
.tipster-live-market-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 58px 34px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.024);
}
.tipster-live-market-line.is-main-market {
  border-color: rgba(167,139,250,.22);
  background: rgba(124,58,237,.075);
}
.tipster-live-market-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 800;
}
.tipster-live-market-odd {
  color: rgba(255,255,255,.48);
  font-size: 10.5px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tipster-live-market-line strong {
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tipster-live-market-line .legacy-rank {
  min-width: 30px;
  width: 30px;
  height: 30px;
  font-size: 11px;
  justify-self: end;
}

.tipster-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.tipster-more {
  margin: 12px 0 0;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
}
.tipster-combos {
  padding: 16px;
}
.tipster-combo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1180px) {
  .tipster-hero,
  .tipster-board {
    grid-template-columns: 1fr;
  }
  .tipster-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tipster-hero__stats .tipster-kpi:first-child {
    grid-column: span 1;
  }
}
@media (max-width: 720px) {
  .tipster-hero {
    padding: 18px;
  }
  .tipster-hero__stats,
  .tipster-combo-grid {
    grid-template-columns: 1fr;
  }
  .tipster-hero__copy h2 {
    font-size: 34px;
  }
}

/* ── Operação compacta v4: agrupada por jogo e mobile-first ───────── */
.app-page .page-head:has(+ .op-compact-hero),
#operationContent > .page-head {
  display: none;
}
.op-compact-hero.tipster-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  margin-top: -4px;
  border-radius: 18px;
}
.op-compact-hero .tipster-hero__glow,
.op-compact-hero .tipster-hero__copy p {
  display: none;
}
.op-compact-hero__title {
  min-width: 0;
}
.op-compact-hero .kicker {
  font-size: 9px;
  letter-spacing: .16em;
}
.op-compact-hero h2 {
  margin: 2px 0 7px;
  color: #fff;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  letter-spacing: -.045em;
}
.op-status-chips.tipster-live-row {
  margin: 0;
  gap: 6px;
}
.op-status-chips.tipster-live-row span {
  padding: 5px 8px;
  font-size: 10.5px;
}
.op-compact-kpis.tipster-hero__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 8px;
  min-width: min(560px, 100%);
}
.op-compact-kpis.tipster-hero__stats .tipster-kpi:first-child {
  grid-column: span 1;
}
.op-compact-kpis .tipster-kpi {
  min-height: 58px;
  padding: 10px 11px;
  border-radius: 13px;
}
.op-compact-kpis .tipster-kpi span {
  margin-bottom: 4px;
  font-size: 9.5px;
  letter-spacing: .10em;
}
.op-compact-kpis .tipster-kpi strong {
  font-size: 22px;
}
.op-compact-kpis .tipster-kpi small {
  margin-top: 4px;
  font-size: 10.5px;
}
.op-compact-board.tipster-board {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 12px;
  align-items: start;
}
.op-column.tipster-column {
  min-height: 0;
  padding: 12px;
  border-radius: 16px;
}
.op-column__head.tipster-column__head {
  margin-bottom: 10px;
}
.op-column__head h3 {
  font-size: 15px;
}
.op-column__head span {
  width: 26px;
  min-width: 26px;
  height: 26px;
  font-size: 11px;
}
.op-event-list {
  display: grid;
  gap: 9px;
}
.op-event-card {
  border: 1px solid rgba(255,255,255,0.075);
  border-left: 3px solid rgba(139,92,246,.85);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(14,14,20,0.86));
  overflow: hidden;
}
.op-event-card.is-main-market {
  border-left-color: #a78bfa;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.op-event-card.is-live {
  border-left-color: #f59e0b;
}
.op-event-link {
  display: grid;
  gap: 9px;
  padding: 11px 12px 10px;
  color: inherit;
  text-decoration: none;
}
.op-event-top {
  display: grid;
  gap: 7px;
}
.op-event-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.op-event-status,
.op-event-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(167,139,250,.28);
  background: rgba(124,58,237,.16);
  color: #ddd6fe;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.op-event-status.is-live {
  color: #fde68a;
  border-color: rgba(245,158,11,.38);
  background: rgba(245,158,11,.12);
}
.op-event-status i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251,191,36,.65);
  animation: pulseLive 1.45s infinite;
}
.op-event-count {
  color: #c4b5fd;
  background: rgba(255,255,255,.035);
}
.op-event-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.op-event-teams {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.op-event-teams strong {
  min-width: 0;
  color: #f8f7ff;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-event-teams small {
  min-width: 0;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.op-event-scorebox {
  min-width: 56px;
  max-width: 74px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid rgba(167,139,250,.20);
  border-radius: 12px;
  background: rgba(124,58,237,.10);
  text-align: center;
}
.op-event-scorebox b {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.op-event-scorebox span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.op-event-scorebox.is-score b {
  font-size: 15px;
}
.op-event-scorebox.is-score span {
  color: #fbbf24;
}
.op-market-stack {
  display: grid;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.055);
}
.op-market-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 28px;
  gap: 8px;
  align-items: center;
  min-height: 26px;
}
.op-market-name {
  min-width: 0;
  color: rgba(255,255,255,.9);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-market-prob {
  color: #c4b5fd;
  font-size: 12.5px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.op-market-odd {
  color: rgba(255,255,255,.50);
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.op-market-line .legacy-rank {
  width: 28px;
  min-width: 28px;
  height: 28px;
  font-size: 10.5px;
  justify-self: end;
}
.op-market-more {
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 850;
}
.op-combo-strip.tipster-combos {
  padding: 10px 12px;
  border-radius: 15px;
}
.op-combo-strip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.op-combo-strip__inner strong {
  color: #fff;
  font-size: 13px;
}
.op-combo-strip__inner span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(167,139,250,.16);
}
@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(251,191,36,.65); }
  70% { box-shadow: 0 0 0 7px rgba(251,191,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}
@media (max-width: 1180px) {
  .op-compact-hero.tipster-hero {
    grid-template-columns: 1fr;
  }
  .op-compact-kpis.tipster-hero__stats {
    min-width: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .op-compact-board.tipster-board {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-page {
    gap: 12px;
  }
  .op-compact-hero.tipster-hero {
    padding: 12px;
    border-radius: 16px;
    gap: 10px;
  }
  .op-compact-hero h2 {
    font-size: 22px;
  }
  .op-status-chips.tipster-live-row span {
    padding: 5px 7px;
    font-size: 10px;
  }
  .op-compact-kpis.tipster-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .op-compact-kpis .tipster-kpi {
    min-height: 50px;
    padding: 8px;
  }
  .op-compact-kpis .tipster-kpi strong {
    font-size: 19px;
  }
  .op-compact-kpis .tipster-kpi small {
    display: none;
  }
  .op-column.tipster-column {
    padding: 10px;
  }
  .op-event-link {
    padding: 10px;
  }
  .op-event-teams strong {
    font-size: 13.5px;
  }
  .op-market-line {
    grid-template-columns: minmax(0, 1fr) auto 26px;
    gap: 7px;
  }
  .op-market-odd {
    display: none;
  }
}
@media (max-width: 420px) {
  .op-compact-kpis.tipster-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .op-event-main {
    gap: 8px;
  }
  .op-event-scorebox {
    min-width: 50px;
    padding: 6px 7px;
  }
  .op-event-scorebox b {
    font-size: 14px;
  }
}

/* ─── Central vazia: próximo sinal + cronômetro ───────────── */
.central-empty-state {
  min-height: clamp(260px, 36vh, 380px);
  padding: 22px;
  align-items: stretch;
  text-align: left;
}
.central-next {
  width: min(920px, 100%);
  margin: auto;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(167,139,250,.20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(124,58,237,.18), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(13,13,19,.86));
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
}
.central-next--empty,
.central-next--loading {
  text-align: center;
  justify-items: center;
  max-width: 560px;
}
.central-next__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.central-next__head h2 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.central-next__head h2 span {
  color: #a78bfa;
  font-size: .72em;
  letter-spacing: .02em;
}
.central-next__head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.central-next__timer {
  min-width: 150px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 18px;
  background: rgba(124,58,237,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 0 34px rgba(124,58,237,.13);
}
.central-next__timer strong {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.central-next__timer span {
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.central-next__body {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.central-next__teams {
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
}
.central-next__teams strong {
  min-width: 0;
  color: #f8f7ff;
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.central-next__markets {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}
.central-next__action {
  justify-self: start;
  border: 1px solid rgba(167,139,250,.32);
  border-radius: 13px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-weight: 900;
  padding: 11px 15px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(124,58,237,.24);
}
.central-next__action:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .central-empty-state { padding: 14px; min-height: 340px; }
  .central-next { padding: 16px; border-radius: 18px; gap: 14px; }
  .central-next__head { grid-template-columns: 1fr; gap: 12px; }
  .central-next__timer { min-width: 0; width: 100%; padding: 14px; }
  .central-next__body { grid-template-columns: 1fr; gap: 10px; }
  .central-next__teams { padding: 12px; }
  .central-next__teams strong { font-size: 16px; }
  .central-next__action { width: 100%; }
}


/* ─── Mobile navigation ───────────────────────────────────── */
@media (max-width: 1180px) {
  .app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(520px, calc(100% - 20px));
    padding: 7px;
    border: 1px solid rgba(167,139,250,.22);
    border-radius: 22px;
    background: rgba(10, 10, 16, .88);
    box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 30px rgba(124,58,237,.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }
  .mobile-nav a {
    min-width: 0;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav a.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(124,58,237,.32), rgba(124,58,237,.14));
    box-shadow: inset 0 0 0 1px rgba(167,139,250,.22);
  }
  .mobile-nav__icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #a78bfa;
    font-size: 11px;
  }
  .mobile-nav__icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }
  .mobile-nav a.is-active .mobile-nav__icon {
    color: #34d399;
    filter: drop-shadow(0 0 8px rgba(52,211,153,.45));
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    width: calc(100% - 14px);
    padding: 6px;
    border-radius: 20px;
  }
  .mobile-nav a {
    min-height: 46px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  .brand { gap: 10px; }
  .brand__mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 14px; }
  .brand__name { font-size: 15px; letter-spacing: .12em; }
}

/* ─── Mobile polish: Central do Jogo ─────────────────────────────
   Mantém o desktop intacto e reorganiza a Central para Safari/iPhone. */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  .topbar__inner {
    width: calc(100% - 24px);
    padding: 14px 0 10px;
    gap: 12px;
  }
  .match-tools:not(.match-tools--hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 8px;
    align-items: center;
    width: 100%;
  }
  .match-input {
    width: auto;
    min-width: 0;
    height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }
  .primary-btn,
  .auto-btn {
    height: 44px;
    border-radius: 12px;
    padding-inline: 14px;
  }
  .clock {
    min-width: 58px;
    font-size: 12px;
  }
  .page {
    width: calc(100% - 16px);
    margin: 12px auto calc(94px + env(safe-area-inset-bottom, 0px));
  }
  .game,
  .main-stack,
  .tab-panel.is-active,
  .sidebar {
    gap: 12px;
  }
  .match-hero {
    border-radius: 18px;
  }
  .match-hero__top {
    min-height: 36px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 0 10px;
  }
  .round-btn {
    width: 28px;
    height: 28px;
  }
  .match-meta {
    min-width: 0;
    gap: 6px;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
  }
  .match-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .match-submeta {
    min-height: 0;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.35;
  }

  /* Mobile: a faixa vira uma barra alinhada ao card, não um adesivo flutuante. */
  .hero-ribbon {
    position: static;
    transform: none;
    display: block;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-ribbon__face,
  .hero-ribbon__face.hero-ribbon--live {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 8px 14px;
    border-radius: 0;
    clip-path: none;
    border-left: 0;
    border-right: 0;
    display: flex;
    justify-content: center;
  }
  .hero-ribbon__content {
    width: 100%;
    max-width: 560px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .hero-ribbon__eyebrow {
    font-size: 7.5px;
    letter-spacing: .16em;
    opacity: .76;
  }
  .hero-ribbon__eyebrow::after {
    content: '•';
    margin-left: 8px;
    opacity: .55;
  }
  .hero-ribbon__title {
    font-size: 13.5px;
    line-height: 1;
  }
  .hero-ribbon__sub {
    font-size: 10.5px;
    line-height: 1;
  }
  .hero-ribbon__sub::before {
    content: '•';
    margin-right: 8px;
    opacity: .55;
  }
  .hero-ribbon__face.hero-ribbon--live .hero-ribbon__content {
    max-width: none;
    justify-content: center;
  }

  .scoreboard {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 14px 12px 12px;
  }
  .team,
  .team--home,
  .team--away {
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
  }
  .team--home {
    justify-content: flex-end;
    text-align: right;
  }
  .team--away {
    justify-content: flex-start;
    text-align: left;
  }
  .team--away .team-name { order: 1; }
  .team--away .team-logo-wrap { order: 2; }
  .team-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .team-logo {
    width: 27px;
    height: 27px;
  }
  .team-name {
    font-size: clamp(12px, 3.5vw, 15px);
    line-height: 1.15;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .scorebox { min-width: 70px; }
  .main-score {
    font-size: 34px;
    line-height: .95;
    white-space: nowrap;
  }

  .hero-insight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-insight__lead {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  .hero-insight__stat {
    min-height: 58px;
    padding: 9px 12px;
  }
  .hero-insight__label {
    font-size: 8.5px;
    letter-spacing: .14em;
  }
  .hero-insight__text,
  .hero-insight__stat strong {
    font-size: 12.5px;
  }

  .tabs {
    gap: 18px;
    padding: 0 12px;
    scroll-snap-type: x proximity;
  }
  .tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px 0;
    font-size: 12.5px;
  }

  .section-card,
  .side-card {
    padding: 14px;
    border-radius: 18px;
  }
  .section-head {
    margin-bottom: 12px;
    gap: 10px;
  }
  .kicker {
    font-size: 10px;
    letter-spacing: .14em;
  }
  .section-text {
    font-size: 13px !important;
    line-height: 1.55;
  }
  .resumo-action-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
  .stats-layout {
    gap: 12px;
  }
  .pitch-card {
    overflow: hidden;
  }
  .pitch {
    height: clamp(220px, 62vw, 285px);
    border-radius: 16px;
  }
  .shot-legend {
    max-width: calc(100% - 20px);
    overflow: hidden;
  }
  .shot-tooltip {
    display: none;
  }
  .pressure-line {
    gap: 8px;
  }
  .pressure-name {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .match-tools:not(.match-tools--hidden) {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .match-tools:not(.match-tools--hidden) .clock {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: -2px;
  }
  .primary-btn {
    padding-inline: 12px;
  }
  .auto-btn {
    padding-inline: 10px;
  }
  .scoreboard {
    gap: 6px;
    padding-inline: 10px;
  }
  .team-logo-wrap {
    width: 34px;
    height: 34px;
  }
  .team-logo {
    width: 24px;
    height: 24px;
  }
  .main-score {
    font-size: 30px;
  }
  .scorebox {
    min-width: 62px;
  }
  .hero-ribbon__face,
  .hero-ribbon__face.hero-ribbon--live {
    min-width: 0;
  }
}

/* Central do Jogo não usa mais busca manual por ID no topo.
   A abertura deve vir pelos cards/sinais/próximo jogo. Mantemos os elementos no DOM
   para compatibilidade do JS, mas ocultos na interface. */
.match-input,
#loadBtn {
  display: none !important;
}
.match-tools:not(.match-tools--hidden) {
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .match-tools:not(.match-tools--hidden) {
    justify-content: flex-start;
  }
}

/* ── Aba Sinais: cabeçalho e métricas compactos ───────────── */
#signalsContent.app-page {
  gap: 10px;
}
#signalsContent > .page-head {
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(18,18,23,.62));
}
#signalsContent > .page-head > div {
  min-width: 0;
}
#signalsContent > .page-head .kicker {
  font-size: 9px;
  letter-spacing: .20em;
}
#signalsContent > .page-head h1 {
  margin: 3px 0 4px;
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1;
}
#signalsContent > .page-head p {
  max-width: 640px;
  overflow: hidden;
  color: rgba(203,213,225,.82);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#signalsContent > .page-head .page-badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10px;
}
#signalsContent > .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#signalsContent > .metric-grid .metric-tile {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(18,18,23,.50);
}
#signalsContent > .metric-grid .metric-tile span {
  margin: 0;
  color: rgba(148,163,184,.88);
  font-size: 9.5px;
  letter-spacing: .13em;
  line-height: 1.25;
}
#signalsContent > .metric-grid .metric-tile strong {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  text-align: right;
}
#signalsContent > .legacy-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}
#signalsContent .legacy-filterbar__label {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: .16em;
}
#signalsContent .legacy-filterbar strong {
  font-size: 11px;
  line-height: 1.25;
}
#signalsContent .legacy-filterbar__chips {
  gap: 6px;
}
#signalsContent .legacy-filterbar__chips span {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .06em;
}
#signalsContent > .combo-preview {
  margin: 8px 0 0;
  padding: 11px 12px;
  border-radius: 14px;
}
#signalsContent > .combo-preview .section-head {
  min-height: 0;
  margin-bottom: 8px;
  padding-bottom: 6px;
}
#signalsContent > .combo-preview .combo-preview__grid {
  gap: 8px;
}
#signalsContent > .combo-preview .combo-card {
  padding: 10px;
  border-radius: 11px;
}
#signalsContent > .combo-preview .section-text {
  margin-top: 8px;
  font-size: 11.2px;
  line-height: 1.4;
}
#signalsContent .legacy-signal-panel {
  border-radius: 16px;
}
#signalsContent .legacy-panel-head {
  min-height: 38px;
  padding: 10px 14px 8px;
}

@media (max-width: 760px) {
  #signalsContent > .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #signalsContent > .page-head p {
    white-space: normal;
  }
  #signalsContent > .legacy-filterbar {
    grid-template-columns: 1fr;
  }
  #signalsContent .legacy-filterbar__chips {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  #signalsContent > .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  #signalsContent > .page-head .page-badge {
    align-self: flex-start;
  }
}

/* ─── Ajuste: combos em grade lateral na aba Sinais ─────────── */
#signalsContent > .combo-preview .combo-preview__grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
}
#signalsContent > .combo-preview .combo-card {
  min-width: 0;
}
#signalsContent > .combo-preview .combo-card__top {
  align-items: flex-start;
}
#signalsContent > .combo-preview .combo-card__top b {
  flex: 0 0 auto;
}
@media (min-width: 760px) {
  #signalsContent > .combo-preview .combo-preview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  #signalsContent > .combo-preview .combo-preview__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ── Aba Histórico: mesmo layout compacto da aba Sinais ─────── */
:is(#signalsContent, #historyContent).app-page {
  gap: 10px;
}
:is(#signalsContent, #historyContent) > .page-head {
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(18,18,23,.62));
}
:is(#signalsContent, #historyContent) > .page-head > div {
  min-width: 0;
}
:is(#signalsContent, #historyContent) > .page-head .kicker {
  font-size: 9px;
  letter-spacing: .20em;
}
:is(#signalsContent, #historyContent) > .page-head h1 {
  margin: 3px 0 4px;
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1;
}
:is(#signalsContent, #historyContent) > .page-head p {
  max-width: 640px;
  overflow: hidden;
  color: rgba(203,213,225,.82);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#signalsContent, #historyContent) > .page-head .page-badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10px;
}
:is(#signalsContent, #historyContent) > .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
:is(#signalsContent, #historyContent) > .metric-grid .metric-tile {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(18,18,23,.50);
}
:is(#signalsContent, #historyContent) > .metric-grid .metric-tile span {
  margin: 0;
  color: rgba(148,163,184,.88);
  font-size: 9.5px;
  letter-spacing: .13em;
  line-height: 1.25;
}
:is(#signalsContent, #historyContent) > .metric-grid .metric-tile strong {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  text-align: right;
}
:is(#signalsContent, #historyContent) > .legacy-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}
:is(#signalsContent, #historyContent) .legacy-filterbar__label {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: .16em;
}
:is(#signalsContent, #historyContent) .legacy-filterbar strong {
  font-size: 11px;
  line-height: 1.25;
}
:is(#signalsContent, #historyContent) .legacy-filterbar__chips {
  gap: 6px;
}
:is(#signalsContent, #historyContent) .legacy-filterbar__chips span {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .06em;
}
:is(#signalsContent, #historyContent) .legacy-signal-panel {
  border-radius: 16px;
}
:is(#signalsContent, #historyContent) .legacy-panel-head {
  min-height: 38px;
  padding: 10px 14px 8px;
}
.signal-group-card.is-history {
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.015));
}
.signal-group-card.is-history::before {
  background: linear-gradient(180deg, rgba(34,197,94,.70), rgba(124,58,237,.42));
}
.signal-group-card.is-history[open] {
  border-color: rgba(167,139,250,.18);
}
.signal-group-card.is-history .legacy-result-icon {
  width: 30px;
  height: 30px;
  font-size: 20px;
}
@media (max-width: 760px) {
  :is(#signalsContent, #historyContent) > .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#signalsContent, #historyContent) > .page-head p {
    white-space: normal;
  }
  :is(#signalsContent, #historyContent) > .legacy-filterbar {
    grid-template-columns: 1fr;
  }
  :is(#signalsContent, #historyContent) .legacy-filterbar__chips {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  :is(#signalsContent, #historyContent) > .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  :is(#signalsContent, #historyContent) > .page-head .page-badge {
    align-self: flex-start;
  }
}

/* ─── App motion: transições de página e carregamento premium ─── */
/* Loader de rota discreto: antes era um pill grande flutuando no topo.
   Agora vira uma linha fina abaixo da topbar, sem ocupar atenção no desktop/celular. */
.app-route-loader {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  transform: translateY(-2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.app-route-loader.is-active {
  opacity: .82;
  transform: translateY(0);
}
.app-route-loader__pill {
  display: none;
}
.app-route-loader__bar {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 2px;
  margin: 0;
  border-radius: 0;
  background: rgba(167,139,250,.08);
  box-shadow: 0 0 14px rgba(124,58,237,.14);
}
.app-route-loader__bar::before {
  content: '';
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(196,181,253,.78), rgba(124,58,237,.72), transparent);
  animation: appLoaderBar 1.05s cubic-bezier(.2,.9,.2,1) infinite;
}


.app-page.is-page-entering,
.game.is-page-entering,
.state-card.is-page-entering {
  animation: appPageEnter .46s cubic-bezier(.2,.86,.24,1) both;
}
.app-page.is-page-entering > * {
  animation: appCardEnter .52s cubic-bezier(.2,.86,.24,1) both;
}
.app-page.is-page-entering > *:nth-child(2) { animation-delay: .035s; }
.app-page.is-page-entering > *:nth-child(3) { animation-delay: .07s; }
.app-page.is-page-entering > *:nth-child(4) { animation-delay: .105s; }
.app-page.is-page-entering > *:nth-child(5) { animation-delay: .14s; }
.app-page.is-page-entering .metric-tile,
.app-page.is-page-entering .combo-card,
.app-page.is-page-entering .signal-group-card,
.app-page.is-page-entering .op-event-card {
  animation: appCardEnter .48s cubic-bezier(.2,.86,.24,1) both;
}
.app-page.is-page-entering .metric-tile:nth-child(2),
.app-page.is-page-entering .combo-card:nth-child(2),
.app-page.is-page-entering .signal-group-card:nth-child(2) { animation-delay: .04s; }
.app-page.is-page-entering .metric-tile:nth-child(3),
.app-page.is-page-entering .combo-card:nth-child(3),
.app-page.is-page-entering .signal-group-card:nth-child(3) { animation-delay: .075s; }
.app-page.is-page-entering .metric-tile:nth-child(4),
.app-page.is-page-entering .combo-card:nth-child(4),
.app-page.is-page-entering .signal-group-card:nth-child(4) { animation-delay: .11s; }

.nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
}
.nav a.is-active {
  border-color: rgba(167,139,250,.22);
  background: rgba(124,58,237,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 20px rgba(124,58,237,.10);
}
.nav a.is-active::after { display: none; }
.nav a:hover {
  background: rgba(255,255,255,.035);
}

.app-loading-shell {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(220px, .86fr) minmax(260px, 1.14fr);
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 22%, rgba(124,58,237,.20), transparent 23rem),
    linear-gradient(145deg, rgba(18,18,28,.82), rgba(9,9,13,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 60px rgba(0,0,0,.28);
}
.app-loading-shell__aurora {
  position: absolute;
  inset: -35% -12%;
  background:
    radial-gradient(circle at 22% 40%, rgba(167,139,250,.18), transparent 18rem),
    radial-gradient(circle at 70% 60%, rgba(124,58,237,.14), transparent 22rem);
  filter: blur(12px);
  animation: appAuroraDrift 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}
.app-loading-shell .match-loader {
  position: relative;
  justify-items: start;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 16px;
  z-index: 1;
}
.app-loading-shell .match-loader__logo-wrap {
  width: 82px;
  height: 82px;
}
.app-loading-shell .match-loader__logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}
.app-loading-shell__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.app-loading-shell__copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.app-loading-shell__copy span {
  color: rgba(203,213,225,.66);
  font-size: 12px;
  font-weight: 600;
}
.app-loading-skeleton {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}
.app-loading-skeleton span {
  overflow: hidden;
  height: 44px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.app-loading-skeleton span::before {
  content: '';
  display: block;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
  transform: translateX(-120%);
  animation: appSkeletonSweep 1.35s ease-in-out infinite;
}
.app-loading-skeleton span:nth-child(2)::before { animation-delay: .12s; }
.app-loading-skeleton span:nth-child(3)::before { animation-delay: .24s; }

.state-card--loading {
  min-height: 270px;
  border-radius: 26px;
  border-color: rgba(167,139,250,.20);
  background:
    radial-gradient(circle at 50% 0%, rgba(124,58,237,.18), transparent 30rem),
    linear-gradient(145deg, rgba(18,18,28,.78), rgba(8,8,12,.72));
}
.state-card--loading .match-loader {
  gap: 13px;
}
.state-card--loading .state-title {
  margin-top: 2px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}
.state-card--loading .muted {
  color: rgba(203,213,225,.68);
}

.metric-tile,
.combo-card,
.signal-group-card,
.legacy-filterbar,
.section-card,
.op-event-card {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.metric-tile:hover,
.combo-card:hover,
.signal-group-card:hover,
.op-event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,.25);
  box-shadow: 0 16px 42px rgba(0,0,0,.26), 0 0 28px rgba(124,58,237,.08);
}

@keyframes appPageEnter {
  from { opacity: 0; transform: translateY(16px) scale(.992); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes appCardEnter {
  from { opacity: 0; transform: translateY(12px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes appLoaderSheen {
  0% { transform: translateX(-105%); opacity: 0; }
  35%, 70% { opacity: 1; }
  100% { transform: translateX(105%); opacity: 0; }
}
@keyframes appLoaderDot {
  0%, 100% { transform: scale(.92); opacity: .72; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes appLoaderBar {
  from { transform: translateX(-110%); }
  to { transform: translateX(230%); }
}
@keyframes appSkeletonSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(260%); }
}
@keyframes appAuroraDrift {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg); opacity: .72; }
  to { transform: translate3d(2%, 1%, 0) rotate(4deg); opacity: 1; }
}

@media (max-width: 780px) {
  .app-route-loader { top: 0; }
  .app-loading-shell {
    grid-template-columns: 1fr;
    min-height: 240px;
    padding: 20px;
  }
  .app-loading-shell .match-loader {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .app-loading-skeleton span { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-route-loader,
  .app-route-loader *,
  .app-page.is-page-entering,
  .game.is-page-entering,
  .state-card.is-page-entering,
  .app-page.is-page-entering > *,
  .app-loading-shell__aurora,
  .app-loading-skeleton span::before {
    animation: none !important;
    transition: none !important;
  }
}


/* ─── Forma Recente Analítica ────────────────────────── */
.recent-analytics { display: grid; gap: 16px; }
.recent-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(124,58,237,.10), transparent 34%), rgba(12,11,18,.72);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
  padding: 16px;
  overflow: hidden;
}
.recent-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.recent-panel__sub { margin: -2px 0 14px; color: var(--muted); font-size: 12px; }
.recent-versus { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 14px; color: var(--text); font-size: 16px; }
.recent-versus span { color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.recent-comparison { display: grid; gap: 8px; }
.recent-compare-row {
  display: grid; grid-template-columns: 92px minmax(140px, 1fr) 92px;
  align-items: center; gap: 12px; min-height: 42px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.035);
}
.recent-compare-row span { text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; }
.recent-compare-row strong { text-align: center; font-size: 18px; color: var(--text); }
.recent-compare-row--strong strong { color: #34d399; }
.recent-market-grid { display: grid; gap: 10px; }
.recent-market-row {
  display: grid; grid-template-columns: minmax(110px, 1fr) 64px minmax(110px, 1fr) 64px;
  align-items: center; gap: 10px; padding: 10px;
  border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.04);
}
.recent-market-row span { color: var(--text); font-weight: 700; font-size: 13px; }
.recent-market-row strong {
  justify-self: end; min-width: 54px; padding: 6px 8px; border-radius: 999px;
  text-align: center; font-size: 13px; background: rgba(255,255,255,.08); color: var(--text);
}
.recent-market-row strong.is-good { background: rgba(16,185,129,.20); color: #6ee7b7; }
.recent-market-row strong.is-warn { background: rgba(245,158,11,.20); color: #fbbf24; }
.recent-market-row strong.is-bad { background: rgba(244,63,94,.20); color: #fb7185; }
.recent-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recent-team-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.recent-form-pills em { color: var(--muted-2); font-style: normal; font-size: 12px; }
.recent-game-list { display: grid; gap: 8px; }
.recent-game-row {
  display: grid; grid-template-columns: 72px minmax(110px, 1fr) 64px minmax(110px, 1fr) 24px;
  align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.055); border-radius: 12px; background: rgba(255,255,255,.025);
  color: var(--muted); font-size: 12px;
}
.recent-game-date { color: var(--muted-2); }
.recent-game-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-game-team.is-focus { color: var(--text); font-weight: 800; }
.recent-game-score {
  justify-self: center; min-width: 56px; padding: 6px 10px; border-radius: 10px;
  text-align: center; background: rgba(124,58,237,.18); color: var(--text); border: 1px solid rgba(167,139,250,.25);
}
.recent-game-row > i {
  width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; justify-self: end;
  font-style: normal; font-size: 10px; font-weight: 900; color: var(--muted); background: rgba(255,255,255,.08);
}
.recent-game-row > i.is-win { color: #d1fae5; background: rgba(16,185,129,.22); }
.recent-game-row > i.is-draw { color: #fef3c7; background: rgba(234,179,8,.18); }
.recent-game-row > i.is-loss { color: #ffe4e6; background: rgba(244,63,94,.22); }
.recent-empty {
  padding: 14px; border: 1px dashed rgba(148,163,184,.22); border-radius: 12px;
  color: var(--muted); text-align: center; font-size: 12px;
}
@media (max-width: 920px) {
  .recent-details-grid { grid-template-columns: 1fr; }
  .recent-market-row { grid-template-columns: 1fr 58px; }
  .recent-market-row span:nth-of-type(2) { margin-top: 6px; }
  .recent-game-row { grid-template-columns: 64px minmax(90px, 1fr) 56px minmax(90px, 1fr) 22px; gap: 8px; padding: 9px; }
}
@media (max-width: 560px) {
  .recent-compare-row { grid-template-columns: 64px 1fr 64px; }
  .recent-compare-row strong { font-size: 16px; }
  .recent-versus { font-size: 14px; }
}
