/* ============================================================
   SLOT216 - Sports & Casino Theme
   Author: slot216 team
   ============================================================ */

:root {
  --bg-darkest: #f4f6f9;
  --bg-dark: #ffffff;
  --bg-panel: #eef2f7;
  --bg-panel-2: #e2e8f0;
  --bg-elev: #dbe3ec;
  --bg-hover: #d5deea;
  --line: #d5dde6;
  --line-soft: #e5eaf1;
  --text: #1a2a3a;
  --text-soft: #4a5b6f;
  --text-mute: #7a8ba0;
  --accent: #0a8f3c;
  --accent-2: #12b04c;
  --warn: #ff9800;
  --danger: #e53935;
  --gold: #f4b400;
  --blue: #1976d2;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 4px 14px rgba(20,40,70,.08);
  --shadow-lg: 0 12px 40px rgba(20,40,70,.18);
  --header-h: 60px;
  --subnav-h: 44px;
  --sidebar-w: 240px;
  --betslip-w: 300px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ═══ ALIAS COMPAT (fix Providers modal blanc & autres composants portés d'autres thèmes) ═══
     Les composants portés (providers-list, menu-overlay, acc-sidebar, alerts, etc.)
     utilisent la nomenclature forzza/betroyal. Sans ces alias les vars étaient undefined
     → texte inherit blanc sur fond blanc → modal Providers apparait VIDE. */
  --text-primary: var(--text);
  --text-secondary: var(--text-soft);
  --text-muted: var(--text-mute);
  --border: var(--line);
  --border-soft: var(--line-soft);
  --border-strong: #b8c3d0;
  --bg-2: var(--bg-panel);
  --bg-3: var(--bg-panel-2);
  --teal: var(--accent);
  --teal-bright: var(--accent-2);
  --teal-dark: #067a30;
  --teal-soft: rgba(10,143,60,0.10);
  --teal-glow: rgba(10,143,60,0.28);
  --violet: var(--accent);
  --violet-bright: var(--accent-2);
  --violet-soft: rgba(10,143,60,0.10);
  --violet-glow: rgba(10,143,60,0.20);
  --success: var(--accent);
  --info: var(--blue);
  --warning: var(--warn);
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --gradient-brand: linear-gradient(90deg, var(--accent), var(--accent-2));
  --t: .18s ease;
}

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

html, body {
  height: 100%;
  background: var(--bg-darkest);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; display: block; }

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

ul { list-style: none; }

/* ------------------------------------------------------------
   TOP UTILITY BAR
------------------------------------------------------------ */
.topbar {
  background: #16334f;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #0f2740;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
}
body { padding-top: calc(30px + var(--header-h)); }
.topbar .container { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.topbar a { color: rgba(255,255,255,.75); margin-left: 14px; }
.topbar a:hover { color: var(--accent-2); }
.topbar .lang { display: flex; align-items: center; gap: 6px; }
.topbar .lang select {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
}
.topbar .lang select option { color: #1a2a3a; }

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.header {
  background: linear-gradient(180deg, #1e4a72 0%, #16334f 100%);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #0f2740;
  position: fixed;
  top: 30px; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; width: 100%; gap: 20px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: 1px;
  color: var(--text);
}
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 14px;
  box-shadow: 0 2px 8px rgba(28,208,91,.35);
}
.brand .brand-name { color: #ffffff; }
.brand .brand-name span { color: var(--accent-2); }

.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
  margin-left: 8px;
}
.main-nav a {
  padding: 8px 12px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  border-radius: 6px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.main-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}
.main-nav a.active {
  background: rgba(255,255,255,.14);
  color: #ffffff;
}
.main-nav a .icon { font-size: 16px; }
.main-nav a .badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center; gap: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.35); color: #ffffff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #ffffff; border-color: rgba(255,255,255,.6); }
.content .btn-outline, .footer .btn-outline, .auth-wrap .btn-outline, .modal .btn-outline {
  border-color: var(--line); color: var(--text);
}
.content .btn-outline:hover { background: var(--bg-panel); color: var(--text); border-color: var(--accent); }
.btn-ghost { color: var(--text-soft); }
.btn-ghost:hover { color: #fff; background: var(--bg-panel); }
.btn-gold { background: linear-gradient(180deg, #ffe07a, #f4b834); color: #402c00; }
.btn-gold:hover { filter: brightness(1.05); color: #402c00; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 6px;
  align-items: center; justify-content: center;
  color: #ffffff;
}
.burger span {
  display: block;
  position: relative;
  width: 22px; height: 2px;
  background: currentColor;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: currentColor;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* ------------------------------------------------------------
   SUB-NAV (categories)
------------------------------------------------------------ */
.subnav {
  background: #1e4a72;
  height: var(--subnav-h);
  border-bottom: 1px solid #0f2740;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
  position: sticky;
  top: calc(30px + var(--header-h));
  z-index: 99;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 7px 12px;
  color: rgba(255,255,255,.85);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.subnav a:hover { background: rgba(255,255,255,.1); color: #ffffff; }
.subnav a.active { background: rgba(255,255,255,.16); color: #ffffff; }
.subnav a .dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,77,79,.2);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ------------------------------------------------------------
   LAYOUT
------------------------------------------------------------ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--betslip-w);
  min-height: calc(100vh - var(--header-h) - var(--subnav-h) - 30px);
}
.layout.no-betslip { grid-template-columns: var(--sidebar-w) 1fr; }
.layout.wide       { grid-template-columns: 1fr; }

.sidebar {
  background: var(--bg-dark);
  padding: 12px 0;
  border-right: 1px solid var(--line-soft);
}
.sidebar-mobile-only { display: none; }
@media (max-width: 992px) { .sidebar-mobile-only { display: block; } }
.sidebar h4 {
  color: var(--text-mute);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 10px 14px 6px;
  font-weight: 700;
}
.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--text-soft);
  font-size: 13px;
  border-left: 3px solid transparent;
}
.sidebar ul li a:hover, .sidebar ul li a.active {
  background: var(--bg-panel);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sidebar ul li a .count {
  margin-left: auto;
  color: var(--text-mute);
  font-size: 12px;
}
.sidebar ul li a .flag,
.sidebar ul li a .sport-ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Mobile drawer — light theme with clean borders */
@media (max-width: 992px) {
  .sidebar { padding: 0 0 30px; background: #ffffff; }

  /* Quick auth CTA at top */
  .sidebar-quick-auth {
    display: flex; gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
  }
  .sidebar-quick-auth .btn {
    flex: 1;
    padding: 11px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
  }
  .sidebar-quick-auth .btn-outline {
    border: 1px solid #d5dde6;
    color: #1a2a3a;
    background: #ffffff;
  }
  .sidebar-quick-auth .btn-outline:hover {
    background: #f4f7fb;
    color: #16334f;
    border-color: var(--accent);
  }

  .sidebar h4 {
    background: #f4f7fb;
    color: #7a8ba0;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }
  .sidebar ul {
    padding: 4px 0;
    background: #fff;
  }
  .sidebar ul li {
    border-bottom: 1px solid #f0f3f7;
  }
  .sidebar ul li:last-child { border-bottom: none; }
  .sidebar ul li a {
    margin: 0;
    padding: 13px 16px;
    font-size: 14px;
    color: #1a2a3a;
    border-left: 3px solid transparent;
    border-bottom: none;
    gap: 12px;
    font-weight: 500;
    border-radius: 0;
    transition: background .15s, color .15s, border-color .15s;
  }
  .sidebar ul li a:hover {
    background: #f8fafc;
    color: #16334f;
    border-left-color: var(--accent);
  }
  .sidebar ul li a.active {
    background: linear-gradient(90deg, rgba(10,143,60,.08), transparent);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 700;
  }
  .sidebar ul li a.active .sport-ico {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .sidebar ul li a .sport-ico,
  .sidebar ul li a .flag {
    width: 32px; height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e4a72;
    font-size: 16px;
    transition: all .15s;
    flex-shrink: 0;
  }
  .sidebar ul li a:hover .sport-ico {
    background: #eef4fa;
    border-color: #c5d0dc;
  }
  .sidebar ul li a .count {
    background: #eef2f7;
    color: #4a5b6f;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    border: 1px solid transparent;
  }
  .sidebar ul li a.active .count {
    background: var(--accent);
    color: #fff;
  }
  .sidebar ul li a::after {
    content: "›";
    color: #c5d0dc;
    margin-left: auto;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: transform .15s, color .15s;
  }
  .sidebar ul li a:hover::after { color: var(--accent); transform: translateX(3px); }
  .sidebar ul li a:has(.count)::after { display: none; }
}

.content {
  padding: 16px;
  background: var(--bg-darkest);
  min-width: 0;
}

.betslip {
  background: var(--bg-dark);
  border-left: 1px solid var(--line-soft);
  padding: 12px;
  position: sticky;
  top: calc(var(--header-h) + var(--subnav-h) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - var(--subnav-h) - 30px);
  overflow-y: auto;
}

/* ------------------------------------------------------------
   HERO SLIDER
------------------------------------------------------------ */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #133c5d 0%, #1c3d5a 40%, #0e2438 100%);
  min-height: 260px;
  display: flex;
  margin-bottom: 20px;
}
.hero-slides { position: relative; width: 100%; height: 260px; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 40px 50px;
  opacity: 0; transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide .hero-copy { max-width: 55%; }
.hero-slide.slide-1 { background: linear-gradient(120deg, #0e3b6b 0%, #1a5aa0 100%); }
.hero-slide.slide-2 { background: linear-gradient(120deg, #4b1160 0%, #a41cbf 100%); }
.hero-slide.slide-3 { background: linear-gradient(120deg, #6a3a0e 0%, #f2a541 100%); }
.hero-slide.slide-4 { background: linear-gradient(120deg, #0a4a3a 0%, #1cc07a 100%); }

.hero-slide h2 {
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.hero-slide p {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 480px;
}
.hero-slide .amount {
  font-size: 42px; font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: block;
  margin: 4px 0 12px;
}

.hero-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .2s;
}
.hero-dots button.active { background: var(--accent-2); width: 28px; border-radius: 5px; }

.hero-arrows button {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(0,0,0,.35);
  color: #fff; border-radius: 50%;
  font-size: 22px;
  z-index: 5;
  transition: background .15s;
}
.hero-arrows button:hover { background: rgba(0,0,0,.6); }
.hero-arrows .prev { left: 14px; }
.hero-arrows .next { right: 14px; }

/* ------------------------------------------------------------
   SECTION HEADINGS
------------------------------------------------------------ */
.section {
  margin-bottom: 26px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .section-head h3 { font-size: 14px; }
  .section-head > div:not(.tabs) {
    width: 100%;
    display: flex !important;
    gap: 6px;
  }
  .section-head > div:not(.tabs) select { flex: 1; min-width: 0; }
}
.section-head h3 {
  font-size: 16px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex; align-items: center; gap: 8px;
}
.section-head h3::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .see-all { color: var(--text-soft); font-size: 13px; }
.section-head .see-all:hover { color: var(--accent-2); }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 10px 14px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------
   MATCH TABLE
------------------------------------------------------------ */
.match-list {
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.match-group-head {
  background: var(--bg-panel);
  padding: 10px 14px;
  display: flex; align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.match-group-head .cat { color: var(--text-soft); font-weight: 400; }
.match-group-head .cat::before { content: " / "; margin: 0 2px; }

.match {
  display: grid;
  grid-template-columns: 60px 1fr repeat(3, 1fr) 60px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .12s;
  gap: 8px;
}
.match:last-child { border-bottom: none; }
.match:hover { background: rgba(255,255,255,.03); }

.match .time {
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.25;
}
.match .time .live-tag {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.match .teams {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.match .teams .team {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); font-size: 13px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.match .teams .score {
  color: var(--accent-2); font-weight: 700;
  margin-left: auto; padding-left: 8px;
}

.odd {
  background: var(--bg-panel);
  color: var(--text);
  padding: 9px 6px;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .12s;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.odd .odd-name {
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.odd:hover { background: var(--bg-hover); border-color: var(--accent); }
.odd.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.odd.selected .odd-name { color: rgba(255,255,255,.85); }
.odd.up { animation: flashUp .8s; }
.odd.down { animation: flashDown .8s; }

@keyframes flashUp   { 0% { background: rgba(10,143,60,.35); } 100% { background: var(--bg-panel); } }
@keyframes flashDown { 0% { background: rgba(229,57,53,.35); } 100% { background: var(--bg-panel); } }

.match .more {
  color: var(--text-soft);
  text-align: center;
  font-size: 12px;
  padding: 6px;
  border-radius: 4px;
}
.match .more:hover { color: var(--accent); background: var(--bg-panel); }

/* ------------------------------------------------------------
   GAME GRID (casino / slots)
------------------------------------------------------------ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--bg-panel);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(20,40,70,.1);
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,40,70,.25); }
.game-thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #10273a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; text-align: center;
  padding: 10px;
  font-size: 14px;
  overflow: hidden;
}
.game-thumb.no-overlay-text .g-emoji,
.game-thumb.no-overlay-text .g-title,
.game-thumb.no-overlay-text .g-sub { display: none; }
.game-thumb .g-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
  position: relative;
  z-index: 1;
}
.game-thumb .g-title {
  position: relative;
  z-index: 1;
  font-size: 13px;
  letter-spacing: .3px;
  line-height: 1.15;
}
.game-thumb .g-sub {
  position: relative;
  z-index: 1;
  font-size: 9px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-card .badge-top {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--danger);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
  letter-spacing: .5px;
}
.game-card .badge-top.new { background: var(--accent); }
.game-card .badge-top.jack { background: var(--gold); color: #402c00; }

.game-card .fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  z-index: 3;
  opacity: 0;
  transition: all .15s;
}
.game-card:hover .fav-btn { opacity: 1; }
.game-card .fav-btn:hover, .game-card .fav-btn.on {
  color: #ff4d6d;
  background: rgba(0,0,0,.55);
}

.game-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85));
  opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 10px;
  transition: opacity .18s;
}
.game-card:hover .overlay { opacity: 1; }
.game-card .overlay .g-name { color: #fff; font-weight: 700; text-align: center; font-size: 14px; }
.game-card .overlay .g-provider { color: rgba(255,255,255,.75); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.game-card .overlay .btn { min-width: 90px; justify-content: center; }

/* Audit fix #1 : gradient plus haut & plus opaque pour couvrir totalement
   les logos "Megaways" / "1 Million" qui se trouvent en bas des images de jeux */
.game-card .card-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 10px 8px;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.55) 40%,
    rgba(0,0,0,.92) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.game-card .card-name {
  position: absolute;
  bottom: 30px; left: 10px; right: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,1);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .card-footer .provider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.game-thumb.g1 { background: linear-gradient(135deg,#7b1fa2,#e91e63); }
.game-thumb.g2 { background: linear-gradient(135deg,#0d47a1,#00bcd4); }
.game-thumb.g3 { background: linear-gradient(135deg,#f57c00,#ffca28); color:#3a1f00; text-shadow:none; }
.game-thumb.g4 { background: linear-gradient(135deg,#2e7d32,#8bc34a); }
.game-thumb.g5 { background: linear-gradient(135deg,#b71c1c,#ff5722); }
.game-thumb.g6 { background: linear-gradient(135deg,#4527a0,#7c4dff); }
.game-thumb.g7 { background: linear-gradient(135deg,#004d40,#26a69a); }
.game-thumb.g8 { background: linear-gradient(135deg,#37474f,#78909c); }
.game-thumb.g9 { background: linear-gradient(135deg,#880e4f,#ff4081); }
.game-thumb.g10{ background: linear-gradient(135deg,#1a237e,#3949ab); }
.game-thumb.g11{ background: linear-gradient(135deg,#bf360c,#ff9800); }
.game-thumb.g12{ background: linear-gradient(135deg,#1b5e20,#4caf50); }

/* ------------------------------------------------------------
   BETSLIP
------------------------------------------------------------ */
.betslip h4 {
  color: var(--text); font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.betslip h4 .count-pill {
  background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 10px;
  font-size: 12px;
}
.betslip .empty {
  text-align: center;
  color: var(--text-mute);
  padding: 40px 12px;
  font-size: 13px;
}
.betslip .empty-ico { font-size: 40px; margin-bottom: 8px; color: var(--bg-elev); }

.slip-item {
  background: var(--bg-panel);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  position: relative;
}
.slip-item .rm {
  position: absolute; top: 6px; right: 6px;
  color: var(--text-mute); font-size: 14px;
}
.slip-item .rm:hover { color: var(--danger); }
.slip-item .pick { font-size: 12px; color: var(--accent-2); font-weight: 700; margin-bottom: 2px; }
.slip-item .match-name { font-size: 12px; color: var(--text-soft); margin-bottom: 4px; }
.slip-item .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute); }
.slip-item .row b { color: var(--text); }

.slip-stake {
  margin-top: 10px;
  display: flex; align-items: center; gap: 6px;
}
.slip-stake input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}
.slip-summary {
  padding: 8px 0;
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
  margin-top: 8px;
}
.slip-summary .row {
  display: flex; justify-content: space-between;
  color: var(--text-soft); padding: 4px 0;
  font-size: 13px;
}
.slip-summary .row.total b { color: var(--accent); font-size: 15px; }

.slip-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.slip-quick button {
  padding: 5px;
  background: var(--bg-panel);
  color: var(--text-soft);
  border-radius: 3px;
  font-size: 11px;
}
.slip-quick button:hover { background: var(--bg-hover); color: var(--text); }

/* ------------------------------------------------------------
   PROMO CARDS
------------------------------------------------------------ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.promo-card {
  background: var(--bg-dark);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card .promo-img {
  height: 140px;
  background: linear-gradient(135deg,#1e5799,#2ea62c);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px;
  padding: 12px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.promo-card:nth-child(2) .promo-img { background: linear-gradient(135deg,#7b1fa2,#e91e63); }
.promo-card:nth-child(3) .promo-img { background: linear-gradient(135deg,#f57c00,#ffca28); color:#3a1f00; text-shadow:none;}
.promo-card:nth-child(4) .promo-img { background: linear-gradient(135deg,#00695c,#4caf50); }
.promo-card:nth-child(5) .promo-img { background: linear-gradient(135deg,#b71c1c,#ff5722); }
.promo-card:nth-child(6) .promo-img { background: linear-gradient(135deg,#1a237e,#00bcd4); }
.promo-card:nth-child(7) .promo-img { background: linear-gradient(135deg,#4a148c,#ba68c8); }
.promo-card:nth-child(8) .promo-img { background: linear-gradient(135deg,#3e2723,#8d6e63); }

.promo-card .promo-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.promo-card h4 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.promo-card p { color: var(--text-soft); font-size: 13px; margin-bottom: 12px; flex: 1; }

/* ------------------------------------------------------------
   AUTH FORMS
------------------------------------------------------------ */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - var(--subnav-h) - 30px);
  display: flex; align-items: center; justify-content: center;
  padding: 30px 16px;
  background: linear-gradient(135deg,#eef4fa,#e0edf5);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-dark);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 22px; color: var(--text); text-align: center;
  margin-bottom: 6px;
}
.auth-card .subtitle {
  text-align: center; color: var(--text-soft);
  margin-bottom: 20px; font-size: 13px;
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 12px;
  color: var(--text-soft); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .3px;
}
.form-control {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
}
.form-control:focus { border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 3px rgba(10,143,60,.12); }
.form-control::placeholder { color: var(--text-mute); }

.form-row-check {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-size: 13px;
  margin-bottom: 14px;
}
.form-row-check a { color: var(--accent-2); }
.form-error {
  color: var(--danger); font-size: 12px; margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }
.form-control.invalid { border-color: var(--danger); }

.form-input-group {
  position: relative;
}
.form-input-group .toggle-pass {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 14px;
}

.form-help {
  text-align: center; margin-top: 14px;
  color: var(--text-soft); font-size: 13px;
}
.form-help a { color: var(--accent-2); font-weight: 600; }

.form-social {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-top: 14px;
}
.form-social button {
  padding: 10px;
  background: var(--bg-panel);
  border-radius: 5px;
  color: var(--text-soft);
  font-size: 18px;
  transition: background .15s;
}
.form-social button:hover { background: var(--bg-hover); color: var(--accent); }
.form-divider {
  text-align: center; color: var(--text-mute);
  font-size: 12px; margin: 16px 0 8px;
  position: relative;
}
.form-divider::before, .form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--line-soft);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ------------------------------------------------------------
   MODAL
------------------------------------------------------------ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow);
  max-height: 92vh;
  overflow-y: auto;
}
.modal .close {
  position: absolute;
  top: 10px; right: 12px;
  color: var(--text-mute);
  font-size: 22px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.modal .close:hover { color: var(--danger); background: var(--bg-panel); }
.modal h2 {
  color: var(--text); text-align: center;
  margin-bottom: 14px; font-size: 20px;
}

/* ------------------------------------------------------------
   LIVE PAGE
------------------------------------------------------------ */
.live-indicator {
  display: inline-flex;
  align-items: center; gap: 6px;
  background: var(--danger);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}
.live-indicator::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

/* ------------------------------------------------------------
   SEARCH BAR (slots/casino)
------------------------------------------------------------ */
.search-bar {
  padding: 0;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: transparent;
  border: none;
}
.search-bar input {
  flex: 0 0 auto;
  width: 280px;
  max-width: 100%;
  padding: 9px 14px 9px 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8ba0' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m21 21-3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  transition: all .15s;
}
.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,143,60,.12);
  width: 320px;
}
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.filter-chips button {
  padding: 7px 14px;
  background: transparent;
  border-radius: 20px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.filter-chips button:hover {
  background: var(--bg-panel);
  color: var(--text);
}
.filter-chips button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(10,143,60,.3);
}
.filter-chips button.active:hover { background: var(--accent-2); color: #fff; }

@media (max-width: 768px) {
  .search-bar input { width: 100%; }
  .search-bar input:focus { width: 100%; }
  .filter-chips { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-chips button { flex-shrink: 0; }
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.footer {
  background: #f0f4f8;
  padding: 30px 16px 20px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-col h5 {
  color: var(--text); font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.footer-col ul li a {
  display: block;
  color: var(--text-soft);
  padding: 4px 0;
  font-size: 13px;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mute);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.payments {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.payments span {
  background: #ffffff;
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.socials {
  display: flex; gap: 8px;
}
.socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 15px;
  border: 1px solid var(--line);
}
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.responsible {
  color: var(--text-mute);
  font-size: 11px;
  padding-top: 8px;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* ------------------------------------------------------------
   FULL-PAGE IFRAME WRAPPER (sports page)
------------------------------------------------------------ */
.iframe-wrap {
  width: 100%;
  height: calc(100dvh - var(--header-h) - var(--subnav-h) - 30px);
  background: #16334f;
  position: relative;
}
.iframe-wrap iframe,
.iframe-wrap .sport-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.iframe-wrap .iframe-loading {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  pointer-events: none;
  z-index: 0;
}
/* === PAGE SPORT : LOCK BODY SCROLL === */
html:has(.iframe-wrap),
body:has(.iframe-wrap),
html:has(.sport-iframe),
body:has(.sport-iframe) {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body:has(.iframe-wrap) .footer,
body:has(.sport-iframe) .footer { display: none !important; }

@media (max-width: 900px) {
  .iframe-wrap {
    height: calc(100dvh - var(--header-h) - var(--subnav-h, 0px) - 56px) !important;
  }
  body:has(.iframe-wrap) .mobnav,
  body:has(.sport-iframe) .mobnav {
    padding: 2px 0 max(2px, env(safe-area-inset-bottom)) !important;
  }
  body:has(.iframe-wrap) .mobnav a,
  body:has(.iframe-wrap) .mobnav__btn,
  body:has(.iframe-wrap) .mobnav__menubtn,
  body:has(.sport-iframe) .mobnav a,
  body:has(.sport-iframe) .mobnav__btn,
  body:has(.sport-iframe) .mobnav__menubtn {
    padding: 4px 4px !important;
    gap: 1px !important;
    font-size: 9px !important;
  }
  body:has(.iframe-wrap) .mobnav a i,
  body:has(.iframe-wrap) .mobnav__btn i,
  body:has(.sport-iframe) .mobnav a i,
  body:has(.sport-iframe) .mobnav__btn i {
    font-size: 15px !important;
  }
}

/* ------------------------------------------------------------
   PROVIDERS GRID
------------------------------------------------------------ */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  background: #16334f;
  padding: 10px;
  border-radius: 8px;
}
.provider-card {
  background: #1e4a72;
  border: 1px solid #22537a;
  border-radius: 6px;
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.provider-card:hover {
  background: #245b8a;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.provider-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .15s;
}
.provider-card:hover img { transform: scale(1.05); }

.providers-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px;
  background: #16334f;
  border-radius: 8px;
  /* Audit fix #14 : scrollbar cachée (Firefox + Chromium) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.providers-strip::-webkit-scrollbar { display: none; height: 0; width: 0; }
.providers-strip .provider-card {
  flex: 0 0 110px;
  aspect-ratio: 5 / 3;
}

@media (max-width: 1200px) { .providers-grid { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 992px)  { .providers-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 768px)  { .providers-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (max-width: 480px)  { .providers-grid { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------
   PAGE TITLE BAR (casino / slots pages)
------------------------------------------------------------ */
.page-title-bar {
  background: #1e4a72;
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #0f2740;
}
.page-title-bar .crumb {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.page-title-bar .crumb a { color: rgba(255,255,255,.7); }
.page-title-bar .crumb a:hover { color: #fff; }
.page-title-bar .page-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-title-bar .page-search {
  position: relative;
  width: 220px;
}
.page-title-bar .page-search input {
  width: 100%;
  padding: 6px 30px 6px 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.page-title-bar .page-search input::placeholder { color: rgba(255,255,255,.5); }
.page-title-bar .page-search input:focus { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.page-title-bar .page-search::after {
  content: "🔍";
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.6);
  pointer-events: none;
  font-size: 12px;
}

/* ------------------------------------------------------------
   LEFT ICON RAIL (desktop shortcut column - collapsible)
------------------------------------------------------------ */
.icon-rail {
  width: 52px;
  background: #16334f;
  border-right: 1px solid #0f2740;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
  transition: width .25s ease;
}
.icon-rail.open {
  width: 210px;
  padding: 8px 8px;
}
.icon-rail button {
  height: 40px;
  width: 100%;
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .15s, color .15s;
  position: relative;
  padding: 0;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
}
.icon-rail.open button {
  justify-content: flex-start;
  padding: 0 12px;
}
.icon-rail button:hover,
.icon-rail button.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.icon-rail button .rail-label {
  font-size: 13px;
  font-weight: 500;
  display: none;
  color: inherit;
}
.icon-rail.open button .rail-label {
  display: inline-block;
}
.icon-rail button .tip {
  position: absolute;
  left: 100%; margin-left: 8px;
  background: #16334f;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
  z-index: 5;
}
.icon-rail:not(.open) button:hover .tip { opacity: 1; }
.icon-rail.open button .tip { display: none; }
.icon-rail .toggle-rail { color: #fff; }
.icon-rail button .ic,
.icon-rail .toggle-rail .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.icon-rail .toggle-rail .ico {
  transition: transform .25s ease;
  font-weight: 700;
  font-size: 20px;
}
.icon-rail.open .toggle-rail .ico { transform: rotate(180deg); }

.casino-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h) - var(--subnav-h) - 30px);
  align-items: stretch;
  position: relative;
}
.casino-layout::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 52px;
  background: #16334f;
  pointer-events: none;
  z-index: 0;
  transition: width .25s ease;
}
.casino-layout:has(.icon-rail.open)::before { width: 210px; }
.casino-layout .content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.casino-layout .icon-rail {
  position: sticky;
  top: calc(30px + var(--header-h) + var(--subnav-h));
  align-self: flex-start;
  max-height: calc(100vh - 30px - var(--header-h) - var(--subnav-h));
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 50;
}
.casino-layout .icon-rail::-webkit-scrollbar { width: 4px; }
.casino-layout .icon-rail::-webkit-scrollbar-thumb { background: #22537a; border-radius: 2px; }
@media (max-width: 992px) {
  .casino-layout::before { display: none; }
}

/* ------------------------------------------------------------
   MOBILE SIDEBAR HEADER + SEARCH + APP PROMO
------------------------------------------------------------ */
.sidebar .sidebar-topbar {
  display: none;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.sidebar .sidebar-topbar .left-cluster {
  display: flex; gap: 4px; align-items: center;
}
.sidebar .sidebar-topbar .lang-btn,
.sidebar .sidebar-topbar .ico-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
}
.sidebar .sidebar-topbar .lang-btn:hover,
.sidebar .sidebar-topbar .ico-btn:hover { background: var(--bg-panel); }
.sidebar .sidebar-topbar .ico-btn {
  padding: 8px;
  font-size: 16px;
  width: 38px; height: 38px;
  justify-content: center;
  background: var(--bg-panel);
}
.sidebar .sidebar-topbar .topbar-actions { display: flex; gap: 8px; align-items: center; }
.sidebar .sidebar-topbar .close-drawer {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--text);
  border-radius: 6px;
  background: transparent;
}
.sidebar .sidebar-topbar .close-drawer:hover { background: var(--bg-panel); color: var(--danger); }

.sidebar-app-promo {
  display: none;
  padding: 16px;
  background: #eef2f7;
  border-bottom: 1px solid var(--line);
}
.sidebar-app-promo h6 {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase;
}
.sidebar-app-promo h6 .doc-ico {
  width: 30px; height: 36px;
  background: linear-gradient(135deg, #1e4a72, #16334f);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  position: relative;
  clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 0 100%);
}
.sidebar-app-promo .app-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-app-promo .app-btns a {
  padding: 12px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sidebar-app-promo .app-btns a:hover { background: var(--accent-2); color: #fff; }

.sidebar-search {
  display: none;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.sidebar-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a8ba0' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m21 21-3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.sidebar-search input:focus { background-color: #fff; border-color: var(--accent); }

/* ------------------------------------------------------------
   HELPERS
------------------------------------------------------------ */
.chip {
  display: inline-block;
  background: var(--bg-panel);
  color: var(--text-soft);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.chip.hot { background: var(--danger); color: #fff; }
.chip.new { background: var(--accent); color: #fff; }
.chip.gold { background: var(--gold); color: #402c00; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

.card {
  background: var(--bg-dark);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

/* Mobile bottom-nav */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: #16334f;
  border-top: 1px solid #0f2740;
  z-index: 90;
  padding: 6px 0 8px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  gap: 0;
}
.mobile-tabbar a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
  position: relative;
  transition: color .15s;
  padding: 4px 2px;
}
.mobile-tabbar a .ic {
  font-size: 20px;
  line-height: 1;
  color: #7ea9d1;
  transition: color .15s, transform .18s ease;
}
.mobile-tabbar a:hover { color: #fff; }
.mobile-tabbar a:hover .ic { color: #a5c4e0; }
.mobile-tabbar a.active { color: #ffffff; font-weight: 600; }
.mobile-tabbar a.active .ic { color: #ffffff; }

.mobile-tabbar a.tab-center {
  flex: 0 0 auto;
  min-width: 72px;
  color: #ffffff;
  font-weight: 700;
}
.mobile-tabbar a.tab-center .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a8dff 0%, #1976d2 100%);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(30,144,255,.4), inset 0 -2px 4px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mobile-tabbar a.tab-center:hover .ic {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(30,144,255,.55), inset 0 -2px 4px rgba(0,0,0,.15);
}


/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 210px; --betslip-w: 260px; }
  .hero-slide h2 { font-size: 28px; }
  .hero-slide .amount { font-size: 34px; }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .icon-rail { display: none; }
  .page-title-bar .page-search { display: none; }
  .sidebar {
    position: fixed;
    top: -100vh; left: 0; right: 0;
    height: 100vh;
    width: 100%;
    max-width: 460px;
    z-index: 150;
    transition: top .3s ease;
    overflow-y: auto;
    padding-top: 0;
    background: #ffffff;
    border-right: none;
  }
  .sidebar .sidebar-topbar { display: flex; }
  .sidebar .sidebar-app-promo { display: block; }
  .sidebar .sidebar-search { display: block; }
  .sidebar.open { top: 0; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 140;
  }
  .sidebar-backdrop.open { display: block; }
  .betslip { display: none; }
  .main-nav { display: none; }
  .burger { display: flex; }
  .subnav a { font-size: 12px; padding: 6px 10px; }
  .hero-slide { padding: 30px 24px; }
  .hero-slide h2 { font-size: 24px; }
  .hero-slide p { font-size: 13px; }
  .hero-slide .amount { font-size: 28px; }
}

@media (max-width: 768px) {
  .topbar .container > div:first-child { display: none; }
  .header { padding: 0 10px; }
  .brand { font-size: 18px; }
  .brand .logo-mark { width: 32px; height: 32px; font-size: 12px; }
  .btn { padding: 6px 12px; font-size: 12px; }
  .content { padding: 10px; padding-bottom: 80px; }
  body { padding-bottom: 0; }
  .footer { margin-bottom: 70px; }
  .mobile-tabbar { display: flex; }
  .hero-slides, .hero { min-height: 190px; }
  .hero-slides { height: 190px; }
  .hero-slide { padding: 20px 18px; }
  .hero-slide .hero-copy { max-width: 100%; }
  .hero-slide h2 { font-size: 20px; }
  .hero-slide .amount { font-size: 24px; }
  .match {
    grid-template-columns: 55px 1fr;
    gap: 8px;
    padding: 10px;
  }
  .match .odd, .match .more { display: none; }
  .match-mobile-odds {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 40px;
    gap: 6px;
    margin-top: 8px;
  }
  .match-mobile-odds .odd, .match-mobile-odds .more { display: flex; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .promo-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px; }
}

@media (max-width: 480px) {
  .brand .brand-name { font-size: 15px; }
  .header-actions .btn { padding: 6px 10px; font-size: 11px; }
  .subnav a .label { display: none; }
  .subnav a { padding: 8px; }
  .subnav a .icon { font-size: 18px; }
  .hero-slide h2 { font-size: 17px; }
}
@media (max-width: 380px) {
  .header-actions .btn { padding: 6px 8px; font-size: 10px; letter-spacing: 0; }
  .brand .brand-name { font-size: 13px; }
  .brand .logo-mark { width: 28px; height: 28px; font-size: 11px; }
  .header { padding: 0 6px; }
}

/* ============================================================
   PAYMENT / WITHDRAW (portage complet depuis forzza — palette 1xbet vert+bleu)
   Ces styles étaient manquants dans le 1xbet → pay-method invisible,
   quick-amounts sans style, summary transparent, boutons btn--primary/block cassés
   ============================================================ */

/* Btn variants — utilisés partout dans payment & modals */
.btn--primary {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff;
    border: 1px solid var(--accent);
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--t);
    text-decoration: none;
    box-shadow: 0 2px 8px var(--teal-glow);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 4px 14px var(--teal-glow); color: #fff; }
.btn--primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn--ghost {
    background: var(--bg-2);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--t);
}
.btn--ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn--block { width: 100%; }

/* Info banner (payment unavailable, warnings inline) */
.info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(25,118,210,0.08);
    border: 1px solid rgba(25,118,210,0.25);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 14px;
}
.info-banner i { color: var(--blue); font-size: 16px; flex-shrink: 0; }

/* Summary (deposit/withdraw résumé montant + frais) */
.summary {
    background: var(--bg-2);
    border-radius: var(--r-md);
    padding: 14px 18px;
    border: 1px solid var(--border-soft);
}
.summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.summary__row strong { color: var(--text-primary); font-weight: 800; font-size: 14px; }
.summary__row--total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px dashed var(--border);
}
.summary__row--total strong {
    color: var(--accent);
    font-size: 18px;
}

/* Payment groups (Locale / International / Tappy) — accordéon */
.pay-group { border-bottom: 1px solid var(--border-soft); }
.pay-group:last-child { border-bottom: 0; }
.pay-group__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    cursor: pointer;
    transition: background var(--t);
}
.pay-group__head:hover { background: var(--bg-2); }
.pay-group__head > span { display: flex; align-items: center; gap: 10px; }
.pay-group__head > i { color: var(--accent); font-size: 12px; }
.pay-group__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    color: var(--accent);
    width: 28px; height: 18px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
}
.pay-group__body { padding: 6px 22px 18px; }

/* Grid des méthodes de paiement */
.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* Card d'une méthode de paiement (D17, Tappy, USDT, etc.) */
.pay-method {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--t);
    min-height: 64px;
}
.pay-method:hover { background: var(--bg-hover); }
.pay-method.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 6px 18px var(--teal-glow);
    background: linear-gradient(180deg, var(--teal-soft), transparent), var(--bg-2);
}
.pay-method__icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    flex-shrink: 0;
}
.pay-method__icon img { width: 24px; height: 24px; object-fit: contain; }
.pay-method__body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.pay-method__body strong { color: var(--text-primary); font-size: 14px; font-weight: 700; }
.pay-method__body small { color: var(--text-muted); font-size: 11px; }
.pay-method__check {
    position: absolute;
    top: 8px; right: 10px;
    color: var(--accent);
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--t);
}
.pay-method.is-selected .pay-method__check { opacity: 1; }

/* Quick amounts (50 / 100 / 200 / 500 / 1000) */
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.quick-amounts__btn {
    padding: 8px 16px;
    background: var(--bg-2);
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t);
}
.quick-amounts__btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.quick-amounts__btn.is-active {
    background: var(--teal-soft);
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   HISTORY / SEARCH / TABLES / FILTERS — utilisés dans Historique
   ============================================================ */
.hpage-search, .hpage-search input[type="text"] {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    width: 100%;
}
.hpage-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--teal-glow); }

/* Boutons pagination bleus */
.pager-btn, .btn--pager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px; height: 32px;
    padding: 0 10px;
    background: var(--bg-2);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.pager-btn.is-active, .btn--pager.is-active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   HISTORY TABLES (.tbl / .tbl-wrap / casino-filters tabs)
   Utilisées dans /history/{payments,sessions,casino,sport,activity}
   ============================================================ */
.tbl-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: #fff;
}
.tbl thead th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-2);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.tbl tbody td {
    padding: 12px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
    line-height: 1.4;
}
.tbl tbody tr:hover td { background: var(--bg-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
/* Cellules avec IPs / codes / IDs → monospace lisible */
.tbl td[style*="monospace"], .tbl .mono {
    font-family: "SF Mono", "Consolas", "Monaco", monospace;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
}
/* Statuts (badges pill) */
.tbl .status-pill, .tbl .badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tbl .status-pill--success, .tbl .status-pill.completed { background: rgba(10,143,60,.12); color: var(--accent); }
.tbl .status-pill--pending, .tbl .status-pill.pending    { background: rgba(255,152,0,.12); color: var(--warn); }
.tbl .status-pill--failed, .tbl .status-pill.failed      { background: rgba(229,57,53,.12); color: var(--danger); }

/* Casino filters (tabs : Paiements / Casino / Sport / Sessions / Activité) */
.casino-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 4px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
}
.filter-tab:hover { background: rgba(0,0,0,.04); color: var(--text-primary); }
.filter-tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px var(--teal-glow);
}
.filter-tab.is-active i { color: #fff; }
.filter-tab i { color: var(--text-muted); font-size: 12px; }

@media (max-width: 640px) {
    .tbl thead th, .tbl tbody td { padding: 10px 12px; font-size: 12px; }
    .filter-tab { padding: 6px 12px; font-size: 12px; }
    .filter-tab i { display: none; }
}

