            /* Fix body moving/shifting when modal opens */
            html,
            body {
                overflow-x: hidden;
                width: 100%;
                position: relative;
            }

            body {
                font-family: 'Arial', sans-serif;
                background-color: #f3f4f6;
                padding-right: 0 !important;
            }

            .modal-open {
                overflow: hidden !important;
                padding-right: 0 !important;
            }

            .main-wrapper {
                max-width: 448px;
                margin: 0 auto;
                background: white;
                min-height: 100vh;
                padding-bottom: 40px;
            }

            /* Navigation Tabs */
            .tab-btn {
                background: white;
                border-radius: 4px;
                border-top-right-radius: 16px;
                border: 1px solid #dee2e6;
                min-height: 70px;
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                opacity: 0.6;
                transition: 0.3s;
            }

            .tab-active {
                background: #e9d5ff !important;
                border: 2px solid #a855f7 !important;
                opacity: 1 !important;
                position: relative;
            }

            /* Timer Area */
            .timer-square {
                background: black;
                color: white;
                width: 22px;
                height: 32px;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
                font-size: 20px;
                margin: 0 1px;
            }

            /* Ball Containers */
            .ball-container {
                position: relative;
                width: 56px;
                height: 56px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto;
                cursor: pointer;
                transition: transform 0.1s;
            }

            .ball-img {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }

            .ball-num {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: white;
                color: black;
                width: 27px;
                height: 27px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 800;
                font-size: 14px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
            }

            /* Action Buttons */
            .bet-btn {
                text-transform: uppercase;
                font-weight: bold;
                border-radius: 10px;
                border: none;
                padding: 10px 0;
                width: 100%;
                color: white;
            }

            .btn-green {
                background-color: #22c55e;
            }

            .btn-violet {
                background-color: #9333ea;
            }

            .btn-red {
                background-color: #dc2626;
            }

            .bg-light2 {
                background-image: linear-gradient(rgb(214, 202, 250), rgb(230, 214, 255));
            }

            /* My Bets Section */
            .my-bets-container {
                background-color: #a893b8;
                padding: 15px;
                color: #444;
            }

            .my-bets-header {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 15px;
                margin-bottom: 10px;
                font-weight: bold;
                letter-spacing: 1px;
                color: #555;
            }

            .bets-inner-box {
                background: linear-gradient(180deg, #9683a8 0%, #b8a6c8 100%);
                border-radius: 15px;
                min-height: 80px;
                box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.2);
            }

            /* History Section */
            .history-tab {
                font-size: 14px;
                /*font-weight: 600;*/
                color: #444;
                position: relative;
                padding: 12px 0;
                flex: 1;
                text-align: center;
                cursor: pointer;
            }

            .history-tab.active {
                color: #a855f7;
                /*font-weight: 800;*/
            }

            .history-tab.active::after {
                content: '';
                position: absolute;
                bottom: 0px;
                left: 25%;
                width: 50%;
                height: 3px;
                background: #a855f7;
                border-radius: 4px;
            }

            .tab-content-panel {
                display: none;
                padding: 10px;
                min-height: 200px;
            }

            .tab-content-panel.active {
                display: block;
            }

            .history-table thead {
                background-color: #f0f1ff;
            }

            .history-table th {
                font-size: 11px;
                color: #6b7280;
                text-transform: uppercase;
                border: none;
                padding: 10px 15px;
            }

            .history-table td {
                font-size: 13px;
                border: none;
                padding: 12px 15px;
                vertical-align: middle;
            }

            .dot {
                width: 14px;
                height: 14px;
                border-radius: 50%;
                display: inline-block;
            }

            .dot-green {
                background-color: #22c55e;
            }

            .dot-red {
                background-color: #dc2626;
            }

            /* MODAL STYLING (Fixed visibility) */
            .modal.fade .modal-dialog {
                transform: translateY(100%);
                transition: transform 0.3s ease-out;
                margin: 0 auto;
                display: flex;
                align-items: flex-end;
                height: 100%;
            }

            .modal.show .modal-dialog {
                transform: translateY(0);
            }

            .modal-content {
                border-radius: 24px 24px 0 0;
                border: none;
                max-width: 448px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .bet-display-area {
                padding: 15px 0;
                text-align: center;
                background-color: #fffdec;
                display: flex;
                justify-content: center;
            }

            .modal-color-circle {
                width: 70px;
                height: 70px;
                border-radius: 50%;
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
                font-size: 12px;
                text-transform: uppercase;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            }

            .modal-ball-style {
                width: 75px;
                height: 75px;
                position: relative;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .modal-ball-num {
                position: absolute;
                background: white;
                color: black;
                width: 37px;
                height: 37px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 900;
                font-size: 18px;
                box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
            }

            .amount-btn {
                border: 1px solid #eee;
                background: #f8f9fa;
                padding: 8px;
                width: 100%;
                border-radius: 8px;
                font-weight: bold;
                color: #666;
                font-size: 13px;
            }

            .amount-btn.active {
                background: #a855f7;
                color: white;
                border-color: #a855f7;
            }

            .stepper {
                background: #f3f4f6;
                border-radius: 6px;
                display: flex;
                align-items: center;
            }

            .stepper button {
                border: none;
                background: #e5e7eb;
                width: 40px;
                height: 36px;
                font-size: 18px;
                font-weight: bold;
            }

            .stepper input {
                border: none;
                background: transparent;
                width: 50px;
                text-align: center;
                font-weight: bold;
                outline: none;
            }

            .multiplier-grid button {
                border: 1px solid transparent;
                background: #fdf4ff;
                color: #444;
                padding: 6px;
                font-size: 11px;
                border-radius: 4px;
                font-weight: bold;
                width: 100%;
            }

            .multiplier-grid button.active {
                background: #f3e8ff;
                border: 1px solid #a855f7;
                color: #a855f7;
            }

            .btn-confirm {
                background: #9333ea;
                color: white;
                width: 100%;
                padding: 12px;
                border-radius: 40px;
                border: none;
                font-weight: 800;
                font-size: 16px;
                margin-top: 5px;
            }
            
            .winner-item {
                display: flex;
                align-items: center;
                padding: 12px 15px;
                border-bottom: 1px solid #f1f1f1;
                background: white;
            }
            .rank-box {
                width: 30px;
                display: flex;
                justify-content: center;
                margin-right: 10px;
            }
            .rank-badge {
                width: 24px;
                height: 24px;
                object-fit: contain;
            }
            .rank-number {
                width: 24px;
                height: 24px;
                background: #e5e7eb;
                color: #9ca3af;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 12px;
                font-weight: bold;
            }
            .winner-avatar {
                width: 36px;
                height: 36px;
                border-radius: 50%;
                object-fit: cover;
                margin-right: 12px;
                background: #eee;
            }
            .winner-info {
                flex-grow: 1;
                font-size: 14px;
                color: #444;
                font-weight: 500;
            }
            .win-amount {
                text-align: right;
                font-size: 14px;
                font-weight: 800;
                color: #333;
            }
            .win-label {
                font-weight: 600;
                font-size: 13px;
                color: #333;
                margin-right: 4px;
            }
            
            .analyze-table {
                width: 100%;
                border-collapse: collapse;
            }
            .analyze-table thead {
                background-color: #f0f1ff;
            }
            .analyze-table th {
                font-size: 12px;
                color: #6b7280;
                text-transform: uppercase;
                padding: 12px 15px;
                border: none;
            }
            .analyze-table td {
                padding: 10px 5px;
                border-bottom: 1px solid #f8fafc;
                vertical-align: middle;
            }
            .period-text {
                font-size: 13px;
                color: #4b5563;
                padding-left: 15px;
            }
            .analyze-num-grid {
                display: flex;
                justify-content: space-around;
                align-items: center;
                padding-right: 10px;
            }
            .num-circle {
                width: 22px;
                height: 22px;
                border-radius: 50%;
                border: 1px solid #d1d5db;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 11px;
                font-weight: 600;
                color: #374151;
            }
            .num-win-red { background: #dc2626; color: white; border-color: #dc2626; }
            .num-win-green { background: #22c55e; color: white; border-color: #22c55e; }
            .num-win-mixed { background: linear-gradient(135deg, #dc2626 50%, #9333ea 50%); color: white; border-color: #9333ea; }