/* BetLab web — design tokens ported from lib/design_tokens.dart and lib/theme/text_styles.dart. */
:root {
  --lime: #B4FF00;
  --lime-deep: #94D900;
  --lime-soft: rgba(180, 255, 0, .18);
  --navy: #0B1538;
  --navy-soft: #1E2A4A;
  --bg-page: #F6F8F2;
  --surface: #FFFFFF;
  --surface-alt: #FAFBF6;
  --surface-sunken: #F1F4ED;
  --border-soft: #ECEFE7;
  --border-medium: #DDE2D5;
  --text-primary: #0B1538;
  --text-secondary: #475066;
  --text-muted: #656E83;
  --live: #D32F2F;
  --warn: #F59E0B;
  --ok: #15803D;
  --pro-bg: #061A12;
  --pro-surface: #0D2818;
  --pro-surface-alt: #123222;
  --pro-emerald: #10B981;
  --pro-text: #E8F5E9;
  --pro-text-muted: #94B8A3;
  --pro-border: #1E4D32;
  --r-card: 24px;
  --r-pill: 100px;
  --shadow-card: 0 1px 2px rgba(11, 21, 56, .04), 0 6px 24px rgba(11, 21, 56, .06);
  --shadow-hover: 0 4px 8px rgba(11, 21, 56, .06), 0 12px 32px rgba(11, 21, 56, .10);
  --shadow-lime: 0 6px 16px rgba(148, 217, 0, .35);
  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-caps: "Plus Jakarta Sans", system-ui, sans-serif;
  --side-collapsed: 76px;
  --side-open: 240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--f-body);
  color: var(--text-primary);
  background:
    radial-gradient(120% 60% at 0% -10%, rgba(180, 255, 0, .10) 0%, transparent 55%),
    radial-gradient(100% 50% at 110% 100%, rgba(11, 21, 56, .06) 0%, transparent 60%),
    var(--bg-page);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
svg.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }

/* ---------- Layout: the whole window, sidebar full height ---------- */
.app { display: flex; gap: 20px; height: 100vh; height: 100dvh; padding: 16px; }
.content { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 0 4px 32px; scrollbar-gutter: stable; }
.content:focus { outline: none; }

/* ---------- Sidebar (collapsed by default): white, logo, links and toggle grouped close together ---------- */
.sidebar {
  --side-bg: var(--surface); --side-alt: var(--surface-sunken); --side-border: var(--border-soft);
  --side-text: var(--navy); --side-muted: var(--text-secondary);
  flex: none; width: var(--side-open); display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 20px; background: var(--side-bg); border: 1px solid var(--side-border);
  border-radius: 28px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: width .2s ease-out, padding .2s ease-out;
}
.sidebar.collapsed { width: var(--side-collapsed); padding: 20px 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.sidebar.collapsed .brand { justify-content: center; }
.brand-mark {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--lime); color: var(--navy); font: 700 16px var(--f-display); box-shadow: var(--shadow-lime);
}
.brand-text { display: flex; flex-direction: column; white-space: nowrap; }
.brand-text strong { font: 700 18px var(--f-display); color: var(--side-text); letter-spacing: -.3px; }
.brand-text span { font-size: 11px; font-weight: 500; color: var(--side-muted); }
.side-nav { flex: none; display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card);
  color: var(--side-muted); font-size: 14px; font-weight: 500; white-space: nowrap; position: relative;
}
.side-link:hover { background: var(--side-alt); color: var(--side-text); }
.side-link.active { background: var(--lime-soft); color: var(--side-text); }
.side-link.active svg { color: var(--navy); }
.sidebar.collapsed .side-link { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .side-link span,
.sidebar.collapsed .brand-text,
.sidebar.collapsed .side-promo { display: none; }
.sidebar.collapsed .side-link:hover::after {
  content: attr(data-label); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; z-index: 5;
}
.sidebar.collapsed { overflow: visible; }
.side-promo {
  padding: 16px; border-radius: var(--r-card); background: var(--side-alt); border: 1px solid var(--side-border);
}
.side-promo strong { font: 600 14px var(--f-display); color: var(--side-text); }
.side-promo p { margin: 4px 0 12px; font-size: 12px; line-height: 1.3; color: var(--side-muted); }
.btn-emerald {
  display: inline-block; padding: 8px 16px; border-radius: var(--r-pill); background: var(--lime);
  color: var(--navy); font-size: 12px; font-weight: 700;
}
.side-toggle {
  align-self: center; width: 40px; height: 40px; border: 1px solid var(--side-border); border-radius: 50%;
  background: transparent; color: var(--side-muted); display: grid; place-items: center;
}
.side-toggle:hover { background: var(--side-alt); color: var(--side-text); }

/* ---------- Bottom nav (phones) ---------- */
.bottom-nav { display: none; }

/* ---------- Header ---------- */
.header {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 12px; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--r-pill); box-shadow: var(--shadow-card);
}
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--navy); font: 700 14px var(--f-display); box-shadow: 0 4px 12px rgba(148, 217, 0, .3);
}
.header-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.header-title small { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.header-title strong { font: 600 15px var(--f-display); color: var(--navy); }
.icon-btn {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--navy);
  display: grid; place-items: center; position: relative;
}
.icon-btn:hover { background: var(--surface-sunken); }
.search-box { display: none; flex: 1; }
.header.searching .search-box { display: block; }
.header.searching .header-title { display: none; }
.search-box input {
  width: 100%; height: 40px; border: 1px solid var(--border-medium); border-radius: var(--r-pill); padding: 0 16px;
  font: 500 14px var(--f-body); color: var(--navy); background: var(--surface-alt);
}

.stack { display: flex; flex-direction: column; gap: 24px; padding-top: 2px; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 28px; box-shadow: var(--shadow-card); }

/* ---------- Calendar ---------- */
.calendar { padding: 20px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.calendar-head h2 { margin: 0; font: 600 20px var(--f-display); letter-spacing: -.3px; color: var(--navy); }
.calendar-head > div { display: flex; gap: 8px; }
.round-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-soft); background: var(--surface-sunken);
  color: var(--navy); display: grid; place-items: center;
}
.round-btn:hover { background: var(--border-soft); }
.days { display: grid; grid-template-columns: repeat(var(--days, 7), 1fr); gap: 8px; }
.day {
  min-height: 76px; border-radius: var(--r-pill); border: 1px solid var(--border-soft); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--f-display); transition: transform .15s;
}
.day:hover { transform: translateY(-2px); }
.day span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.day strong { font-size: 18px; font-weight: 600; color: var(--navy); }
.day.active { background: var(--lime); border-color: var(--lime); box-shadow: var(--shadow-lime); }
.day.active span { color: var(--navy); }
.day.today:not(.active) { border-color: var(--lime-deep); }

/* ---------- Chip strips ---------- */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px 6px; margin: -8px -4px -6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; height: 40px; min-width: 40px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border-soft); background: var(--surface); display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.chip:hover { border-color: var(--border-medium); }
.chip.icon-only { padding: 0; width: 40px; }
.chip.icon-only svg { width: 16px; height: 16px; }
.chip.lime.active { background: var(--lime); border-color: var(--lime); box-shadow: 0 4px 14px rgba(148, 217, 0, .25); font-weight: 700; }
.chip.navy.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip .count {
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill); background: var(--navy); color: var(--lime);
  font: 700 9px var(--f-display); display: inline-grid; place-items: center;
}
.chip.navy.active .count { background: rgba(255, 255, 255, .16); color: #fff; }
.chip > .count.float { position: absolute; top: -5px; right: -5px; }
.chip.league { width: 40px; padding: 0; }
.chip.league img { width: 24px; height: 24px; object-fit: contain; }
.chip.league.active { border-color: var(--lime-deep); background: var(--lime-soft); }
.chip.muted { color: var(--text-secondary); font-weight: 500; }

/* ---------- Section ---------- */
.section-title { margin: 0; font: 600 20px var(--f-display); letter-spacing: -.3px; }
.summary { margin: 8px 0 0; font-size: 11px; line-height: 1.55; color: var(--text-secondary); white-space: pre-line; }
.notice {
  padding: 12px 16px; border-radius: 16px; background: #FFF7E0; border: 1px solid #FFE8A3; font-size: 13px; color: #6B4E00;
}
.empty { padding: 32px 24px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-secondary); border-radius: var(--r-card); border: 1px solid var(--border-medium); background: var(--surface); }
.group-label { margin: 8px 0 -12px; font: 700 13px var(--f-display); color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

/* ---------- Match card ---------- */
.match {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--r-card);
  border: 1px solid transparent; box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer; min-width: 0;
}
.match:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--lime-soft); }
.match-league { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.match-league img, .ph { width: 24px; height: 24px; object-fit: contain; flex: none; }
.ph { border-radius: 4px; background: var(--surface-sunken); }
.match-league span { font-size: 12px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { align-self: center; margin-top: -8px; padding: 3px 7px; border-radius: var(--r-pill); font-size: 9px; font-weight: 700; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.team img { width: 32px; height: 32px; object-fit: contain; }
.team .initials { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.team span { max-width: 100%; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-pill { padding: 4px 10px; border-radius: var(--r-pill); font: 600 12px var(--f-display); letter-spacing: -.2px; white-space: nowrap; }
.t-scheduled { background: var(--navy); color: #fff; }
.t-live { background: var(--live); color: #fff; }
.t-final { background: var(--lime); color: var(--navy); }
.t-postponed { background: #FFE8A3; color: var(--navy); }
.t-cancelled { background: #FEE2E2; color: var(--live); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--live); background: rgba(229, 57, 53, .12); }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.prediction { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.prob-tab {
  min-width: 46px; height: 22px; padding: 0 10px; border-radius: 100px 100px 0 0; display: grid; place-items: center;
  font: 700 11px var(--f-display);
}
.tier-high { background: var(--lime); color: var(--navy); }
.tier-medium { background: var(--lime-soft); color: var(--navy); }
.tier-low { background: var(--surface-sunken); color: var(--text-secondary); }
.band {
  width: 100%; min-height: 36px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--navy);
}
.band.unavailable { color: var(--text-secondary); }
.band.with-odd { justify-content: space-between; text-align: left; padding-right: 6px; }
.band-label { min-width: 0; }
.odd-pill {
  flex: none; height: 22px; padding: 0 10px; border-radius: var(--r-pill); background: var(--navy); color: var(--lime);
  display: grid; place-items: center; font: 700 11px var(--f-display); white-space: nowrap;
}
.odd-pill.fair { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border-medium); }

/* ---------- Detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 12px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.back:hover { color: var(--navy); }
.hero { padding: 28px 32px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hero .match-league span { font-size: 14px; }
.hero-teams { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.hero-teams .team img { width: 72px; height: 72px; }
.hero-teams .team .initials { width: 64px; height: 64px; font-size: 18px; }
.hero-teams .team span { font: 600 16px var(--f-display); color: var(--navy); white-space: normal; }
.hero-score { font: 700 56px var(--f-display); letter-spacing: -1px; color: var(--navy); line-height: 1; }
.hero-time { font: 600 28px var(--f-display); color: var(--navy); }
.hero-sub { font-size: 13px; color: var(--text-muted); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.panel { padding: 20px; }
.panel h3 { margin: 0 0 14px; font: 600 15px var(--f-display); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border-soft); font-size: 13px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--text-secondary); }
.kv strong { font-weight: 600; text-align: right; }
.xg-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: var(--surface-sunken); margin: 6px 0 10px; }
.xg-bar i { display: block; height: 100%; }
.fine { font-size: 11px; line-height: 1.5; color: var(--text-muted); margin: 12px 0 0; }

/* ---------- Pro pages (Live, Journal) ---------- */
.pro { padding: 32px; border-radius: 28px; background: var(--pro-surface); border: 1px solid var(--pro-border); color: var(--pro-text); }
.pro h2 { margin: 0 0 8px; font: 600 22px var(--f-display); }
.pro p { margin: 0; color: var(--pro-text-muted); line-height: 1.55; font-size: 14px; max-width: 70ch; }
.pro .pill { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(229, 57, 53, .15); color: #FF8A80; font-size: 12px; font-weight: 700; }

/* ---------- Live bets and Journal ---------- */
.match.static { cursor: default; }
.bankroll { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bankroll input { width: 130px; height: 44px; padding: 0 14px; border: 1px solid var(--border-medium); border-radius: var(--r-pill); font: 600 15px var(--f-body); color: var(--navy); background: var(--surface-alt); }
.journal-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.journal-kpis div { padding: 12px 14px; border-radius: 18px; background: var(--surface-sunken); display: flex; flex-direction: column; gap: 2px; }
.journal-kpis span { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.journal-kpis strong { font: 700 20px var(--f-display); color: var(--navy); }
.journal-list { padding: 6px 0; }
.journal-row { display: grid; grid-template-columns: 92px 1fr auto 120px; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px; border-top: 1px solid var(--border-soft); font-size: 13px; }
.journal-row:first-child { border-top: 0; }
.journal-row[data-id] { cursor: pointer; } .journal-row[data-id]:hover { background: var(--surface-alt); }
.j-when { color: var(--text-muted); font-size: 12px; }
.j-match { display: flex; flex-direction: column; min-width: 0; } .j-match b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-match small, .j-num small { font-size: 11px; color: var(--text-muted); }
.j-res { font-weight: 700; font-size: 12px; }
.j-num { display: flex; flex-direction: column; align-items: flex-end; font: 700 14px var(--f-display); font-variant-numeric: tabular-nums; }

/* ---------- Skeleton ---------- */
.skeleton { height: 200px; border-radius: var(--r-card); background: linear-gradient(90deg, rgba(11, 21, 56, .04), rgba(11, 21, 56, .09), rgba(11, 21, 56, .04)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Phones and tablets ---------- */
@media (max-width: 1023px) {
  .app { display: block; height: auto; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .content { overflow: visible; padding: 0; }
  .header { min-height: 56px; }
  .stack { gap: 16px; }
  .calendar { padding: 16px; }
  .days { gap: 6px; }
  .day { min-height: 64px; }
  .day span { font-size: 12px; }
  .day strong { font-size: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .match { padding: 10px; gap: 8px; }
  .band { font-size: 10px; min-height: 32px; padding: 4px 10px; }
  .hero { padding: 20px; }
  .hero-score { font-size: 40px; }
  .hero-teams .team img { width: 56px; height: 56px; }
  .bottom-nav {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 4px; padding: 6px; border-radius: 32px; background: var(--navy); box-shadow: var(--shadow-hover); z-index: 10;
  }
  .bottom-nav a {
    display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 26px; color: rgba(255, 255, 255, .7);
    font-size: 13px; font-weight: 600;
  }
  .bottom-nav a span { display: none; }
  .bottom-nav a.active { background: var(--lime); color: var(--navy); }
  .bottom-nav a.active span { display: inline; }
}
@media (max-width: 640px) {
  .journal-row { grid-template-columns: 1fr auto; padding: 8px 14px; }
  .j-when { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .calendar-head h2 { font-size: 17px; }
  .day span { font-size: 11px; }
}

/* ---------- Coupon 1xBet : sélection des cartes (demande du propriétaire, 2026-11-03) ---------- */
.match, .hero { position: relative; }
.pick-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border-medium); background: var(--surface); color: var(--navy); display: grid; place-items: center;
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.pick-toggle:hover { border-color: var(--navy); transform: scale(1.06); }
.pick-toggle.on { background: var(--lime); border-color: var(--lime-deep); box-shadow: var(--shadow-lime); }
.pick-toggle.off { opacity: .35; cursor: not-allowed; }
.hero .pick-toggle { top: 16px; right: 16px; width: 44px; height: 44px; }
.match.picked { border-color: var(--lime-deep); box-shadow: 0 0 0 2px var(--lime-soft), var(--shadow-card); }
.hero-minute { color: var(--live); font-weight: 700; }
.coupon-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 20; display: flex; align-items: center; gap: 10px;
  width: min(620px, calc(100% - 32px)); padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--navy); color: #fff;
  box-shadow: var(--shadow-hover); transition: transform .25s ease-out;
}
.coupon-bar.show { transform: translate(-50%, 0); }
.cb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-info b { font: 600 15px var(--f-display); } .cb-info span { font-size: 12px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-clear { height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font: 600 13px var(--f-body); }
.cb-go { height: 44px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--lime); color: var(--navy); font: 700 14px var(--f-body); white-space: nowrap; }
.cb-go:disabled { opacity: .6; }
.coupon-sheet { position: fixed; inset: 0; z-index: 30; display: none; }
.coupon-sheet.show { display: block; }
.cs-bg { position: absolute; inset: 0; background: rgba(11, 21, 56, .45); }
.cs-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 48px);
  overflow-y: auto; padding: 20px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-hover);
}
.cs-head { display: flex; align-items: center; justify-content: space-between; } .cs-head h3 { margin: 0; font: 600 20px var(--f-display); }
.cs-help { margin: 6px 0 14px; font-size: 13px; color: var(--text-secondary); }
.cs-code { margin-bottom: 12px; padding: 14px; border-radius: 20px; background: var(--surface-sunken); }
.cs-code header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cs-kind { padding: 3px 10px; border-radius: 100px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.cs-kind.live { background: var(--live); } .cs-total { font: 700 15px var(--f-display); }
.cs-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1.5px dashed var(--lime-deep); background: var(--surface); }
.cs-value { flex: 1; font: 700 20px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.cs-code ul, .cs-refused { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.cs-code li, .cs-refused li { display: flex; flex-direction: column; } .cs-code li em, .cs-refused li em { font-style: normal; color: var(--text-secondary); font-size: 12px; }
.cs-card h4 { margin: 14px 0 0; font: 600 14px var(--f-display); }
.cs-error { margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: rgba(211, 47, 47, .08); color: var(--live); font-size: 13px; }
.flash {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; padding: 10px 16px; border-radius: 14px; background: var(--navy);
  color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.flash.show { opacity: 1; }
@media (max-width: 1023px) {
  .coupon-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .cb-clear { display: none; }
}

/* Live : codes des paris en cours et créneaux probables */
.bet-codes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.bet-codes button { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.live-windows ul { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.live-windows li { padding: 6px 12px; border-radius: 999px; background: var(--surface, #fff); font-size: 14px; }

/* Carte : confirmation 1xBet et buteur clé hors du onze */
.card-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.card-flag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; }
.card-flag.ok { color: var(--ok); background: rgba(21, 128, 61, .12); }
.card-flag.warn { color: #92400E; background: rgba(245, 158, 11, .18); }
