:root {
  --bg: #0f1216;
  --panel: #151922;
  --panel-2: #10151d;
  --muted: #9096a3;
  --text: #e8ecf3;
  --accent: #b6ff3b;
  --accent-2: #8ee500;
  --red: #ff6575;
  --green: #86ff00;
  --outline: #232937;
  --radius: 16px;
  --r-lg: 20px;
  --gap: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --font: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: linear-gradient(160deg, #0e1116, #0c1016);
  color: var(--text);
  font-family: var(--font)
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #0f1216;
  overscroll-behavior: none;
}

/* iOS Safari fix */
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: #0f1216;
}

/* PWA / Standalone */
@media (display-mode: standalone) {
  html,
  body {
    background-color: #0f1216;
  }
}
.container {
  padding: 12px 14px 96px;
  max-width: 560px;
  margin: 0 auto
}

.i {
  display: inline-block;
  width: 1em;
  height: 1em
}

.i-16 {
  width: 16px;
  height: 16px
}

.i-20 {
  width: 20px;
  height: 20px
}

.i-22 {
  width: 22px;
  height: 22px
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  background: rgba(16, 20, 28, 0.88);

  /* ⚠️ backdrop-filter cause principale du jitter */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-bottom: 1px solid var(--outline);

  /* 🔑 empêche le repaint pendant le scroll */
  transform: translateZ(0);
  will-change: transform;
}
body.is-scrolling .topbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body {
  padding-top: 64px; /* ajuste selon la hauteur réelle du header */
}
html {
  -webkit-overflow-scrolling: touch;
}


.brand {
  display: flex;
  align-items: center;
  gap: 8px
}

.logo {
  font-weight: 700
}

.balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end
}

.balance .amount {
  color: var(--accent)
}

.actions {
  display: flex;
  gap: 8px
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--outline);
  color: var(--text);
  display: grid;
  place-items: center
}


/* Keep text button visually aligned with icon button */
.actions .btn.sm {
  height: 36px;
  display: inline-flex;
  align-items: center
}

.search-wrap {
  margin: 10px 0 8px
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 10px 12px
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px
}

.lives {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  overflow-x: auto;
  gap: 12px;
  padding: 6px 2px 12px
}

.live-tile {
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow)
}

.live-tile header {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.live-tile .teams {
  font-weight: 600
}

.live-tile .league {
  color: var(--muted);
  font-size: 12px
}

.live-tile .score {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  font-size: 12px;
  color: var(--muted)
}

.badge.live {
  color: #0f0;
  background: rgba(134, 255, 0, .08);
  border-color: #224a1d
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: #2a2f3a;
  color: var(--text);
  font-weight: 600
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--outline)
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0c0f14
}

.btn.lg {
  padding: 14px 18px;
  border-radius: 16px
}

.btn.sm {
  padding: 8px 12px;
  border-radius: 10px
}

.btn.xs {
  padding: 6px 8px;
  border-radius: 8px
}

.btn.pill {
  border-radius: 999px
}

.popular-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px
}

.link {
  color: var(--muted);
  text-decoration: none
}

.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 8px
}

.chip {
  border: 1px solid var(--outline);
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px
}

.chip.active {
  background: rgba(182, 255, 59, .12);
  border-color: #2f3c19;
  color: #d9ff92
}

.matches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 10px
}

.match-card {
  background: var(--panel-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow)
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.match-meta .league {
  color: var(--muted);
  font-size: 12px
}

.view-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px
}

.teams-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.team {
  display: flex;
  align-items: center;
  gap: 8px
}

.team .name {
  font-weight: 600
}

.team .score {
  margin-left: auto;
  font-weight: 700
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3bd3ff
}

.dot.red {
  background: #ff8a8a
}

.odds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px
}

.odd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: #1a202b;
  color: var(--text);
  font-weight: 700
}

.odd.active {
  outline: 2px solid var(--accent);
  background: #1e2a19
}

.betslip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 9;
  max-width: 560px;
  margin-inline: auto
}

.betslip-toggle {
  width: calc(100% - 24px);
  margin: 0 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1d2515, #11170d);
  border: 1px solid #2b3b1b;
  color: #c9f78f;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 16px
}

.betslip .chip {
  background: #1a2a0f;
  border-color: #2b3b1b;
  color: #bfff5b
}

.betslip-body {
  margin: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow)
}

.sel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto
}

.sel {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #151c25;
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 10px
}

.sel .meta {
  display: flex;
  flex-direction: column
}

.sel .price {
  margin-left: auto;
  font-weight: 700
}

.sel .remove {
  background: transparent;
  border: 0;
  color: var(--muted)
}

.stake-row,
.payout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px
}

.stake-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f1216;
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 8px 10px
}

.stake-input input {
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
  font-size: 16px;
  width: 120px
}

.payout-row strong {
  font-size: 18px
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 20, 28, .9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--outline);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 5px 5px;
  z-index: 10;
  border-radius: 5%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.nav-item.active {
  color: var(--accent)
}

.nav-item.center {
  transform: translateY(-18px)
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0c0f14;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(175, 255, 77, .25)
}

.badge-dot {
  position: absolute;
  margin-top: -34px;
  margin-left: 32px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #0c0f14
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: #10161f;
  border: 1px solid var(--outline);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  max-width: 90%;
  text-align: center
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px)
}

@media (min-width:561px) {

  .bottom-nav,
  .betslip {
    left: calc(50% - 280px);
    right: calc(50% - 280px)
  }
}



/* ===========================
   SAFE — CARD UI COMPLET
   =========================== */
:root {
  --safe-card-bg: url("https://media.istockphoto.com/id/540383298/vector/football-championship-background.jpg?s=612x612&w=0&k=20&c=Fr9lnjEjVDX7VU1yEpnb7F5mR3THYswQtiAmG_aX3tU=");
  --safe-card-bg-opacity: 0.06;
  /* très pâle */
}

/* S'assurer que la card peut accueillir la couche */
.safe-card {
  position: relative;
  overflow: hidden;
  /* garde les bords arrondis pour le fond */
}

/* Calque image de fond pâle */
.safe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--safe-card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--safe-card-bg-opacity);
  filter: grayscale(100%) contrast(85%) brightness(120%);
  /* adoucit l'image */
  pointer-events: none;
  /* option: léger flou si tu veux encore lisser */
  /* backdrop-filter ne s'applique pas ici; on évite blur pour perfs mobiles */
}

/* Le contenu reste au-dessus du fond */
.safe-card>* {
  position: relative;
  z-index: 1;
}

/* Accessibilité: si l’utilisateur préfère moins d’effets, on réduit encore */
@media (prefers-reduced-transparency: reduce) {
  .safe-card::before {
    opacity: 0.03;
  }
}

/* Card premium (hover perceptible) */
.safe-card {
  background: linear-gradient(180deg, #111621, #0f141d);
  border: 1px solid #1e2736;
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.safe-card:hover {
  transform: translateY(-1px);
  border-color: #2a3a52;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42);
}

.safe-card.disabled {
  opacity: .6;
  filter: saturate(.6);
  pointer-events: none
}

/* Header: heure (gauche) / compétition (droite) */
.safe-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.safe-meta .time {
  font-weight: 700;
  color: var(--text);
  letter-spacing: .2px
}

.safe-meta .league {
  opacity: .9
}

/* Bloc central: logos + noms centrés */
.safe-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 10px;
}

.safe-center .vs {
  color: var(--muted);
  font-weight: 600
}

.safe-center .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 96px
}

.crest-lg {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.team-name {
  font-weight: 700;
  line-height: 1.1
}

/* Odds: pas de modification fonctionnelle; on garde un léger resserrage visuel local */
.safe-card .odds-row {
  gap: 10px;
  margin-top: 12px
}

.safe-card .odd {
  background: #18212b;
  border-color: #263041;
  border-radius: 14px;
  padding: 10px
}

.safe-card .odd:disabled {
  opacity: .5
}

.safe-footer .btn.search.safe-search.block {
  width: 100%
}

.safe-footer .btn.search.safe-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* TEXTE CENTRÉ */
  gap: 8px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s, transform .05s;
}

.safe-footer .btn.search.safe-search.accent {
  background: rgba(134, 255, 0, .08);
  border: 1px solid #224a1d;
  color: #0f0;
  margin-top: 10px;
}

.safe-footer .btn.search.safe-search.running {
  background: rgba(134, 255, 0, .08);
  border: 1px solid #224a1d;
  color: #0f0;
  box-shadow: 0 0 0 0 rgba(182, 255, 59, .35);
  animation: pulse-accent 1.2s ease-out infinite;
}

.safe-footer .btn.search.safe-search.success {
  background: linear-gradient(180deg, #9dff1a, #86ff00);
  border: 1px solid #385221;
  color: #0c0f14;
}

@keyframes pulse-accent {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 255, 59, .35)
  }

  70% {
    box-shadow: 0 0 0 12px rgba(182, 255, 59, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(182, 255, 59, 0)
  }
}

.safe-footer .btn.search.safe-search:disabled {
  opacity: .75;
  cursor: default;
  filter: saturate(.8);
}


/* Bouton Recherche Safebet — plein largeur + accent par défaut */
.safe-footer .btn.search.safe-search.block {
  width: 100%
}

.safe-footer .btn.search.safe-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s, transform .05s;
}



.safe-footer .btn.search.safe-search.accent:hover {
  filter: saturate(1.05) brightness(1.02)
}

.safe-footer .btn.search.safe-search.accent:active {
  transform: scale(.99)
}

.safe-footer .btn.search.safe-search.success {
  background: linear-gradient(180deg, #9dff1a, #86ff00);
  border: 1px solid #385221;
  color: #0c0f14;
}

@keyframes pulse-accent {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 255, 59, .35)
  }

  70% {
    box-shadow: 0 0 0 12px rgba(182, 255, 59, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(182, 255, 59, 0)
  }
}

/* Accessibilité/états */
.safe-footer .btn.search.safe-search:disabled {
  opacity: .7;
  cursor: default;
  filter: saturate(.7)
}

.safe-card[aria-busy="true"] .safe-footer .btn.search.safe-search {
  pointer-events: none
}

/* card gagnée: bord plus vert + légère mise en avant */
.safe-card.won {
  border-color: #2e4b1d !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
  filter: none;
  opacity: 1;
}

/* ruban SAFE GAGNÉ en haut-gauche */
.safe-card.won::after,
.safe-card[data-safe-status="won"]::after {
  content: "SAFE WON";
  position: absolute;
  top: 10px;
  left: -36px;
  transform: rotate(-12deg);
  background: linear-gradient(180deg, #9dff1a, #86ff00);
  color: #0c0f14;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .6px;
  padding: 6px 38px;
  border-radius: 999px;
  border: 1px solid #31461f;
  box-shadow: 0 6px 16px rgba(134, 255, 0, .18);
  z-index: 1;
}

/* bouton visuel “won” */

.safe-footer .btn.search.safe-search.won {
  margin-top: 10px;
  background: linear-gradient(180deg, #9dff1a, #86ff00) !important;
  border: 1px solid #385221 !important;
  color: #0c0f14 !important;
}

.safe-footer .btn.search.safe-search.won:disabled {
  opacity: 1;
  filter: none
}

/* quand gagné: empêcher interaction avec les cotes */
.safe-card.won .odd {
  opacity: .6;
  pointer-events: none
}

/* Banner */
.ad-banner {
  margin: 12px -14px;
  /* étire jusqu’aux bords de l’écran */
}

.ad-banner img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -90px;
}

/* =========================
   Footer – KeeperX
========================= */

.site-footer {
  background: linear-gradient(180deg, #0e1218, #0c1016);
  border-top: 1px solid #141a23;
  color: #e5e7eb;
  font-family: inherit;
  
}

/* Layout */
.footer-top {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-brand small {
  font-size: 12px;
  color: #9ca3af;
}

/* About */
.site-footer .about {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}

/* Sponsors */
.sponsor-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.sponsor-strip img {
  height: 26px;
  width: auto;
  opacity: .85;
  filter: grayscale(100%);
}

/* Preferences */
.prefs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.select {
  background: #121722;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Trust badges */
.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.badge-18 {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #ff9aa5;
  background: rgba(255, 0, 0, .15);
}

.badge-ssl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  color: #d9ff92;
  background: rgba(134, 255, 0, .08);
}

.badge-ssl .i {
  width: 14px;
  height: 14px;
}

/* Legal */
.foot-legal {
  padding: 12px 14px 70px;
  background: #0b0f14;
  border-top: 1px solid #10161f;
  text-align: center;
}

.foot-legal p {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.foot-legal .disclaimer {
  margin-bottom: 6px;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Head banner — full-bleed inside .container (container has 14px horizontal padding) */
.banner-head {
  margin: -10px -14px 12px
}

/* stretch to screen edges */
.banner-head img {
  display: block;
  width: 100%;
  height: auto;
  /* keeps original aspect ratio */
  /* If you want a fixed height crop, uncomment below:
     height:160px; object-fit:cover; object-position:center; */
}



/* BET */
.bets-wrap {
  display: block
}

.bets-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 10px
}

.bets-toolbar h1 {
  font-size: 18px;
  margin: 0
}

.bets-toolbar .tabs {
  display: flex;
  gap: 8px;
  overflow: auto
}

.tab {
  border: 1px solid var(--outline);
  background: var(--panel);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px
}

.tab.active {
  background: rgba(182, 255, 59, .12);
  border-color: #2f3c19;
  color: #d9ff92
}

.bets-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.bet-card {
  background: var(--panel-2);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow)
}

.bet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.bet-head .time {
  font-size: 12px;
  color: var(--muted)
}

.bet-head .league {
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  font-size: 11px
}

.badge.won {
  color: #0f0;
  background: rgba(134, 255, 0, .08);
  border-color: #224a1d
}

.badge.lost {
  color: #ff9aa5;
  background: rgba(255, 0, 0, .08);
  border-color: #3a1e24
}

.badge.open {
  color: #c9d4e3;
  background: rgba(120, 140, 170, .08);
  border-color: #233044
}

.bet-body {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.fixture {
  flex: 1;
  min-width: 0
}

.fixture .names {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px
}

.fixture .team {
  font-weight: 700
}

.fixture .vs {
  color: var(--muted)
}

.fixture .market {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px
}

.fixture .chip {
  background: #131a24;
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 2px 8px;
  color: #cbd5e1;
  font-size: 11px
}

.fixture .odds {
  font-weight: 700;
  color: var(--text)
}

.amounts {
  min-width: 128px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.amounts .line {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.amounts .label {
  color: var(--muted);
  font-size: 12px
}

.amounts .value {
  font-weight: 700
}

.amounts .value.muted {
  color: var(--muted)
}

.amounts .value.green {
  color: #b6ff3b
}

.bet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  border-top: 1px dashed var(--outline);
  padding-top: 10px
}

.bet-foot .id {
  color: var(--muted);
  font-size: 12px
}

/* Empty state */
.empty-bets {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  background: var(--panel);
  border: 1px dashed var(--outline);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted)
}

/* Small screens tightening */
@media (max-width:360px) {
  .amounts {
    min-width: 110px
  }
}

/* =======================================================================
styles/main.css — Pagination styles (add near My Bets styles)
======================================================================= */
.pager-meta {
  margin: 8px 2px 6px;
  color: var(--muted);
  font-size: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--outline);
  color: var(--text);
}

.page-num.active {
  background: rgba(182, 255, 59, .12);
  border-color: #2f3c19;
  color: #d9ff92;
}

.page-btn.disabled {
  opacity: .5;
  pointer-events: none;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}


/* ============================================================================
   styles/main.css — Account page additions
   ============================================================================ */
.account-wrap {
  display: block
}

.account-card.v2 {
  background: #11161f;
  border: 1px solid #1f2a3a;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.accv2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.accv2-head .user-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #e9eef6
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2b3524, #1a2116);
  border: 1px solid #33431f;
  color: #d9ff92;
  font-weight: 700;
  font-size: 12px;
}

.accv2-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.accv2-info .label {
  display: block;
  color: #8f9bb0;
  font-size: 12px;
  margin-bottom: 6px
}

.accv2-info .amount {
  display: flex;
  align-items: flex-end;
  gap: 8px
}

.accv2-info .amount .i-18 {
  width: 18px;
  height: 18px;
  color: #b6ff3b
}

.accv2-info .amount .value {
  color: #b6ff3b;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.accv2-info .col.right {
  text-align: left
}

.accv2-info .last .value {
  color: #e9eef6;
  font-weight: 800;
  font-size: 16px;
  margin-right: 8px
}

.accv2-info .last .muted {
  color: #8893a6;
  font-size: 12px
}

/* Actions like screenshot: left = accent fill, right = red outline */
.accv2-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.btn.v2 {
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform .05s, filter .15s, background .2s, border-color .2s;
}

.btn.v2:active {
  transform: scale(.99)
}

.btn.v2.deposit {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #0c0f14;
  border-color: #33431f;
  box-shadow: 0 8px 22px rgba(182, 255, 59, .18);
}

.btn.v2.deposit:hover {
  filter: brightness(1.02)
}

.btn.v2.withdraw {
  background: transparent;
  color: #ff6575;
  border-color: #5a2730;
}

.btn.v2.withdraw:hover {
  background: rgba(255, 0, 0, .06)
}

/* Referral banner with CTA */
.ad-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

/* Image full width */
.ad-cta img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bouton positionné à gauche et centré verticalement */
.ad-cta .cta {
  position: absolute;
  left: 20px;
  top: 70%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #10053d;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.badge.won {
  color: #0f0;
  background: rgba(134, 255, 0, .08);
  border-color: #224a1d
}

.ad-cta .cta:hover {
  background: #0b0f14;
  color: #fff;
}


/* Stats */
.stats {
  margin: 14px 0
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.kpi {
  background: #131a24;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 10px
}

.kpi-label {
  color: var(--muted);
  font-size: 12px
}

.kpi-value {
  font-size: 16px;
  font-weight: 800;
  color: #b6ff3b;
}

.stats-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

/* ================================
   PROMOTIONS
================================ */

.promo {
  margin: 14px 0;
}

/* Slider */
.promo-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.promo-slider::-webkit-scrollbar {
  display: none;
}

/* Card */
.promo-card {
  min-width: 260px;
  background: #131a24;
  border: 1px solid var(--outline);
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Image (80%) */
.promo-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Badge */
.promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}

.promo-badge.live {
  background: #e74c3c;
}

.promo-badge.vip {
  background: #f1c40f;
  color: #000;
}

.promo-badge.reward {
  background: #2ecc71;
}

/* Body */
.promo-body {
  padding: 10px;
}

/* Texte */
.promo-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.promo-text strong {
  display: block;
  font-weight: 800;
  color: #fff;
}

/* Bouton badge */
.promo-action {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.promo-action:hover {
  opacity: 0.9;
}

/* ================================
   INDICATEUR SLIDE
================================ */

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
}

.dot.active {
  background: var(--accent);
}


/* Settings list */
.settings {
  margin: 10px 0 4px
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: #111721;
  border: 1px solid var(--outline);
  color: var(--text);
  font-weight: 600;
}

.setting-item .name {
  font-size: 14px
}

.setting-item .icon .i {
  width: 18px;
  height: 18px
}

.setting-item:hover {
  background: #151d2a;
  border-color: #2a3a52
}

.setting-item.danger {
  border-color: #3a1e24;
  color: #ff9aa5;
  background: rgba(255, 0, 0, .04)
}

.setting-item.danger:hover {
  background: rgba(255, 0, 0, .08)
}





/* =========================
   EARN PAGE
========================= */
.earn-rules {
  background: #0f1520;
  border: 1px solid #1f2937;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Toggle */
.rules-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.rules-toggle .chevron {
  width: 18px;
  height: 18px;
  transition: transform .3s ease;
}

.rules-toggle.active .chevron {
  transform: rotate(180deg);
}

/* Content */
.rules-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 16px;
}

/* Rule item */
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.rule-icon {
  font-size: 12px;
  line-height: 1.6;
  color: #22c55e;
  /* vert confiance */
  flex-shrink: 0;
}

.rule-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}

.rules-content .rule-item:last-child {
  margin-bottom: 14px;
}

/* =========================
   PLANS – KeeperX Premium
========================= */

.earn-plans {
  display: grid;
  gap: 16px;
}

/* Card base */
.earn-card {
  position: relative;
  background:
    linear-gradient(rgba(15, 21, 32, .93),
      rgba(15, 21, 32, .93)),
    url('https://www.shutterstock.com/blog/india/wp-content/uploads/sites/10/2018/06/wc-city-design-9.jpg?w=760&h=434');

  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 10px;
  overflow: hidden;
}

/* Premium background pattern */
.earn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, .08), transparent 40%),
    radial-gradient(circle at 15% 90%, rgba(34, 197, 94, .06), transparent 45%);
  pointer-events: none;
}

/* Header */
.earn-card header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -10px;
}

.earn-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.badge.vip {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1a1a1a;
}

.badge.locked-badge {
  background: #1f2937;
  color: #9ca3af;
}

/* Stats */
.earn-stats {
  position: relative;
  margin-bottom: 10px;
}

.earn-stats div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.earn-stats span {
  color: #9ca3af;
}

.earn-stats strong {
  color: #e5e7eb;
}

.earn-stats .highlight strong {
  color: #22c55e;
}

/* Buttons */
.earn-card {
  display: flex;
  flex-direction: column;
}

.earn-card .btn {
  align-self: flex-end;
}

.earn-card .btn {
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* =========================
   ACTIVE PLAN
========================= */

.earn-card.active {
  border-color: #22c55e;
}

.earn-card.active::before {
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 247, 91, 0.18), transparent 80%);
}

.plan-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #04130a;
}

.plan-active::after {
  content: " →";
}

/* =========================
   OPEN PLAN
========================= */

.plan-open {
  color: #0f0;
  background: rgba(134, 255, 0, .08);
  border-color: #224a1d
}


.plan-open:hover {
  background: #374151;
}

/* =========================
   LOCKED PLAN
========================= */

.earn-card.locked {
  opacity: .55;
}

.earn-card.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 32, .55);
}

.plan-locked {
  background: #111827;
  color: #6b7280;
  cursor: not-allowed;
}

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* MODAL CARD */
.modal-card {
    background: linear-gradient(180deg, #131a24, #0f141d);
    border-radius: 18px;
    padding: 26px 22px;
    width: 92%;
    max-width: 360px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    animation: pop .35s ease;
}

@keyframes pop {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* BADGE */
.modal-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #04130a;
    margin-bottom: 14px;
}

/* TITLE */
.modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* TEXT */
.modal-text {
    font-size: 14px;
    color: #b8c1d1;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* ACTIONS */
.modal-actions {
    display: flex;
    gap: 12px;
}

/* BUTTONS */
.btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn.primary {
     background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #04130a;
    border: none;
}

.btn.primary:hover {
    opacity: .9;
}

.btn.outline {
    background: transparent;
    color: #c5cce0;
    border: 1px solid rgba(255,255,255,.15);
}

.btn.outline:hover {
    background: rgba(255,255,255,.05);
}
