@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');
        body { font-family: 'Plus Jakarta Sans', sans-serif; }
        .mono { font-family: 'JetBrains Mono', monospace; }

        .bottom-sheet {
            transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
        }
        .bottom-sheet.closed {
            transform: translateY(100%);
        }

        .sidebar-open { transform: translateX(0) !important; }

        .sidenav-item {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 10px; border-radius: 10px;
            font-size: 13px; font-weight: 600; color: #475569;
            transition: all 0.15s; position: relative;
        }
        .sidenav-item:hover { background: #f1f5f9; }
        .sidenav-item.active { background: #2563eb; color: white; }
        .sidenav-group-btn {
            display: flex; width: 100%; align-items: center; justify-content: space-between;
            font-size: 10px; font-weight: 800; text-transform: uppercase;
            letter-spacing: 0.06em; color: #94a3b8; padding: 12px 10px 4px;
        }
        .sidenav-group-btn:hover { color: #64748b; }
        .sidenav-group-btn .chev { width: 12px; height: 12px; transition: transform 0.2s; }
        .sidenav-group.collapsed .chev { transform: rotate(-90deg); }
        .sidenav-group.collapsed .sidenav-group-items { display: none; }

        .inv-tab { background: #f1f5f9; color: #64748b; }
        .inv-tab.active { background: #2563eb; color: white; }

        .banker-inv-tab { background: #f1f5f9; color: #64748b; }
        .banker-inv-tab.active { background: #2563eb; color: white; }

        .admin-tab { background: transparent; color: #64748b; border: none; }
        .admin-tab.active { background: #2563eb; color: white; border: none; }
        .shop-cols-btn { color: #94a3b8; }
        .shop-cols-btn.active { background: #2563eb; color: white; }
        .accent-swatch { box-shadow: 0 0 0 2px white, 0 0 0 4px transparent; cursor: pointer; }
        .accent-swatch.selected { box-shadow: 0 0 0 2px white, 0 0 0 4px #1e293b; }
        @keyframes spinSlotBlur { 0%, 100% { transform: translateY(0); filter: blur(0); } 50% { transform: translateY(-6px); filter: blur(2px); } }
        

        /* --- Personnalisation du thème (couleur d'accent) --- */
        :root[data-accent="red"] .bg-blue-600 { background-color: #dc2626 !important; }
        :root[data-accent="red"] .hover\:bg-blue-700:hover { background-color: #b91c1c !important; }
        :root[data-accent="red"] .text-blue-600 { color: #dc2626 !important; }
        :root[data-accent="red"] .text-blue-400 { color: #f87171 !important; }
        :root[data-accent="red"] .border-blue-500 { border-color: #dc2626 !important; }
        :root[data-accent="red"] .bg-blue-50 { background-color: #fef2f2 !important; }
        :root[data-accent="red"] .bg-blue-500\/10 { background-color: rgba(220,38,38,0.1) !important; }
        :root[data-accent="red"] .border-blue-500\/20 { border-color: rgba(220,38,38,0.2) !important; }
        :root[data-accent="red"] .focus\:border-blue-500:focus { border-color: #dc2626 !important; }
        :root[data-accent="red"] .sidenav-item.active { background: #dc2626 !important; }
        :root[data-accent="red"] .admin-tab.active { background: #dc2626 !important; }
        :root[data-accent="red"] .shop-cols-btn.active { background: #dc2626 !important; }

        :root[data-accent="green"] .bg-blue-600 { background-color: #16a34a !important; }
        :root[data-accent="green"] .hover\:bg-blue-700:hover { background-color: #15803d !important; }
        :root[data-accent="green"] .text-blue-600 { color: #16a34a !important; }
        :root[data-accent="green"] .text-blue-400 { color: #4ade80 !important; }
        :root[data-accent="green"] .border-blue-500 { border-color: #16a34a !important; }
        :root[data-accent="green"] .bg-blue-50 { background-color: #f0fdf4 !important; }
        :root[data-accent="green"] .bg-blue-500\/10 { background-color: rgba(22,163,74,0.1) !important; }
        :root[data-accent="green"] .border-blue-500\/20 { border-color: rgba(22,163,74,0.2) !important; }
        :root[data-accent="green"] .focus\:border-blue-500:focus { border-color: #16a34a !important; }
        :root[data-accent="green"] .sidenav-item.active { background: #16a34a !important; }
        :root[data-accent="green"] .admin-tab.active { background: #16a34a !important; }
        :root[data-accent="green"] .shop-cols-btn.active { background: #16a34a !important; }

        :root[data-accent="purple"] .bg-blue-600 { background-color: #7c3aed !important; }
        :root[data-accent="purple"] .hover\:bg-blue-700:hover { background-color: #6d28d9 !important; }
        :root[data-accent="purple"] .text-blue-600 { color: #7c3aed !important; }
        :root[data-accent="purple"] .text-blue-400 { color: #a78bfa !important; }
        :root[data-accent="purple"] .border-blue-500 { border-color: #7c3aed !important; }
        :root[data-accent="purple"] .bg-blue-50 { background-color: #f5f3ff !important; }
        :root[data-accent="purple"] .bg-blue-500\/10 { background-color: rgba(124,58,237,0.1) !important; }
        :root[data-accent="purple"] .border-blue-500\/20 { border-color: rgba(124,58,237,0.2) !important; }
        :root[data-accent="purple"] .focus\:border-blue-500:focus { border-color: #7c3aed !important; }
        :root[data-accent="purple"] .sidenav-item.active { background: #7c3aed !important; }
        :root[data-accent="purple"] .admin-tab.active { background: #7c3aed !important; }
        :root[data-accent="purple"] .shop-cols-btn.active { background: #7c3aed !important; }

        /* --- Casino : machine à sous --- */
        .slot-frame { background: linear-gradient(160deg, rgba(0,0,0,.35), rgba(0,0,0,.15)); border: 2px solid rgba(251,191,36,.45); box-shadow: inset 0 0 30px rgba(251,191,36,.10); }
        .slot-frame.jackpot { animation: jackpotGlow .55s ease-in-out 6; }
        @keyframes jackpotGlow { 50% { box-shadow: 0 0 40px 6px rgba(251,191,36,.75), inset 0 0 40px rgba(251,191,36,.35); } }
        .reel { position: relative; width: 76px; height: 92px; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #0f172a, #1e293b 50%, #0f172a); box-shadow: inset 0 8px 14px rgba(0,0,0,.6), inset 0 -8px 14px rgba(0,0,0,.6); }
        .reel-strip { display: flex; flex-direction: column; will-change: transform; }
        .reel-cell { height: 92px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 46px; }
        .reel.spinning .reel-strip { animation: reelLoop .45s linear infinite; filter: blur(1.6px); }
        @keyframes reelLoop { from { transform: translateY(0); } to { transform: translateY(var(--loop)); } }
        .reel.win { animation: reelWin .5s ease-in-out 4; box-shadow: 0 0 18px 3px rgba(251,191,36,.9), inset 0 0 12px rgba(251,191,36,.4); }
        @keyframes reelWin { 50% { transform: scale(1.08); } }
        .payline { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(251,191,36,.45); pointer-events: none; z-index: 2; }
        .result-pop { animation: resultPop .5s cubic-bezier(.2,1.4,.4,1); }
        @keyframes resultPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .shake { animation: fxShake .45s; }
        @keyframes fxShake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
        .fx-flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(251,191,36,.55), transparent 70%); animation: fxFlash .9s ease-out forwards; }
        @keyframes fxFlash { from { opacity: 1; } to { opacity: 0; } }
        .chip { width: 46px; height: 46px; border-radius: 50%; font-size: 11px; font-weight: 900; color: #fff; border: 3px dashed rgba(255,255,255,.75); box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .12s; }
        .chip:hover { transform: translateY(-3px); }
        .chip:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }

        /* --- Casino : blackjack --- */
        .bj-table { background: radial-gradient(ellipse at 50% 38%, #1a9150 0%, #14532d 62%, #052e16 100%); border: 4px solid #78350f; box-shadow: inset 0 0 50px rgba(0,0,0,.55), 0 10px 30px rgba(0,0,0,.4); padding: 14px 10px 12px; overflow: hidden; }
        .bj-table::before { content: ''; position: absolute; inset: 7px; border-radius: 22px; border: 1.5px solid rgba(253,230,138,.28); pointer-events: none; }
        .bj-felt-text { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-weight: 900; letter-spacing: .28em; font-size: 10px; color: rgba(253,230,138,.22); pointer-events: none; }
        .bj-shoe { position: absolute; right: 12px; top: 10px; width: 46px; height: 32px; }
        .bj-shoe i { position: absolute; right: 0; width: 38px; height: 26px; border-radius: 4px; background: repeating-linear-gradient(45deg,#1d4ed8 0 5px,#1e3a8a 5px 10px); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
        .bj-shoe i:nth-child(1) { top: 0; right: 6px; } .bj-shoe i:nth-child(2) { top: 3px; right: 3px; } .bj-shoe i:nth-child(3) { top: 6px; right: 0; }
        .bj-zone { position: relative; z-index: 2; text-align: center; }
        .bj-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.88); }
        .bj-total { display: inline-block; min-width: 26px; padding: 1px 9px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fde68a; font-family: 'JetBrains Mono', monospace; transition: all .2s; }
        .bj-total.gold { background: #f59e0b; color: #1e293b; box-shadow: 0 0 14px rgba(251,191,36,.8); }
        .bj-total.bust { background: #e11d48; color: #fff; }
        .bj-total:empty { display: none; }
        .bj-hand { display: flex; justify-content: center; align-items: center; min-height: 100px; padding: 6px 0; }
        .bj-card { width: 62px; height: 90px; perspective: 700px; margin-left: -24px; flex: none; }
        .bj-card:first-child { margin-left: 0; }
        .bj-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4,.2,.2,1); }
        .bj-card.face-down .bj-card-inner { transform: rotateY(180deg); }
        .bj-face { position: absolute; inset: 0; border-radius: 9px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.55); }
        .bj-front { background: linear-gradient(160deg,#fff,#eef2f7); color: #0f172a; font-weight: 800; }
        .bj-front.red { color: #dc2626; }
        .bj-corner { position: absolute; font-size: 14px; line-height: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
        .bj-corner i { font-style: normal; font-size: 12px; }
        .bj-corner.tl { top: 5px; left: 6px; } .bj-corner.br { bottom: 5px; right: 6px; transform: rotate(180deg); }
        .bj-pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; }
        .bj-pip.face { font-size: 36px; font-family: Georgia, serif; font-weight: 900; }
        .bj-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #1d4ed8 0 6px, #1e3a8a 6px 12px); border: 3px solid #fff; }
        .bj-card.dealing { animation: bjDeal .46s cubic-bezier(.2,.8,.3,1) both; }
        @keyframes bjDeal { from { transform: translate(150px,-140px) rotate(20deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
        .bj-betspot { position: relative; z-index: 2; margin: 4px auto; width: 92px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
        .bj-stack { position: relative; width: 40px; height: 40px; }
        .bj-stack-win { position: absolute !important; left: 50%; bottom: 14px; }
        .bj-chip { position: absolute; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 3px 0 rgba(0,0,0,.4); color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
        .bj-bet-label { position: absolute; bottom: -2px; font-size: 11px; font-weight: 900; color: #fde68a; text-shadow: 0 1px 3px #000; }
        .bj-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0); font-weight: 900; font-size: 24px; padding: 6px 20px; border-radius: 999px; white-space: nowrap; pointer-events: none; z-index: 5; }
        .bj-banner.show { animation: bannerPop 2.4s ease both; }
        @keyframes bannerPop { 0% { transform: translate(-50%,-50%) scale(0) rotate(-8deg); opacity: 0; } 14% { transform: translate(-50%,-50%) scale(1.18) rotate(2deg); opacity: 1; } 24% { transform: translate(-50%,-50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
        .bj-b-gold { background: #f59e0b; color: #1e293b; box-shadow: 0 0 30px rgba(251,191,36,.9); }
        .bj-b-win { background: #10b981; color: #fff; }
        .bj-b-push { background: #64748b; color: #fff; }
        .bj-b-lose { background: #e11d48; color: #fff; }
        .bj-act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 18px; color: #fff; font-weight: 900; font-size: 14px; transition: transform .1s, filter .15s; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
        .bj-act:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
        .bj-act span { font-size: 20px; line-height: 1; }
        .bj-kbd { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800; padding: 1px 5px; margin-left: 4px; border-radius: 5px; background: rgba(0,0,0,.25); color: inherit; opacity: .8; }
        .bj-act .bj-kbd { margin: 0; }
        .bj-h { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 900; }
        @media (max-width: 380px) { .reel { width: 64px; } .bj-card { width: 54px; height: 78px; margin-left: -22px; } }
        /* Tickets à gratter : styles complets (la feuille d'origine n'en avait aucun). */
        body.sc-lock { overflow: hidden; }
        .sc-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.82); overflow: auto; }
        .sc-ov-inner { position: relative; flex: 0 1 560px; width: min(560px,100%); min-width: 0; padding: 58px 18px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: linear-gradient(145deg,#21134a,#0f172a 75%); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
        .sc-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border: 0; border-radius: 12px; color: #fff; background: rgba(255,255,255,.14); font-size: 22px; cursor: pointer; }
        .sc-card { width: 100%; min-width: 0; padding: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #f8fafc; color: #0f172a; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
        .sc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: 900; }
        .sc-head span:last-child { flex: none; color: #fbbf24; font-family: 'JetBrains Mono',monospace; }
        .sc-body { position: relative; width: 100%; min-width: 0; overflow: hidden; border-radius: 12px; background: #fff; touch-action: none; }
        .sc-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 10px; overflow: hidden; }
        .sc-rule { color: #475569; text-align: center; font-size: 11px; font-weight: 900; line-height: 1.25; }
        .sc-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 46px; border: 1px solid #cbd5e1; border-radius: 10px; background: linear-gradient(145deg,#fff,#e2e8f0); color: #1e293b; font-size: 12px; font-weight: 900; box-shadow: 0 2px 4px rgba(15,23,42,.08); }
        .sc-cell.sc-big { height: 70px; font-size: 34px; }
        .sc-cell.sc-win { border-color: #f59e0b; background: #fef3c7; box-shadow: 0 0 0 3px #fbbf24,0 0 24px #f59e0b; }
        .sc-ball { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #312e81; color: #fff; font-weight: 900; box-shadow: inset 0 2px 5px rgba(255,255,255,.3),0 3px 7px rgba(15,23,42,.2); }
        .sc-pay { color: #64748b; text-align: center; font-size: 10px; font-weight: 800; }
        .sc-coat { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; touch-action: none; cursor: crosshair; }
        .sc-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
        .sc-btn { padding: 9px 12px; border: 0; border-radius: 10px; background: #4f46e5; color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
        .sc-res { color: #475569; font-size: 11px; font-weight: 900; }
        .sc-ov-hint { margin: 12px 0 0; color: #ddd6fe; text-align: center; font-size: 12px; }
        .sc-ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
        .sc-act { padding: 10px 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
        .sc-act-main { background: #f59e0b; color: #111827; }
        .sc-buy, .sc-pend { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.07); color: #fff; text-align: center; cursor: pointer; }
        .sc-buy:hover, .sc-pend:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
        .sc-flake { position: absolute; z-index: 4; width: 5px; height: 5px; border-radius: 50%; pointer-events: none; }
        .sc-fx { position: fixed; inset: 0; z-index: 1001; overflow: hidden; pointer-events: none; }
        @media (max-height: 620px) { .sc-body { max-height: 40vh; } .sc-content { gap: 4px; padding: 6px; } .sc-rule { font-size: 9px; } .sc-cell { height: 34px !important; font-size: 10px; } .sc-cell.sc-big { height: 52px !important; font-size: 27px; } .sc-ball { width: 26px; height: 26px; font-size: 11px; } }
        @media (max-width: 520px) { .sc-overlay { padding: 10px; } .sc-ov-inner { flex-basis: 100%; padding: 54px 10px 12px; } .sc-card { padding: 10px; } .sc-head { font-size: 12px; } #scShop { grid-template-columns: repeat(2,minmax(0,1fr)); } }
