:root {
  --bg-primary: #070b14;
  --bg-secondary: #0f172a;
  --bg-card: #131d31;
  --bg-card-hover: #18253f;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-highlight: rgba(0, 149, 255, 0.45);
  --brand-1xbet: #0095ff;
  --brand-1xbet-dark: #0066cc;
  --accent-emerald: #10b981;
  --accent-sky: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

.notice-banner-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at top right, #0d1f3c 0%, var(--bg-primary) 50%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

/* Header Navigation */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  background: linear-gradient(135deg, #0095ff 0%, #00d2ff 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(0, 149, 255, 0.35);
}

.brand-title h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-title p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-1xbet) 0%, var(--brand-1xbet-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 149, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 149, 255, 0.45);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--brand-1xbet);
  background: rgba(30, 41, 59, 1);
}

/* Main Layout */
.app-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 1.5rem;
}

@media (max-width: 1120px) {
  .app-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Match List */
.sidebar-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.panel-header h2 {
  font-size: 0.98rem;
  font-weight: 700;
}

.league-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip.active,
.filter-chip:hover {
  background: rgba(0, 149, 255, 0.16);
  color: #38bdf8;
  border-color: var(--brand-1xbet);
}

.filter-chip .chip-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 4px;
}

.filter-chip.active .chip-count {
  background: rgba(0, 149, 255, 0.45);
  color: #ffffff;
}

.empty-matches-notice {
  text-align: center;
  padding: 1.8rem 1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  margin: 0.5rem 0;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.match-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.match-card.active {
  background: linear-gradient(145deg, rgba(0, 149, 255, 0.14), rgba(19, 29, 49, 0.95));
  border-color: var(--brand-1xbet);
  box-shadow: 0 4px 20px rgba(0, 149, 255, 0.16);
}

.match-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
}

.league-tag {
  color: var(--accent-sky);
  font-weight: 700;
}

.match-teams-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-pills {
  display: flex;
  gap: 3px;
}

.form-pill {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-pill.V { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.form-pill.N { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.form-pill.D { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); }

.match-card-best-pick {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.pick-badge {
  color: #34d399;
  font-weight: 700;
}

/* Main Analysis Workspace */
.main-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.match-hero {
  background: linear-gradient(135deg, #111d35 0%, #0d1526 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
}

.hero-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  .hero-matchup {
    grid-template-columns: 1fr;
  }
}

.hero-team-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.hero-team-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.hero-metrics-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.metric-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.hero-center-vs {
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border-highlight);
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  min-width: 195px;
}

.xg-score-line {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-sky);
}

.prob-1x2-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.65rem;
  background: #1e293b;
}

.prob-seg-home { background: #0095ff; }
.prob-seg-draw { background: #f59e0b; }
.prob-seg-away { background: #10b981; }

/* TOP 3 1XBET PODIUM SECTION */
.section-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.35rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title-row h3 {
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

@media (max-width: 960px) {
  .top3-grid {
    grid-template-columns: 1fr;
  }
}

.top3-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.top3-card.rank-1 {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.14) 0%, rgba(19, 29, 49, 0.96) 60%);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.12);
}

.top3-card.rank-2 {
  background: linear-gradient(160deg, rgba(0, 149, 255, 0.14) 0%, rgba(19, 29, 49, 0.96) 60%);
  border-color: rgba(0, 149, 255, 0.45);
}

.top3-card.rank-3 {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.12) 0%, rgba(19, 29, 49, 0.96) 60%);
  border-color: rgba(245, 158, 11, 0.4);
}

.top3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-medal {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-1 .rank-medal { background: rgba(16, 185, 129, 0.25); color: #34d399; }
.rank-2 .rank-medal { background: rgba(0, 149, 255, 0.25); color: #38bdf8; }
.rank-3 .rank-medal { background: rgba(245, 158, 11, 0.25); color: #fbbf24; }

.odds-1xbet-box {
  background: #070b14;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
}

.event-market-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.event-main-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.15rem;
}

.confidence-meter {
  margin-top: 0.25rem;
}

.confidence-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.confidence-bar-bg {
  height: 9px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0095ff, #10b981);
}

.event-rationale {
  font-size: 0.79rem;
  color: #cbd5e1;
  background: rgba(7, 11, 20, 0.55);
  padding: 0.65rem;
  border-radius: 8px;
  border-left: 3px solid var(--brand-1xbet);
}

/* 4 LAST MATCHES OPPONENT-WEIGHTED COMPARISON */
.last4-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .last4-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.team-history-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
}

.team-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.history-table th {
  text-align: left;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}

.history-table td {
  padding: 0.58rem 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.opp-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.opp-tier-badge.emerald { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.opp-tier-badge.sky { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.opp-tier-badge.amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.opp-tier-badge.rose { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }

/* All Markets Table */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.75rem;
}

.market-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Modal Config */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-1xbet);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.notice-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  display: none;
}

/* Top 5 Exact Scores Pills */
.exact-scores-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.exact-score-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 0.22rem 0.55rem;
  font-size: 0.73rem;
  color: #e2e8f0;
}

.exact-score-pill strong {
  color: var(--accent-sky);
}

/* Bouton Ajouter au Coupon 1xBet */
.btn-slip-add {
  width: 100%;
  margin-top: 0.4rem;
  background: rgba(0, 149, 255, 0.14);
  border: 1px solid rgba(0, 149, 255, 0.4);
  color: #38bdf8;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-slip-add:hover,
.btn-slip-add.in-slip {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #fff;
}

/* Coupon / Ticket Combiné 1xBet dans la Sidebar */
.betslip-box {
  background: linear-gradient(160deg, #0d1b32 0%, #091120 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.betslip-item {
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.betslip-summary {
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.8rem;
}

.betslip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

/* ============================================================================
 * SPOTLIGHT DE L'ÉVÉNEMENT #1 LE PLUS PROBABLE & PROJECTIONS STATISTIQUES
 * ============================================================================ */
.spotlight-best-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16) 0%, rgba(15, 23, 42, 0.96) 55%, rgba(0, 149, 255, 0.14) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.65);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.15);
}

.spotlight-banner-inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 900px) {
  .spotlight-banner-inner {
    grid-template-columns: 1fr;
  }
}

.spotlight-crown-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #090d16;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.spotlight-cat-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.74rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.spotlight-risk-pill {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.spotlight-event-title {
  font-size: 1.32rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.25rem 0 0.4rem;
  letter-spacing: -0.01em;
}

.spotlight-rationale-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  background: rgba(7, 11, 20, 0.62);
  border-left: 3px solid #10b981;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.spotlight-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
}

@media (max-width: 960px) {
  .spotlight-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spotlight-kpi-box {
  background: rgba(9, 14, 26, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.spotlight-kpi-box .kpi-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.spotlight-kpi-box strong {
  font-size: 0.92rem;
  color: #f8fafc;
  font-weight: 800;
}

.spotlight-kpi-box small {
  font-size: 0.67rem;
  color: #38bdf8;
}

.spotlight-main-right {
  background: rgba(7, 11, 20, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spotlight-prob-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid #10b981;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(7, 11, 20, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.spotlight-prob-circle .prob-big-num {
  font-size: 1.38rem;
  font-weight: 900;
  color: #34d399;
  line-height: 1.1;
}

.spotlight-prob-circle .prob-sub-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.spotlight-odds-tag {
  font-size: 0.88rem;
  color: #e2e8f0;
  background: rgba(0, 149, 255, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
}

.spotlight-odds-tag strong {
  color: #38bdf8;
  font-weight: 900;
}

/* GRILLE DES PROJECTIONS STATISTIQUES (xG, Tirs, Cadrés, Touches, Corners, Fautes) */
.stats-projections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 960px) {
  .stats-projections-grid {
    grid-template-columns: 1fr;
  }
}

.stat-proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.stat-proj-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
}

.stat-proj-total-badge {
  font-size: 0.73rem;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #e2e8f0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.stat-proj-total-badge strong {
  color: #38bdf8;
}

.stat-proj-teams-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.stat-proj-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  display: flex;
}

.stat-proj-bar-home,
.stat-proj-bar-away {
  height: 100%;
  transition: width 0.25s ease;
}

.market-mini-card {
  cursor: pointer;
  transition: all 0.16s ease;
}

.market-mini-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.market-mini-card.most-probable-market {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(19, 29, 49, 0.95) 100%);
}

.market-mini-card.in-slip {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(15, 23, 42, 0.96) 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.mkt-mini-odds-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(0, 149, 255, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  margin-top: 2px;
  display: inline-block;
}

.market-mini-card.in-slip .mkt-mini-odds-pill {
  background: #10b981;
  border-color: #10b981;
  color: #051320;
}

/* Grille 3-Colonnes Cotes Top 3 façon App Mobile 1xBet sur chaque carte de match */
.match-card-top3-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.38rem;
  margin-top: 0.55rem;
}

.card-1xbet-odd-btn {
  background: #081120;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 0.34rem 0.42rem;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-align: left;
  transition: all 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.card-1xbet-odd-btn.is-top1 {
  border-color: rgba(16, 185, 129, 0.48);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(8, 17, 32, 0.95) 100%);
}

.card-1xbet-odd-btn:hover {
  border-color: #38bdf8;
}

.card-1xbet-odd-btn.in-slip {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  color: #ffffff;
}

.odd-btn-code {
  font-size: 0.66rem;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-1xbet-odd-btn.in-slip .odd-btn-code {
  color: #ffffff;
}

.odd-btn-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
}

.odd-btn-prob {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
}

.card-1xbet-odd-btn.in-slip .odd-btn-prob {
  color: #ecfdf5;
}

.odd-btn-val {
  font-size: 0.75rem;
  font-weight: 900;
  color: #38bdf8;
}

.card-1xbet-odd-btn.in-slip .odd-btn-val {
  color: #ffffff;
}

/* Bouton d'accès direct à la Popup / Modale de tous les événements 1xBet les plus probables */
.btn-card-open-all-events {
  margin-top: 0.5rem;
  width: 100%;
  background: rgba(0, 149, 255, 0.12);
  border: 1px solid rgba(0, 149, 255, 0.38);
  color: #38bdf8;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0.36rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.btn-card-open-all-events:hover {
  background: rgba(0, 149, 255, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Boutons rapides de Date (Auj., Demain ★, J+2) */
.quick-date-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-date-btn.active,
.quick-date-btn:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #090d16;
}

/* Boutons rapides de Mise 1-Tap dans le Coupon 1xBet */
.quick-stake-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.quick-stake-chip {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 0.24rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.quick-stake-chip.active,
.quick-stake-chip:hover {
  background: #0095ff;
  border-color: #38bdf8;
  color: #ffffff;
}

/* Toast Notification Mobile UX (Bannière supérieure style notification push 1xBet) */
.mobile-ux-toast {
  position: fixed;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(6, 78, 59, 0.97);
  border: 1.5px solid #34d399;
  color: #ecfdf5;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 94vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-ux-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Bouton rapide + Coupon sur chaque carte de match */
.btn-quick-card-slip {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(0, 149, 255, 0.18);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-quick-card-slip:hover,
.btn-quick-card-slip.in-slip {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.history-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Éléments spécifiques Mobile masqués sur Grand Écran Desktop (> 960px) */
.mobile-workspace-nav,
.mobile-floating-slip-bar,
.mobile-bottom-nav {
  display: none;
}

/* ============================================================================
 * DESIGN APPLICATION MOBILE 1XBET HYPER-RESPONSIVE (<= 960px & Smartphones)
 * ============================================================================ */
@media (max-width: 960px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    background: #060d1a;
    -webkit-tap-highlight-color: transparent;
  }

  /* Barre supérieure façon App Mobile 1xBet (compacte 2 lignes sans débordement) */
  .top-navbar {
    position: relative;
    padding: 0.42rem 0.55rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: linear-gradient(180deg, #0b192e 0%, #071222 100%);
    border-bottom: 1px solid rgba(0, 149, 255, 0.3);
    width: 100%;
    max-width: 100vw;
  }

  .notice-banner-wrap {
    padding: 0 0.55rem;
    margin: 0;
  }

  .brand-wrap {
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-logo {
    padding: 0.24rem 0.5rem;
    font-size: 0.74rem;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .brand-title h1 {
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-title p {
    display: none;
  }

  /* Masquer sur mobile les boutons déjà présents dans la Bottom Navigation Bar 1xBet */
  #localDbStatusBadge,
  #btnOpenCustomSim,
  #btnOpenConfig {
    display: none !important;
  }

  /* Barre d'actions sur 2 lignes 100% visibles sur écran 390px */
  .nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav-pill-api {
    flex: 1 1 170px;
    min-width: 0;
    padding: 0.22rem 0.48rem;
  }

  .nav-btn-sync,
  .nav-btn-compare {
    flex: 0 0 auto;
    padding: 0.24rem 0.48rem !important;
    font-size: 0.68rem !important;
  }

  .nav-pill-date {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
    padding: 0.22rem 0.48rem;
    gap: 0.28rem;
  }

  .api-status-pill {
    padding: 0.22rem 0.48rem;
    font-size: 0.69rem;
  }

  .btn {
    padding: 0.28rem 0.52rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  /* Conteneur principal en mode Écran Unique d'Application Mobile */
  .app-container {
    display: block;
    padding: 0.45rem 0.55rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .sidebar-panel,
  .main-workspace,
  .section-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .main-workspace {
    gap: 0.6rem;
  }

  /* Ruban horizontal des championnats style 1xBet Mobile */
  .league-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .league-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    padding: 0.32rem 0.68rem;
    font-size: 0.73rem;
  }

  .matches-list {
    max-height: none;
    overflow-y: visible;
    gap: 0.55rem;
  }

  /* Gestion des 3 Écrans Mobile via body[data-mobile-view] */
  body[data-mobile-view="matches"] .main-workspace {
    display: none !important;
  }

  body[data-mobile-view="matches"] .sidebar-panel .betslip-box {
    display: none !important;
  }

  body[data-mobile-view="analysis"] .sidebar-panel {
    display: none !important;
  }

  body[data-mobile-view="analysis"] .main-workspace {
    display: flex !important;
  }

  body[data-mobile-view="betslip"] .main-workspace {
    display: none !important;
  }

  body[data-mobile-view="betslip"] .sidebar-panel > .panel-header,
  body[data-mobile-view="betslip"] .sidebar-panel > #leagueFiltersContainer,
  body[data-mobile-view="betslip"] .sidebar-panel > #matchesSidebarList {
    display: none !important;
  }

  body[data-mobile-view="betslip"] .sidebar-panel .betslip-box {
    display: flex !important;
    margin-top: 0;
    min-height: calc(100vh - 185px);
  }

  /* Barre de navigation interne de la vue Analyse sur Mobile (Sticky top: 4px sans chevauchement) */
  .mobile-workspace-nav {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    position: sticky;
    top: 4px;
    z-index: 45;
    background: rgba(8, 15, 29, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.42rem 0.48rem;
    border-radius: 11px;
    border: 1px solid rgba(0, 149, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  }

  .mobile-back-row {
    display: flex;
    align-items: center;
    gap: 0.38rem;
  }

  .btn-mobile-back {
    flex-shrink: 0;
    background: rgba(0, 149, 255, 0.18);
    border: 1px solid rgba(0, 149, 255, 0.45);
    color: #38bdf8;
    font-size: 0.71rem;
    font-weight: 800;
    padding: 0.28rem 0.55rem;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-match-carousel {
    display: flex;
    gap: 0.32rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
  }

  .mobile-match-carousel::-webkit-scrollbar {
    display: none;
  }

  .mob-match-pill {
    flex-shrink: 0;
    background: #0d1729;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    padding: 0.24rem 0.5rem;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
  }

  .mob-match-pill small {
    color: #34d399;
    font-weight: 800;
  }

  .mob-match-pill.active {
    background: linear-gradient(135deg, #0095ff 0%, #0066cc 100%);
    border-color: #38bdf8;
    color: #ffffff;
  }

  .mob-match-pill.active small {
    color: #fde68a;
  }

  /* Sous-onglets de filtrage des sections sur mobile */
  .mobile-section-tabs {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-section-tabs::-webkit-scrollbar {
    display: none;
  }

  .mob-sec-tab {
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 0.69rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
  }

  .mob-sec-tab.active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #34d399;
  }

  .mob-sec-hidden {
    display: none !important;
  }

  /* Scoreboard Compact Mobile 1xBet : Équipe 1 vs Équipe 2 côte-à-côte + Score xG en haut */
  .match-hero,
  .section-card {
    scroll-margin-top: 88px;
  }

  .match-hero {
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
  }

  .hero-top-bar {
    font-size: 0.65rem;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
  }

  .hero-matchup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.42rem;
    align-items: stretch;
  }

  .hero-center-vs {
    grid-column: 1 / -1;
    order: -1;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    min-width: 0;
  }

  .xg-score-line {
    font-size: 1.18rem;
    line-height: 1.15;
  }

  .exact-scores-row {
    margin-top: 0.3rem;
    gap: 0.25rem;
  }

  .exact-score-pill {
    font-size: 0.62rem;
    padding: 0.1rem 0.38rem;
  }

  .hero-team-box {
    background: rgba(7, 11, 20, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 9px;
    padding: 0.4rem 0.45rem;
    min-width: 0;
  }

  .hero-team-box h2 {
    font-size: 0.86rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-team-sub {
    font-size: 0.63rem;
    margin-bottom: 0.3rem;
  }

  .hero-metrics-badges {
    gap: 0.22rem;
  }

  .metric-chip {
    font-size: 0.6rem;
    padding: 0.14rem 0.34rem;
    border-radius: 5px;
  }

  /* Spotlight Événement #1 Le Plus Probable ultra-visible au-dessus de la ligne de flottaison */
  .section-card {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    margin-bottom: 0.55rem;
  }

  .section-title-row h3 {
    font-size: 0.88rem;
  }

  .spotlight-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .spotlight-main-right {
    order: -1;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
  }

  .spotlight-prob-circle {
    width: 54px;
    height: 54px;
    border-width: 3px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .spotlight-prob-circle .prob-big-num {
    font-size: 0.92rem;
  }

  .spotlight-prob-circle .prob-sub-lbl {
    font-size: 0.48rem;
  }

  .spotlight-odds-tag {
    font-size: 0.78rem;
    padding: 0.22rem 0.55rem;
  }

  #btnSpotlightAddSlip {
    margin-top: 0 !important;
    padding: 0.38rem 0.6rem;
    font-size: 0.74rem;
    flex: 1 1 100%;
  }

  .spotlight-event-title {
    font-size: 0.98rem;
    margin: 0.15rem 0 0.25rem;
  }

  .spotlight-rationale-text {
    font-size: 0.74rem;
    padding: 0.42rem 0.6rem;
    margin-bottom: 0.5rem;
  }

  .spotlight-kpi-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .spotlight-kpi-box {
    padding: 0.35rem 0.42rem;
  }

  .spotlight-kpi-box .kpi-label {
    font-size: 0.6rem;
  }

  .spotlight-kpi-box strong {
    font-size: 0.76rem;
  }

  .spotlight-kpi-box small {
    font-size: 0.58rem;
  }

  /* Table des 4 derniers matchs compacte sans coupure sur 390px */
  .team-history-box {
    padding: 0.65rem;
  }

  .team-history-header {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .history-table {
    font-size: 0.68rem;
  }

  .history-table th,
  .history-table td {
    padding: 0.35rem 0.22rem;
  }

  .history-table th:nth-child(5),
  .history-table td:nth-child(5) {
    display: none;
  }

  .opp-tier-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.32rem;
  }

  /* Barre Flottante du Coupon 1xBet (au-dessus de la Bottom Nav) */
  .mobile-floating-slip-bar {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 85;
    background: linear-gradient(135deg, #00529b 0%, #0a2547 55%, #064e3b 100%);
    border: 1.5px solid #38bdf8;
    border-radius: 14px;
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
    cursor: pointer;
  }

  body[data-mobile-view="betslip"] .mobile-floating-slip-bar {
    display: none !important;
  }

  .mob-slip-bar-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .mob-slip-count-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #061320;
    font-weight: 900;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mob-slip-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mob-slip-odds-badge {
    background: rgba(7, 11, 20, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.45);
    padding: 0.22rem 0.5rem;
    border-radius: 8px;
    font-size: 0.74rem;
    color: #e2e8f0;
  }

  .mob-slip-odds-badge strong {
    color: #38bdf8;
  }

  .mob-slip-open-btn {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fde68a;
  }

  /* Barre de Navigation Inférieure Fixe Façon Application 1xBet */
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, #0b182d 0%, #060e1b 100%);
    border-top: 1px solid rgba(0, 149, 255, 0.35);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }

  .mob-nav-item {
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    height: 100%;
    cursor: pointer;
    position: relative;
    padding: 0.25rem 0;
  }

  .mob-nav-item.active {
    color: #38bdf8;
  }

  .mob-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #0095ff;
  }

  .mob-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    position: relative;
  }

  .mob-nav-badge {
    position: absolute;
    top: -5px;
    right: -12px;
    background: #0095ff;
    color: #fff;
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
  }

  .mob-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  /* Bouton central Coupon 1xBet surélevé (style officiel 1xBet Mobile) */
  .mob-nav-coupon-center {
    position: relative;
  }

  .mob-nav-coupon-circle {
    width: 44px;
    height: 44px;
    margin-top: -18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0095ff 0%, #00529b 100%);
    border: 3px solid #07101e;
    box-shadow: 0 4px 14px rgba(0, 149, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff;
    position: relative;
  }

  .mob-nav-item.active .mob-nav-coupon-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55);
  }

  .mob-nav-slip-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f59e0b;
    color: #090d16;
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Modales en Bottom-Sheet plein écran sur mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
    z-index: 105;
  }

  .modal-window {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 1rem 0.9rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .modal-window .section-title-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .markets-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
 * MODAL 3 : POPUP / MODALE DES ÉVÉNEMENTS 1XBET LES PLUS PROBABLES DU MATCH
 * ============================================================================ */
.match-events-modal-window {
  max-width: 890px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(165deg, #0e1b33 0%, #080f1e 100%);
  border: 1.5px solid rgba(0, 149, 255, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 149, 255, 0.15);
  overflow: hidden;
}

.events-modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

.events-modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.events-modal-league-pill {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.events-modal-title-box h3 {
  font-size: 1.22rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.events-modal-subtitle {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.btn-modal-close {
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

/* Toolbar de la modale : recherche & filtres */
.events-modal-toolbar {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex-shrink: 0;
}

.events-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.events-search-icon {
  position: absolute;
  left: 0.75rem;
  pointer-events: none;
  font-size: 0.82rem;
  color: #94a3b8;
}

.events-search-input {
  padding-left: 2.2rem !important;
  padding-right: 2rem !important;
  font-size: 0.82rem !important;
  border-radius: 999px !important;
  background: #060b15 !important;
  border-color: rgba(56, 189, 248, 0.28) !important;
}

.btn-clear-search {
  position: absolute;
  right: 0.65rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem;
}

.events-modal-cats-scroll {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.events-modal-cats-scroll::-webkit-scrollbar {
  display: none;
}

/* Liste des cartes d'événements dans la modale */
.modal-events-cards-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 220px;
}

.modal-event-card {
  background: rgba(11, 20, 36, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: grid;
  grid-template-columns: 46px 1fr 140px;
  gap: 0.75rem;
  align-items: center;
  transition: all 0.16s ease;
}

.modal-event-card:hover {
  background: rgba(14, 27, 49, 0.95);
  border-color: rgba(0, 149, 255, 0.45);
}

.modal-event-card.in-slip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(9, 18, 33, 0.95) 100%);
  border-color: #10b981;
}

.modal-event-card.is-top-rank {
  border-color: rgba(245, 158, 11, 0.55);
}

.modal-event-rank-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-event-rank-badge {
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.modal-event-rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #090d16;
  border-color: #f59e0b;
}

.modal-event-rank-badge.rank-2 {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #090d16;
  border-color: #cbd5e1;
}

.modal-event-rank-badge.rank-3 {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #fef3c7;
  border-color: #b45309;
}

.modal-event-main-col {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.modal-event-top-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.modal-event-cat-tag {
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 600;
}

.modal-event-code-badge {
  background: rgba(0, 149, 255, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: 6px;
}

.modal-event-risk-pill {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
}

.modal-event-risk-pill.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.modal-event-risk-pill.sky {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.modal-event-risk-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.modal-event-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-event-rationale {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-event-prob-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.modal-event-prob-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0095ff 0%, #10b981 100%);
  border-radius: 999px;
}

.modal-event-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
}

.modal-event-prob-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: #34d399;
  line-height: 1;
}

.modal-event-odds-badge {
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.modal-event-odds-badge strong {
  color: #38bdf8;
  font-weight: 900;
}

.btn-modal-event-toggle-slip {
  background: rgba(0, 149, 255, 0.18);
  border: 1px solid rgba(0, 149, 255, 0.45);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-modal-event-toggle-slip:hover,
.btn-modal-event-toggle-slip.in-slip {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Footer de la modale */
.events-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.events-modal-footer-info {
  font-size: 0.76rem;
  color: #e2e8f0;
  font-weight: 700;
}

.events-modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 680px) {
  .modal-event-card {
    grid-template-columns: 36px 1fr;
    gap: 0.55rem;
  }

  .modal-event-action-col {
    grid-column: 2 / 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .btn-modal-event-toggle-slip {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   MODES D'AFFICHAGE PERSONNALISÉS PAR FOURNISSEUR D'API
   (THE ODDS API, SPORTMONKS, APISPORTS, THESPORTSDB, FOOTBALL-DATA)
   ========================================================================== */

/* Bannière de Profil d'Affichage Actif */
.api-display-profile-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.api-profile-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.api-profile-icon {
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.api-profile-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.api-profile-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-odds {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-xg {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-h2h {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-media {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.api-profile-sub {
  font-size: 0.77rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.api-profile-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.api-spec-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* --------------------------------------------------------------------------
   MODE THE ODDS API : COMPARATEUR MULTI-BOOKMAKERS & VALUE BETS
   -------------------------------------------------------------------------- */
.the-odds-board {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(11, 19, 35, 0.98)) !important;
}

.the-odds-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.odds-metric-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
}

.odds-metric-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.odds-metric-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #f8fafc;
  margin-top: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.odds-metric-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

/* Tableau Comparateur Multi-Bookmakers */
.odds-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.odds-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: center;
}

.odds-comparison-table th {
  background: #091220;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.odds-comparison-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.odds-comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Ligne 1xBet Mise en Valeur */
.odds-comparison-table tr.row-1xbet {
  background: rgba(0, 149, 255, 0.12) !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #0095ff;
}

.odds-comparison-table tr.row-1xbet td {
  border-color: rgba(0, 149, 255, 0.25);
  color: #ffffff;
}

.bm-name-cell {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.75rem !important;
}

.bm-tag-1x {
  background: #0095ff;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.best-odd-cell {
  background: rgba(52, 211, 153, 0.16);
  border-radius: 6px;
  color: #34d399 !important;
  font-weight: 900;
}

.btn-table-add-slip {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-table-add-slip:hover {
  background: #38bdf8;
  color: #07101e;
}

.btn-table-add-slip.in-slip {
  background: #34d399;
  border-color: #34d399;
  color: #07101e;
}

/* Carte Value Bet Alerte */
.value-alert-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.value-alert-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.value-alert-icon {
  font-size: 1.5rem;
}

.value-alert-text strong {
  color: #fbbf24;
}

.value-alert-text p {
  margin: 0.15rem 0 0 0;
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   MODE SPORTMONKS : CENTRE XG PRO & DANGEROSITÉ
   -------------------------------------------------------------------------- */
.sportmonks-board {
  border-color: rgba(52, 211, 153, 0.35) !important;
}

.sportmonks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.sm-metric-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.sm-metric-box h4 {
  margin: 0 0 0.45rem 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.sm-metric-score {
  font-size: 1.35rem;
  font-weight: 900;
  color: #34d399;
}

/* --------------------------------------------------------------------------
   MODE THESPORTSDB : MÉDIAS, STADES & DIFFUSEURS
   -------------------------------------------------------------------------- */
.sportsdb-board {
  border-color: rgba(168, 85, 247, 0.35) !important;
}

.sportsdb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.sdb-item-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-md);
  padding: 0.8rem;
}

.sdb-item-card h4 {
  margin: 0 0 0.35rem 0;
  font-size: 0.74rem;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
}

.sdb-item-card p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

/* --------------------------------------------------------------------------
   MODE API-FOOTBALL : FORME RÉCENTE, INDICE S_ADV & H2H
   -------------------------------------------------------------------------- */
.apifootball-board {
  border-color: rgba(59, 130, 246, 0.35) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 28, 48, 0.98)) !important;
}

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

.apif-team-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apif-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.apif-team-header h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
}

.apif-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.form-gauge-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.2rem;
}

.form-gauge-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.sadv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sadv-elite {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.sadv-strong {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sadv-medium {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.sadv-easy {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.apif-h2h-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   MODE FOOTBALL-DATA.ORG : CLASSEMENTS EUROPÉENS & TABLES
   -------------------------------------------------------------------------- */
.footballdata-board {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(12, 28, 24, 0.98)) !important;
}

.standings-table-wrapper {
  overflow-x: auto;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.standings-table th {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.standings-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

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

.standings-table tr.highlight-home {
  background: rgba(59, 130, 246, 0.08);
}

.standings-table tr.highlight-away {
  background: rgba(168, 85, 247, 0.08);
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-right: 2px;
}

.streak-v {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.streak-n {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.streak-d {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.zone-badge-cl {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.zone-badge-el {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.zone-badge-mid {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
}

/* Pastille spéciale sur les cartes de match selon le mode actif */
.match-card-odds-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.odds-chip-mini {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.odds-chip-mini strong {
  color: #38bdf8;
}

.odds-chip-mini.highlight-1x {
  border-color: #0095ff;
  background: rgba(0, 149, 255, 0.18);
}

.odds-chip-mini.highlight-1x strong {
  color: #60a5fa;
}

.badge-value-edge {
  font-size: 0.66rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ============================================================================
 * SECTION LIVE SPORTMONKS : MATCHS EN DIRECT & DÉTECTEUR DE PARIS RAPIDES
 * ============================================================================ */

/* Boutons Navigation Header LIVE & Cloche */
.live-pulse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #f87171;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-pulse-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseLiveDot 1.6s infinite ease-out;
}

.live-dot-pulse-large {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseLiveDot 1.4s infinite ease-out;
}

@keyframes pulseLiveDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.live-counter-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.live-alerts-bell-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-alerts-bell-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.live-bell-counter {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  min-width: 17px;
  text-align: center;
}

.live-bell-counter.has-unread {
  background: #ef4444;
  color: #ffffff;
  animation: bellPulse 1.8s infinite;
}

@keyframes bellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* Carte Principale Sportmonks Live */
.sportmonks-live-card {
  background: radial-gradient(circle at 10% 20%, rgba(45, 16, 28, 0.65) 0%, rgba(15, 23, 42, 0.94) 60%), #0b1324;
  border: 1px solid rgba(239, 68, 68, 0.32);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.12), 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.sportmonks-live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #38bdf8 100%);
}

.live-badge-glow {
  font-size: 0.66rem;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.live-controls-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.live-btn-small {
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Sélecteur des Matchs en Direct */
.sm-live-matches-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  margin-bottom: 0.85rem;
  scrollbar-width: thin;
}

.sm-live-match-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.sm-live-match-chip:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.sm-live-match-chip.active {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.sm-chip-minute {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
}

.sm-chip-teams {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}

.sm-chip-score {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fbbf24;
}

/* Cockpit du Match Actif En Direct */
.sm-cockpit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(11, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.sm-scoreboard-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.sm-score-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-team-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sm-team-node.away {
  text-align: right;
  align-items: flex-end;
}

.sm-team-name-lg {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.sm-red-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.sm-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.sm-score-numbers {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.sm-minute-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

.sm-event-ticker {
  font-size: 0.75rem;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.6);
  border-left: 3px solid #ef4444;
  padding: 0.5rem 0.75rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

/* Jauges xG et Territoire en Direct */
.sm-gauges-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.sm-gauge-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sm-gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.sm-gauge-bar-track {
  height: 9px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-gauge-fill-home {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #0095ff 100%);
  transition: width 0.4s ease;
}

.sm-gauge-fill-away {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
  transition: width 0.4s ease;
}

.sm-inplay-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.sm-inplay-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.sm-stat-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
}

.sm-stat-title {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Grille des Cartes d'Opportunités de Paris Rapides Détectées */
.sm-quick-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.85rem;
}

.sm-quick-bet-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  position: relative;
  transition: all 0.2s ease;
}

.sm-quick-bet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.sm-quick-bet-card.urgency-critical {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(35, 15, 24, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.18);
}

.sm-quick-bet-card.urgency-critical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: #ef4444;
  border-radius: 12px 0 0 12px;
}

.sm-bet-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sm-bet-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.sm-bet-badge.badge-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.sm-bet-badge.badge-high {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sm-bet-badge.badge-medium {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.sm-bet-match-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sm-bet-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.sm-quick-pick-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 149, 255, 0.35);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  gap: 0.5rem;
}

.sm-pick-details {
  display: flex;
  flex-direction: column;
}

.sm-pick-market {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.sm-pick-selection {
  font-size: 0.84rem;
  font-weight: 800;
  color: #38bdf8;
}

.sm-pick-odds {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.sm-bet-reason {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  line-height: 1.35;
}

.sm-bet-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0095ff 0%, #0066cc 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(0, 149, 255, 0.35);
}

.sm-bet-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 149, 255, 0.5);
  background: linear-gradient(135deg, #00a8ff 0%, #0077ee 100%);
}

.sm-bet-action-btn.btn-critical {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.sm-bet-action-btn.btn-critical:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 5px 14px rgba(239, 68, 68, 0.5);
}

/* Conteneur et Alertes Flottantes Push (Notifications Toast) */
.sm-live-notifications-dock {
  position: fixed;
  top: 4.8rem;
  right: 1.5rem;
  z-index: 10000;
  width: 360px;
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.sm-live-toast-alert {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(239, 68, 68, 0.25);
  padding: 0.85rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideToastIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
}

@keyframes slideToastIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sm-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sm-toast-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sm-toast-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.sm-toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sm-toast-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.sm-toast-body {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.3;
}

.sm-toast-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.sm-toast-quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sm-toast-quick-btn:hover {
  transform: translateY(-1px);
}

.sm-toast-dismiss-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  cursor: pointer;
}

/* Modale Centre d'Alertes Live */
.live-alerts-modal-window {
  max-width: 680px;
}

.live-alerts-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.3rem;
  margin-bottom: 0.75rem;
}

.live-alert-item-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.18s ease;
}

.live-alert-item-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(20, 30, 52, 0.9);
}

.live-alert-item-card.is-read {
  opacity: 0.75;
}

/* Responsive Mobile <= 960px */
@media (max-width: 960px) {
  .sm-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sm-live-notifications-dock {
    top: 4rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
  }

  .sm-quick-bets-grid {
    grid-template-columns: 1fr;
  }

  .sm-inplay-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-controls-row {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ============================================================================
 * SIMULATEUR INTELLIGENT DE MATCH RÉEL (TENDANCE AGRESSIVE & 1ER CARTON JAUNE)
 * ============================================================================ */
.sim-modal-window {
  max-width: 920px;
  background: linear-gradient(165deg, #0e172a 0%, #090f1e 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
}

.sim-mode-switcher-bar {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.sim-mode-tab {
  flex: 1;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.sim-mode-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.25) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sim-real-match-picker-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

/* Résultats de Simulation */
.sim-results-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.3s ease-out;
}

.sim-score-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sim-score-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #38bdf8, #34d399);
}

.sim-final-score-digits {
  font-size: 2.2rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin: 0.25rem 0;
}

/* Grille Tendance Agressive */
.sim-aggr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sim-aggr-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
}

.sim-aggr-card.is-home {
  border-color: rgba(56, 189, 248, 0.3);
}

.sim-aggr-card.is-away {
  border-color: rgba(52, 211, 153, 0.3);
}

.sim-aggr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.sim-aggr-gauge-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.sim-aggr-gauge-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.sim-card-pill-streak {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.5rem;
}

.sim-recent-card-pill {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Grand Encart Timing 1er Carton Jaune */
.sim-card-timing-banner {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.08);
}

.sim-card-timing-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.sim-timing-minute-badge {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
}

.sim-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.sim-timing-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  text-align: center;
}

.sim-timing-box strong {
  display: block;
  font-size: 1.15rem;
  color: #f8fafc;
  margin-top: 0.2rem;
}

/* Timeline Verticale Simulée */
.sim-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.sim-timeline-container::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.45rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.6) 0%, rgba(56, 189, 248, 0.6) 100%);
}

.sim-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sim-timeline-dot {
  position: absolute;
  left: -1.35rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2px solid #0f172a;
}

.sim-timeline-dot.is-first-yellow {
  background: #fde047;
  box-shadow: 0 0 10px #fde047;
}

.sim-timeline-dot.is-goal {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.sim-timeline-card {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

.sim-timeline-card.highlight-card {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.sim-timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

/* Paris Recommandés */
.sim-bets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sim-bet-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.btn-sim-add-slip {
  background: linear-gradient(135deg, #0095ff 0%, #0066cc 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-sim-add-slip:hover {
  background: linear-gradient(135deg, #22a3ff 0%, #0077e6 100%);
}

.btn-sim-add-slip.in-slip {
  background: #059669;
}

@media (max-width: 768px) {
  .sim-aggr-grid,
  .sim-timing-grid,
  .sim-bets-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
 * MENU LATÉRAL MOBILE CLASSIQUE (DRAWER OFF-CANVAS)
 * ============================================================================ */
.mobile-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mobile-hamburger-btn:hover,
.mobile-hamburger-btn:active {
  background: rgba(0, 149, 255, 0.2);
  border-color: rgba(0, 149, 255, 0.4);
}

.mobile-hamburger-btn .hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #f8fafc;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 960px) {
  .mobile-hamburger-btn {
    display: flex;
  }
}

.mobile-side-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-side-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-side-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #0b1528 0%, #060c18 100%);
  border-right: 1.5px solid rgba(0, 149, 255, 0.35);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 149, 255, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 10000;
}

.mobile-side-nav-backdrop.open .mobile-side-nav-drawer {
  transform: translateX(0);
}

/* En-tête du Menu */
.side-nav-header {
  padding: 1rem 1rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}

.side-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-side-nav-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-side-nav-close:active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Carte Statut */
.side-nav-status-card {
  margin: 0.75rem 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 149, 255, 0.25);
  border-radius: 10px;
}

.side-nav-status-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Contenu Scrollable */
.side-nav-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.side-nav-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.75rem 0 0.35rem 0.35rem;
}

.side-nav-menu-list,
.side-nav-leagues-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.side-nav-item:hover,
.side-nav-item:active {
  background: rgba(0, 149, 255, 0.12);
  border-color: rgba(0, 149, 255, 0.25);
  color: #f8fafc;
}

.side-nav-item.active {
  background: linear-gradient(135deg, rgba(0, 149, 255, 0.22) 0%, rgba(0, 102, 204, 0.28) 100%);
  border-color: rgba(0, 149, 255, 0.5);
  color: #38bdf8;
  font-weight: 700;
}

.side-nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.side-nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nav-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.side-nav-badge.badge-primary {
  background: #0095ff;
  color: #fff;
}

.side-nav-badge.badge-danger {
  background: #ef4444;
  color: #fff;
  animation: pulseBadge 1.8s infinite;
}

.side-nav-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.side-nav-chevron {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Pied */
.side-nav-footer {
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 17, 30, 0.9);
}

.side-nav-db-pill {
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  font-weight: 700;
}





