* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '🎰';
    position: fixed;
    top: 5%;
    left: 5%;
    font-size: 20em;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    animation: float1 20s ease-in-out infinite;
}

body::after {
    content: '🎲';
    position: fixed;
    bottom: 10%;
    right: 8%;
    font-size: 18em;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.globe-icon {
    font-size: 1.2em;
}

.current-lang {
    font-weight: 500;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffd700;
    border-radius: 8px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(255, 215, 0, 0.2);
    padding-left: 25px;
}

.lang-option.active {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 600;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid #ffd700;
}

header h1 {
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #fff;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Stats Panel */
.stats-panel {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2em;
    font-weight: 600;
    color: #ffd700;
}

.stat-value.correct {
    color: #4caf50;
}

.stat-value.incorrect {
    color: #f44336;
}

/* Question Area */
.question-area {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.question-header h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.question-content {
    text-align: center;
    margin-bottom: 20px;
}

.bet-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-name {
    font-size: 2em;
    font-weight: 600;
    color: #ffd700;
}

.bet-description {
    font-size: 1.3em;
    color: #fff;
    line-height: 1.6;
}

/* Feedback Area */
.feedback-area {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-area.correct {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4caf50;
}

.feedback-area.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border: 2px solid #f44336;
}

.feedback-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.feedback-text {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.feedback-detail {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
}

.feedback-detail strong {
    font-weight: 600;
    font-size: 1.2em;
}

.feedback-detail small {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.85;
    line-height: 1.5;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

/* Answer Options */
.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.answer-btn {
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: 3px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 70px;
}

.answer-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.answer-btn:active:not(:disabled) {
    transform: translateY(0);
}

.answer-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.answer-btn.correct-answer {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-color: #4caf50;
}

.answer-btn.incorrect-answer {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-color: #f44336;
}

.option-number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1em;
}

.option-text {
    flex: 1;
    text-align: left;
    font-size: 1.2em;
}

/* Log Section */
.log-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.log-header h3 {
    color: #ffd700;
    font-size: 1.3em;
    margin: 0;
}

.clear-log-btn {
    padding: 8px 20px;
    background: rgba(244, 67, 54, 0.3);
    border: 2px solid #f44336;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-log-btn:hover {
    background: rgba(244, 67, 54, 0.5);
    transform: scale(1.05);
}

.log-content {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

.log-content::-webkit-scrollbar {
    width: 10px;
}

.log-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.log-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 5px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

.log-empty {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.log-entry {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid;
}

.log-entry.correct {
    border-left-color: #4caf50;
}

.log-entry.incorrect {
    border-left-color: #f44336;
}

.log-entry-header {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-entry-time {
    font-size: 0.85em;
    opacity: 0.7;
}

.log-entry-question {
    color: #ffd700;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.log-entry-answer {
    margin-bottom: 6px;
}

.log-entry-detail {
    font-size: 0.85em;
    opacity: 0.8;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-top: 8px;
}

/* Help Section */
.help-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.help-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.help-section ul {
    list-style-position: inside;
    line-height: 1.8;
    margin-bottom: 20px;
}

.help-section li {
    margin-bottom: 10px;
}

/* Bet Types Reference */
.reference-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.reference-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 1.3em;
}

.reference-section h3:first-child {
    margin-top: 0;
}

.bet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.bet-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.bet-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

.bet-card h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.bet-card .payout {
    color: #4caf50;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
}

.bet-card .prob {
    color: #ccc;
    font-size: 1em;
}

/* Glossary Section */
.glossary-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.glossary-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.glossary-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s;
}

.glossary-item:last-child {
    margin-bottom: 0;
}

.glossary-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.glossary-item h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.glossary-item p {
    color: #fff;
    line-height: 1.6;
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.8;
}

footer p {
    margin: 5px 0;
}

.warning {
    color: #ffd700;
    font-weight: 500;
    font-size: 1.1em;
}

.copyright {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 10px;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-selector {
        position: relative;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }

    .lang-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .lang-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    header h1 {
        font-size: 1.8em;
    }

    .stats-panel {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-item {
        flex: 1 1 45%;
    }

    .question-header h2 {
        font-size: 1.4em;
    }

    .bet-name {
        font-size: 1.5em;
    }

    .answer-options {
        grid-template-columns: 1fr;
    }

    .bet-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for correct/incorrect */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.shake {
    animation: shake 0.5s;
}

.pulse {
    animation: pulse 0.5s;
}

/* ========== SIMULATOR MODE STYLES ========== */

/* Mode Tabs */
.mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.mode-tab {
    flex: 1;
    max-width: 200px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mode-tab:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.mode-tab.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.tab-icon {
    font-size: 1.3em;
}

/* Mode Sections */
.mode-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Balance Panel */
.balance-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.balance-item {
    text-align: center;
}

.balance-label {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.balance-value {
    font-size: 2em;
    font-weight: 600;
    color: #ffd700;
}

.reset-balance-btn {
    padding: 10px 20px;
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4caf50;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-balance-btn:hover {
    background: rgba(76, 175, 80, 0.5);
    transform: scale(1.05);
}

/* Roulette Wheel */
.roulette-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.roulette-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.wheel-and-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.wheel {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 10px solid #8B4513;
    background: #654321;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel.spinning {
    animation: spin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1800deg); }
}

.wheel-number {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border-radius: 3px;
    transform-origin: center;
    pointer-events: none;
    z-index: 10;
}

.wheel-number.wheel-red {
    background: #e74c3c;
    border: 1px solid #c0392b;
}

.wheel-number.wheel-black {
    background: #2c3e50;
    border: 1px solid #1a252f;
}

.wheel-number.wheel-green {
    background: #27ae60;
    border: 1px solid #1e8449;
}

.wheel-number.winning {
    animation: winningPulse 0.5s ease-in-out 3;
    transform: scale(1.3) !important;
    z-index: 50;
    box-shadow: 0 0 20px rgba(255, 215, 0, 1),
                0 0 30px rgba(255, 215, 0, 0.8);
}

@keyframes winningPulse {
    0%, 100% {
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 0 30px rgba(255, 215, 0, 1),
                    0 0 40px rgba(255, 215, 0, 0.8);
    }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    z-index: 20;
}

.wheel-ball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #fff, #ccc);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.8);
    z-index: 30;
    transform-origin: center center;
    /* Initial position at top of wheel */
    transform: translateX(-50%) translateY(-130px);
    margin-left: -9px;
    margin-top: -9px;
}

/* Ball spinning effect */
.wheel.spinning .wheel-ball {
    filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 255, 255, 1),
                0 0 30px rgba(255, 255, 255, 0.5);
}

.wheel-result {
    font-size: 3em;
    font-weight: 600;
    color: #ffd700;
    min-width: 100px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chip Selector */
.chip-selector {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.chip-label {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.chip-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.chip-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    background: radial-gradient(circle, #fff, #ccc);
    color: #000;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chip-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
}

.chip-btn.active {
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Betting Table */
.betting-table {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.betting-table h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

/* Casino-style table layout */
.table-layout {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 5px;
    margin-bottom: 15px;
    background: #0a5f0a;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #ffd700;
}

.zero-section {
    grid-column: 1;
    grid-row: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zero-section .bet-spot {
    width: 100%;
    height: 100%;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-grid {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.number-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
}

/* Enhanced grid with split/corner betting */
.main-grid-enhanced {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.grid-row {
    display: flex;
    gap: 0;
    position: relative;
}

.street-spot {
    width: 20px;
    flex-shrink: 0;
}

.number-cell {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-cell .number-spot {
    width: 100%;
    margin: 2px;
}

/* Mini betting spots for splits and corners */
.bet-spot-mini {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffd700;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bet-spot-mini:hover {
    transform: scale(1.5);
    background: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    z-index: 20;
}

.bet-spot-mini.has-bet {
    background: #27ae60;
    border-color: #1e8449;
}

.bet-spot-mini.has-bet::after {
    content: attr(data-chip-count);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Split spots */
.split-spot-v {
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
}

.split-spot-h {
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
}

/* Corner spot */
.corner-spot {
    bottom: -7px;
    right: -7px;
}

/* Street spot */
.street-spot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd700;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 2px;
}

.street-spot:hover {
    background: #ff8c00;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    z-index: 20;
}

.street-spot.has-bet {
    background: #27ae60;
    border-color: #1e8449;
}

.street-spot.has-bet::after {
    content: attr(data-chip-count);
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.column-bets {
    grid-column: 3;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.column-spot {
    flex: 1;
    background: rgba(52, 73, 94, 0.9);
    font-weight: 600;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
}

.bet-spot {
    padding: 10px 5px;
    border: 2px solid #ffd700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #fff;
    position: relative;
    text-align: center;
    font-size: 1em;
}

.bet-spot:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    border-width: 3px;
    z-index: 10;
}

.bet-spot.has-bet::after {
    content: attr(data-chip-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd700;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.bet-spot.winning-spot {
    animation: tablePulse 0.6s ease-in-out 4;
    z-index: 100;
}

@keyframes tablePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        border-width: 3px;
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1),
                    0 0 60px rgba(255, 215, 0, 0.6);
        border-width: 4px;
    }
}

.number-spot {
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.number-spot.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.number-spot.black {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.number-spot.green {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    background: #0a5f0a;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #ffd700;
}

.outside-spot {
    background: rgba(52, 73, 94, 0.9);
    padding: 20px 10px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    border: 2px solid #ffd700;
}

.outside-spot.red-bg {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.outside-spot.black-bg {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.dozen-bets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    background: #0a5f0a;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #ffd700;
}

.dozen-spot {
    background: rgba(52, 73, 94, 0.9);
    padding: 20px 10px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    border: 2px solid #ffd700;
}

/* Bet History */
.bet-history-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.bet-history-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.bet-history-content {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.history-empty {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.history-entry {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid;
}

.history-entry.won {
    border-left-color: #4caf50;
}

.history-entry.lost {
    border-left-color: #f44336;
}

/* Simulator Controls (now part of wheel-controls) */

.sim-btn {
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border: 3px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.spin-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-color: #2e7d32;
    color: #fff;
}

.spin-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049, #4caf50);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rebet-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1565C0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.rebet-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
}

.rebet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rebet-btn:not(:disabled) {
    cursor: pointer;
    pointer-events: auto;
}

.clear-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-color: #c62828;
    color: #fff;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.4);
}

/* Responsive for Simulator */
@media (max-width: 768px) {
    .mode-tabs {
        flex-direction: column;
    }

    .mode-tab {
        max-width: 100%;
    }

    .balance-panel {
        flex-direction: column;
        gap: 15px;
    }

    .wheel-and-controls {
        flex-direction: column;
        gap: 20px;
    }

    .wheel {
        width: 250px;
        height: 250px;
    }

    .wheel-number {
        width: 24px;
        height: 24px;
        margin: -12px 0 0 -12px;
        font-size: 0.65em;
    }

    .wheel-center {
        width: 60px;
        height: 60px;
    }

    .wheel-controls {
        width: 100%;
    }

    .chip-options {
        gap: 10px;
    }

    .chip-btn {
        width: 60px;
        height: 60px;
        font-size: 1em;
    }

    .table-layout {
        grid-template-columns: 50px 1fr 50px;
        gap: 3px;
        padding: 8px;
    }

    .zero-section .bet-spot {
        font-size: 1.2em;
    }

    .number-spot {
        min-height: 35px;
        font-size: 0.9em;
    }

    .column-spot {
        font-size: 0.85em;
    }

    .outside-bets {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .outside-spot {
        padding: 15px 8px;
        min-height: 50px;
        font-size: 0.9em;
    }

    .dozen-bets {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    .dozen-spot {
        padding: 15px 8px;
        min-height: 50px;
    }

    .sim-btn {
        width: 100%;
    }
}
