        /* ===== Currency Dropdown ===== */
        .currency-dropdown-wrapper {
            position: relative;
            z-index: 2001;
        }

        .currency-dropdown-menu {
            display: none;
            position: fixed;
            width: 240px;
            background-color: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 16px 40px rgba(0,0,0,0.5);
            z-index: 2002;
            overflow: hidden;
            animation: dropdownFade 0.18s ease;
        }

        .currency-dropdown-menu.open {
            display: block;
        }

        .currency-dropdown-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 2001;
            background: rgba(0,0,0,0.01);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .currency-dropdown-overlay.active {
            display: block;
        }

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

        .currency-dropdown-header {
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            border-bottom: 1px solid var(--border-color);
        }

        .currency-dropdown-list {
            max-height: 340px;
            overflow-y: auto;
            padding: 6px 0;
        }

        .currency-dropdown-list::-webkit-scrollbar { width: 4px; }
        .currency-dropdown-list::-webkit-scrollbar-track { background: transparent; }
        .currency-dropdown-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

        .currency-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .currency-dropdown-item:hover {
            background-color: rgba(255,255,255,0.05);
        }

        .currency-dropdown-item.active {
            background-color: rgba(106,90,237,0.15);
        }

        .currency-dropdown-item.active .cdi-symbol {
            color: var(--accent-purple);
        }

        .currency-dropdown-item svg,
        .currency-dropdown-item img {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .cdi-info {
            flex: 1;
            min-width: 0;
        }

        .cdi-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cdi-symbol {
            font-size: 11px;
            color: var(--text-tertiary);
            font-weight: 500;
        }

        .cdi-balance {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-align: right;
        }

        .cdi-check {
            color: var(--accent-purple);
            font-size: 13px;
            width: 14px;
            flex-shrink: 0;
        }

        /* ===== Multi-currency wallet balance grid ===== */
        .balance-breakdown {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .balance-item-mini {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background-color: var(--bg-card);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .balance-item-mini:hover {
            border-color: var(--accent-purple);
            transform: translateY(-1px);
        }

        .balance-item-mini.active {
            border-color: var(--accent-purple) !important;
            background-color: rgba(106,90,237,0.1);
        }

        .balance-item-mini svg,
        .balance-item-mini img {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .bim-info {
            flex: 1;
            min-width: 0;
        }

        .bim-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .bim-symbol {
            font-size: 11px;
            color: var(--text-tertiary);
        }

        .bim-amount {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
            text-align: right;
        }

        .bim-usd {
            font-size: 11px;
            color: var(--text-tertiary);
            text-align: right;
        }

        /* ===== Wallet Currency Selector ===== */
        .wallet-currency-selector {
            position: relative;
            margin-top: 8px;
        }

        .wcs-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.7px;
            margin-bottom: 8px;
        }

        .wcs-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

        .wcs-trigger:hover {
            border-color: var(--accent-purple);
            background-color: rgba(106,90,237,0.07);
        }

        .wcs-trigger-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .wcs-trigger-left svg {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .wcs-curr-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .wcs-curr-symbol {
            font-size: 12px;
            color: var(--text-tertiary);
            margin-top: 1px;
        }

        .wcs-trigger-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .wcs-balance {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .wcs-chevron {
            font-size: 11px;
            color: var(--text-tertiary);
            transition: transform 0.25s ease;
        }

        .wcs-chevron.open {
            transform: rotate(180deg);
        }

        .wcs-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background-color: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 16px 48px rgba(0,0,0,0.55);
            z-index: 500;
            overflow: hidden;
            animation: dropdownFade 0.18s ease;
        }

        .wcs-dropdown.open {
            display: block;
        }

        .wcs-dropdown-search {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-color);
        }

        .wcs-dropdown-search i {
            color: var(--text-tertiary);
            font-size: 13px;
        }

        .wcs-dropdown-search input {
            flex: 1;
            background: none;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
        }

        .wcs-dropdown-search input::placeholder {
            color: var(--text-tertiary);
        }

        .wcs-dropdown-list {
            max-height: 260px;
            overflow-y: auto;
            padding: 6px 0;
        }

        .wcs-dropdown-list::-webkit-scrollbar { width: 4px; }
        .wcs-dropdown-list::-webkit-scrollbar-track { background: transparent; }
        .wcs-dropdown-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

        .wcs-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .wcs-item:hover {
            background-color: rgba(255,255,255,0.05);
        }

        .wcs-item.active {
            background-color: rgba(106,90,237,0.15);
        }

        .wcs-item svg {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .wcs-item-info {
            flex: 1;
            min-width: 0;
        }

        .wcs-item-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .wcs-item-symbol {
            font-size: 11px;
            color: var(--text-tertiary);
        }

        .wcs-item-bal {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            text-align: right;
        }

        .wcs-item-check {
            width: 16px;
            color: var(--accent-purple);
            font-size: 12px;
            flex-shrink: 0;
        }

        /* ===== Deposit / Withdraw Modal Selectors ===== */
        .dm-selector-wrapper {
            position: relative;
        }

        .dm-selector-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
        }

        .dm-selector-trigger:hover {
            border-color: var(--accent-cyan);
        }

        .dm-trigger-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .dm-trigger-left svg {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .dm-curr-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .dm-curr-symbol {
            font-size: 11px;
            color: var(--text-tertiary);
            margin-top: 1px;
        }

        .dm-chevron {
            font-size: 11px;
            color: var(--text-tertiary);
            transition: transform 0.25s ease;
        }

        .dm-chevron.open {
            transform: rotate(180deg);
        }

        .dm-net-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .dm-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background-color: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 16px 48px rgba(0,0,0,0.6);
            z-index: 600;
            overflow: hidden;
            animation: dropdownFade 0.18s ease;
        }

        .dm-dropdown.open {
            display: block;
        }

        .dm-search {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-color);
        }

        .dm-search i {
            color: var(--text-tertiary);
            font-size: 12px;
        }

        .dm-search input {
            flex: 1;
            background: none;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
        }

        .dm-search input::placeholder { color: var(--text-tertiary); }

        .dm-list {
            max-height: 220px;
            overflow-y: auto;
            padding: 6px 0;
        }

        .dm-list::-webkit-scrollbar { width: 4px; }
        .dm-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

        .dm-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .dm-item:hover { background-color: rgba(255,255,255,0.05); }

        .dm-item.active { background-color: rgba(38,208,196,0.12); }

        .dm-item svg {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .dm-item-net-icon {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .dm-item-info {
            flex: 1;
            min-width: 0;
        }

        .dm-item-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .dm-item-sub {
            font-size: 11px;
            color: var(--text-tertiary);
        }

        .dm-item-check {
            width: 16px;
            color: var(--accent-cyan);
            font-size: 12px;
            flex-shrink: 0;
        }
        
        .user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, #1A1F44, #25294E);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 1.5px solid rgba(60, 70, 204, 0.4);
            transition: all 0.25s ease;
            padding: 0;
            position: relative;
            flex-shrink: 0;
        }

        .user-avatar:hover {
            background: linear-gradient(135deg, #25294E, #3C46CC44);
            border-color: rgba(60, 70, 204, 0.8);
            transform: translateY(-1px);
        }

        .user-avatar-inner {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 13px;
            color: #fff;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .main-layout {
            display: flex;
            min-height: 100vh;
            padding-top: 64px;
        }
        
        .control-panel {
            width: 340px;
            background-color: var(--bg-panel);
            padding: 24px;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        
        .control-section {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .section-title {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .bet-amount-container {
            position: relative;
            margin-bottom: 12px;
        }
        
        .bet-input {
            width: 100%;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 16px;
            color: var(--text-primary);
            font-size: 20px;
            font-weight: 600;
            outline: none;
            text-align: center;
            transition: border-color 0.2s ease;
        }
        
        .bet-input:focus {
            border-color: var(--accent-blue);
        }
        
        .currency-label {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 14px;
            font-weight: 600;
        }
        
        .quick-bet-buttons {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        
        .quick-bet-btn {
            flex: 1;
            padding: 10px;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .quick-bet-btn:hover {
            background-color: rgba(60, 70, 204, 0.1);
            border-color: var(--accent-blue);
        }
        
        .profit-display {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .profit-label {
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        .profit-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }
        
        .roll-button {
            width: 100%;
            padding: 20px;
            background: linear-gradient(135deg, var(--accent-blue), #5A4FCF);
            border: none;
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 16px;
            box-shadow: 0 6px 20px rgba(60, 70, 204, 0.3);
        }
        
        .roll-button:hover {
            background: linear-gradient(135deg, var(--accent-blue-light), #6A5AED);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(60, 70, 204, 0.4);
        }
        
        .roll-button:active {
            transform: translateY(0);
        }
        
        .main-content {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
        }
        
        .game-title {
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 40px;
            text-align: center;
            background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 2px;
        }
        
        .dice-slider-container {
            width: 100%;
            max-width: 800px;
            margin-bottom: 60px;
            position: relative;
            z-index: 5;
        }
        
        .slider-wrapper {
            position: relative;
            border-radius: 9999px;
            border: 2px solid var(--dark-600);
            padding: 4px;
        }
        
        .slider-track {
            position: relative;
            height: 24px;
            background: linear-gradient(to right, var(--accent-green) 0%, var(--accent-green) 50%, var(--accent-red) 50%, var(--accent-red) 100%);
            border-radius: 12px;
            overflow: visible;
            box-shadow: 
                inset 0 1px 3px rgba(0, 0, 0, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.2);
        }
        
        .slider-handle {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(-50%, -50%);
            width: 48px;
            height: 48px;
            background-color: white;
            border-radius: 50%;
            cursor: grab;
            box-shadow:
                0 0 0 2px rgba(255, 255,255, 0.1),
                0 8px 24px rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            will-change: left;
        }
        
        .slider-handle:active {
            cursor: grabbing;
        }

        /* Prevent text selection during drag */
        .slider-wrapper,
        .slider-track,
        .slider-handle {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }

        /* Improve touch response on mobile */
