/* Predix — portage visuel de artifacts/predix/src/index.css + layouts */

:root {
  color-scheme: dark;
  --background: hsl(240 20% 3.5%);
  --foreground: hsl(220 15% 95%);
  --card: hsl(240 18% 5.5%);
  --card-foreground: hsl(220 15% 95%);
  --card-border: hsl(240 15% 9%);
  --primary: hsl(259 94% 65%);
  --primary-foreground: #fff;
  --secondary: hsl(240 15% 8%);
  --muted: hsl(240 14% 11%);
  /* ~5.2:1 sur --background, ~4.6:1 sur --card (WCAG AA texte normal) */
  --muted-foreground: hsl(220 12% 72%);
  /* Texte secondaire très petit (10–11px) : contraste renforcé */
  --muted-foreground-strong: hsl(220 10% 80%);
  --accent: hsl(198 97% 50%);
  --yes: hsl(160 68% 48%);
  --no: hsl(348 86% 57%);
  /* Composantes HSL pour hsl(var(--border)) — ne pas mettre hsl() ici */
  --border: 240 15% 10%;
  --radius: 0.9rem;
  --landing-bg: #060612;
}

*, *::before, *::after { box-sizing: border-box; }

html.dark, .dark { color-scheme: dark; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

.font-mono { font-family: 'Space Mono', monospace; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.text-muted, .text-muted-foreground { color: var(--muted-foreground); }
.text-10px.text-muted-foreground,
.text-11px.text-muted-foreground,
.text-xs.text-muted-foreground {
  color: var(--muted-foreground-strong);
}
.text-10px.opacity-70,
.text-xs.opacity-70,
.pill .text-10px.opacity-70 {
  opacity: 1;
  color: var(--muted-foreground-strong);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted-foreground-strong);
  opacity: 0.9;
}
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-yes { color: var(--yes); }
.text-no { color: var(--no); }
.text-white { color: #fff; }
.text-orange-400 { color: #fb923c; }
.text-yellow-400 { color: #facc15; }
.text-emerald-400 { color: #34d399; }
.text-rose-400 { color: #fb7185; }
.text-foreground { color: var(--foreground); }
.text-violet-400 { color: #a78bfa; }
.text-blue-400 { color: #60a5fa; }
.text-slate-300 { color: #cbd5e1; }
.text-amber-600 { color: #d97706; }
.bg-primary { background: var(--primary); color: #fff; }
.fill-current { fill: currentColor; }
.fill-white { fill: #fff; }
.opacity-70 { opacity: 0.7; }
.border { border: 1px solid hsl(var(--border)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-b { border-bottom: 1px solid hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }
.bg-card { background: var(--card); }
.bg-secondary { background: var(--secondary); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25); }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.tabular-nums { font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-7xl { font-size: 4.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-left { text-align: left; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:ml-64 { margin-left: 16rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:pb-0 { padding-bottom: 0; }
}

.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.yes-gradient {
  background: linear-gradient(90deg, hsl(160 68% 38%), hsl(160 68% 50%));
}
.no-gradient {
  background: linear-gradient(90deg, hsl(348 86% 50%), hsl(348 86% 60%));
}

.odds-bar {
  display: flex;
  width: 100%;
  height: 2.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.odds-bar > div {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  min-width: 0;
}
.odds-bar > div:first-child { justify-content: flex-start; }
.odds-bar > div:last-child { justify-content: flex-end; }
.odds-bar--sm { height: 2.25rem; }
.odds-bar--lg { height: 3rem; font-size: 0.875rem; }
.drop-shadow { text-shadow: 0 1px 2px rgb(0 0 0 / 0.35); }

.pred-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.1rem;
  transition: border-color 200ms ease, box-shadow 220ms ease, transform 200ms ease;
  cursor: pointer;
}
.pred-card:hover {
  border-color: hsl(259 94% 65% / 0.35);
  box-shadow: 0 0 0 1px hsl(259 94% 65% / 0.08), 0 12px 32px -8px hsl(240 20% 2% / 0.85);
  transform: translateY(-2px);
}
.pred-card-link { text-decoration: none; color: inherit; display: block; }

.pred-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pred-card:hover .pred-title { color: var(--primary); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: hsl(198 97% 50% / 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid hsl(198 97% 50% / 0.25);
  letter-spacing: 0.04em;
}

@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.animate-pulse-slow { animation: pulse-slow 2.4s ease-in-out infinite; }
.live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-slow 2.4s ease-in-out infinite;
}

.dur-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0.375rem;
  border: 1px solid transparent;
}
.dur-live { color: var(--accent); border-color: hsl(198 97% 50% / 0.3); background: hsl(198 97% 50% / 0.1); }
.dur-short { color: var(--yes); border-color: hsl(160 68% 48% / 0.3); background: hsl(160 68% 48% / 0.1); }
.dur-medium { color: var(--primary); border-color: hsl(259 94% 65% / 0.3); background: hsl(259 94% 65% / 0.1); }
.dur-long { color: #fb923c; border-color: hsl(27 96% 61% / 0.3); background: hsl(27 96% 61% / 0.1); }
.dur-polymarket { color: hsl(198 97% 58%); border-color: hsl(198 97% 50% / 0.35); background: hsl(198 97% 50% / 0.1); }

.cat-icon-wrap {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-muted { color: var(--muted-foreground); }

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

/* App shell */
.app-body { min-height: 100vh; }
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
}

.sidebar {
  display: none;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 16rem;
  border-right: 1px solid hsl(var(--border));
  background: hsl(240 18% 5.5% / 0.6);
  backdrop-filter: blur(16px);
  z-index: 40;
  padding: 1.5rem 0;
}

@media (min-width: 1024px) {
  .sidebar { display: flex; }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}
.logo-box {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px hsl(259 94% 65% / 0.3);
  color: #fff;
}
.logo-text { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; }

.sidebar-nav { flex: 1; padding: 0 0.75rem; display: flex; flex-direction: column; gap: 2px; }
.nav-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.15s;
  border: 1px solid transparent;
}
.nav-row:hover { color: var(--foreground); background: var(--secondary); }
.nav-row--active {
  background: hsl(259 94% 65% / 0.15);
  color: var(--primary);
  border-color: hsl(259 94% 65% / 0.2);
}
.nav-row--active .nav-ic-wrap { color: var(--primary); }
.nav-ic-wrap { position: relative; display: flex; align-items: center; justify-content: center; }

.sidebar-footer { padding: 0 1rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.user-row:hover { background: var(--secondary); }
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.user-meta .user-name { margin: 0; font-size: 0.875rem; font-weight: 600; }
.user-meta .user-level { margin: 0; font-size: 0.75rem; color: var(--muted-foreground); }

.token-balance {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--secondary);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
}
.token-balance:hover { filter: brightness(1.05); }
.tb-label { font-size: 0.75rem; color: var(--muted-foreground); display: block; }
.tb-val { font-weight: 700; font-size: 0.875rem; color: var(--primary); }

.logout-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: none;
}
.logout-row:hover { background: var(--secondary); color: var(--foreground); }

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  width: 100%;
  padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) {
  .main-area { margin-left: 16rem; padding-bottom: 0; }
}

/* Barre mobile : solde toujours visible */
.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 45;
  margin: -1rem max(-0.75rem, calc(-1 * env(safe-area-inset-left, 0px))) 0.75rem max(-0.75rem, calc(-1 * env(safe-area-inset-right, 0px)));
  padding: 0.65rem max(0.75rem, env(safe-area-inset-left, 0px)) 0.65rem max(0.75rem, env(safe-area-inset-right, 0px));
  background: hsl(240 20% 4% / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 1024px) {
  .mobile-top-bar { display: none; }
}
.mobile-top-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.mobile-top-bar__logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.mobile-top-bar__title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-top-bar__balance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  color: inherit;
  background: hsl(259 94% 65% / 0.18);
  border: 1px solid hsl(259 94% 65% / 0.35);
  box-shadow: 0 4px 16px hsl(259 94% 65% / 0.12);
}
.mobile-top-bar__balance:hover {
  filter: brightness(1.06);
}
.mobile-top-bar__balance-val {
  font-size: 0.8125rem;
  font-weight: 800;
  color: hsl(265 90% 88%);
  white-space: nowrap;
}
.mobile-top-bar__balance i {
  color: var(--primary);
  flex-shrink: 0;
}
.main-inner {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem max(0.75rem, env(safe-area-inset-left, 0px)) 1rem max(0.75rem, env(safe-area-inset-right, 0px));
  min-width: 0;
}
@media (min-width: 480px) {
  .main-inner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 640px) {
  .main-inner {
    padding: 1.35rem 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 1024px) {
  .main-inner { padding: 1.5rem 2rem; }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.25rem;
  min-height: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  padding: 0.35rem max(0.25rem, env(safe-area-inset-left, 0px)) max(0.35rem, env(safe-area-inset-bottom, 0px)) max(0.25rem, env(safe-area-inset-right, 0px));
  background: hsl(240 18% 5.5% / 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem;
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 600;
}
.bn-item--active { color: var(--primary); }
.bn-ic-wrap {
  position: relative;
  padding: 6px;
  border-radius: 0.75rem;
  transition: background 0.2s;
}
.bn-item--active .bn-ic-wrap { background: hsl(259 94% 65% / 0.2); color: var(--primary); }
.bn-live-dot { top: 0; right: 0; }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-header-left { display: flex; align-items: center; gap: 0.75rem; }
.page-header-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: hsl(259 94% 65% / 0.15);
  border: 1px solid hsl(259 94% 65% / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.page-header h1 { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.page-header p { margin: 0.125rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

/* Inputs */
.input, .textarea {
  width: 100%;
  background: var(--secondary);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: hsl(259 94% 65% / 0.5);
}
.input-search { height: 2.75rem; padding-left: 2.5rem; padding-right: 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px hsl(259 94% 65% / 0.25);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-accent-outline {
  background: hsl(198 97% 50% / 0.15);
  border: 1px solid hsl(198 97% 50% / 0.3);
  color: var(--accent);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn-yes { background: var(--yes); color: #fff; padding: 1rem; border-radius: 1rem; font-weight: 900; }
.btn-no { background: var(--no); color: #fff; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  background: var(--secondary);
  color: var(--muted-foreground);
  cursor: pointer;
  font: inherit;
}
.pill--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill--muted {
  opacity: 1;
  color: var(--muted-foreground);
  cursor: default;
  pointer-events: none;
  border-color: hsl(var(--border));
  background: transparent;
}

.border-card-border { border-color: var(--card-border) !important; }

/* Classement */
.leaderboard-page .lb-page-icon {
  background: hsl(38 92% 50% / 0.15);
  color: #facc15;
}
.leaderboard-page .lb-seg__btn {
  border: none;
  font: inherit;
  cursor: default;
}
.leaderboard-page .lb-period-pills {
  flex-wrap: wrap;
  gap: 0.375rem;
}
.leaderboard-page .lb-podium-row {
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: flex-end;
  padding: 0.5rem 0 0;
}
@media (min-width: 480px) {
  .leaderboard-page .lb-podium-row {
    flex-wrap: nowrap;
    gap: 1rem;
  }
}
.leaderboard-page .lb-podium-wrap {
  overflow: hidden;
}
.leaderboard-page .lb-row {
  transition: border-color 0.15s ease, background 0.15s ease;
}
.leaderboard-page .lb-row:hover {
  border-color: hsl(259 94% 65% / 0.25);
  background: hsl(240 18% 6% / 0.95);
}

/* Landing */
.landing { min-height: 100vh; background: var(--landing-bg); color: #fff; overflow-x: hidden; }
.landing-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(6, 6, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.landing-hero { position: relative; padding-top: 8rem; padding-bottom: 5rem; text-align: center; }
.landing-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
}
.landing-glow-1 {
  top: 5rem; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: rgba(124, 58, 237, 0.15);
}
.gradient-text-hero {
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-preview-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: left;
}
.landing-preview-card:hover { border-color: rgba(139, 92, 246, 0.3); }

/* Auth cards */
.auth-wrap {
  min-height: 100vh;
  background: var(--landing-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
}
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 24rem;
}
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
}
.auth-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255,255,255,0.08);
}
.auth-input-wrap { position: relative; }
.auth-ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.25); }

/* Accueil — bandeau compact */
.home-welcome {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, hsl(259 94% 65% / 0.18), hsl(198 97% 50% / 0.06));
  border: 1px solid hsl(259 94% 65% / 0.22);
  padding: 1.15rem 1.15rem 1rem;
}
.home-welcome__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.home-welcome__hello {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}
.home-welcome__hello strong {
  font-weight: 900;
  color: var(--foreground);
}
.home-welcome__meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground-strong);
}
.home-welcome__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yes);
  flex-shrink: 0;
}
.home-welcome__balance {
  flex-shrink: 0;
  text-align: right;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 0.85rem;
  background: hsl(240 16% 8% / 0.85);
  border: 1px solid hsl(259 94% 65% / 0.3);
}
.home-welcome__balance-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground-strong);
}
.home-welcome__balance-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
}
.home-welcome__balance-unit {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-left: 0.15rem;
}
.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.home-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--foreground);
  background: hsl(240 14% 10% / 0.9);
  border: 1px solid hsl(var(--border));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-quick-action:hover {
  border-color: hsl(259 94% 65% / 0.35);
  background: hsl(259 94% 65% / 0.1);
}
.home-quick-action--primary {
  background: hsl(259 94% 65% / 0.2);
  border-color: hsl(259 94% 65% / 0.4);
  color: hsl(265 90% 92%);
}
.home-quick-action--primary i {
  color: var(--primary);
}

/* Mobile : Live avant catégories sur l’accueil */
@media (max-width: 1023px) {
  .home-layout {
    display: flex;
    flex-direction: column;
  }
  .home-section--welcome { order: 1; }
  .home-section--live { order: 2; }
  .home-section--categories { order: 3; }
  .home-section--foryou { order: 4; }
  .home-section--new { order: 5; }
  .home-section--soon { order: 6; }
  .home-section--featured { order: 7; }
  .home-section--trending { order: 8; }
  .home-section--cta { order: 9; }
}
@media (min-width: 640px) {
  .home-welcome { padding: 1.35rem 1.5rem; }
  .home-welcome__hello { font-size: 1.35rem; }
}

/* Live card */
.live-card {
  background: var(--card);
  border: 1px solid hsl(198 97% 50% / 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.live-card:hover { border-color: hsl(198 97% 50% / 0.5); transform: translateY(-2px); }

/* Progress bar */
.progress {
  height: 0.5rem;
  background: var(--secondary);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar { height: 100%; background: var(--primary); border-radius: 9999px; transition: width 0.3s; }

/* Podium */
.podium-row { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; padding: 1.5rem 1rem; }
.podium-avatar {
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.3);
}
.podium-avatar.podium-1 { width: 5rem; height: 5rem; font-size: 1.875rem; }
.podium-avatar.podium-2 { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
.podium-side { padding-top: 1.5rem; }

/* Toast — overlay dans la coque app (hors flux de page) */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, 130%, 0) scale(0.92);
  z-index: 3000;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0;
  margin: 0;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.5);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1.32, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s ease,
    box-shadow 0.4s ease;
  will-change: transform, opacity;
}
#toast .toast__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem 1rem;
}
#toast .toast__glyph {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
#toast .toast__glyph--ok {
  color: hsl(160 72% 42%);
  background: hsl(160 68% 48% / 0.14);
  border: 1px solid hsl(160 68% 48% / 0.35);
}
#toast .toast__glyph--err {
  color: hsl(348 86% 58%);
  background: hsl(348 86% 57% / 0.12);
  border: 1px solid hsl(348 86% 57% / 0.35);
}
#toast .toast__glyph--def {
  color: var(--muted-foreground);
  background: hsl(240 14% 12% / 0.9);
  border: 1px solid hsl(var(--border));
}
#toast .toast__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
#toast .toast__desc {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  line-height: 1.45;
  color: var(--muted-foreground-strong);
}
#toast.toast--success {
  border-color: hsl(160 68% 48% / 0.45);
  box-shadow:
    0 0 0 1px hsl(160 68% 48% / 0.12) inset,
    0 20px 56px rgb(0 0 0 / 0.55),
    0 0 48px hsl(160 68% 42% / 0.18);
}
#toast.toast--error {
  border-color: hsl(348 86% 57% / 0.4);
  box-shadow:
    0 0 0 1px hsl(348 86% 57% / 0.1) inset,
    0 20px 56px rgb(0 0 0 / 0.55),
    0 0 40px hsl(348 86% 50% / 0.12);
}
#toast.toast--info {
  border-color: hsl(198 97% 50% / 0.35);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.45);
}
@media (min-width: 1024px) {
  #toast {
    bottom: 1.5rem;
    left: calc(50% + 8rem);
    transform: translate3d(-50%, 130%, 0) scale(0.92);
  }
  #toast.show {
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}
#toast.show {
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.predix-celebrate::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2998;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% 28%, hsl(160 68% 48% / 0.16), transparent 62%),
    radial-gradient(ellipse 70% 50% at 50% 100%, hsl(259 94% 65% / 0.1), transparent 55%);
  animation: predixCelebrate 0.95s ease-out forwards;
}
@keyframes predixCelebrate {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Explore card filter */
.pred-card--hidden { display: none !important; }

/* 404 */
.nf-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--background);
}
.nf-card {
  max-width: 28rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Utilitaires manquants (classes type Tailwind utilisées dans les vues PHP) */
.inline-flex { display: inline-flex; }
.block { display: block; }
.leading-tight { line-height: 1.25; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-1\.5 { gap: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.rounded-lg { border-radius: 0.5rem; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; border-style: solid; }
.rounded-none { border-radius: 0; }
.pr-16 { padding-right: 4rem; }
.right-4 { right: 1rem; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-top-3 { top: -0.75rem; }
.-bottom-1 { bottom: -0.25rem; }
.-right-1 { right: -0.25rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 8px 10px -6px rgb(0 0 0 / 0.25); }
.transition-colors { transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.bg-cyan-400 { background: #22d3ee; }
.bg-secondary-soft { background: hsl(240 15% 8% / 0.5); }
.divide-y > * + * { border-top: 1px solid var(--card-border); }
.badge-open {
  background: hsl(160 68% 48% / 0.1);
  color: var(--yes);
  border: 1px solid hsl(160 68% 48% / 0.22);
}
.badge-closed {
  background: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid hsl(var(--border));
}
.card-hover-primary:hover {
  border-color: hsl(259 94% 65% / 0.35);
}
.pack-icon-pop {
  border: 1px solid hsl(259 94% 65% / 0.3);
  background: hsl(259 94% 65% / 0.2);
}
.text-10px { font-size: 10px; }
.text-11px { font-size: 11px; }
.bn-label {
  max-width: 5rem;
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .sm\:text-sm { font-size: 0.875rem; }
}

/* ─── Page détail prédiction ─── */
.prediction-detail.prediction-layout {
  max-width: 40rem;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 3rem;
}
.prediction-detail--live.prediction-layout {
  max-width: 50rem;
}

.pred-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  border: 1px solid transparent;
}
.pred-back-link:hover {
  color: var(--foreground);
  background: hsl(240 16% 10% / 0.85);
  border-color: hsl(var(--border));
  transform: translateX(-2px);
}

.prediction-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.125rem;
  padding: 1.35rem 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(
    168deg,
    hsl(240 18% 9% / 0.98) 0%,
    hsl(240 16% 6% / 1) 55%,
    hsl(222 22% 7% / 1) 100%
  );
  border: 1px solid hsl(var(--border));
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.04) inset,
    0 20px 50px -28px rgb(0 0 0 / 0.55);
}
.prediction-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(259 94% 65% / 0.12) 0%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}
.prediction-hero__inner { position: relative; z-index: 1; }
.pred-hero-meta {
  padding-top: 0.15rem;
}

.prediction-live-chart {
  margin-top: 1.25rem;
  padding: 1.1rem 1.1rem 0.85rem;
  border-radius: 1.125rem;
  background: linear-gradient(
    155deg,
    hsl(240 22% 10% / 0.92) 0%,
    hsl(240 18% 5% / 0.97) 48%,
    hsl(222 40% 6% / 0.98) 100%
  );
  border: 1px solid hsl(198 97% 50% / 0.22);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.04) inset,
    0 18px 48px -24px hsl(198 97% 50% / 0.25);
}
.prediction-live-chart__title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.prediction-live-chart__countdown {
  min-width: 5.25rem;
}
.live-chart-wrap--pred {
  position: relative;
  height: clamp(220px, 52vw, 300px);
  min-height: 220px;
  border-radius: 0.875rem;
  background: radial-gradient(120% 80% at 50% 0%, hsl(198 97% 50% / 0.08) 0%, transparent 55%),
    linear-gradient(180deg, hsl(240 22% 7% / 0.98) 0%, hsl(240 20% 4% / 1) 100%);
  border: 1px solid hsl(198 97% 50% / 0.18);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.05),
    inset 0 -1px 0 hsl(0 0% 0% / 0.35);
  overflow: hidden;
}
.live-chart-wrap--pred::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 40px hsl(198 97% 50% / 0.04);
  z-index: 1;
}
.live-chart-wrap--pred__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0.35rem 0.25rem 0.15rem 0.15rem;
}
.live-chart-wrap--pred canvas {
  display: block;
}

.prediction-title {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--foreground);
}
@media (min-width: 640px) {
  .prediction-title { font-size: 1.875rem; }
}

.prediction-desc {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

.prediction-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}
@media (min-width: 480px) {
  .prediction-stats { grid-template-columns: repeat(3, 1fr); }
}

.pred-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.875rem;
  background: hsl(240 16% 8% / 0.65);
  border: 1px solid hsl(240 14% 14% / 0.9);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.pred-stat-chip strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.pred-stat-chip strong.text-primary { color: var(--primary); }
.pred-stat-chip__when {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.25;
}
.pred-stat-chip__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground-strong);
}

.prediction-odds-block {
  padding-top: 1.15rem;
  border-top: 1px solid hsl(240 14% 14% / 0.95);
}
.prediction-odds-label {
  margin: 0 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground-strong);
}

.prediction-cotes {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.15rem 0;
  font-size: 0.8125rem;
}

.prediction-closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
  border-radius: 1.125rem;
  background: hsl(240 16% 8% / 0.75);
  border: 1px solid hsl(var(--border));
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}
.prediction-closed-notice strong { color: var(--foreground); }

.bet-panel {
  margin-bottom: 2.5rem;
  padding: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: hsl(240 15% 7% / 1);
  border: 1px solid hsl(240 12% 18% / 1);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.04) inset,
    0 24px 56px -32px rgb(0 0 0 / 0.55);
}

.bet-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: linear-gradient(180deg, hsl(259 40% 14% / 0.35) 0%, transparent 100%);
  border-bottom: 1px solid hsl(240 12% 16% / 1);
}

.bet-panel__intro {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.bet-panel__intro-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(48 96% 53%);
  background: linear-gradient(145deg, hsl(259 94% 52% / 0.35), hsl(240 18% 8% / 0.9));
  border: 1px solid hsl(259 94% 65% / 0.35);
  box-shadow: 0 6px 20px hsl(259 94% 40% / 0.2);
}

.bet-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--foreground);
}

.bet-panel__subtitle {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  max-width: 22rem;
}

.bet-panel__balance-pill {
  flex-shrink: 0;
  text-align: right;
  padding: 0.65rem 1rem;
  border-radius: 0.9rem;
  background: hsl(240 16% 10% / 0.95);
  border: 1px solid hsl(240 12% 20% / 1);
  min-width: 7.5rem;
}

.bet-panel__balance-pill-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground-strong);
  margin-bottom: 0.2rem;
}

.bet-panel__balance-pill-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: hsl(210 20% 98%);
  line-height: 1.2;
}

.bet-panel__balance-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-left: 0.15rem;
}

.bet-panel__timer {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.35rem;
  margin: 0;
  border-bottom: 1px solid hsl(240 12% 16% / 1);
  background: linear-gradient(90deg, hsl(198 97% 50% / 0.1) 0%, hsl(198 97% 50% / 0.03) 100%);
}

.bet-panel__timer-ic {
  flex-shrink: 0;
  color: hsl(198 97% 55%);
  margin-top: 0.15rem;
}

.bet-panel__timer-body {
  min-width: 0;
  flex: 1;
}

.bet-panel__timer-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--foreground);
}

.bet-panel__timer-desc {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted-foreground-strong);
}

.bet-panel__timer-digits {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: hsl(198 97% 58%);
  font-variant-numeric: tabular-nums;
}

.bet-panel__form {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.bet-panel__live-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
  background: hsl(240 14% 10% / 0.9);
  border: 1px solid hsl(240 12% 18% / 1);
  border-radius: 0.75rem;
}

.bet-panel__live-hint svg {
  flex-shrink: 0;
  color: hsl(198 97% 50% / 0.85);
}

/* Duel Oui / Non */
.bet-duel {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.bet-duel__legend {
  padding: 0;
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground-strong);
}

.bet-duel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .bet-duel__grid {
    grid-template-columns: 1fr;
  }
}

.bet-choice {
  cursor: pointer;
  display: block;
  margin: 0;
}

.bet-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.15rem 0.75rem 1.25rem;
  min-height: 9.5rem;
  border-radius: 1rem;
  background: hsl(240 14% 9% / 1);
  border: 1px solid hsl(240 12% 18% / 1);
  box-shadow: 0 2px 0 hsl(0 0% 100% / 0.03) inset;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bet-choice-card__accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 1rem 1rem 0 0;
  opacity: 0.85;
}

.bet-choice-card__accent--yes {
  background: linear-gradient(90deg, hsl(160 68% 42%), hsl(160 68% 52%));
}

.bet-choice-card__accent--no {
  background: linear-gradient(90deg, hsl(348 70% 48%), hsl(348 86% 58%));
}

.bet-choice-card__icon {
  margin-top: 0.35rem;
  opacity: 0.85;
}

.bet-choice--yes .bet-choice-card__icon {
  color: hsl(160 68% 50%);
}

.bet-choice--no .bet-choice-card__icon {
  color: hsl(348 86% 58%);
}

.bet-choice-card__word {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--foreground);
}

.bet-choice-card__pct {
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: hsl(210 20% 96%);
}

.bet-choice-card__hint {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-top: auto;
  padding-top: 0.25rem;
}

.bet-choice:hover .bet-choice-card {
  transform: translateY(-2px);
  border-color: hsl(259 94% 65% / 0.28);
  box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.45);
}

.bet-choice input:focus-visible + .bet-choice-card {
  outline: 2px solid hsl(259 94% 65% / 0.55);
  outline-offset: 2px;
}

.bet-choice--yes input:checked + .bet-choice-card {
  border-color: hsl(160 68% 48% / 0.65);
  background: linear-gradient(180deg, hsl(160 68% 48% / 0.18) 0%, hsl(240 14% 9% / 1) 42%);
  box-shadow:
    0 0 0 1px hsl(160 68% 48% / 0.25),
    0 16px 40px -18px hsl(160 68% 40% / 0.35);
}

.bet-choice--yes input:checked + .bet-choice-card .bet-choice-card__pct {
  color: hsl(160 78% 55%);
}

.bet-choice--no input:checked + .bet-choice-card {
  border-color: hsl(348 86% 55% / 0.65);
  background: linear-gradient(180deg, hsl(348 86% 57% / 0.16) 0%, hsl(240 14% 9% / 1) 42%);
  box-shadow:
    0 0 0 1px hsl(348 86% 57% / 0.25),
    0 16px 40px -18px hsl(348 70% 40% / 0.35);
}

.bet-choice--no input:checked + .bet-choice-card .bet-choice-card__pct {
  color: hsl(348 90% 68%);
}

/* Montant */
.bet-stake {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bet-stake__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.bet-stake__field {
  position: relative;
  display: flex;
  align-items: center;
}

.bet-stake__input {
  width: 100%;
  margin: 0;
  padding: 0.95rem 3.75rem 0.95rem 1.1rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  background: hsl(240 16% 6% / 1);
  border: 1px solid hsl(240 12% 20% / 1);
  border-radius: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bet-stake__input::placeholder {
  color: var(--muted-foreground-strong);
  opacity: 0.85;
}

.bet-stake__input:focus {
  outline: none;
  border-color: hsl(259 94% 65% / 0.45);
  box-shadow: 0 0 0 3px hsl(259 94% 65% / 0.12);
}

.bet-stake__suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  pointer-events: none;
}

.bet-stake__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bet-chip {
  flex: 1 1 auto;
  min-width: 3.25rem;
  padding: 0.5rem 0.65rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  background: hsl(240 14% 11% / 1);
  border: 1px solid hsl(240 12% 20% / 1);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.bet-chip:hover {
  border-color: hsl(259 94% 65% / 0.35);
  background: hsl(259 94% 65% / 0.08);
}

.bet-chip--max {
  flex: 1.15 1 auto;
  border-color: hsl(259 94% 65% / 0.25);
  color: hsl(265 85% 78%);
}

.bet-chip--active {
  border-color: hsl(259 94% 65% / 0.65) !important;
  background: hsl(259 94% 65% / 0.18) !important;
  color: hsl(265 90% 92%) !important;
  transform: scale(1.02);
}

/* Gain potentiel */
.bet-potential {
  border-radius: 0.9rem;
  border: 1px solid hsl(240 12% 18% / 1);
  background: hsl(240 14% 9% / 0.6);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.bet-potential.is-muted {
  opacity: 0.5;
}

.bet-potential__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}

.bet-potential__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.bet-potential__val {
  font-size: 1.125rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: hsl(48 96% 58%);
}

.bet-potential:not(.is-muted) .bet-potential__val {
  text-shadow: 0 0 24px hsl(48 96% 50% / 0.25);
}

/* CTA */
.bet-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: hsl(222 47% 6%);
  border: none;
  border-radius: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, hsl(48 96% 58%) 0%, hsl(38 92% 52%) 100%);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.35) inset,
    0 12px 32px -12px hsl(38 92% 40% / 0.55);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.bet-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.bet-submit:active:not(:disabled) {
  transform: translateY(0);
}

.bet-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Discussion (prédiction) */
.pred-discussion {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(240 14% 14% / 0.9);
}
.pred-discussion__head {
  margin-bottom: 1rem;
}
.pred-discussion__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.pred-discussion__title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: hsl(259 94% 65% / 0.15);
  border: 1px solid hsl(259 94% 65% / 0.28);
  color: var(--primary);
}
.pred-discussion__badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: hsl(240 16% 12% / 1);
  border: 1px solid hsl(var(--border));
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.pred-comments-card {
  border-radius: 1.125rem;
  border: 1px solid hsl(var(--border));
  background: hsl(240 16% 6% / 0.92);
  box-shadow: 0 12px 36px -20px rgb(0 0 0 / 0.45);
  overflow: hidden;
}

.pred-comment-form-error {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--no);
  background: hsl(348 86% 57% / 0.1);
  border-bottom: 1px solid hsl(348 86% 57% / 0.22);
}

.pred-comment-form {
  margin: 0;
  padding: 1.1rem 1.1rem 1rem;
  border-bottom: 1px solid hsl(240 14% 12% / 0.95);
}
.pred-comment-form__row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.pred-comment-avatar {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, hsl(259 94% 62%), hsl(198 97% 48%));
  box-shadow: 0 4px 14px hsl(259 94% 65% / 0.25);
}
.pred-comment-form__main {
  flex: 1;
  min-width: 0;
}
.pred-comment-textarea {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--foreground);
  background: hsl(240 18% 5% / 1);
  border: 1px solid hsl(240 14% 16% / 1);
  border-radius: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pred-comment-textarea::placeholder {
  color: hsl(215 16% 47% / 0.85);
}
.pred-comment-textarea:focus {
  outline: none;
  border-color: hsl(259 94% 65% / 0.45);
  box-shadow: 0 0 0 3px hsl(259 94% 65% / 0.12);
}
.pred-comment-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.pred-comment-form__hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.pred-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  padding: 0.5rem 1.1rem;
  border-radius: 0.65rem;
}
.pred-comment-sending {
  font-size: 0.8125rem;
  font-weight: 700;
}

.pred-comments-list {
  padding: 0.65rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comment-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1rem;
  border-radius: 0.875rem;
  background: hsl(240 15% 7% / 0.55);
  border: 1px solid hsl(240 14% 14% / 0.75);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.comment-item:hover {
  border-color: hsl(259 94% 65% / 0.22);
  background: hsl(240 15% 8% / 0.75);
}
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.comment-item__user { font-size: 0.875rem; font-weight: 800; }
.comment-item__date { font-size: 0.7rem; font-weight: 600; color: var(--muted-foreground); }
.comment-item__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(210 20% 92% / 0.95);
  word-break: break-word;
}

.pred-comment-item--enter {
  animation: predCommentEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes predCommentEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pred-empty-comments {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid hsl(240 14% 12% / 0.85);
}
.pred-empty-comments svg {
  margin: 0 auto 0.75rem;
  opacity: 0.35;
  color: var(--muted-foreground);
}
.pred-empty-comments__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--foreground);
}
.pred-empty-comments__sub {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prediction-not-found {
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.25rem;
}
.prediction-not-found .nf-card { margin: 0 auto; }

.live-feed-banner {
  border-color: hsl(198 97% 50% / 0.2);
  background: linear-gradient(135deg, hsl(198 97% 50% / 0.06), var(--secondary));
}

/* ─── Live marchés (suite : pastilles flux) ─── */
.live-feed-pill {
  border-color: hsl(var(--border));
  color: var(--muted-foreground);
  background: hsl(240 18% 7% / 0.9);
}
.live-feed-pill--ok {
  border-color: hsl(160 68% 48% / 0.35);
  color: var(--yes);
  background: hsl(160 68% 48% / 0.1);
}
.live-feed-pill--warn {
  border-color: hsl(38 92% 50% / 0.35);
  color: #fbbf24;
  background: hsl(38 92% 50% / 0.08);
}
.live-feed-pill--err {
  border-color: hsl(348 86% 57% / 0.35);
  color: var(--no);
  background: hsl(348 86% 57% / 0.08);
}

.live-odds-bar > div {
  transition: width 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}

[data-live-role='price'].live-price-tick {
  animation: predixLivePriceFlash 0.55s ease;
}
@keyframes predixLivePriceFlash {
  0% { color: var(--accent); text-shadow: 0 0 12px hsl(198 97% 50% / 0.5); }
  100% { color: inherit; text-shadow: none; }
}

.live-hero-ticker {
  border-radius: 1rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid hsl(198 97% 50% / 0.2);
  background: hsl(198 97% 50% / 0.06);
  min-width: 0;
}
@media (min-width: 480px) {
  .live-hero-ticker {
    padding: 1rem 1rem;
  }
}
@media (min-width: 640px) {
  .live-hero-ticker {
    padding: 1rem 1.125rem;
  }
}
.live-hero-ticker__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
}
@media (min-width: 700px) {
  .live-hero-ticker__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
.live-hero-ticker__k {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.live-hero-ticker__p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.live-hero-ticker__hint { max-width: 40rem; }

/* Ajustements tactiles / petits écrans (détail prédiction, cotes, pari) */
@media (max-width: 639px) {
  .odds-bar--lg {
    height: 2.5rem;
    font-size: 0.68rem;
  }
  .odds-bar--lg > div {
    padding: 0 0.4rem;
  }
  .odds-bar--lg .drop-shadow {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .prediction-live-chart__bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .prediction-live-chart__countdown {
    min-width: 0;
    text-align: left;
  }
  .prediction-cotes {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0;
    padding-right: 0;
  }
  .bet-panel__top {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem 0.95rem;
    gap: 0.85rem;
  }
  .bet-panel__balance-pill {
    align-self: stretch;
    text-align: center;
    min-width: 0;
    width: 100%;
  }
  .bet-panel__timer {
    padding: 0.85rem 1rem;
  }
  .bet-panel__form {
    padding: 1rem 1rem 1.25rem;
    gap: 1.1rem;
  }
  .bet-panel__timer-digits {
    font-size: 1.45rem;
  }
  .bet-choice-card {
    min-height: 0;
    padding: 0.95rem 0.65rem 1.05rem;
  }
  .live-chart-wrap--pred {
    height: clamp(200px, 56vw, 280px);
    min-height: 200px;
  }
  .pred-comment-form {
    padding: 0.85rem 0.75rem 0.85rem;
  }
  .pred-comments-list {
    padding: 0.5rem 0.5rem 0.85rem;
  }
  .comment-item {
    padding: 0.85rem 0.75rem;
  }
  .prediction-closed-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem;
  }
  .live-list-card {
    padding: 1rem 0.9rem 0.95rem;
  }
}

@media (max-width: 420px) {
  .live-hero-ticker__p.text-3xl {
    font-size: 1.375rem;
  }
  .prediction-title {
    font-size: 1.35rem;
  }
  .prediction-hero {
    padding: 1rem 0.85rem 1.15rem;
    margin-bottom: 1.35rem;
    border-radius: 1rem;
  }
  .prediction-live-chart {
    padding: 0.8rem 0.7rem 0.7rem;
  }
  .bet-stake__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .bet-chip {
    min-width: 0;
    padding: 0.45rem 0.35rem;
    font-size: 0.7rem;
  }
  .bet-chip--max {
    grid-column: 1 / -1;
  }
  .pred-comment-form__row {
    flex-direction: column;
    align-items: stretch;
  }
  .pred-comment-avatar {
    align-self: flex-start;
  }
}

.live-card {
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* Liste page Live — cartes compactes */
.live-list-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 1.25rem 1.125rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid hsl(198 97% 50% / 0.18);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.live-list-card:hover {
  border-color: hsl(198 97% 50% / 0.45);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.28);
  transform: translateY(-2px);
}
.live-list-card__glow {
  position: absolute;
  top: -2.5rem;
  right: -2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: hsl(198 97% 50% / 0.07);
  filter: blur(36px);
  pointer-events: none;
}
.live-page-timer {
  letter-spacing: 0.06em;
}

/* Badges source marché */
.pred-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: var(--muted-foreground);
}
.pred-source-badge--predix {
  border-color: hsl(259 94% 65% / 0.35);
  color: var(--primary);
  background: hsl(259 94% 65% / 0.12);
}
.pred-source-badge--polymarket {
  border-color: hsl(198 97% 50% / 0.35);
  color: var(--accent);
  background: hsl(198 97% 50% / 0.1);
}
.pred-source-badge--live {
  border-color: hsl(198 97% 50% / 0.45);
  color: var(--accent);
  background: hsl(198 97% 50% / 0.14);
}

.pred-resolution-rules {
  margin: 1rem 0 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--secondary) / 0.5);
}
.pred-resolution-rules--compact { margin: 0.75rem 0; }
.pred-resolution-rules__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
}
.pred-resolution-rules__summary::-webkit-details-marker { display: none; }
.pred-resolution-rules__body {
  padding: 0 1rem 1rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.pred-resolution-rules__body strong.text-foreground {
  color: var(--foreground);
}

.explore-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}
.explore-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.explore-filter__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground-strong);
  margin-bottom: 0.35rem;
}
.explore-filter--check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  min-height: 2.5rem;
}

.bet-recap-dialog {
  border: none;
  padding: 0;
  max-width: 22rem;
  width: calc(100% - 2rem);
  background: transparent;
}
.bet-recap-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
}
.bet-recap-dialog__card {
  background: var(--card);
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}
.bet-recap-dialog__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
}
.bet-recap-dialog__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.dashboard-pnl-summary {
  border-color: hsl(var(--border)) !important;
}
