/* ===== CONGOBET PRO - V14 FIX ===== */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 2px; }
.page-hidden { display: none !important; }

/* ===== NAVIGATION ===== */
.nav-btn { display: flex; align-items: center; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #6b7280; background: transparent; border: none; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.nav-btn:hover { color: #e5e7eb; background: rgba(255,255,255,.04); }
.nav-btn.active { color: #f59e0b; background: rgba(245,158,11,.08); }

.sub-btn { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; color: #6b7280; background: transparent; border: none; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.sub-btn:hover { color: #e5e7eb; background: rgba(255,255,255,.04); }
.sub-btn.active { color: #f59e0b; background: rgba(245,158,11,.08); }

.mob-nav-btn { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #9ca3af; background: transparent; border: none; cursor: pointer; text-align: left; transition: all .15s; width: 100%; }
.mob-nav-btn:hover, .mob-nav-btn.active { color: #f59e0b; background: rgba(245,158,11,.08); }

.mob-sport-btn { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; color: #6b7280; background: #111827; border: 1px solid #1f2937; cursor: pointer; transition: all .15s; }
.mob-sport-btn:hover, .mob-sport-btn.active { color: #f59e0b; border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }

/* ===== MOBILE MENU V2 — V12 FIX: fond opaque + z-index eleve ===== */
/* IMPORTANT: Le menu et son overlay sont MAINTENANT en dehors du <header> */
/* pour eviter que backdrop-blur du header ne cree un stacking context */
/* qui piege le position:fixed du menu. */

#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu-overlay.open { opacity: 1; visibility: visible; }

#mobile-menu-v2 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #111827;
  background-color: #111827;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid #1f2937;
  box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}
#mobile-menu-v2.open { transform: translateX(0); }

/* Fonds opaques explicites sur tous les sous-conteneurs */
#mmv2-header { padding: 16px; border-bottom: 1px solid #1f2937; display: flex; align-items: center; justify-content: space-between; background: #111827; }
#mmv2-body { flex: 1; overflow-y: auto; padding: 12px; background: #111827; -webkit-overflow-scrolling: touch; }
#mmv2-sports { padding: 12px; border-top: 1px solid #1f2937; background: #111827; }
#mmv2-footer { padding: 16px; border-top: 1px solid #1f2937; text-align: center; background: #111827; }

/* ===== MATCH CARDS ===== */
.mcard { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 14px 16px; transition: all .2s ease; }
.mcard:hover { border-color: #374151; }

/* ===== RESULT CARDS ===== */
.rcard { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 14px 16px; transition: all .2s ease; opacity: 0.85; }
.rcard:hover { border-color: #374151; opacity: 1; }
.rcard .ft-badge { background: rgba(34,197,94,.1); color: #22c55e; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.rcard .score-final { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 800; color: #fff; }

/* ===== ODDS BUTTONS ===== */
.obtn { background: #0a0e1a; border: 1px solid #1f2937; color: #06b6d4; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: all .15s ease; min-width: 58px; text-align: center; }
.obtn:hover { border-color: #06b6d4; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(6,182,212,.1); }
.obtn:active { transform: translateY(0) scale(.97); }
.obtn.sel { background: #06b6d4; color: #0a0e1a; border-color: #06b6d4; box-shadow: 0 4px 16px rgba(6,182,212,.2); }
.obtn .lb { font-size: 9px; color: #6b7280; display: block; margin-bottom: 1px; }
.obtn.sel .lb { color: rgba(10,14,26,.6); }

/* ===== SPORT CARDS ===== */
.sport-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all .2s; }
.sport-card:hover { border-color: #374151; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.sport-card .icon { font-size: 28px; }
.sport-card .name { font-size: 13px; font-weight: 600; }
.sport-card .count { font-size: 11px; color: #6b7280; font-family: 'JetBrains Mono', monospace; }

/* ===== PREDICTION CARDS ===== */
.pcard { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 16px; transition: all .2s ease; cursor: pointer; }
.pcard:hover { border-color: #374151; transform: translateY(-1px); }
.pcard .picon { font-size: 24px; margin-bottom: 8px; display: block; }
.pcard .pcat { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.pcard .pq { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.pcard .pbar { height: 6px; border-radius: 3px; background: #1f2937; overflow: hidden; display: flex; margin-bottom: 8px; }
.pcard .pbar-yes { height: 100%; background: #22c55e; border-radius: 3px; transition: width .3s; }
.pcard .pbar-no { height: 100%; background: #ef4444; border-radius: 3px; transition: width .3s; }
.pcard .pstats { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; }
.pcard .pstats .yes { color: #22c55e; font-weight: 600; }
.pcard .pstats .no { color: #ef4444; font-weight: 600; }
.pcard .pvol { font-size: 10px; color: #6b7280; margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

/* Prediction category buttons */
.pred-cat-btn { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; color: #6b7280; background: #111827; border: 1px solid #1f2937; cursor: pointer; transition: all .15s; }
.pred-cat-btn:hover { border-color: #374151; color: #e5e7eb; }
.pred-cat-btn.active { color: #f59e0b; border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }

/* ===== PAYMENT CARDS ===== */
.pay-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all .2s; }
.pay-card:hover { border-color: #374151; transform: translateY(-1px); }
.pay-card .pay-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.pay-card .pay-info { flex: 1; min-width: 0; }
.pay-card .pay-name { font-size: 13px; font-weight: 600; }
.pay-card .pay-desc { font-size: 11px; color: #6b7280; }
.pay-card .pay-arrow { color: #6b7280; font-size: 16px; }

/* ===== PRESET BUTTONS ===== */
.preset-btn { padding: 6px; background: #111827; border: 1px solid #1f2937; border-radius: 6px; color: #6b7280; font-size: 11px; font-weight: 500; cursor: pointer; transition: all .15s; }
.preset-btn:hover { border-color: #374151; color: #e5e7eb; }

/* ===== SLIP ITEMS ===== */
.sitem { background: #0a0e1a; border: 1px solid #1f2937; border-radius: 10px; padding: 12px; position: relative; animation: si .2s ease-out; }
@keyframes si { from { opacity:0; transform: translateX(12px) } to { opacity:1; transform: translateX(0) } }

/* ===== LIVE DOT ===== */
.live-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: lp 2s infinite; display: inline-block; }
@keyframes lp { 0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(239,68,68,.4) } 50% { opacity:.5; box-shadow: 0 0 0 5px rgba(239,68,68,0) } }

/* ===== SCORE POP ===== */
.spop { animation: sp .4s ease-out; }
@keyframes sp { 0% { transform: scale(1.3); color: #06b6d4 } 100% { transform: scale(1); color: #fff } }

/* ===== ODDS FLASH ===== */
.fu { animation: fuA .5s } @keyframes fuA { 0% { color:#22c55e; text-shadow: 0 0 10px rgba(34,197,94,.5) } 100% { color:#06b6d4 } }
.fd { animation: fdA .5s } @keyframes fdA { 0% { color:#ef4444; text-shadow: 0 0 10px rgba(239,68,68,.5) } 100% { color:#06b6d4 } }

/* ===== TIMER ===== */
.tmr { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #ef4444; background: rgba(239,68,68,.08); padding: 2px 8px; border-radius: 4px; }

/* ===== TOAST ===== */
.tost { background: #111827; border: 1px solid #1f2937; border-left: 3px solid #06b6d4; border-radius: 8px; padding: 12px 16px; box-shadow: 0 8px 32px rgba(0,0,0,.4); animation: ti .25s ease-out; max-width: 300px; }
.tost.e { border-left-color: #ef4444; }
.tost.w { border-left-color: #f59e0b; }
.tost.g { border-left-color: #22c55e; }
@keyframes ti { from { opacity:0; transform: translateY(16px) } to { opacity:1; transform: translateY(0) } }

/* ===== AUTH TABS ===== */
.auth-tab { color: #6b7280; border-bottom: 2px solid transparent; transition: all .15s; }
.auth-tab:hover { color: #e5e7eb; background: rgba(255,255,255,.02); }
.auth-tab.active { color: #f59e0b; border-bottom-color: #f59e0b; background: rgba(245,158,11,.04); }

/* ===== PROMO CARDS ===== */
.promo-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 20px; transition: all .2s; }
.promo-card:hover { border-color: #374151; }

/* ===== BG GLOW ===== */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 15% 50%, rgba(245,158,11,.015) 0%, transparent 50%), radial-gradient(ellipse at 85% 10%, rgba(6,182,212,.01) 0%, transparent 50%); pointer-events: none; }

#desktop-betslip { scrollbar-width: thin; scrollbar-color: #374151 transparent; }
#mobile-betslip.open { transform: translateY(0) !important; }

/* ===== REVOLUTION SLIDER ===== */
.rev-slider { position: relative; border-radius: 16px; overflow: hidden; }
.rev-slider .rev-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.rev-slider:hover .rev-slide img { transform: scale(1.08); }
.rev-dot.active { width: 28px !important; background: #f59e0b !important; }
.rev-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .4s ease; }
.rev-dot:hover { background: rgba(255,255,255,.7); }
.rev-arrow { transition: all .2s ease; }
.rev-arrow:hover { background: #f59e0b !important; border-color: #f59e0b !important; }

/* Vertical text for ticket toggle */
.vertical-text { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); letter-spacing: 2px; }

/* ===== AD SLOTS ===== */
.ad-slot { background: rgba(17,24,39,.5); border: 1px dashed #374151; border-radius: 8px; position: relative; }
.ad-label { position: absolute; top: -1px; right: 8px; background: #1f2937; color: #6b7280; font-size: 8px; padding: 1px 6px; border-radius: 0 0 4px 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== ANIMATIONS ENTRANCE ===== */
.fade-in { animation: fi .5s ease-out; }
@keyframes fi { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

.slide-in-left { animation: sil .4s ease-out; }
@keyframes sil { from { opacity:0; transform: translateX(-20px); } to { opacity:1; transform: translateX(0); } }

/* ===== HOVER EFFECTS ===== */
.hover-lift { transition: transform .2s, box-shadow .2s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* ===== TICKET ROWS (Dashboard) ===== */
.ticket-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #0a0e1a; border: 1px solid #1f2937; border-radius: 10px; cursor: pointer; transition: all .15s; gap: 8px; }
.ticket-row:hover { border-color: #374151; background: #111827; }
.ticket-status-dot { padding: 2px 8px; border-radius: 12px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.ticket-match { font-size: 12px; font-weight: 600; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.ticket-meta { font-size: 10px; color: #6b7280; font-family: 'JetBrains Mono', monospace; }
.ticket-amount { font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ===== TICKET DETAIL MODAL ===== */
#tk-header { transition: border-color .3s ease; }

/* ===== SIDEBAR GAUCHE ===== */
.sidebar-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; color: #6b7280; background: transparent; border: none; cursor: pointer; transition: all .15s; width: 100%; text-align: left; }
.sidebar-item:hover { color: #e5e7eb; background: rgba(255,255,255,.04); }
.sidebar-item.active { color: #f59e0b; background: rgba(245,158,11,.08); }
.sidebar-item .sidebar-icon { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; line-height: 1; }
.sidebar-item .sidebar-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-item .sidebar-count { margin-left: auto; font-size: 10px; color: #4b5563; font-family: 'JetBrains Mono', monospace; background: #0a0e1a; padding: 1px 6px; border-radius: 8px; min-width: 20px; text-align: center; }
.sidebar-section-title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #4b5563; padding: 12px 10px 4px; }
.sidebar-divider { height: 1px; background: #1f2937; margin: 6px 10px; }

/* ===== ADMIN FLOATING BUTTON ===== */
/* ===== CAISSE TABS (Depot / Retrait V13) ===== */
.cashier-tabs { display: flex; gap: 4px; background: #0a0e1a; border: 1px solid #1f2937; border-radius: 12px; padding: 4px; }
.cashier-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 10px; border: none; background: transparent; color: #6b7280; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.cashier-tab:hover { color: #e5e7eb; background: rgba(255,255,255,.04); }
.cashier-tab.active { background: #1f2937; color: #f59e0b; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cashier-tab.active svg { color: #f59e0b; }
.cashier-tab svg { color: #4b5563; }
/* Retrait tab active = red tint */
.cashier-tab.active[data-active="withdraw"], #tab-withdraw.active { background: rgba(239,68,68,.1); color: #ef4444; }
#tab-withdraw.active svg { color: #ef4444; }
/* Withdraw cards */
.withdraw-card { border-color: rgba(239,68,68,.15) !important; }
.withdraw-card:hover { border-color: rgba(239,68,68,.35) !important; background: rgba(239,68,68,.03); }

/* ===== MOBILE BOTTOM NAVIGATION BAR (Glassmorphism) ===== */
.mobile-bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; height: 100%; background: none; border: none; cursor: pointer; padding: 6px 0 2px; transition: all .15s ease; position: relative; }
.mobile-bottom-item:active { opacity: .7; transform: scale(.95); }
.mobile-bottom-item.active svg { color: #f59e0b !important; filter: drop-shadow(0 0 4px rgba(245,158,11,.3)); }
.mobile-bottom-item.active .mobile-bottom-label { color: #f59e0b; }
.mobile-bottom-label { font-size: 9px; font-weight: 600; letter-spacing: .3px; color: #6b7280; transition: color .15s ease; }
#mobile-bottom-bar { transition: transform .3s cubic-bezier(.4,0,.2,1); }
/* Cache la bottom bar quand le mobile betslip est ouvert */
#mobile-bottom-bar.hidden-bb { transform: translateY(100%); }

/* Padding body/main sur mobile pour eviter que le contenu soit cache par la bottom bar */
@media (max-width: 1023px) {
  #main-content { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px) !important; }
}

.admin-float-btn { position: fixed; bottom: 80px; left: 12px; z-index: 35; width: 44px; height: 44px; border-radius: 50%; background: #1f2937; border: 1px solid #374151; color: #6b7280; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.admin-float-btn:hover { background: #f59e0b; border-color: #f59e0b; color: #0a0e1a; transform: scale(1.1); }

/* ===== AGENT PYTHON V6 ===== */
.av6-card { background: #151a25; border: 1px solid #1e2532; border-radius: 14px; padding: 14px 16px; transition: all .2s ease; }
.av6-card:hover { border-color: #2a3441; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.av6-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #1e2532; }
.av6-league-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.av6-league-name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f59e0b; }
.av6-date { font-size: 10px; font-family: 'JetBrains Mono', monospace; color: #6b7280; }
.av6-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.av6-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.av6-team-identity { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.av6-jersey { width: 48px; height: 48px; object-fit: contain; position: absolute; opacity: 0.35; }
.av6-jersey-placeholder { width: 48px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, #1f2937, #111827); border: 1px dashed #374151; }
.av6-team-logo { width: 32px; height: 32px; object-fit: contain; position: relative; z-index: 2; border-radius: 50%; background: #111827; padding: 2px; }
.av6-team-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av6-vs-section { display: flex; align-items: center; justify-content: center; }
.av6-vs-text { font-size: 10px; font-weight: 800; color: #4b5563; letter-spacing: 2px; }
.av6-odds { display: flex; gap: 6px; }
.av6-obtn { flex: 1; background: #0a0e1a; border: 1px solid #1f2937; border-radius: 10px; padding: 8px 4px; cursor: pointer; transition: all .15s ease; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.av6-obtn:hover { border-color: #06b6d4; background: rgba(6,182,212,.05); transform: translateY(-1px); }
.av6-obtn:active { transform: translateY(0) scale(.97); }
.av6-obtn.sel { background: #06b6d4; border-color: #06b6d4; box-shadow: 0 4px 16px rgba(6,182,212,.2); }
.av6-obtn.sel .av6-obtn-label { color: rgba(10,14,26,.5); }
.av6-obtn.sel .av6-obtn-odds { color: #0a0e1a; }
.av6-obtn-label { font-size: 9px; color: #6b7280; font-weight: 600; }
.av6-obtn-odds { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: #06b6d4; }

/* ===== RESPONSIVE MOBILE V11 ===== */

/* Tablette: 768px - 1023px */
@media (max-width: 1023px) {
  #main-content { padding-right: 1rem !important; padding-left: 1rem !important; }
  #desktop-betslip { display: none !important; }
  #betslip-toggle { display: none !important; }
  #sidebar-left { transform: translateX(-100%) !important; }
  .cdm-group-stats { gap: 6px; }
  .cdm-group-stat { min-width: 16px; font-size: 9px; }
}

/* Mobile: 481px - 767px */
@media (max-width: 767px) {
  #main-content { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .mcard, .rcard, .pcard, .pay-card, .promo-card { padding: 12px; border-radius: 10px; }
  .obtn { padding: 7px 4px; font-size: 12px; min-width: 0; width: 100%; }
  .cdm-group-stats { gap: 6px; }
  .cdm-group-stat { min-width: 14px; font-size: 9px; }
  .cdm-match-teams { gap: 8px; }
  .cdm-match-team { gap: 6px; }
  .cdm-match-team-name { font-size: 12px; }
  .sport-card { padding: 16px; }
  .sport-card .icon { font-size: 24px; }
  .admin-float-btn { bottom: 72px; left: 10px; width: 40px; height: 40px; font-size: 16px; }
  .sitem { padding: 10px; }
  .ticket-row { padding: 8px 10px; flex-wrap: wrap; }
  .ticket-match { max-width: 120px; }
}

/* Petit mobile: 375px - 480px */
@media (max-width: 480px) {
  #main-content { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .mcard, .rcard, .pcard, .pay-card { padding: 10px; border-radius: 8px; }
  .obtn { padding: 6px 2px; font-size: 11px; min-width: 0; width: 100%; border-radius: 6px; }
  .obtn .lb { font-size: 8px; }
  .mcard .text-\[13px\] { font-size: 12px !important; }
  .cdm-match-card { padding: 10px 12px; }
  .cdm-match-team-name { font-size: 11px; }
  .cdm-match-vs { font-size: 9px; }
  .cdm-match-odds { gap: 4px; margin-top: 8px; }
  .cdm-tab-btn { font-size: 10px; padding: 6px 4px; }
  .sport-card { padding: 12px 8px; border-radius: 10px; }
  .sport-card .icon { font-size: 22px; }
  .sport-card .name { font-size: 12px; }
  .promo-card { padding: 14px; }
  .promo-card h3 { font-size: 14px; }
  #rev-slider { height: clamp(160px, 42vw, 280px) !important; }
  .ticket-match { max-width: 100px; }
  .ticket-row { gap: 6px; }
}

/* Tres petit mobile: < 375px */
@media (max-width: 374px) {
  .obtn { padding: 5px 2px; font-size: 10px; min-width: 0; width: 100%; }
  .obtn .lb { font-size: 7px; }
  .mcard .text-\[13px\] { font-size: 11px !important; }
  .cdm-group-stats { gap: 4px; font-size: 9px; }
  .cdm-group-team { font-size: 11px; gap: 4px; }
  .sport-card .name { font-size: 11px; }
  .admin-float-btn { bottom: 68px; left: 8px; width: 36px; height: 36px; font-size: 14px; }
  .ticket-match { max-width: 80px; font-size: 11px; }
}

/* Safe area insets pour iPhone notch */
@supports (padding: max(0px)) {
  @media (max-width: 1023px) {
    #mobile-betslip { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
    #mob-slip-fab { bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); }
  }
}

/* ===== ODD VARIATIONS (Bet365 style) ===== */
.odds-up { animation: oddsUpFlash .8s ease-out; border-color: #22c55e !important; }
.odds-down { animation: oddsDownFlash .8s ease-out; border-color: #ef4444 !important; }
@keyframes oddsUpFlash { 0% { box-shadow: 0 0 0 3px rgba(34,197,94,.5); background: rgba(34,197,94,.1); } 100% { box-shadow: none; background: transparent; } }
@keyframes oddsDownFlash { 0% { box-shadow: 0 0 0 3px rgba(239,68,68,.5); background: rgba(239,68,68,.1); } 100% { box-shadow: none; background: transparent; } }
.odds-arrow-up { color: #22c55e; font-size: 8px; vertical-align: middle; }
.odds-arrow-down { color: #ef4444; font-size: 8px; vertical-align: middle; }

/* ===== MOBILE BETSLIP FIX V11 ===== */
#ms-content { display: flex; flex-direction: column; overflow: hidden; }
#ms-items { overflow-y: auto; -webkit-overflow-scrolling: touch; }
#ms-footer { position: sticky; bottom: 0; background: #111827; z-index: 5; }

/* ===== BETSLIP V5 STYLES ===== */
.slip-v5-item { background: #0a0e1a; border: 1px solid #1f2937; border-radius: 10px; padding: 10px 12px; position: relative; }
.slip-v5-item .slip-remove { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 4px; border: none; background: transparent; color: #4b5563; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.slip-v5-item .slip-remove:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.stake-input-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.stake-input-row input { width: 80px; background: #111827; border: 1px solid #1f2937; border-radius: 6px; padding: 4px 8px; color: #e5e7eb; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.stake-input-row input:focus { border-color: #f59e0b; outline: none; }
.stake-line-win { font-size: 10px; color: #22c55e; font-family: 'JetBrains Mono', monospace; margin-left: auto; }

/* ===== COUPE DU MONDE 2026 HUB ===== */
.cdm-tab { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(217,119,6,.08)) !important; border: 1px solid rgba(245,158,11,.25) !important; color: #fbbf24 !important; }
.cdm-tab:hover { background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(217,119,6,.15)) !important; }
.cdm-tab.active { background: linear-gradient(135deg, rgba(245,158,11,.25), rgba(217,119,6,.2)) !important; color: #f59e0b !important; box-shadow: 0 0 12px rgba(245,158,11,.15); }

.cdm-tab-btn { background: transparent; border: none; cursor: pointer; transition: all .15s; }
.cdm-tab-btn.active { background: #1f2937; color: #f59e0b; }
.cdm-tab-btn:hover:not(.active) { color: #e5e7eb; background: rgba(255,255,255,.04); }

.cdm-panel { animation: fadeIn .3s ease-out; }

.cdm-group-card { background: #151a25; border: 1px solid #1e2532; border-radius: 12px; overflow: hidden; }
.cdm-group-card .group-header { background: linear-gradient(135deg, #1a1f2e, #151a25); padding: 10px 14px; border-bottom: 1px solid #1e2532; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f59e0b; }
.cdm-group-row { display: flex; align-items: center; padding: 8px 12px; border-bottom: 1px solid #1e2532; transition: background .1s; }
.cdm-group-row:hover { background: rgba(255,255,255,.02); }
.cdm-group-row:last-child { border-bottom: none; }
.cdm-group-rank { width: 20px; font-size: 11px; font-weight: 700; color: #6b7280; text-align: center; }
.cdm-group-team { flex: 1; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.cdm-group-stats { display: flex; gap: 10px; font-size: 10px; color: #6b7280; font-family: 'JetBrains Mono', monospace; }
.cdm-group-stat { text-align: center; min-width: 20px; }
.cdm-group-pts { font-weight: 700; color: #f59e0b; }

.cdm-match-card { background: #151a25; border: 1px solid #1e2532; border-radius: 12px; padding: 12px 14px; transition: all .15s; }
.cdm-match-card:hover { border-color: #2a3441; }
.cdm-match-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cdm-match-group { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f59e0b; background: rgba(245,158,11,.1); padding: 2px 8px; border-radius: 4px; }
.cdm-match-time { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: #6b7280; }
.cdm-match-teams { display: flex; align-items: center; gap: 12px; }
.cdm-match-team { flex: 1; display: flex; align-items: center; gap: 8px; }
.cdm-match-team:last-child { justify-content: flex-end; }
.cdm-match-team-name { font-size: 13px; font-weight: 500; }
.cdm-match-vs { font-size: 10px; font-weight: 700; color: #4b5563; text-transform: uppercase; }
.cdm-match-odds { display: flex; gap: 6px; margin-top: 10px; }

/* ===== LOCAL STATS WIDGET (Anti-404 SofaScore) ===== */
.ls-widget { display: flex; flex-direction: column; gap: 0; }
.ls-header { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 0 12px; border-bottom: 1px solid #1e2532; margin-bottom: 12px; }
.ls-header img, .ls-header .w-8 { border-radius: 50%; background: #111827; }
.ls-vs { font-size: 12px; font-weight: 600; text-align: center; }
.ls-momentum-wrap { margin-bottom: 12px; }
.ls-momentum-label { font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-bottom: 6px; }
.ls-momentum-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #1e2532; }
.ls-momentum-h { background: #f59e0b; border-radius: 3px 0 0 3px; transition: width 1s ease; }
.ls-momentum-a { background: #06b6d4; border-radius: 0 3px 3px 0; transition: width 1s ease; }
.ls-momentum-nums { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-top: 4px; }
.ls-momentum-nums span:first-child { color: #f59e0b; }
.ls-momentum-nums span:last-child { color: #06b6d4; }
.ls-divider { height: 1px; background: #1e2532; margin: 8px 0; }
.ls-stat-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.ls-stat-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; min-width: 28px; text-align: center; }
.ls-stat-num:first-child { color: #f59e0b; }
.ls-stat-num:last-child { color: #06b6d4; }
.ls-stat-bar-wrap { flex: 1; }
.ls-stat-label { font-size: 9px; color: #6b7280; text-align: center; margin-bottom: 3px; }
.ls-stat-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: #1e2532; }
.ls-stat-fill-h { background: rgba(245,158,11,.7); border-radius: 2px 0 0 2px; }
.ls-stat-fill-a { background: rgba(6,182,212,.7); border-radius: 0 2px 2px 0; }
.ls-footer { text-align: center; font-size: 9px; color: #374151; margin-top: 8px; padding-top: 8px; border-top: 1px solid #1e2532; }

/* ===== ENRICHED MATCHES (Agent V6 — moteur invisible, pas de badge) ===== */
/* Les matchs enrichis sont visuellement identiques — seuls les logos */
/* premium et maillots differencient. Aucune classe .enriched ni badge */
/* n'est injecte dans le HTML renderMatchCard(). Le flag isEnriched: */
/* true est present dans le JSON API pour d'eventuels usages futurs.  */

/* ===== TEAM LOGOS (V8) ===== */
.team-logo { object-fit: contain; background: #111827; border-radius: 50%; }
.team-logo-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; border-radius: 50%; background: linear-gradient(135deg, #1f2937, #111827); color: #6b7280; flex-shrink: 0; }

/* ===== STATSHUB ===== */
.statshub-btn { width: 26px; height: 26px; border-radius: 6px; background: #1f2937; border: 1px solid #374151; color: #6b7280; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; flex-shrink: 0; }
.statshub-btn:hover { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.3); color: #f59e0b; transform: scale(1.1); }
#statshub-drawer.open { transform: translateX(0) !important; }
#statshub-iframe { width: 100%; height: 100%; border: 0; }
