:root { --cz-bg:#0f212e; --cz-bg2:#1a2c38; --cz-card:#213743; --cz-line:#2f4553; --cz-green:#00e701; --cz-greenD:#00c800; --cz-txt:#fff; --cz-mut:#8aa0b1; }
  .cz-header { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
    background: linear-gradient(180deg, #0d2230 0%, #091823 100%);
    border-bottom: 1px solid rgba(245,197,66,.22);
    box-shadow: 0 3px 18px rgba(0,0,0,.5), inset 0 -1px 0 rgba(245,197,66,.12); }
  .cz-logo { font-weight: 900; font-size: 19px; letter-spacing: .5px; color: #ffe9a8;
    text-shadow: 0 0 12px rgba(245,197,66,.55); }
  .cz-logo span { background: linear-gradient(90deg, #ff4d6d, #ff8a3d); -webkit-background-clip: text;
    background-clip: text; color: transparent; }
  .cz-actions { display: flex; align-items: center; gap: 10px; }
  .cz-bal { display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
    border-radius: 11px; padding: 7px 13px; font-weight: 800; color: #fff;
    background: linear-gradient(180deg, rgba(58,42,18,.55), rgba(16,11,5,.7));
    border: 1px solid rgba(245,197,66,.5);
    box-shadow: inset 0 0 12px rgba(245,197,66,.15), 0 2px 8px rgba(0,0,0,.35); transition: box-shadow .15s; }
  .cz-bal:hover { box-shadow: inset 0 0 14px rgba(245,197,66,.28), 0 0 14px rgba(245,197,66,.3); }
  .cz-bal b { color: #ffd24a; animation: czGold 2.6s ease-in-out infinite; }
  @keyframes czGold { 0%, 100% { text-shadow: 0 0 8px rgba(245,197,66,.45); } 50% { text-shadow: 0 0 15px rgba(245,197,66,.9); } }
  .cz-deposit { position: relative; overflow: hidden; color: #042b07; border: none; white-space: nowrap;
    background: linear-gradient(180deg, #1bff4f, var(--cz-greenD)); font-weight: 900; padding: 9px 17px;
    border-radius: 11px; cursor: pointer;
    box-shadow: 0 0 18px rgba(0,231,1,.45), inset 0 1px 0 rgba(255,255,255,.4); }
  .cz-deposit::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg); animation: czSheen 3.4s ease-in-out infinite; }
  @keyframes czSheen { 0%, 62% { left: -120%; } 80%, 100% { left: 150%; } }
  .cz-deposit:active { transform: translateY(1px); }
  .cz-acct button { background: var(--cz-card); color: #fff; border: 1px solid var(--cz-line); border-radius: 10px;
    padding: 8px 14px; font-weight: 800; cursor: pointer; }
  .cz-avatar { display: flex; align-items: center; gap: 8px; background: var(--cz-card); border: 1px solid var(--cz-line);
    border-radius: 10px; padding: 5px 12px 5px 6px; cursor: pointer; font-weight: 800; color: #fff; }
  .cz-avatar .av { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd24a, #e0892a);
    display: flex; align-items: center; justify-content: center; font-weight: 900; color: #3a2200; }

  /* le HUD du jeu descend sous le header ; le solde redondant du jeu est masqué */
  .topbar { top: 62px !important; }
  #message { top: 116px !important; }
  .hud-pill.balance { display: none; }
  @media (max-width: 560px) {
    .cz-header { height: 48px; padding: 0 7px; }
    .cz-logo { font-size: 13px; white-space: nowrap; line-height: 1; }
    .cz-actions { gap: 5px; }
    .cz-bal { padding: 5px 8px; font-size: 12px; gap: 4px; }
    .cz-deposit { padding: 7px 9px; font-size: 12px; }
    .cz-acct button, .cz-avatar { padding: 6px 8px; font-size: 12px; }
    .cz-avatar .av { width: 22px; height: 22px; }
    .cz-ico { width: 32px; height: 32px; font-size: 15px; }
    #czLead { display: none; }                 /* classement masqué sur petit écran (gain de place) */
    .topbar { top: 84px !important; }                                  /* combo sous le ticker live */
    .topbar .hud-pill.combo { transform: scale(.82); transform-origin: left top; }   /* combo plus discret */
    #message { top: 116px !important; font-size: 15px; padding: 6px 14px !important; }
  }

  .cz-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(4,10,15,.72); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; padding: 16px; }
  .cz-overlay.show { display: flex; }
  .cz-modal { width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; background: var(--cz-bg2);
    border: 1px solid var(--cz-line); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.6); color: var(--cz-txt); }
  .cz-mhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--cz-line); }
  .cz-mhead h3 { margin: 0; font-size: 18px; font-weight: 900; }
  .cz-x { background: none; border: none; color: var(--cz-mut); font-size: 22px; cursor: pointer; line-height: 1; }
  .cz-body { padding: 18px; }
  .cz-tabs { display: flex; gap: 6px; background: var(--cz-bg); padding: 5px; border-radius: 12px; margin-bottom: 16px; }
  .cz-tabs button { flex: 1; background: none; border: none; color: var(--cz-mut); font-weight: 800; padding: 9px; border-radius: 9px; cursor: pointer; }
  .cz-tabs button.on { background: var(--cz-card); color: #fff; }
  .cz-field { margin-bottom: 12px; }
  .cz-field label { display: block; font-size: 12px; font-weight: 800; color: var(--cz-mut); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
  .cz-field input, .cz-field select { width: 100%; background: var(--cz-bg); border: 1px solid var(--cz-line); color: #fff;
    border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 700; outline: none; }
  .cz-field input:focus { border-color: var(--cz-green); }
  .cz-btn { width: 100%; background: linear-gradient(180deg, var(--cz-green), var(--cz-greenD)); color: #042b07; border: none;
    font-weight: 900; font-size: 16px; padding: 14px; border-radius: 11px; cursor: pointer; box-shadow: 0 0 18px rgba(0,231,1,.35); }
  .cz-btn:active { transform: translateY(1px); }
  .cz-btn.alt { background: var(--cz-card); color: #fff; box-shadow: none; border: 1px solid var(--cz-line); }
  .cz-btn:disabled { filter: grayscale(.5) brightness(.8); cursor: default; }
  .cz-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .cz-chips button { flex: 1; min-width: 60px; background: var(--cz-bg); border: 1px solid var(--cz-line); color: #fff;
    font-weight: 800; padding: 11px 0; border-radius: 10px; cursor: pointer; }
  .cz-chips button.on { border-color: var(--cz-green); color: var(--cz-green); }
  .cz-balbig { text-align: center; margin-bottom: 14px; }
  .cz-balbig .lab { font-size: 12px; color: var(--cz-mut); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
  .cz-balbig .amt { font-size: 38px; font-weight: 900; color: #ffd24a; }
  .cz-methods { display: flex; gap: 8px; margin-bottom: 14px; }
  .cz-methods button { flex: 1; background: var(--cz-bg); border: 2px solid var(--cz-line); color: #fff; border-radius: 12px;
    padding: 14px 8px; cursor: pointer; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
  .cz-methods button.on { border-color: var(--cz-green); }
  .cz-methods .ic { font-size: 22px; }
  .cz-row { display: flex; gap: 10px; }
  .cz-tx { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--cz-line); }
  .cz-tx .l { display: flex; flex-direction: column; gap: 2px; }
  .cz-tx .t { font-weight: 800; }
  .cz-tx .d { font-size: 12px; color: var(--cz-mut); }
  .cz-tx .amt { font-weight: 900; }
  .cz-tx .amt.pos { color: var(--cz-green); }
  .cz-tx .amt.neg { color: #ff6b6b; }
  .cz-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
  .cz-pill.ok { background: rgba(0,231,1,.15); color: var(--cz-green); }
  .cz-pill.pend { background: rgba(255,193,7,.15); color: #ffc107; }
  .cz-mini { background: var(--cz-card); border: 1px solid var(--cz-line); color: #fff; font-weight: 800; font-size: 12px; padding: 6px 9px; border-radius: 8px; cursor: pointer; }
  .cz-mini:active { transform: translateY(1px); }
  .cz-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .cz-stat { background: var(--cz-bg); border: 1px solid var(--cz-line); border-radius: 12px; padding: 12px; }
  .cz-stat .k { font-size: 11px; color: var(--cz-mut); font-weight: 800; text-transform: uppercase; }
  .cz-stat .v { font-size: 20px; font-weight: 900; color: #fff; }
  .cz-note { font-size: 12px; color: var(--cz-mut); text-align: center; margin-top: 12px; }
  .cz-moon { text-align: center; }
  .cz-moonlogo { font-size: 26px; font-weight: 900; background: linear-gradient(90deg,#7d4dff,#00d3c5); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
  .cz-spin { width: 42px; height: 42px; border: 4px solid var(--cz-line); border-top-color: var(--cz-green); border-radius: 50%; margin: 24px auto; animation: czspin 1s linear infinite; }
  @keyframes czspin { to { transform: rotate(360deg); } }
  .cz-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 90;
    background: #0b1a24; border: 1px solid var(--cz-green); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 12px;
    box-shadow: 0 0 24px rgba(0,231,1,.4); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
  .cz-toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }
  .cz-demo { position: fixed; bottom: 4px; left: 6px; z-index: 55; font-size: 10px; color: #5b7180; font-weight: 700; pointer-events: none; }

  /* --- features : VIP / bonus / rakeback / classement / succès --- */
  .cz-acct { display: flex; gap: 8px; align-items: center; }
  .cz-ico { background: var(--cz-card); border: 1px solid var(--cz-line); border-radius: 10px; width: 40px; height: 40px;
    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .cz-ico:active { transform: translateY(1px); }
  .cz-ico.glow { border-color: var(--cz-green); box-shadow: 0 0 0 1px var(--cz-green), 0 0 14px rgba(0,231,1,.6); animation: czpulse 1.4s ease-in-out infinite; }
  @keyframes czpulse { 0%,100% { box-shadow: 0 0 0 1px var(--cz-green), 0 0 10px rgba(0,231,1,.4); } 50% { box-shadow: 0 0 0 1px var(--cz-green), 0 0 20px rgba(0,231,1,.9); } }
  .cz-vip { background: var(--cz-bg); border: 1px solid var(--cz-line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
  .cz-vip-top { display: flex; justify-content: space-between; align-items: center; font-weight: 900; margin-bottom: 8px; }
  .cz-vip-next { color: var(--cz-mut); font-weight: 700; font-size: 13px; }
  .cz-bar { height: 10px; background: var(--cz-line); border-radius: 6px; overflow: hidden; }
  .cz-bar-fill { height: 100%; background: linear-gradient(90deg, #ffd24a, #00e701); border-radius: 6px; transition: width .4s; }
  .cz-rb { display: flex; justify-content: space-between; align-items: center; background: var(--cz-bg);
    border: 1px solid var(--cz-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
  .cz-rb .k { font-size: 11px; color: var(--cz-mut); font-weight: 800; text-transform: uppercase; }
  .cz-rb .v { font-size: 20px; font-weight: 900; color: #ffd24a; }
  .cz-ach { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .cz-badge { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; background: var(--cz-bg); border: 1px solid var(--cz-line); filter: grayscale(1) opacity(.4); }
  .cz-badge.on { filter: none; border-color: var(--cz-green); box-shadow: 0 0 10px rgba(0,231,1,.3); }
  .cz-tx.me { background: rgba(0,231,1,.08); border-radius: 8px; padding-left: 8px; padding-right: 8px; }

  /* ---- feed « live » des joueurs (preuve sociale) ---- */
  .cz-feed { position: fixed; top: 60px; right: 8px; width: 186px; z-index: 6; pointer-events: none;
    display: flex; flex-direction: column; gap: 6px; font-family: 'Trebuchet MS', sans-serif; }
  .cz-fhead { display: flex; align-items: center; gap: 7px; padding: 4px 10px; font-size: 11px; font-weight: 900;
    letter-spacing: 1.5px; color: #cfc3e6; text-transform: uppercase; }
  .cz-fdot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b;
    animation: czfBlink 1.1s ease-in-out infinite; }
  @keyframes czfBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
  .cz-frows { display: flex; flex-direction: column; gap: 6px; }
  .cz-frow { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 11px;
    background: linear-gradient(180deg, rgba(22,15,32,.86), rgba(10,7,18,.9));
    border: 1px solid rgba(255,255,255,.07); border-left: 3px solid #4fe07a;
    box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: czfIn .35s ease;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .cz-frow.lose { border-left-color: #ff4d4d; }
  .cz-fav { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center;
    justify-content: center; font-weight: 900; font-size: 12px; color: #1a1020;
    background: linear-gradient(180deg, #ffe879, #e89a0c); }
  .cz-frow.lose .cz-fav { background: linear-gradient(180deg, #ff9a9a, #c0203a); color: #fff; }
  .cz-fnm { font-size: 12px; font-weight: 800; color: #cfc3e6; flex: 1; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
  .cz-fres { font-size: 12px; font-weight: 900; }
  .cz-frow.win .cz-fres { color: #58e07f; text-shadow: 0 0 8px rgba(88,224,127,.5); }
  .cz-frow.lose .cz-fres { color: #ff6b6b; }
  @keyframes czfIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
  @media (max-width: 560px) {
    /* feed = TICKER horizontal sous le header -> ne recouvre plus le jeu */
    .cz-feed { top: 48px; left: 0; right: 0; width: auto; flex-direction: row; align-items: center; gap: 8px;
      height: 32px; padding: 0 8px; overflow: hidden;
      background: linear-gradient(180deg, rgba(8,5,16,.92), rgba(8,5,16,.55));
      border-bottom: 1px solid rgba(255,255,255,.06);
      -webkit-mask-image: linear-gradient(90deg, #000 0, #000 84%, transparent 100%);   /* fondu propre à droite (effet ticker) */
      mask-image: linear-gradient(90deg, #000 0, #000 84%, transparent 100%); }
    .cz-fhead { flex: none; padding: 0; font-size: 8.5px; letter-spacing: .5px; }
    .cz-frows { flex-direction: row; gap: 7px; overflow: hidden; flex: 1; flex-wrap: nowrap; }
    .cz-frow { flex: none; padding: 3px 8px; box-shadow: none; backdrop-filter: none; }
    .cz-fav { width: 16px; height: 16px; font-size: 9px; }
    .cz-fnm { font-size: 10px; max-width: 74px; } .cz-fres { font-size: 10px; }
  }

  /* ---- back-office admin ---- */
  .cz-modal.lg { max-width: 720px; }
  .cz-tabs-admin { flex-wrap: wrap; margin: 0 18px; }
  .cz-tabs-admin button { font-size: 13px; padding: 9px 6px; }
  .cz-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cz-kpi { background: var(--cz-card); border: 1px solid var(--cz-line); border-radius: 10px; padding: 10px; }
  .cz-kpi .k { font-size: 11px; color: var(--cz-mut); font-weight: 800; }
  .cz-kpi .v { font-size: 18px; font-weight: 900; color: #fff; margin-top: 2px; }
  .cz-kpi .v.pos { color: var(--cz-green); }
  .cz-kpi .v.neg { color: #ff5a5a; }
  .cz-admin-actions { display: flex; gap: 5px; align-items: center; }
  .cz-mini.danger { background: rgba(255,77,77,.16); border-color: rgba(255,77,77,.5); color: #ff8a8a; }
  .cz-mini:disabled { opacity: .4; cursor: default; }
  .cz-mini-input { width: 82px; background: var(--cz-bg); border: 1px solid var(--cz-line); color: #fff;
    border-radius: 8px; padding: 6px 8px; font-weight: 800; font-size: 13px; }
  .cz-aff-new { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
  .cz-aff-new .cz-btn, .cz-aff-new .cz-mini { height: 42px; }
  .cz-aff { background: var(--cz-card); border: 1px solid var(--cz-line); border-radius: 10px; padding: 11px; margin-bottom: 8px; }
  .cz-aff-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .cz-code { font-family: 'SF Mono', Menlo, monospace; font-size: 17px; font-weight: 900; color: #ffd24a;
    letter-spacing: 1.5px; background: var(--cz-bg); padding: 5px 11px; border-radius: 8px;
    border: 1px dashed rgba(245,197,66,.55); }
  .cz-aff-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; font-weight: 800; color: #afe0c0; }
  @media (max-width: 560px) { .cz-kpis { grid-template-columns: repeat(2, 1fr); } .cz-modal.lg { max-width: 100%; } }

  /* ---- checkout carte (paiement) ---- */
  .cz-pay-amt { display: flex; justify-content: space-between; align-items: center; background: var(--cz-bg);
    border: 1px solid var(--cz-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
  .cz-pay-amt span { color: var(--cz-mut); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
  .cz-pay-amt b { font-size: 24px; font-weight: 900; color: #ffd24a; }

  /* ---- moyens de paiement (dépôt) ---- */
  .cz-pays { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .cz-pay { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px;
    background: var(--cz-bg); border: 2px solid var(--cz-line); border-radius: 12px; color: #fff; cursor: pointer; transition: border-color .12s, transform .1s; }
  .cz-pay:hover { border-color: var(--cz-green); transform: translateY(-2px); }
  .cz-pay:active { transform: translateY(0); }
  .cz-pay .ic { font-size: 22px; }
  .cz-pay b { font-size: 13px; font-weight: 800; }
  .cz-pay small { font-size: 10px; color: var(--cz-mut); }

  /* ---- branding checkout prestataire ---- */
  .cz-brand { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 14px;
    border-radius: 12px; border: 1px solid var(--cz-line);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
  .cz-brandlogo { font-size: 20px; font-weight: 900; letter-spacing: .5px; color: var(--accent); text-transform: lowercase; }
  .cz-brandsub { font-size: 12px; color: var(--cz-mut); font-weight: 700; }
