:root {
  --bg: #0b0e13;
  --panel: #11151c;
  --card: #141a22;
  --text: #eaeaea;
  --muted: #a9b2c0;
  --accent: #ffd24d;
  --border: rgba(255,255,255,0.12);

  --bet: #43b0ff;
  --raise: #33d17a;
  --fold: #ff4d5a;

  --plus: #ffd24d;
  --minus: #ff8a3d;
  --gamble: #b678ff;
  --rebet: #4de3ff;
  --reveal: #ffffff;
  --pass: #9aa0a6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 30% 10%, #141b26, var(--bg));
  color: var(--text);
  font-family: Arial, sans-serif;
}

.app { min-height: 100vh; }

.topbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  align-items: center;
}

.title { font-weight: 700; letter-spacing: 0.5px; }
.status { color: var(--muted); display:flex; gap:10px; align-items:center; }

.badge{
  display:inline-block;
  border:1px solid rgba(255,255,255,0.18);
  padding:6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,0.22);
}

.panel { padding: 16px; }
.hidden { display: none !important; }

.grid {
  display: grid;
  grid-template-columns: 380px 380px 380px;
  gap: 14px;
  align-items: start;
  justify-content: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

h2, h3 { margin: 8px 0 10px; }
.help { color: var(--muted); font-size: 13px; line-height: 1.35; }
label { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.rowCheck {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.rowCheck input { width: auto; }

input, select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f131a;
  color: var(--text);
  outline: none;
}

button {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  cursor: pointer;
}
button:hover { border-color: rgba(255,255,255,0.25); }

.btnPrimary{
  background: rgba(255,210,77,0.15);
  border-color: rgba(255,210,77,0.45);
}
.btnOutline{
  background: rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.18);
}

.miniBtn{
  width: auto;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 10px;
}

.avatarRow{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top: 6px;
}

.avatarPreview{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.25);
  background-size: cover;
  background-position: center;
}

.codeBox {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 10px;
  color: var(--muted);
}
.code {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#game {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  align-items: start;
}

.sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  height: calc(100vh - 70px);
  position: sticky;
  top: 54px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.small { color: var(--muted); font-size: 12px; margin-bottom: 6px; }

.main {
  position: relative;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 240px;
  gap: 14px;
}

.tableWrap{
  width: min(820px, calc(100vw - 380px));
  display: grid;
  place-items: center;
}

.table {
  position: relative;
  width: min(780px, calc(100vw - 420px));
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1e3b2f, #08140f);
  border: 10px solid #c9a24d;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.55);
}

/* ---- CENTER POT + DECK PILES ---- */
.potCenter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 34px rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  z-index: 25;
}
.potLabel{
  position: absolute;
  top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.potAmount{
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

.chipStack{
  position: absolute;
  bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.stackChip{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 10px rgba(0,0,0,0.5);
}
.stackChip:nth-child(2){ transform: translateY(4px); }
.stackChip:nth-child(3){ transform: translateY(8px); }
.stackChip:nth-child(4){ transform: translateY(12px); }

.deckPile{
  position:absolute;
  width: 58px;
  height: 78px;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 18px rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  z-index: 24;
}
.deckPile::before{
  content:"";
  width: 48px;
  height: 68px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.12));
}
.deckTag{
  position:absolute;
  bottom:-18px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 800;
}
.deckPos{ left: 50%; top: 50%; transform: translate(-210px, -45px); }
.deckNeg{ left: 50%; top: 50%; transform: translate(152px, -45px); }
.deckFinal{ left: 50%; top: 50%; transform: translate(-28px, 130px); opacity: 0.7; }
.deckFinal .deckTag{ font-weight:700; }

/* -------- IMMERSIVE TOKENS -------- */
.token {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.25);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 22px rgba(0,0,0,0.5);
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  z-index: 30;
}
.token.active {
  border-color: rgba(255,210,77,0.95);
  box-shadow: 0 0 26px rgba(255,210,77,0.22), 0 12px 22px rgba(0,0,0,0.55);
}

.tokenLabel {
  position: relative;
  z-index: 2;
  max-width: 104px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tokenMeta {
  margin-top: 2px;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
}

/* Seat info (cards) */
.seat {
  position: absolute;
  width: 230px;
  text-align: center;
  padding: 6px;
  border-radius: 12px;
  z-index: 10;
}

.cards { margin-top: 6px; }

.cardMini {
  display: inline-block;
  width: 38px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  margin: 2px;
  line-height: 54px;
  background: rgba(0,0,0,0.35);
  font-weight: 900;
}

.metaLine { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* -------- DOCK CONTROLS (always bottom) -------- */
.controlsDock{
  position: fixed;
  left: 320px;
  right: 0;
  bottom: 0;
  z-index: 80;
  pointer-events: none;
  display: grid;
  place-items: center;
  padding: 12px 12px 14px;
  background: linear-gradient(to top, rgba(11,14,19,0.92), rgba(11,14,19,0));
}
.controlsDockInner{
  pointer-events: auto;
  width: min(1020px, calc(100vw - 380px));
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.45);
}

.pick {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px;
  background: rgba(0,0,0,0.22);
}
.pickTitle { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pickBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.smallBtn { margin-top: 0; padding: 10px 8px; }
.smallBtn.active {
  border-color: rgba(255,210,77,0.9);
  box-shadow: 0 0 10px rgba(255,210,77,0.25);
}
.pickHint { margin-top: 8px; font-size: 11px; color: var(--muted); }

.controlsRow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.controlsRow button{
  width: auto;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.sep{
  width: 10px;
  height: 34px;
  border-left: 1px solid rgba(255,255,255,0.12);
  margin: 0 2px;
}

.btnBet{ border-width: 2px; }
.btnCall{ border-color: rgba(67,176,255,0.75); }
.btnRaise{ border-color: rgba(51,209,122,0.75); }
.btnFold{ border-color: rgba(255,77,90,0.75); }

.btnAct{ border-width: 2px; }
.btnPlus{ border-color: rgba(255,210,77,0.70); }
.btnMinus{ border-color: rgba(255,138,61,0.70); }
.btnGamble{ border-color: rgba(182,120,255,0.70); }
.btnRebet{ border-color: rgba(77,227,255,0.70); }
.btnReveal{ border-color: rgba(255,255,255,0.40); }
.btnPass{ border-color: rgba(154,160,166,0.55); }

button:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(40%);
}

/* Log */
.log {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.25);
  font-size: 12px;
  color: var(--muted);
  overflow-y: auto;
}
.logSidebar{ height: 250px; }

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: grid;
  place-items: center;
  z-index: 120;
}
.overlayCard {
  width: 900px;
  max-width: calc(100vw - 30px);
  background: #0f131a;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 16px;
}
.overlaySub { color: var(--muted); margin-bottom: 10px; }
.scoreboard {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}
.scoreRow {
  display: grid;
  grid-template-columns: 40px 1fr 120px 120px 120px 220px;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
  font-size: 13px;
}
.scoreHead {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.handBox { display: flex; gap: 6px; }
.handChip {
  width: 34px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.25);
  font-weight: 900;
}
.overlayActions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.overlayActions button { width: auto; padding: 10px 14px; margin: 0; }

/* Avatar grid modal */
.avatarGrid{
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.avatarItem{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background-size: cover;
  background-position: center;
  cursor:pointer;
  position: relative;
}
.avatarItem:hover{
  border-color: rgba(255,210,77,0.8);
  box-shadow: 0 0 10px rgba(255,210,77,0.20);
}
.avatarDelete {
  position:absolute;
  right:-6px;
  top:-6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-weight: 900;
  display:grid;
  place-items:center;
}

.subTitle { margin-top: 12px; margin-bottom: 6px; }

.uploadBox{
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
}
.uploadTitle{ font-weight: 800; font-size: 13px; }
.uploadRow{
  display:flex;
  gap: 8px;
  align-items:center;
  margin-top: 8px;
}
.uploadRow input{ flex:1; }
.uploadHint{ margin-top: 6px; color: var(--muted); font-size: 12px; }

.miniAvatar{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.25);
  background-size: cover;
  background-position: center;
  display: inline-block;
  flex: 0 0 auto;
}
.pLeft{ display:flex; align-items:center; gap:8px; min-width: 0; }
.pRight{ display:flex; align-items:center; gap:8px; }
.inlineBtn{
  width:auto;
  margin:0;
  padding:6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* ---------- ANIMATIONS ---------- */
.flyingChip{
  position:absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 16px rgba(0,0,0,0.55);
  z-index: 90;
  pointer-events:none;
  transition: transform 520ms cubic-bezier(.2,.9,.2,1), opacity 520ms ease;
  opacity: 1;
}

.flyingCard{
  position:absolute;
  width: 42px;
  height: 60px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  display:grid;
  place-items:center;
  font-weight: 900;
  z-index: 90;
  pointer-events:none;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.2,.9,.2,1), opacity 520ms ease;
  opacity: 1;
}

.flyingCard.flip{
  transform: rotateY(180deg);
}

/* ---------- CHEAT MODAL ---------- */
.cheatModalCard{
  width: 760px;
  max-width: calc(100vw - 30px);
  background: #0f131a;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 16px;
}
.cheatTitle{
  font-weight: 900;
  font-size: 18px;
}
.cheatSub{
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.cheatGrid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.cheatPick{
  height: 92px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.24);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-weight: 900;
  font-size: 18px;
}
.cheatPick:hover{
  border-color: rgba(255,210,77,0.85);
  box-shadow: 0 0 14px rgba(255,210,77,0.20);
}
.cheatActions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
}
.cheatActions button{
  width:auto;
  margin:0;
  padding: 10px 14px;
}

/* MJ grid */
.mjGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* ---- extra small action buttons in lists ---- */
.kickBtn {
  border-color: rgba(255,77,90,0.75);
}
.percBtn {
  border-color: rgba(255,255,255,0.28);
}
/* (garde tout ton CSS existant) */

/* ... ton :root, body, etc ... */

.badge{
  display:inline-block;
  border:1px solid rgba(255,255,255,0.18);
  padding:6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,0.22);
}

/* ✅ AJOUT */
.badgePremium{
  color: #ffb347 !important;
  border-color: rgba(255, 179, 71, 0.55) !important;
  background: rgba(255, 179, 71, 0.10) !important;
}
.badgeSimple{
  color: #6bff8a !important;
  border-color: rgba(107, 255, 138, 0.45) !important;
  background: rgba(107, 255, 138, 0.10) !important;
}

/* (le reste de ton fichier inchangé ensuite) */
