@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Sedgwick+Ave+Display&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:     #0a0a0f;
  --bg-surface:  #111118;
  --bg-card:     #161622;
  --bg-hover:    #1f1f2e;
  --border:      rgba(255,255,255,0.08);
  --border-glow: rgba(212, 168, 67, 0.3);

  --cyan:   #d4a843;
  --gold:   #d4a843;
  --gold-light: #f0d078;
  --green:  #22c55e;
  --blue:   #3b82f6;
  --red:    #d90429;
  --yellow: #f59e0b;
  --purple: #a78bfa;

  --text-1: #f0ece4;
  --text-2: #a09888;
  --text-3: #5a5448;

  --sidebar-w: 240px;
  --topbar-h:  60px;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  --glow-cyan:  0 0 20px rgba(212, 168, 67, 0.3);
  --glow-gold:  0 0 20px rgba(212, 168, 67, 0.3);
  --glow-green: 0 0 20px rgba(34, 197, 94, 0.25);
  --glow-red:   0 0 20px rgba(217, 4, 41, 0.3);
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ===== PORTAL GLOBAL TOP NAVIGATION ===== */
.portal-global-nav {
  height: 52px;
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 500;
  width: 100%;
  flex-shrink: 0;
}
.portal-global-nav__inner {
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-logo-red {
  color: #ef4444;
}
.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.portal-nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-nav-links a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.portal-nav-links a:hover {
  color: #00D4FF;
  background: rgba(0, 212, 255, 0.08);
}
.portal-nav-links a.active {
  color: #00D4FF;
  background: rgba(0, 212, 255, 0.12);
  font-weight: 700;
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.portal-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  transition: transform 0.2s;
}
.portal-cta-btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .portal-nav-links { display: none; }
}

/* ===== LAYOUT ===== */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.bethor-app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 52px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition), min-width var(--transition);
  overflow: hidden;
  z-index: 100;
  position: relative;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
}

/* ===== SIDEBAR ===== */
.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45));
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .brand-logo-img {
  transform: rotate(15deg) scale(1.1);
  filter: drop-shadow(0 0 16px rgba(0, 255, 136, 0.75));
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 16px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  color: var(--text-1);
  background: var(--bg-hover);
}

.nav-item.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, var(--cyan), var(--green));
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.live-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.offline { background: var(--red); }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition);
}

.menu-toggle:hover { color: var(--text-1); }

.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-time {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.refresh-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all var(--transition);
  line-height: 1;
}

.refresh-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ===== CONTENT / PAGES ===== */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page { display: none; }
.page.active { display: block; }

.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.cyan  { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.stat-icon.green { background: rgba(0, 255, 136, 0.1); color: var(--green); }
.stat-icon.blue  { background: rgba(79, 142, 255, 0.1); color: var(--blue); }
.stat-icon.red   { background: rgba(255, 71, 87, 0.1); color: var(--red); }

.live-pulse { animation: livePulse 2s infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 3px;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.col-span-2 { grid-column: span 2; }

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.btn-sm {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-sm:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== MATCH ITEMS ===== */
.match-list, .match-grid {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.match-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.match-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.12);
}

.match-item.live { border-color: rgba(0, 255, 136, 0.3); }
.match-item.finished { opacity: 0.85; }

.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-name.home { text-align: right; }
.team-name.away { text-align: left; }

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 74px;
}

.match-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

.match-score.live-score { color: var(--green); text-shadow: 0 0 10px rgba(0,255,136,0.3); }

.match-time-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-time-badge.scheduled { background: rgba(79, 142, 255, 0.15); color: var(--blue); }
.match-time-badge.live      { background: rgba(0, 255, 136, 0.15); color: var(--green); animation: pulse 1.5s infinite; }
.match-time-badge.finished  { background: rgba(139, 154, 192, 0.15); color: var(--text-3); }

.match-league-tag {
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 3px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  grid-column: 1 / -1;
  width: 100%;
}

/* ===== LIVE LAYOUT & HEADERS ===== */
.live-status-bar {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.live-section-header {
  grid-column: 1 / -1;
  width: 100%;
}

.live-empty-panel {
  grid-column: 1 / -1;
  width: 100%;
}

/* ===== LEAGUE CHIPS ===== */
.league-chips {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.league-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}

.league-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

/* ===== LEAGUES GRID ===== */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.league-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.league-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.league-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.league-card-country {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.league-card-slug {
  margin-top: 10px;
  display: inline-block;
  font-size: 11px;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 3px 8px;
  border-radius: 99px;
  font-family: monospace;
}

.league-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

/* ===== SCRAPER LIST ===== */
.scraper-list {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.scraper-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  transition: all var(--transition);
}

.scraper-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-hover);
}

.scraper-item-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scraper-item-count {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
}

.scraper-item-label {
  font-size: 10px;
  color: var(--text-3);
}

/* ===== STANDINGS ===== */
.standings-wrapper { display: flex; flex-direction: column; gap: 20px; }

.standings-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.standings-selector label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.standings-selector select,
.teams-search-bar input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  min-width: 240px;
  transition: border-color var(--transition);
  outline: none;
}

.standings-selector select:focus,
.teams-search-bar input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.standings-table th {
  background: var(--bg-surface);
  padding: 10px 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.standings-table th:first-child,
.standings-table td:first-child { text-align: left; padding-left: 16px; }
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) { text-align: left; min-width: 150px; }

.standings-table td {
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: var(--bg-hover); }

.standings-table td.pos { font-weight: 700; color: var(--text-3); width: 36px; }
.standings-table td.pts { font-weight: 800; color: var(--text-1); }
.standings-table td.team-col { font-weight: 600; color: var(--text-1); }

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.pos-top3 { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }
.pos-normal { color: var(--text-3); }
.pos-bottom { background: rgba(255, 71, 87, 0.1); color: var(--red); }

/* ===== TEAMS ===== */
.teams-wrapper { display: flex; flex-direction: column; gap: 20px; }

.teams-search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #06080f;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.team-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.team-stat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--text-3); }
.stat-row .value { font-weight: 700; color: var(--text-1); }
.stat-row .value.green { color: var(--green); }
.stat-row .value.red { color: var(--red); }
.stat-row .value.cyan { color: var(--cyan); }

/* ===== SCRAPER CONTROLS ===== */
.scraper-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scraper-actions { padding: 16px 18px; }

.scrape-btn {
  position: relative;
  overflow: hidden;
}

.scrape-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.scraper-detail-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scraper-league-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scraper-league-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.scraper-league-count {
  font-size: 12px;
  color: var(--text-3);
}

.scraper-league-actions {
  display: flex;
  gap: 8px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.filter-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== DATE NAVIGATION TABS (HOJE + 2 DIAS) ===== */
.date-selector-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.date-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-2);
  user-select: none;
}

.date-pill-btn:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--text-1);
}

.date-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 230, 118, 0.1));
  border-color: var(--cyan);
  color: var(--text-1);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.date-pill-icon {
  font-size: 18px;
}

.date-pill-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.date-pill-day {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-1);
}

.date-pill-btn.active .date-pill-day {
  color: var(--cyan);
}

.date-pill-date {
  font-size: 11px;
  color: var(--text-3);
}

.date-pill-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.date-pill-btn.active .date-pill-badge {
  background: var(--cyan);
  color: #080c14;
}

.dash-day-tabs {
  display: flex;
  gap: 6px;
}

.dash-day-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.dash-day-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.dash-day-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.league-group-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 14px;
  margin-bottom: 4px;
}

.league-group-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.league-group-count {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

/* ===== FORM BADGES (V / E / D) ===== */
.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.form-badge.v { background: rgba(0, 255, 136, 0.2); color: var(--green); border: 1px solid rgba(0, 255, 136, 0.3); }
.form-badge.e { background: rgba(255, 209, 102, 0.2); color: var(--yellow); border: 1px solid rgba(255, 209, 102, 0.3); }
.form-badge.d { background: rgba(255, 71, 87, 0.2); color: var(--red); border: 1px solid rgba(255, 71, 87, 0.3); }

/* ===== MATCH ANALYSIS MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  box-shadow: 0 16px 50px rgba(0,0,0,0.8), var(--glow-cyan);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.modal-league-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
  white-space: nowrap;
}

.modal-league-id {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-top-bf-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-end;
  max-width: 620px;
  margin-left: auto;
  margin-right: 8px;
}

.bf-top-sync-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.bf-top-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bf-top-sync-container .bf-sync-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.bf-top-sync-container .bf-input {
  flex: 1 1 auto;
  min-width: 140px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: #fff;
  outline: none;
  transition: all var(--transition);
}

.bf-top-sync-container .bf-input:focus {
  border-color: #f5a623;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.35);
  background: rgba(0, 0, 0, 0.6);
}

.bf-top-sync-container .bf-btn-sync {
  background: linear-gradient(135deg, #f5a623, #d98204);
  color: #0b1120;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bf-top-sync-container .bf-btn-sync:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.45);
  filter: brightness(1.08);
}

.modal-close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(13, 18, 32, 0.6);
}

.modal-body > * {
  flex-shrink: 0;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(13, 18, 32, 0.6);
  border-radius: 99px;
  margin: 6px 0;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 99px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Confronto Hero */
.confronto-hero {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 255, 136, 0.02) 100%), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confronto-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.hero-team {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-team.home { text-align: right; align-items: flex-end; }
.hero-team.away { text-align: left; align-items: flex-start; }

.hero-team-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-team.away .hero-team-tag { color: var(--green); }

.hero-team-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.2;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

.hero-score {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
}

.hero-score.live { color: var(--green); text-shadow: 0 0 16px rgba(0,255,136,0.4); }

.hero-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

.hero-bf-odd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.hero-bf-odd-badge.home {
  background: rgba(24, 144, 255, 0.15);
  border: 1px solid rgba(24, 144, 255, 0.45);
  color: #69c0ff;
}

.hero-bf-odd-badge.away {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--green);
}

.hero-bf-odd-badge.draw {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffc107;
  font-size: 10.5px;
}

.hero-bf-odd-badge strong {
  font-weight: 900;
  color: #fff;
}

.hero-bf-pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px dashed rgba(245, 166, 35, 0.4);
  color: #f5a623;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.hero-bf-pending-badge:hover {
  background: rgba(245, 166, 35, 0.2);
  border-color: #f5a623;
  transform: translateY(-1px);
}

/* Win Probabilities Bar */
.win-probs-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.win-probs-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
}

.win-probs-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--bg-hover);
  display: flex;
  overflow: hidden;
  gap: 2px;
}

.win-prob-home { background: var(--cyan); height: 100%; transition: width 0.4s; }
.win-prob-draw { background: var(--yellow); height: 100%; transition: width 0.4s; }
.win-prob-away { background: var(--green); height: 100%; transition: width 0.4s; }

/* Predictions Grid */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pred-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  transition: all var(--transition);
}

.pred-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.pred-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pred-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
}

.pred-value.green { color: var(--green); }
.pred-value.yellow { color: var(--yellow); }

/* Comparison Section */
.comparison-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-comparison-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 1fr 80px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.stat-comp-val {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-1);
}

.stat-comp-val.home { text-align: right; }
.stat-comp-val.away { text-align: left; }

.stat-comp-label {
  text-align: center;
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.stat-bar-track {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 99px;
}

.stat-bar-fill.home {
  background: linear-gradient(90deg, transparent, var(--cyan));
  float: right;
}

.stat-bar-fill.away {
  background: linear-gradient(90deg, var(--green), transparent);
  float: left;
}

/* Form & H2H Cards */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.team-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

.form-badges-list {
  display: flex;
  gap: 6px;
}

.form-match-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.form-match-history-item:last-child { border-bottom: none; }

.h2h-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h2h-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.event-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  transition: all var(--transition);
}

.event-item:hover {
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.03);
}

.event-item.goal {
  border-left: 3px solid var(--green);
}

.event-item.yellow_card {
  border-left: 3px solid var(--yellow);
}

.event-item.red_card {
  border-left: 3px solid var(--red);
}

.event-minute-badge {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
}

.event-icon-span {
  font-size: 16px;
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.event-player {
  font-weight: 700;
  color: var(--text-1);
}

.event-detail {
  font-size: 11px;
  color: var(--text-3);
}

.live-alert-banner {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
  animation: pulse 2s infinite;
}

.pre-live-banner {
  background: rgba(0, 188, 255, 0.07);
  border: 1px solid rgba(0, 188, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s ease;
  min-width: 220px;
}

.toast.success { border-color: rgba(0, 255, 136, 0.3); }
.toast.error   { border-color: rgba(255, 71, 87, 0.3); }
.toast.info    { border-color: var(--border-glow); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(120%); }
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ===== PREDICTIVE POISSON MODEL & FULLTBET SUGGESTIONS ===== */
.model-container {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.model-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--green));
}

.model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.model-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-badge {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.model-badge.fulltbet {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--green);
}

.model-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.model-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.model-metric-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
}

.model-metric-val.cyan { color: var(--cyan); }
.model-metric-val.green { color: var(--green); }
.model-metric-val.blue { color: var(--blue); }

.model-metric-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Operations cards */
.operations-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.operation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.operation-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.operation-card.high-conf {
  border-left: 3px solid var(--green);
}

.operation-card.med-conf {
  border-left: 3px solid var(--yellow);
}

.op-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.op-market-tag {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
}

.op-badges {
  display: flex;
  gap: 4px;
}

.badge-risk {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-risk.baixo, .badge-risk.muito-baixo { background: rgba(0, 255, 136, 0.15); color: var(--green); }
.badge-risk.medio { background: rgba(255, 184, 0, 0.15); color: var(--yellow); }
.badge-risk.alto { background: rgba(255, 71, 87, 0.15); color: var(--red); }

.op-selection {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.op-odds-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  margin-bottom: 10px;
}

.op-odd-item {
  display: flex;
  flex-direction: column;
}

.op-odd-label {
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
}

.op-odd-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
}

.op-odd-val.target {
  color: var(--green);
}

.op-odd-val.betfair {
  color: #f5a623;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.op-odd-val.betfair.value {
  color: #52c41a;
  text-shadow: 0 0 10px rgba(82, 196, 26, 0.35);
}

.op-odd-val.betfair.none {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.op-bf-ev {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.2px;
}

.op-bf-ev.pos {
  background: rgba(82, 196, 26, 0.2);
  border: 1px solid rgba(82, 196, 26, 0.4);
  color: #52c41a;
}

.op-bf-ev.neu {
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: #f5a623;
}

.op-rationale {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 10px;
}

.op-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.op-platform-tag {
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.op-stake {
  color: var(--text-2);
  font-weight: 600;
}

.op-stake strong {
  color: var(--cyan);
}

/* Fair odds table */
.fair-odds-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.fair-odds-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}

.fair-odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.fair-odd-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fair-chip-name {
  font-size: 11px;
  color: var(--text-2);
}

.fair-chip-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
}

/* Top scores chips */
.top-scores-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.top-scores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-chip {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.score-chip-score {
  font-weight: 800;
  color: var(--text-1);
}

.score-chip-prob {
  color: var(--cyan);
  font-weight: 700;
}

.score-chip-odd {
  font-size: 10px;
  color: var(--text-3);
}

/* ===== BETFAIR EXCHANGE ODDS STYLES ===== */
.betfair-box {
  background: linear-gradient(145deg, #131b2e, #0c1220);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.betfair-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5a623, #ffcc00, #00d4ff);
}

.bf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bf-badge-logo {
  background: #f5a623;
  color: #0b1120;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bf-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.bf-subtitle {
  font-size: 11px;
  color: var(--text-3);
}

.bf-synced-pill {
  font-size: 11px;
  font-weight: 700;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bf-sync-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
}

.bf-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
  outline: none;
  transition: all var(--transition);
}

.bf-input:focus {
  border-color: #f5a623;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.25);
}

.bf-btn-sync {
  background: linear-gradient(135deg, #f5a623, #d98204);
  color: #0b1120;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.bf-btn-sync:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

/* 1X2 Match Odds Cards */
.bf-match-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.bf-team-odd-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}

.bf-team-odd-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.bf-card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
}

.bf-prob-tag {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
}

.bf-prices-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bf-price-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.bf-price-cell.back {
  background: rgba(24, 144, 255, 0.15);
  border: 1px solid rgba(24, 144, 255, 0.4);
}

.bf-price-cell.back:hover {
  background: rgba(24, 144, 255, 0.3);
  transform: scale(1.02);
}

.bf-price-cell.lay {
  background: rgba(255, 77, 79, 0.15);
  border: 1px solid rgba(255, 77, 79, 0.4);
}

.bf-price-cell.lay:hover {
  background: rgba(255, 77, 79, 0.3);
  transform: scale(1.02);
}

.bf-price-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.bf-price-cell.back .bf-price-type { color: #40a9ff; }
.bf-price-cell.lay .bf-price-type { color: #ff7875; }

.bf-price-odd {
  font-size: 16px;
  font-weight: 900;
}

.bf-price-cell.back .bf-price-odd { color: #69c0ff; }
.bf-price-cell.lay .bf-price-odd { color: #ffa39e; }

.bf-ev-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
}

.bf-ev-tag.positive {
  background: rgba(0, 255, 136, 0.18);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.bf-ev-tag.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Secondary Markets Grid (Over/Under, BTTS, Double Chance) */
.bf-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.bf-market-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.bf-market-block-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bf-sel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bf-sel-name {
  font-size: 11.5px;
  color: var(--text-1);
  font-weight: 500;
}

.bf-sel-odds-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bf-mini-odd {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.bf-mini-odd.back {
  background: rgba(24, 144, 255, 0.2);
  color: #69c0ff;
  border: 1px solid rgba(24, 144, 255, 0.35);
}

.bf-mini-odd.fair {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-size: 10px;
}

/* Correct Score Matrix with Betfair Odds */
.bf-scores-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.bf-scores-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bf-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.bf-score-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
}

.bf-score-card:hover {
  border-color: #f5a623;
  background: rgba(245, 166, 35, 0.04);
}

.bf-score-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bf-score-number {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-1);
}

.bf-score-prob {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}

.bf-score-odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.bf-score-market-odd {
  font-weight: 800;
  color: #f5a623;
}

.bf-score-fair-odd {
  color: var(--text-3);
  font-size: 10px;
}

/* ===== RELATÓRIO EXECUTIVO DE MELHORES APOSTAS (+EV) ===== */
.best-bets-report-box {
  background: linear-gradient(145deg, rgba(14, 25, 45, 0.95), rgba(9, 14, 26, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.best-bets-report-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #00e676, #f5a623);
}

.best-bets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.best-bets-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.best-bets-icon-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 230, 118, 0.2));
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.best-bets-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.2px;
}

.best-bets-subtitle {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.best-bets-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.best-bets-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.best-bets-badge-pill.quant {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.best-bets-badge-pill.ev {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.best-bets-badge-pill.kelly {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.best-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.best-bet-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.best-bet-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  background-image: url('assets/bethor_logo_glow.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.best-bet-card:hover::after {
  opacity: 0.22;
  transform: scale(1.1) rotate(8deg);
}

.best-bet-card > * {
  position: relative;
  z-index: 1;
}

.best-bet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.best-bet-card.gold-edge {
  border-color: rgba(0, 230, 118, 0.4);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.best-bet-card.high-value {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.best-bet-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.best-bet-market-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.best-bet-selection-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  margin-top: 2px;
}

.best-bet-ev-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.best-bet-ev-pill.positive {
  background: rgba(0, 230, 118, 0.2);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.best-bet-ev-pill.target {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.best-bet-prob-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.best-bet-prob-pill.high-prob {
  background: rgba(0, 255, 136, 0.14);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.12);
}

.best-bet-prob-pill.mid-prob {
  background: rgba(0, 188, 255, 0.14);
  color: #00d4ff;
  border: 1px solid rgba(0, 188, 255, 0.35);
}

.best-bet-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: end;
}

.best-bet-metric-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.best-bet-metric-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 14px;
}

.best-bet-metric-val {
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}

.best-bet-metric-val.market {
  color: #f5a623;
}

.best-bet-metric-val.fair {
  color: var(--cyan);
}

.best-bet-metric-val.prob {
  color: var(--green);
}

.best-bet-metric-val.stake {
  color: #b388ff;
}

.best-bet-rationale-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--cyan);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-2);
}

.best-bet-rationale-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.best-bets-summary-footer {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.best-bets-footer-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.best-bets-footer-text {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.best-bets-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-3);
  font-size: 12px;
}

/* Ações nos Cards de Melhores Apostas */
.best-bet-card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-add-livro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f0d078 0%, #d4a843 50%, #a07820 100%);
  border: 1px solid rgba(240, 208, 120, 0.5);
  border-radius: var(--radius-sm);
  color: #0a0a0f;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(212, 168, 67, 0.25);
}

.btn-add-livro:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f0d078 50%, #d4a843 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.45);
}

.btn-add-livro.added {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.btn-insta-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 255, 136, 0.12));
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-insta-export:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 255, 136, 0.25));
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.25);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 440px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 168, 67, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.6);
  background: #0d1a12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.3);
}

.toast.error {
  border-color: rgba(217, 4, 41, 0.6);
  background: #1a0d10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(217, 4, 41, 0.3);
}

.toast.info {
  border-color: rgba(212, 168, 67, 0.6);
  background: #1a160d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 168, 67, 0.3);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ===== MODAL DE EXPORTAÇÃO INSTAGRAM ===== */
.insta-modal-container {
  max-width: 860px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.insta-modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insta-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.insta-format-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.insta-control-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

.insta-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
}

.insta-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insta-preview-wrapper {
  background: #04060a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  max-height: 580px;
  overflow: auto;
}

.insta-preview-img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* ===== TEMPLATE DE RENDERIZAÇÃO GRÁFICA INSTAGRAM (1080px base) ===== */
.insta-render-root {
  width: 1080px;
  background: #070b14;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(0, 229, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(0, 255, 136, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(26, 41, 74, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #0a1120 0%, #050811 100%);
  color: #f0f4ff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  padding: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insta-render-root.format-story {
  height: 1920px;
  padding: 85px 64px;
}

.insta-render-root.format-feed {
  height: 1350px;
  padding: 55px 60px;
}

.insta-render-root.format-square {
  height: 1080px;
  padding: 38px 46px;
}

.insta-render-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Cabeçalho do Card Instagram */
.insta-card-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 22px;
}

.insta-brand-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.insta-site-logo-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.insta-site-logo-icon {
  width: 74px !important;
  height: 74px !important;
  max-width: 74px !important;
  max-height: 74px !important;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(255, 59, 48, 0.6));
  display: block;
}

.insta-brand-red {
  color: #ff3b30;
  text-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}

.insta-brand-logo {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px;
  display: block;
}

.insta-brand-name {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #ffffff;
  line-height: 1;
}

.insta-brand-sub {
  font-size: 13px;
  color: #8e9bb5;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 5px;
}

.insta-top-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(0, 255, 136, 0.12);
  border: 2px solid rgba(0, 255, 136, 0.4);
  border-radius: 999px;
  color: #00ff88;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.insta-top-dot {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
}

/* Seção de Confronto */
.insta-match-section {
  text-align: center;
  margin: 24px 0 16px;
}

.insta-league-pill {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 8px 24px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.insta-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.insta-vs-badge {
  font-size: 18px;
  font-weight: 900;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 4px 16px;
  border-radius: 12px;
}

.insta-prematch-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: #8fa0c0;
  margin-top: 12px;
  font-weight: 600;
}

.insta-prematch-disclaimer span {
  color: #00e5ff;
  font-size: 14px;
}

/* Card Central da Operação (+EV) */
.insta-main-card {
  background: linear-gradient(155deg, rgba(14, 24, 48, 0.95), rgba(7, 12, 24, 0.98));
  border: 2px solid rgba(0, 229, 255, 0.35);
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.insta-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #00e5ff, #00ff88, #f5a623);
}

.insta-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.insta-market-name {
  font-size: 15px;
  font-weight: 800;
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.insta-selection-name {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
  letter-spacing: -0.5px;
}

.insta-ev-pill {
  font-size: 19px;
  font-weight: 900;
  padding: 10px 22px;
  border-radius: 14px;
  background: rgba(0, 255, 136, 0.18);
  color: #00ff88;
  border: 2px solid rgba(0, 255, 136, 0.45);
  letter-spacing: 0.5px;
}

/* Grid de Métricas no Instagram Card */
.insta-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.insta-metric-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insta-metric-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #7f95c4;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.insta-metric-num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.insta-metric-num.market { color: #f5a623; }
.insta-metric-num.fair   { color: #00e5ff; }
.insta-metric-num.prob   { color: #00ff88; }
.insta-metric-num.stake  { color: #b388ff; }

/* Box Rationale */
.insta-rationale-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 5px solid #00e5ff;
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #d5e0f5;
}

.insta-rationale-tag {
  font-size: 13px;
  font-weight: 800;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* Banner URL DAVIAZEVEDO.COM abaixo do bloco de aposta */
.insta-url-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 14px;
  padding: 14px 34px;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.14) 0%, rgba(20, 27, 48, 0.65) 100%);
  border: 1.5px solid rgba(255, 59, 48, 0.45);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(255, 59, 48, 0.18), inset 0 0 15px rgba(255, 59, 48, 0.08);
}

.insta-url-dot {
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 14px #ff3b30, 0 0 24px #ff3b30;
  flex-shrink: 0;
}

.insta-url-text {
  font-family: 'Permanent Marker', 'Sedgwick Ave Display', cursive, sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 59, 48, 0.6), 2px 2px 0px rgba(0, 0, 0, 0.85);
  line-height: 1.1;
  display: inline-block;
  transform: rotate(-0.5deg);
}

/* Rodapé do Card Instagram */
.insta-card-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  margin-top: 18px;
}

.insta-footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.insta-footer-tech {
  font-size: 13px;
  color: #7f95c4;
  font-weight: 600;
}

.insta-footer-tech strong {
  color: #00e5ff;
  font-weight: 800;
}

.insta-footer-handle {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.insta-responsible-gaming-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.insta-18-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  border: 2px solid #ff4757;
  color: #ff4757;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  background: rgba(255, 71, 87, 0.12);
}

.insta-responsible-text {
  font-size: 11px;
  line-height: 1.4;
  color: #7f95c4;
  font-weight: 500;
}

/* Format Story Adjustments (9:16 - 1080x1920) */
.format-story .insta-site-logo-icon { width: 86px !important; height: 86px !important; max-width: 86px !important; max-height: 86px !important; }
.format-story .insta-brand-name { font-size: 44px; letter-spacing: 3px; }
.format-story .insta-brand-sub { font-size: 15px; letter-spacing: 3px; }
.format-story .insta-teams-row { font-size: 42px; gap: 24px; }
.format-story .insta-selection-name { font-size: 44px; }
.format-story .insta-main-card { padding: 40px 42px; border-radius: 26px; }
.format-story .insta-metrics-grid { padding: 22px 26px; gap: 16px; margin-bottom: 26px; }
.format-story .insta-metric-num { font-size: 32px; }
.format-story .insta-rationale-box { padding: 22px 26px; font-size: 18px; }
.format-story .insta-url-banner { margin: 30px 0 18px; padding: 18px 42px; }
.format-story .insta-url-text { font-size: 34px; letter-spacing: 3.5px; }

/* Format Feed Adjustments (4:5 - 1080x1350) */
.format-feed .insta-site-logo-icon { width: 72px !important; height: 72px !important; max-width: 72px !important; max-height: 72px !important; }
.format-feed .insta-brand-name { font-size: 36px; }
.format-feed .insta-teams-row { font-size: 36px; gap: 18px; }
.format-feed .insta-selection-name { font-size: 36px; }
.format-feed .insta-main-card { padding: 30px 34px; border-radius: 22px; }
.format-feed .insta-metrics-grid { padding: 16px 20px; gap: 12px; margin-bottom: 18px; }
.format-feed .insta-metric-num { font-size: 26px; }
.format-feed .insta-rationale-box { padding: 16px 20px; font-size: 16px; }
.format-feed .insta-url-banner { margin: 18px 0 10px; padding: 14px 28px; }
.format-feed .insta-url-text { font-size: 28px; letter-spacing: 2.5px; }

/* Format Square Adjustments (1:1 - 1080x1080) */
.format-square .insta-card-brand-header { padding-bottom: 14px; }
.format-square .insta-site-logo-icon { width: 52px !important; height: 52px !important; max-width: 52px !important; max-height: 52px !important; }
.format-square .insta-brand-name { font-size: 28px; letter-spacing: 1.5px; }
.format-square .insta-brand-sub { font-size: 11px; }
.format-square .insta-top-badge { font-size: 13px; padding: 7px 16px; }
.format-square .insta-match-section { margin: 10px 0 6px; }
.format-square .insta-league-pill { font-size: 12px; padding: 4px 14px; margin-bottom: 6px; }
.format-square .insta-teams-row { font-size: 26px; gap: 10px; }
.format-square .insta-vs-badge { font-size: 13px; padding: 2px 8px; }
.format-square .insta-prematch-disclaimer { margin-top: 4px; font-size: 10.5px; padding: 2px 10px; }
.format-square .insta-main-card { padding: 16px 20px; border-radius: 16px; }
.format-square .insta-main-header { margin-bottom: 10px; }
.format-square .insta-market-name { font-size: 12px; }
.format-square .insta-selection-name { font-size: 24px; }
.format-square .insta-ev-pill { font-size: 14px; padding: 5px 12px; border-radius: 8px; }
.format-square .insta-metrics-grid { padding: 8px 12px; gap: 6px; margin-bottom: 10px; border-radius: 10px; }
.format-square .insta-metric-lbl { font-size: 10px; }
.format-square .insta-metric-num { font-size: 20px; }
.format-square .insta-rationale-box { padding: 8px 12px; font-size: 13px; line-height: 1.3; border-radius: 0 8px 8px 0; }
.format-square .insta-rationale-tag { font-size: 11px; margin-bottom: 2px; }
.format-square .insta-url-banner { margin: 10px 0 6px; padding: 8px 20px; }
.format-square .insta-url-text { font-size: 20px; letter-spacing: 2px; }
.format-square .insta-card-footer { gap: 6px; margin-top: 6px; padding-top: 6px; }
.format-square .insta-footer-tech { font-size: 11px; }
.format-square .insta-footer-handle { font-size: 11.5px; padding: 3px 10px; }
.format-square .insta-responsible-gaming-footer { padding-top: 4px; gap: 6px; }
.format-square .insta-18-badge { width: 24px; height: 24px; min-width: 24px; font-size: 10px; }
.format-square .insta-responsible-text { font-size: 9px; line-height: 1.25; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .col-span-2 { grid-column: span 2; }
  .predictions-grid { grid-template-columns: repeat(2, 1fr); }
  .bf-match-odds-grid { grid-template-columns: 1fr; }
  .best-bets-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    transition: left var(--transition);
  }
  .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,0.7); }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .content { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .predictions-grid { grid-template-columns: 1fr 1fr; }
  .confronto-teams { grid-template-columns: 1fr; text-align: center; }
  .hero-team.home, .hero-team.away { align-items: center; text-align: center; }
  .operations-grid { grid-template-columns: 1fr; }
  .bf-match-odds-grid { grid-template-columns: 1fr; }
  .bf-sync-bar { flex-direction: column; align-items: stretch; max-width: 100%; }
  .best-bets-metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .predictions-grid { grid-template-columns: 1fr; }
  .best-bets-metrics-row { grid-template-columns: 1fr 1fr; }
  .missing-players-grid { grid-template-columns: 1fr; }
  .formations-overview-grid { grid-template-columns: 1fr; }
  .tactical-traits-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BETHOR INTELLIGENCE TAB & COMPONENTS (AI & STATISTICAL SUITE)
   ============================================================ */

.match-modal-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-top: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-tab-btn {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(0, 188, 255, 0.05);
  color: #e5a93c;
  border: 1px solid rgba(0, 188, 255, 0.25);
  border-radius: var(--radius-sm, 8px);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-tab-btn:hover {
  background: rgba(0, 188, 255, 0.09);
  border-color: rgba(0, 188, 255, 0.45);
  color: #ffb84d;
}

.modal-tab-btn.active {
  background: rgba(0, 188, 255, 0.12);
  color: #ffbe3b;
  border: 1px solid rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 188, 255, 0.22), inset 0 0 12px rgba(0, 188, 255, 0.08);
}

.modal-tab-btn.active .tab-intel-glow {
  filter: drop-shadow(0 0 6px rgba(255, 190, 59, 0.6));
}

/* Bethor Intelligence Sections */
.intel-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intel-section-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.intel-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.intel-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.intel-badge-pill {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* 1. Desfalques & Lesões (Missing Players) */
.missing-players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.missing-team-col {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.missing-team-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.missing-team-col.away .missing-team-title {
  color: var(--green);
}

.missing-player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.missing-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  gap: 8px;
}

.missing-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.missing-player-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.missing-player-reason {
  font-size: 10.5px;
  color: var(--text-3);
}

.missing-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.missing-status-badge.out {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.35);
}

.missing-status-badge.doubt {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.missing-empty-msg {
  font-size: 11.5px;
  color: var(--text-3);
  font-style: italic;
  padding: 10px 0;
  text-align: center;
}

/* 2. Escalações & Formações */
.formations-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.formation-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
}

.formation-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  color: #000;
  background: #00d4ff;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.formation-card.away .formation-tag-badge {
  background: #00ff88;
}

.lineup-players-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lineup-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
}

.lineup-chip-num {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.lineup-chip-pos {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
}

.lineup-chip-rating {
  font-size: 9.5px;
  font-weight: 800;
  color: #00ff88;
}

/* 3. Prognóstico & Estilo Tático */
.prediction-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 114, 255, 0.04));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.prediction-score-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.prediction-score-val {
  font-size: 18px;
  font-weight: 900;
  color: #00d4ff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prediction-editorial-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-1);
}

.tactical-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.traits-team-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.traits-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trait-item {
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.trait-item::before {
  content: '⚡';
  font-size: 10px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

/* 4. MatchCentre & Man of the Match */
.motm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(255, 204, 0, 0.04));
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.motm-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.motm-trophy-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.5));
}

.motm-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.motm-sub {
  font-size: 11.5px;
  color: var(--text-3);
}

.motm-rating-pill {
  font-size: 20px;
  font-weight: 900;
  color: #0b1120;
  background: #f5a623;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}

.motm-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-2);
}

.motm-stat-pill {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-ratings-table-wrap {
  overflow-x: auto;
}

.player-ratings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.player-ratings-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-3);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  text-transform: uppercase;
}

.player-ratings-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-1);
}

.player-rating-val {
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.rating-high { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.rating-mid { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }
.rating-low { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }

/* Sub-abas Interativas da Suíte Bethor Intelligence */
.intel-subtabs-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 20, 38, 0.95);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.intel-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.intel-subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.intel-subtab-btn.active {
  background: rgba(0, 212, 255, 0.14);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.12);
}

.subtab-count-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.intel-subtab-btn.active .subtab-count-badge {
  background: rgba(0, 212, 255, 0.25);
  color: var(--cyan);
}

/* Filtros de Desfalques */
.missing-filters-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.missing-filter-chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.missing-filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.missing-filter-chip.active {
  background: rgba(0, 212, 255, 0.18);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.4);
}

.missing-rating-badge {
  font-size: 9.5px;
  color: #00ff88;
  font-weight: 800;
  margin-left: 5px;
  background: rgba(0, 255, 136, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.25);
}

/* Prancheta Tática / Tactical Pitch */
.tactical-pitch-wrapper {
  background: linear-gradient(180deg, #091710 0%, #050e09 100%);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tactical-pitch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.pitch-team-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.pitch-team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pitch-team-dot.home { background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.pitch-team-dot.away { background: #00ff88; box-shadow: 0 0 8px #00ff88; }

.pitch-center-seal {
  font-size: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tactical-pitch-field {
  height: 240px;
  background: repeating-linear-gradient(
    90deg,
    #0c2616 0px,
    #0c2616 40px,
    #0e2b19 40px,
    #0e2b19 80px
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  display: flex;
  overflow: hidden;
}

.pitch-half {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-half-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pitch-center-circle {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-center-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.pitch-penalty-box {
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 45px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.home-box { left: 0; border-left: none; }
.away-box { right: 0; border-right: none; }

.pitch-formation-nodes {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-evenly;
  align-items: center;
  z-index: 3;
  padding: 10px;
}

.pitch-line-row {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  align-items: center;
}

.pitch-player-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b1120;
  border: 2px solid var(--team-glow, #00d4ff);
  box-shadow: 0 0 10px var(--team-glow, #00d4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pitch-player-node:hover {
  transform: scale(1.2);
}

.pitch-player-shirt {
  font-size: 8.5px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

/* Busca no MatchCentre */
.player-search-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #fff;
  width: 260px;
  outline: none;
}
.player-search-input:focus {
  border-color: var(--cyan);
}

/* H2H Confrontos Diretos */
.h2h-meeting-summary-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* Rodapé Sincronização Manual */
.intel-sync-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.intel-manual-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.intel-sync-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #fff;
  width: 220px;
}
.intel-sync-input:focus {
  border-color: var(--cyan);
  outline: none;
}

/* Player Name Tag on Tactical Pitch */
.pitch-player-name-tag {
  font-size: 8px;
  font-weight: 700;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  max-width: 65px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  text-align: center;
}

.pitch-node-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Source Badge */
.intel-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lineup Table */
.lineup-players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.lineup-players-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lineup-players-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lineup-num-pill {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 10px;
  color: #fff;
}

/* ═════════════════════════════════════════════════════════════════
   ⚡ LIVE SCANNER & MATCH CENTER STYLES
   ═════════════════════════════════════════════════════════════════ */

.live-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.4);
  color: #ff4d4f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.live-dot-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 10px #ff4d4f;
  animation: pulse-live-dot 1.5s infinite;
}

@keyframes pulse-live-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #ff4d4f; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.live-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-auto-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sync-spinner-mini {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Toolbar & Filter Pills */
.live-scanner-toolbar {
  margin-bottom: 20px;
}

.scanner-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scanner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.scanner-pill:hover {
  background: var(--bg-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.scanner-pill.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.scanner-pill.pill-signals.active {
  background: rgba(255, 77, 79, 0.15);
  border-color: #ff4d4f;
  box-shadow: 0 0 12px rgba(255, 77, 79, 0.25);
}

.scanner-pill.pill-pressure.active {
  background: rgba(245, 166, 35, 0.15);
  border-color: #f5a623;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}

.pill-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  font-weight: 800;
}

.scanner-pill.active .pill-count {
  background: var(--cyan);
  color: #000;
}

.scanner-pill.pill-signals.active .pill-count {
  background: #ff4d4f;
  color: #fff;
}

/* ════════════ LIVE SCANNER CARDS GRID ════════════ */
.live-scanner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.live-scan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.live-scan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.live-scan-card.has-signal {
  border-color: rgba(255, 77, 79, 0.5);
  background: linear-gradient(180deg, rgba(255, 77, 79, 0.04) 0%, var(--bg-card) 100%);
}

.live-scan-card.has-signal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4d4f, #f5a623);
}

.live-scan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.live-scan-league {
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-scan-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  font-weight: 800;
  font-size: 11.5px;
}

/* Teams & Score Row */
.live-scan-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.live-scan-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-scan-team.home { text-align: left; }
.live-scan-team.away { text-align: right; }

.live-scan-team-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.live-scan-pi-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.live-scan-pi-tag.home { color: var(--cyan); }
.live-scan-pi-tag.away { color: #f5a623; }

.live-scan-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-scan-score-num {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
}

/* Pressure Bar in Card */
.live-scan-pressure-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-scan-pressure-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-3);
  font-weight: 700;
}

.live-scan-pressure-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

.live-scan-pressure-fill-home {
  background: linear-gradient(90deg, #00d4ff, #0077ff);
  height: 100%;
  transition: width 0.4s ease;
}

.live-scan-pressure-fill-away {
  background: linear-gradient(90deg, #ff7a45, #f5a623);
  height: 100%;
  transition: width 0.4s ease;
}

/* Mini Stats Grid in Card */
.live-scan-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.live-scan-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.live-scan-stat-label {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.live-scan-stat-val {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-1);
}

/* Betting Signals Container in Card */
.live-scan-signals-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-scan-signal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.35);
  font-size: 11.5px;
}

.live-scan-signal-item.amber {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
}

.live-scan-signal-item.purple {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

.live-scan-signal-item.cyan {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
}

.live-scan-signal-title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.live-scan-signal-reason {
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.35;
}

.live-scan-card-action {
  margin-top: 4px;
}

.btn-open-match-center {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 119, 255, 0.2) 100%);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-open-match-center:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 119, 255, 0.4) 100%);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

/* ════════════ LIVE MATCH CENTER MODAL ════════════ */
.live-center-container {
  max-width: 960px;
  width: 95vw;
}

.live-center-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-center-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-center-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 20px;
}

/* Hero Scoreboard */
.live-center-hero {
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.9) 0%, rgba(10, 14, 20, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-center-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

.live-center-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.live-center-team-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-center-team-block.home { text-align: left; }
.live-center-team-block.away { text-align: right; }

.live-center-team-name-lg {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}

.live-center-pi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.live-center-team-block.home .live-center-pi-badge {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
.live-center-team-block.away .live-center-pi-badge {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.4);
  margin-left: auto;
}

.live-scan-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 80px;
}

.live-scan-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.live-scan-score-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
}

.live-scan-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 196, 140, 0.15);
  border: 1px solid rgba(0, 196, 140, 0.4);
  color: #00c48c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  animation: pulseNeon 2s infinite ease-in-out;
}

@keyframes pulseNeon {
  0%, 100% {
    box-shadow: 0 0 4px rgba(0, 196, 140, 0.3);
    border-color: rgba(0, 196, 140, 0.4);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 196, 140, 0.7);
    border-color: rgba(0, 196, 140, 0.8);
  }
}

.live-center-score-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.live-center-score-digits {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  font-family: monospace;
  line-height: 1;
}

.live-center-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 196, 140, 0.2);
  border: 1px solid rgba(0, 196, 140, 0.5);
  color: #00c48c;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 196, 140, 0.4);
  animation: pulseNeon 2s infinite ease-in-out;
}

/* ════════════ MOMENTUM GRAPH CONTAINER (SOFASCORE STYLE) ════════════ */
.live-momentum-section {
  background: #11141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.live-momentum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.live-momentum-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.live-momentum-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  flex-wrap: wrap;
}

.live-momentum-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-color-dot.home { background: #00c48c; box-shadow: 0 0 6px rgba(0, 196, 140, 0.6); }
.legend-color-dot.away { background: #e63946; box-shadow: 0 0 6px rgba(230, 57, 70, 0.6); }

.live-momentum-events-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10.5px;
  color: var(--text-3);
}

.live-momentum-chart-wrap {
  width: 100%;
  height: 250px;
  background: #0d1017;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.live-momentum-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tooltip do gráfico de pressão */
.live-momentum-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  background: rgba(13, 16, 23, 0.95);
  border: 1px solid rgba(0, 196, 140, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 196, 140, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 11px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.live-momentum-tooltip.active {
  display: flex;
}

.live-momentum-tooltip-min {
  font-weight: 900;
  color: #00c48c;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3px;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}

.live-momentum-tooltip-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.live-momentum-tooltip-event-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #f0ece4;
}

/* Comparative Stats Bars */
.live-stats-comparison-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-stat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.live-stat-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.live-stat-val-home { font-weight: 800; color: #00c48c; }
.live-stat-name { font-weight: 700; color: var(--text-2); font-size: 11px; text-transform: uppercase; }
.live-stat-val-away { font-weight: 800; color: #e63946; }

.live-stat-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

.live-stat-fill-h {
  background: linear-gradient(90deg, #00c48c, #009668);
  height: 100%;
  transition: width 0.5s ease;
}

.live-stat-fill-a {
  background: linear-gradient(90deg, #e63946, #c1121f);
  height: 100%;
  transition: width 0.5s ease;
}

/* Incidents & AI Signals Grid */
.live-details-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.live-incidents-block, .live-signals-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-incidents-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.live-incident-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
}

.live-incident-min {
  font-weight: 800;
  color: var(--green);
  min-width: 32px;
}

.live-incident-icon { font-size: 14px; }
.live-incident-text { color: #fff; font-weight: 600; }
.live-incident-detail { color: var(--text-3); font-size: 10.5px; margin-left: auto; }



