
* { box-sizing: border-box; }
.luckystart-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0f19;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.luckystart-container .game-wrapper {
    background-color: #151d30;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 980px;
    border: 1px solid #23314f;
    text-align: center;
}
.luckystart-container .game-wrapper h1 {
    font-size: 1.8rem;
    margin-top: 0;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 5px;
}

/* --- NOUVEL AFFICHAGE DES CÔTES EN HAUT DU CANVAS --- */
.luckystart-container .live-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b0f19;
    padding: 8px 12px;
    border-radius: 10px 10px 0 0;
    border: 1px solid #1e293b;
    border-bottom: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.luckystart-container .live-badge {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.luckystart-container .live-multiplier-value {
    color: #f59e0b;
    font-weight: 800;
}

.luckystart-container .canvas-container {
    position: relative;
    background-color: #0b0f19;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 200px;
    border: 1px solid #1e293b;
}
.luckystart-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.luckystart-container .multiplier-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    pointer-events: none;
    transition: color 0.1s ease;
}
.luckystart-container .status-badge {
    display: inline-block;
    background-color: #1e293b;
    color: #94a3b8;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- STYLE BARRE D'HISTORIQUE --- */
.luckystart-container .history-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    background-color: #0b0f19;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #1e293b;
    scrollbar-width: none;
}
.luckystart-container .history-bar::-webkit-scrollbar {
    display: none;
}
.luckystart-container .history-item {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 55px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.luckystart-container .input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 5px 15px;
    margin-bottom: 12px;
}
.luckystart-container .input-group label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
}
.luckystart-container .input-group input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    outline: none;
    width: 120px;
}

/* --- BOUTON DE COMMUTATION POUR RETRAIT AUTO --- */
.luckystart-container .auto-cashout-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.luckystart-container .btn-toggle-auto {
    background-color: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.luckystart-container .btn-toggle-auto.active {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
}

.luckystart-container .btn-bet {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
    border: none;
    padding: 16px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
}
.luckystart-container .btn-bet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.luckystart-container .btn-bet:active { transform: translateY(1px); }
.luckystart-container .btn-bet.cashout {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}
.luckystart-container .btn-bet.disabled {
    background: #334155 !important;
    color: #64748b !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.luckystart-container .log-box {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #f43f5e;
    min-height: 24px;
    font-weight: 600;
}

.luckystart-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
    text-align: left;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 13px;
    font-weight: bold;
    color: #ccc;
}

/* Alignement de l'incrémenteur (Boutons - / Input / Bouton +) */
.input-incrementor {
    display: flex;
    align-items: center;
    background: #1e2530;
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
}

.input-incrementor button {
    background: #0f172a;
    color: #fff;
    border: none;
    width: 45px;
    height: 100%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.input-incrementor button:hover:not(:disabled) {
    background: #1e293b;
}

.input-incrementor button:disabled {
    background: #0f172a;
    opacity: 0.5;
    cursor: not-allowed;
}

.input-incrementor input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    width: 100%;
    -moz-appearance: textfield;
}

.input-incrementor input::-webkit-outer-spin-button,
.input-incrementor input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-incrementor input:disabled {
    color: #64748b;
    cursor: not-allowed;
}

/* Zone du Retrait Auto avec l'interrupteur ON/OFF sur le côté */
.auto-cashout-wrapper {
    display: flex;
    gap: 10px;
}

.auto-cashout-wrapper .input-incrementor {
    flex: 1;
}

.btn-toggle-auto {
    width: 70px;
    height: 40px;
    background: #ef4444; /* Rouge pour OFF */
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-toggle-auto.active {
    background: #22c55e; /* Vert pour ON */
}

/* Raccourcis de mise rapide sous la mise */
.quick-bet-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.quick-bet-shortcuts button {
    background: #1e2530;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 4px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.quick-bet-shortcuts button:hover {
    background: #334155;
    color: #fff;
}


        /* Alignement de l'en-tête du jeu */
        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            position: relative;
        }
        .game-header h1 {
            margin: 0;
            font-size: 1.5rem;
        }

        /* Conteneur et bouton de menu */
        .lucky-menu-container {
            position: relative;
            z-index: 1;
        }
        .btn-menu-toggle {
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid #334155;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: background 0.2s;
        }
        .btn-menu-toggle:hover {
            background: #334155;
        }

        /* Panneau déroulant du menu */
        .lucky-menu-dropdown {
            display: none; /* Masqué par défaut */
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 8px;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 8px;
            width: 220px;
            padding: 15px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
            z-index: 100 !important;;
        }
        .lucky-menu-dropdown .show {
            display: block !important;; /* Affiché quand actif */
        }
        .lucky-menu-dropdown h3 {
            margin-top: 0;
            margin-bottom: 12px;
            font-size: 1rem;
            color: #94a3b8;
            border-bottom: 1px solid #1e293b;
            padding-bottom: 6px;
        }

        /* Options individuelles */
        .menu-option {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .menu-option:last-child {
            margin-bottom: 0;
        }
        .menu-option label {
            font-size: 0.85rem;
            color: #cbd5e1;
        }
        .menu-option select {
            background: #1e293b;
            color: #f8fafc;
            border: 1px solid #334155;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 0.85rem;
            outline: none;
            cursor: pointer;
        }

        /* Boutons interrupteurs du menu (ON/OFF) */
        .btn-toggle-option {
            background: #334155;
            color: #94a3b8;
            border: none;
            border-radius: 4px;
            padding: 4px 10px;
            font-size: 0.8rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-toggle-option.active {
            background: #10b981;
            color: #ffffff;
        }

        .luckystart-container .d-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            align-items: start;
        }
        .luckystart-container #betHistory,
        .luckystart-container #gameArea {
            min-width: 0;
        }

        .history-summary small{
            font-size: 0.45rem;
            color: white;
            font-weight: 500;
        }

        /* Section des parieurs actifs */
        .active-bettors-section {
            background: rgba(18, 25, 45, 0.9);
            border-radius: 20px;
            padding: 15px;
            margin-top: 20px;
            border: 1px solid rgba(46, 204, 113, 0.2);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-header h3 {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }

        .section-header h3 i {
            color: #2ecc71;
            margin-right: 8px;
        }

        .online-badge {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
        }

        .bettor-row {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            gap: 12px;
            transition: all 0.3s ease;
        }

        .bettor-row:hover {
            background: rgba(46, 204, 113, 0.05);
        }

        .bettor-avatar {
            width: 40px;
            height: 40px;
            background: #0f1322;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            position: relative;
        }

        .bettor-avatar.online::after {
            content: '';
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 10px;
            height: 10px;
            background: #2ecc71;
            border-radius: 50%;
            border: 2px solid #1a1f2e;
        }

        .bettor-info {
            flex: 1;
        }

        .bettor-name {
            font-weight: 600;
            font-size: 14px;
        }

        .bettor-bet {
            font-size: 11px;
            color: #8e96b0;
        }

        .bettor-multiplier {
            font-weight: 700;
            font-size: 16px;
            min-width: 60px;
            text-align: center;
        }

        .status-badge {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 20px;
            white-space: nowrap;
        }

        .status-badge.pending {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }

        .cashout-badge {
            margin-left: 5px;
            font-size: 12px;
        }

        /* Section des retraits */
        .withdrawals-section {
            background: rgba(18, 25, 45, 0.9);
            border-radius: 20px;
            padding: 15px;
            margin-top: 15px;
            border: 1px solid rgba(46, 204, 113, 0.2);
        }

        .withdrawal-item {
            display: flex;
            align-items: center;
            padding: 10px;
            gap: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .withdrawal-avatar {
            width: 35px;
            height: 35px;
            background: #0f1322;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .withdrawal-info {
            flex: 1;
        }

        .withdrawal-user {
            font-weight: 600;
            font-size: 13px;
        }

        .withdrawal-method {
            font-size: 10px;
            color: #8e96b0;
        }

        .withdrawal-amount {
            font-weight: 700;
            font-size: 13px;
            color: #2ecc71;
        }

        .withdrawal-time {
            font-size: 10px;
            color: #5a627a;
        }

        /* Stats globales */
        .global-stats {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-top: 15px;
        }

        .stat-card {
            flex: 1;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 10px;
            text-align: center;
        }

        .stat-card .stat-label {
            font-size: 10px;
            color: #8e96b0;
            margin-bottom: 5px;
        }

        .stat-card .stat-value {
            font-size: 16px;
            font-weight: 700;
            color: #2ecc71;
        }

        @media (max-width: 991px) {
            .luckystart-container .d-grid {
                display: block;
            }
        }
        @media (max-width: 767px) {
            .luckystart-container #betHistory {
                display: none !important;
            }
        }
