/**
 * Dark charcoal palette (site-wide).
 * Light mode is unchanged. Loaded last so game/page CSS cannot keep navy/cyan.
 */
body.dark_mode {
	--dm-bg: #1e2024;
	--dm-bg-deep: #16181c;
	--dm-panel: #2d3035;
	--dm-input: #212428;
	--dm-border: #3a3e44;
	--dm-muted: #9aa0a6;
	--dm-green: var(--brand, #67e366);
	--dm-green-hover: var(--brand-hover, #54c853);
	--dm-green-ink: var(--brand-on, #0d1a0d);
	--dm-orange: #ff9900;
	--site-primary: var(--brand, #64b5f6);
	--site-primary-dark: var(--brand-hover, #90caf9);
	--site-primary-darker: var(--brand-hover, #90caf9);
	--site-primary-light: var(--brand-soft, #212428);
	--site-primary-soft: #3a3e44;
	--site-on-primary: var(--brand-on, #0d1524);
	background: #1e2024 !important;
	color: #fff !important;
}

/* Header / nav / announcement — charcoal instead of teal/navy */
.dark_mode .dash_tp_menu_area,
.dark_mode .nav_top,
.dark_mode .nav_top.user-top-nav,
.dark_mode .lp-hd {
	background: #1e2024 !important;
	background-image: none !important;
	border-bottom: 1px solid #3a3e4421 !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}

.dark_mode .site-logo-on-light {
	display: none !important;
}

.dark_mode .header_deposit_btn {
	background: var(--brand);
	color: var(--brand-on) !important;
}

.dark_mode .header_deposit_btn:hover {
	background: var(--brand-hover);
	color: var(--brand-on) !important;
}

.dark_mode .announcement-bar {
	background: #2d3035 !important;
	border-bottom: 1px solid #3a3e44 !important;
	color: #fff !important;
}

.dark_mode .announcement-text,
.dark_mode .announcement-text span,
.dark_mode .announcement-text p,
.dark_mode .announcement-text div,
.dark_mode #announcementText {
	color: #fff !important;
}

.dark_mode .announcement-text a,
.dark_mode #announcementText a {
	color: #67e366 !important;
}

.dark_mode .announcement-icon {
	color: #f5c518 !important;
}

.dark_mode .footer {
	background: #16181c !important;
}

.dark_mode .slide_menu_container,
.dark_mode .notification_dropdown,
.dark_mode .modalbox,
.dark_mode .modalbox .center-content {
	background: #1e2024 !important;
}

.dark_mode .modalbox header {
	background: #2d3035 !important;
	color: #fff !important;
	border-bottom: 1px solid #3a3e44 !important;
}

/* Cards / game shells */
.dark_mode .tab-content,
.dark_mode .get_form_nine_area {
	/*background: #2d3035 !important;*/
}

.dark_mode .game_main,
.dark_mode .data-table {
	background: #1c1e22 !important;
}

.dark_mode .game_main .input_container,
.dark_mode .form-control,
.dark_mode .input_group,
.dark_mode .game_main .input_group {
	background: #212428 !important;
	border-color: #3a3e44 !important;
	color: #fff !important;
}

.dark_mode .game_main .input_group:hover,
.dark_mode .input_group:hover {
	border-width: 1px !important;
	border-color: #5a5f66 !important;
}

/* Primary CTA — lime, dark label */
.dark_mode .bet_btn,
.dark_mode .game_main .bet_btn,
.dark_mode .process_btn,
.dark_mode .game_main #spin_btn,
.dark_mode .game_main #start_auto_spin_btn,
.dark_mode .game_main #stop_auto_spin_btn,
.dark_mode .tower_game_container.game_main #start_game_tower,
.dark_mode .mines_game_container.game_main #bet_btn,
.dark_mode .add_condition_block_btn,
.dark_mode #strategy_box .strategy_btn,
.dark_mode #game_dice .bet_btn,
.dark_mode #game_dice #strategy_box .strategy_btn,
.dark_mode #game_dice #strategy_box .strategy_btn:last-child {
	background: #67e366 !important;
	border-color: #67e366 !important;
	color: #0d1a0d !important;
}

.dark_mode .bet_btn:hover,
.dark_mode .game_main .bet_btn:hover,
.dark_mode .process_btn:hover,
.dark_mode #game_dice .bet_btn:hover,
.dark_mode #strategy_box .strategy_btn:hover {
	background: #54c853 !important;
	border-color: #54c853 !important;
	filter: none;
}

.dark_mode #game_dice #stop_autobet,
.dark_mode #game_keno #stop_autobet,
.dark_mode #game_poker #stop_autobet,
.dark_mode #game_wheel #stop_autobet,
.dark_mode #game_eggs #stop_autobet,
.dark_mode #game_limbo #stop_autobet,
.dark_mode #game_dice #stop_strategy_bet,
.dark_mode .delete_strategy_btn,
.dark_mode .delete_condition_block_btn,
.dark_mode .tower_game_container.game_main #stop_game_tower,
.dark_mode .mines_game_container.game_main #cashout_btn {
	background: #f44336 !important;
	border-color: #f44336 !important;
	color: #fff !important;
}

.dark_mode .main_action_btn:not(:disabled):not(.btn_cashout) {
	background: #67e366 !important;
	border-color: #67e366 !important;
	color: #0d1a0d !important;
}

.dark_mode .wheel-option-btn.is-active {
	background: #67e366 !important;
	border-color: #67e366 !important;
	color: #0d1a0d !important;
}

.dark_mode #game_dice .dice-auto-help,
.dark_mode #strategy_wrapper .input_group .addon,
.dark_mode .strategy_condition_block .input_group .addon {
	color: #67e366 !important;
}

.dark_mode .add_condition_block_btn {
	box-shadow: none !important;
}

.dark_mode .import-actions-top button {
	border-color: #67e366;
	color: #67e366;
}

.dark_mode #btn_import_confirm,
.dark_mode #btn_import_confirm:hover {
	background: #67e366 !important;
	border-bottom-color: #3db03c;
	color: #0d1a0d !important;
}

.dark_mode .pg-tab.is-active[data-pg-tab="stamina"] {
	color: #67e366;
	border-bottom-color: #67e366;
	background: rgba(103, 227, 102, 0.12);
}

/* Dice slider: lime win zone, orange risk zone */
.dark_mode .game_main .slider {
	background: #212428 !important;
	border-color: #3a3e44 !important;
}

.dark_mode .game_main .slider .runway {
	background-color: #67e366 !important;
}

.dark_mode .game_main .slider .runway .slider_bar {
	background-color: #ff9900 !important;
}

.dark_mode .game_main .slider .runway .result_maker {
	background-color: #67e366 !important;
	color: #0d1a0d !important;
}

.dark_mode .game_main .slider .runway .result_maker:before {
	border-top-color: #67e366 !important;
}

.dark_mode .game_main .slider .runway .result_maker.negative {
	background-color: #ff9900 !important;
	color: #fff !important;
}

.dark_mode .game_main .slider .runway .result_maker.negative:before {
	border-top-color: #ff9900 !important;
}

.dark_mode .game_main .slider .runway .result_maker.negative span {
	color: #fff !important;
}

.dark_mode #game_dice .dice-swap {
	background: #67e366;
	color: #0d1a0d;
}

.dark_mode #game_dice.is-over .dice-swap {
	background: #ff9900;
	color: #fff;
}

.dark_mode #game_dice {
	--layer2: 33 36 40;
	--layer3: 45 48 53;
	--layer4: 53 56 62;
	--layer5: 58 62 68;
	--layer6: 74 79 86;
	--tab_selected: 58 62 68;
	--input: 33 36 40;
	--input_bright: 45 48 53;
	--warning: 255 153 0;
	background: #1c1e22 !important;
	border: 1px solid #dddddd1a;
}

.dark_mode #game_dice .dice-mode-tab.is-active {
	color: #67e366 !important;
	box-shadow: inset 0 -2px 0 #67e366;
}

.dark_mode #game_dice #create_strategy,
.dark_mode #game_dice #create_strategy:hover {
	background: #03a9f4 !important;
	border-color: #03a9f4 !important;
	color: #fff !important;
}

.dark_mode .game_main .bet_amount span,
.dark_mode #bet_double:not(.gx-bet-chip),
.dark_mode #bet_half:not(.gx-bet-chip) {
	background: #03a9f4 !important;
	color: #fff !important;
}

.dark_mode .gx-game .gx-sidebar #bet_half,
.dark_mode .gx-game .gx-sidebar #bet_double,
.dark_mode .gx-game .gx-sidebar .gx-bet-chip {
	background: #03a9f4 !important;
	color: #fff !important;
}

.dark_mode #game_dice .bet-chip:not(.gx-bet-chip),
.dark_mode #game_mines .bet-chip:not(.gx-bet-chip),
.dark_mode #game_dice #bet_double:not(.gx-bet-chip),
.dark_mode #game_dice #bet_half:not(.gx-bet-chip),
.dark_mode #game_mines #bet_double:not(.gx-bet-chip),
.dark_mode #game_mines #bet_half:not(.gx-bet-chip) {
	background: transparent !important;
	color: #9ea7b3 !important;
}

.dark_mode .game_main .bet_amount span:hover,
.dark_mode #bet_double:not(.gx-bet-chip):hover,
.dark_mode #bet_half:not(.gx-bet-chip):hover {
	background: #2196f3 !important;
}

.dark_mode .gx-game .gx-sidebar #bet_half:hover,
.dark_mode .gx-game .gx-sidebar #bet_double:hover,
.dark_mode .gx-game .gx-sidebar .gx-bet-chip:hover {
	background: #2196f3 !important;
	color: #fff !important;
}

.dark_mode #game_dice .bet-chip:not(.gx-bet-chip):hover,
.dark_mode #game_mines .bet-chip:not(.gx-bet-chip):hover,
.dark_mode #game_dice #bet_double:not(.gx-bet-chip):hover,
.dark_mode #game_dice #bet_half:not(.gx-bet-chip):hover,
.dark_mode #game_mines #bet_double:not(.gx-bet-chip):hover,
.dark_mode #game_mines #bet_half:not(.gx-bet-chip):hover {
	background: transparent !important;
	color: #67e366 !important;
}

.dark_mode #game_dice .dice-ol-switch input:checked + label {
	background: #03a9f4 !important;
	color: #fff !important;
}

.dark_mode #game_dice .dice-recent-item.is-win {
	background: #67e366;
	color: #0d1a0d;
}

.dark_mode #game_dice .dice-recent-item.is-draw {
	background: #ffca28;
	color: #3e2723;
}

.dark_mode .stats-card.info-card {
	background: rgba(103, 227, 102, 0.12);
	border-color: #67e366;
}

.dark_mode .stats-card.info-card .icon {
	background: #67e366;
	color: #0d1a0d;
}

.dark_mode .stats-btn.active {
	background: #67e366;
	color: #0d1a0d;
}

.dark_mode .payout_header,
.dark_mode .payout_header td {
	background-color: #67e366 !important;
	border-color: #54c853 !important;
	color: #0d1a0d !important;
}

.dark_mode .pagination a.active {
	background: var(--brand, #67e366);
	border-color: var(--brand, #67e366);
	color: var(--brand-on, #0d1a0d);
}

.dark_mode .pagination a {
	background: #2d3035;
	border-color: rgb(104 117 135 / 22%);
	color: #d1d5db;
}

.dark_mode .pagination a:hover:not(.active):not(.is-disabled) {
	background: #35383e;
	border-color: var(--brand, #67e366);
	color: #fff;
}

.dark_mode .pagination a.is-disabled {
	opacity: 0.4;
	color: #9aa0a6;
}

/* Backend/JS still emits #03a9f4 inline — restyle in dark without touching PHP */
.dark_mode [style*="color: #03a9f4"],
.dark_mode [style*="color:#03a9f4"],
.dark_mode [style*="color: #03A9F4"],
.dark_mode [style*="color:#03A9F4"] {
	color: #67e366 !important;
}

.dark_mode [style*="background: #03a9f4"],
.dark_mode [style*="background:#03a9f4"],
.dark_mode [style*="background: #03A9F4"],
.dark_mode [style*="background:#03A9F4"] {
	background: #67e366 !important;
	color: #0d1a0d !important;
	box-shadow: none !important;
}

.dark_mode .history_tbl .top_header {
	background: #2d3035 !important;
}

.dark_mode .history_header,
.dark_mode .history_header th {
	background: #2d3035 !important;
	color: #9aa0a6 !important;
}

.dark_mode .history_row th,
.dark_mode .history_row td {
	background: #1e2024 !important;
	border-color: #3a3e44 !important;
	color: #fff !important;
}

.dark_mode .history_row:nth-child(2n+1) th,
.dark_mode .history_row:nth-child(2n+1) td {
	background: #2d3035 !important;
}

.dark_mode .fairness-seeds .input_group {
	height: 40px !important;
	background: #212428 !important;
	border: 1px solid #3a3e44 !important;
}
.dark_mode .fairness-seeds .input_group .icon {
	height: 40px !important;
	background: #1a1c20 !important;
	border-right: 1px solid #3a3e44;
}
.dark_mode .fairness-seeds .input_group .icon i {
	color: #9aa0a6 !important;
}
.dark_mode .fairness-seeds .input_group input,
.dark_mode .fairness-seeds .input_group input:disabled {
	height: 40px !important;
	background: transparent !important;
	color: #fff !important;
}

.dark_mode .alert-success {
	background: #1f3329 !important;
	border-color: #2f5a40 !important;
	color: #86efac !important;
}

.dark_mode .alert-info {
	background: #1e2a3a !important;
	border-color: #2a4060 !important;
	color: #93c5fd !important;
}

.dark_mode .alert-warning {
	background: #2c2718 !important;
	border-color: #5a4a22 !important;
	color: #fbbf24 !important;
}

.dark_mode .alert-danger,
.dark_mode .alert-error {
	background: #2c1f22 !important;
	border-color: #5c2a32 !important;
	color: #fca5a5 !important;
}
