/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
  background-image: none !important; /* Remove bright background image if any */
}

/* Typography */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
  color: #ffffff !important;
}

body.dark-mode p,
body.dark-mode .text-muted,
body.dark-mode span:not(.badge):not(.nav-link):not(.card-badge):not(.text-primary):not(.text-danger):not(.text-success):not(.text-warning):not(.text-white):not(.text-info) {
  color: #cccccc !important;
}

body.dark-mode a {
  color: #74a5ff;
}

body.dark-mode a:hover {
  color: #9abfff;
}

/* Cards & Containers */
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu {
  background-color: #242424 !important;
  border-color: #3d3d3d !important;
  color: #e0e0e0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Product Detail Modal */
body.dark-mode #productModal .modal-content {
  background-color: #242424 !important;
  border-color: #3d3d3d !important;
}

body.dark-mode #productModal .modal-header {
  border-bottom-color: #3d3d3d !important;
}

body.dark-mode #productModal .modal-footer {
  background-color: #1e1e1e !important;
  border-top-color: #3d3d3d !important;
}

body.dark-mode #productModal .announce-img {
  background-color: #1e1e1e !important;
}

body.dark-mode #productModal .announce-title {
  color: #ffffff !important;
}

body.dark-mode #productModal .announce-body {
  color: #cccccc !important;
}

/* Cart Modal */
body.dark-mode #cartModal .modal-content {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}

body.dark-mode #cartModal .modal-body {
  background-color: #1e1e1e !important;
}

body.dark-mode .empty-cart-container,
body.dark-mode .empty-cart-card {
  background: transparent !important;
}

body.dark-mode .empty-cart-icon-wrapper {
  background: #26262b !important;
  border: 1px solid #38383f !important;
  color: #64748b !important;
}

body.dark-mode .empty-cart-title,
body.dark-mode .empty-cart-card h4,
body.dark-mode .empty-cart-card h5 {
  color: #ffffff !important;
}

body.dark-mode .empty-cart-sub,
body.dark-mode .empty-cart-card p {
  color: #94a3b8 !important;
}

body.dark-mode .modal-cart-content {
  background: #18181b !important;
}

body.dark-mode .product-group-card {
  background: #222226 !important;
  border: 1px solid #33333a !important;
}

body.dark-mode .product-group-header {
  background: #28282e !important;
  border-bottom: 1px solid #33333a !important;
}

body.dark-mode .showcase-card {
  background-color: #1a2234 !important;
  border: 1px solid #2a3754 !important;
}

body.dark-mode .product-card-body {
  background-color: #1e293b !important;
  border-top: 1px solid #334155 !important;
}

body.dark-mode .showcase-content {
  background-color: transparent !important;
}

body.dark-mode .card-premium-price,
body.dark-mode .card-premium-price span,
body.dark-mode .card-premium-price small {
  color: #ffffff !important;
}

/* Leaderboard / List Group Items */
body.dark-mode .list-group-item {
  background-color: transparent !important;
  border-color: #3d3d3d !important;
}

body.dark-mode .list-group-item .text-dark {
  color: #ffffff !important;
}

body.dark-mode .list-group-item .text-muted {
  color: #a0a0a0 !important;
}

body.dark-mode .list-group-item .text-primary {
  color: #74a5ff !important;
}

body.dark-mode .list-group-item .badge {
  border-color: #242424 !important;
}

body.dark-mode .cart-item-row {
  border-bottom-color: #3d3d3d !important;
}

body.dark-mode .product-group-name,
body.dark-mode .item-name {
  color: #ffffff !important;
}

body.dark-mode .item-price-current {
  color: #74a5ff !important;
}

body.dark-mode .qty-stepper,
body.dark-mode .qty-btn,
body.dark-mode .btn-remove-link,
body.dark-mode .modal-cart-item .qty-stepper,
body.dark-mode .modal-cart-item .qty-btn {
  background: #28282e !important;
  border-color: #3e3e46 !important;
}

body.dark-mode .qty-btn,
body.dark-mode .modal-cart-item .qty-btn {
  color: #ffffff !important;
}

body.dark-mode .qty-input,
body.dark-mode .modal-cart-item .qty-input {
  color: #ffffff !important;
}

body.dark-mode .btn-remove-link,
body.dark-mode .modal-cart-item .btn-remove-link {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ff6b6b !important;
}

body.dark-mode .modal-cart-summary {
  background: #222226 !important;
  border-top-color: #33333a !important;
}

body.dark-mode .modal-cart-summary .summary-label,
body.dark-mode .modal-cart-summary span {
  color: #94a3b8 !important;
}

body.dark-mode .modal-cart-summary .modal-grand-total,
body.dark-mode .modal-cart-summary span.text-primary,
body.dark-mode .modal-cart-summary span.text-primary span {
  color: #60a5fa !important;
}

body.dark-mode .dropdown-item {
  color: #e0e0e0 !important;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background-color: #333333 !important;
  color: #ffffff !important;
}

body.dark-mode .card-body,
body.dark-mode .card-header,
body.dark-mode .card-footer {
  background-color: transparent !important;
  border-color: #333333 !important;
}

/* Premium Cards & QA Cards & Stats Box */
body.dark-mode .qa-card,
body.dark-mode .stats-box,
body.dark-mode .purchase-item {
  background-color: #242424 !important;
  border-color: #3d3d3d !important;
  color: #e0e0e0 !important;
}

body.dark-mode .qa-card:hover {
  background-color: #2a2a2a !important;
}

body.dark-mode .stats-box .stats-label,
body.dark-mode .qa-subtitle {
  color: #a0a0a0 !important;
}

body.dark-mode .stats-box .stats-value,
body.dark-mode .qa-title {
  color: #ffffff !important;
}

body.dark-mode .purchase-item .text .product,
body.dark-mode .purchase-item .text .user {
  color: #e0e0e0 !important;
}

body.dark-mode .purchase-item .icon {
  color: #74a5ff !important;
}

body.dark-mode .recent-purchases-container {
  border-color: #3d3d3d !important;
}

/* Search Bar Unified */
body.dark-mode .search-bar-unified {
  background-color: #1e1e24 !important;
  border-color: #3b82f6 !important;
}

body.dark-mode .search-bar-unified .form-control {
  background-color: transparent !important;
  color: #ffffff !important;
}

body.dark-mode .search-bar-unified .produk-cari::placeholder {
  color: #60a5fa !important;
  opacity: 0.8 !important;
}

body.dark-mode .search-bar-unified #button-addon2 {
  color: #60a5fa !important;
}

body.dark-mode .dropbtn {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  color: #ffffff !important;
}

body.dark-mode .drop-ctn .dropdown-menu {
  background-color: #242429 !important;
  border: 1px solid #3d3d45 !important;
}

body.dark-mode .drop-ctn .dropdown-item {
  color: #e2e8f0 !important;
}

body.dark-mode .drop-ctn .dropdown-item:hover,
body.dark-mode .drop-ctn .dropdown-item.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

body.dark-mode .search-bar-unified .form-control:focus {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* Forms & Inputs */
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group-text {
  background-color: #2a2a2a !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

body.dark-mode .form-control::placeholder {
  color: #888888 !important;
}

body.dark-mode .form-control:focus {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #2f74f5 !important;
}

body.dark-mode .form-label {
  color: #9abfff !important;
}

/* Buttons */
body.dark-mode .btn-default {
  background: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}

body.dark-mode .btn-default i {
  color: #ffffff !important;
}

body.dark-mode .btn-default:hover {
  background: #3a3a3a !important;
}

/* Navbar Slider Mobile Menu */
body.dark-mode .navbar-slide-content {
  background-color: #1e1e1e !important;
}
body.dark-mode .navbar-slide-header {
  border-bottom-color: #333333 !important;
}

/* Sections Backgrounds */
body.dark-mode main,
body.dark-mode .jumbotron,
body.dark-mode .why,
body.dark-mode .price-list,
body.dark-mode .testimonial-faq,
body.dark-mode .list-price,
body.dark-mode .footer-bottom,
body.dark-mode.bg-light,
body.dark-mode .bg-light,
body.dark-mode.bg-white,
body.dark-mode .bg-white,
body.dark-mode .bg-dark,
body.dark-mode .leaderboard-section,
body.dark-mode .product-lists,
body.dark-mode .detail-list-price {
  background-color: #121212 !important;
  background: #121212 !important;
  background-image: none !important;
}

/* Gradient sections specifically */
body.dark-mode .jumbotron {
  background: linear-gradient(180deg, #1e1e1e 18.46%, #121212 100%) !important;
}
body.dark-mode .why {
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 72.61%) !important;
}
body.dark-mode .price-list {
  background: linear-gradient(90deg, #2a1111 0%, #1e1e1e 100%) !important;
}

/* FAQ Widget */
body.dark-mode .faq .collapsible-widget {
  background-color: #1e1e1e !important;
  border-color: #333333 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .faq .collapsible-widget .header p {
  color: #e0e0e0 !important;
}

body.dark-mode .faq .collapsible-widget.show .header p {
  color: #ff6b6b !important;
}

body.dark-mode .faq .collapsible-widget i {
  color: #e0e0e0 !important;
}

/* Badges */
body.dark-mode .badge.bg-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

body.dark-mode .badge.bg-success {
  background-color: rgba(0, 145, 55, 0.2) !important;
  color: #4ade80 !important;
}

body.dark-mode .badge.bg-danger {
  background-color: rgba(216, 0, 12, 0.2) !important;
  color: #f87171 !important;
}

body.dark-mode .badge.bg-warning {
  background-color: rgba(255, 169, 0, 0.2) !important;
  color: #fbbf24 !important;
}

/* Swiper / Slider */
body.dark-mode .swiper-pagination-bullet {
  background: #888888 !important;
}
body.dark-mode .swiper-pagination-bullet-active {
  background: #ffffff !important;
}

/* Mobile Bottom Nav */
body.dark-mode .mobile-bottom-nav {
  background-color: #1e1e1e !important;
  border-top: 1px solid #333333 !important;
}
body.dark-mode .mobile-bottom-nav a.nav-item {
  color: #888888 !important;
}
body.dark-mode .mobile-bottom-nav a.nav-item.active {
  color: #2f74f5 !important;
}
body.dark-mode .mobile-bottom-nav a.nav-item i {
  color: inherit !important;
}

/* Toggle Button Styling */
.dark-mode-toggle {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

body.dark-mode .dark-mode-toggle {
  background-color: rgba(0, 0, 0, 0.3);
  color: #fcc73b; /* Yellow for sun */
}

/* HIGH SPECIFICITY OVERRIDES FOR PRODUCT CARDS AND PRICES */
body.dark-mode div.card-body.product-card-body {
  background-color: #2f74f5 !important;
}

body.dark-mode .card-premium .card-premium-price span:not(.badge):not(.nav-link):not(.card-badge),
body.dark-mode .card-premium .card-premium-price small:not(.badge):not(.nav-link):not(.card-badge),
body.dark-mode .card-premium-price span:not(.badge):not(.nav-link):not(.card-badge),
body.dark-mode .card-premium-price small:not(.badge):not(.nav-link):not(.card-badge) {
  color: #ffffff !important;
}

/* CART BUBBLE FIX */
body.dark-mode #sum-products {
  background-color: #ff3b30 !important;
  color: #ffffff !important;
  border-color: #ff3b30 !important;
}

/* INVOICE / HISTORY DETAIL FIX */
body.dark-mode .pending-summary-card {
  background: #2b2b2d !important;
  border: 1px solid #4a4a4c !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .detail-row-flat {
  border-bottom-color: #3d3d3d !important;
}

body.dark-mode .detail-row-flat .label {
  color: #a0a0a0 !important;
}

body.dark-mode .detail-row-flat .price-value,
body.dark-mode .detail-row-flat .status-value,
body.dark-mode .detail-row-flat .value {
  color: #ffffff !important;
}

body.dark-mode .detail-row-flat .text-danger {
  color: #ff6b6b !important;
}

body.dark-mode .minimal-hr {
  border-color: #3d3d3d !important;
}

/* PRIVATE SERVER MODAL FIX */
body.dark-mode #modalPrivateServer .modal-content {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}

body.dark-mode #modalPrivateServer .modal-body,
body.dark-mode .ps-modal-body {
  background-color: #1e1e1e !important;
}

body.dark-mode #psModalGameName,
body.dark-mode .ps-modal-title {
  color: #ffffff !important;
}

body.dark-mode #modalPrivateServer .modal-body p {
  color: #94a3b8 !important;
}

body.dark-mode #psModalVariantList strong {
  color: #ffffff !important;
}

body.dark-mode #psModalVariantList a.btn-outline-primary {
  background-color: #28282e !important;
  border-color: #3e3e46 !important;
  color: #60a5fa !important;
}

body.dark-mode #psModalVariantList a.btn-outline-primary:hover {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body.dark-mode #psModalVariantList .bg-white {
  background-color: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode #modalPrivateServer p.rounded {
  background-color: #3b1b1b !important;
  color: #ff8a8a !important;
  border-color: #5c2c2c !important;
}

/* CART PAGE DARK MODE FIXES */
body.dark-mode .cart-section,
body.dark-mode .empty-cart-section {
  background-color: #121212 !important;
}

body.dark-mode .cart-page-header,
body.dark-mode .order-summary-card,
body.dark-mode .product-group-card,
body.dark-mode .cart-item-row,
body.dark-mode .mobile-checkout-bar {
  background: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode .product-group-header {
  background: #242424 !important;
  border-color: #333333 !important;
}

body.dark-mode .product-group-card {
  border: 1px solid #333333 !important;
}

body.dark-mode .cart-item-row {
  border-bottom-color: #333333 !important;
}

body.dark-mode .cart-page-header h1,
body.dark-mode .product-group-name,
body.dark-mode .item-name,
body.dark-mode .item-price-current,
body.dark-mode .order-summary-card h2,
body.dark-mode .summary-product-val,
body.dark-mode .summary-total-label,
body.dark-mode .summary-total-value,
body.dark-mode .mob-total-value,
body.dark-mode .qty-input {
  color: #ffffff !important;
}

body.dark-mode .cart-count-badge {
  background: #242424 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.dark-mode .select-all-wrapper {
  background: #242424 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.dark-mode .qty-stepper,
body.dark-mode .qty-btn {
  background: #2a2a2a !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

body.dark-mode .summary-row {
  color: #cccccc !important;
}

body.dark-mode .summary-divider {
  border-top-color: #444444 !important;
}

body.dark-mode .btn-remove-link {
  background: #3b1b1b !important;
  border-color: #5c2c2c !important;
  color: #ff6b6b !important;
}

body.dark-mode .product-group-subtotal {
  background: #2a2a2a !important;
  border-color: #444444 !important;
  color: #74a5ff !important;
}

body.dark-mode .empty-cart-card h2 {
  color: #ffffff !important;
}

body.dark-mode .empty-cart-card p {
  color: #cccccc !important;
}

/* CHECKOUT PAGE DARK MODE FIXES */
body.dark-mode .payment-option-bar,
body.dark-mode .payment-option-bar[aria-expanded="true"] {
  background: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode #selectedPaymentText,
body.dark-mode .payment-option-bar i {
  color: #ffffff !important;
}

body.dark-mode .payment-method-label {
  background: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode .payment-method-label span.text-dark {
  color: #ffffff !important;
}

body.dark-mode .custom-payment-radio input:checked + label {
  background: #2f74f5 !important;
  border-color: #2f74f5 !important;
}

body.dark-mode .custom-payment-radio input:checked + label span.text-dark,
body.dark-mode .custom-payment-radio input:checked + label span.text-muted {
  color: #ffffff !important;
}

body.dark-mode .payment-method-label .bg-light {
  background: #2a2a2a !important;
  border-color: #444444 !important;
}

body.dark-mode .summary-card {
  background: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode .summary-card h5,
body.dark-mode .summary-card span.text-primary,
body.dark-mode .summary-card span.text-dark {
  color: #ffffff !important;
}

body.dark-mode .summary-card span.text-muted {
  color: #cccccc !important;
}

body.dark-mode .list-group-item {
  background: transparent !important;
  border-color: #333333 !important;
}

body.dark-mode #total-payment {
  color: #74a5ff !important;
}

body.dark-mode .checkout-product h5 {
  color: #ffffff !important;
}

/* VOUCHER COMPONENT DARK MODE */
body.dark-mode .voucher-toggle-wrapper {
  background: #28282e !important;
  border-color: #3e3e46 !important;
}

body.dark-mode .voucher-toggle-label {
  color: #94a3b8 !important;
}

body.dark-mode .voucher-toggle-input:checked + .voucher-toggle-label,
body.dark-mode input[name="use_voucher"]:checked + .voucher-toggle-label {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

body.dark-mode .voucher-container span.text-dark {
  color: #ffffff !important;
}

body.dark-mode .voucher-collapse .input-group,
body.dark-mode #collapseVoucher .input-group {
  background: #26262a !important;
  border-color: #3e3e46 !important;
}

body.dark-mode .voucher-code-input,
body.dark-mode #collapseVoucher #voucher {
  background: transparent !important;
  color: #ffffff !important;
}

/* FLOATING BUTTONS DARK MODE FIX */
body.dark-mode .float-btn,
body.dark-mode .float-btn i {
  color: #ffffff !important;
}

body.dark-mode .float-btn {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

body.dark-mode .float-side-label {
  background: #1e1e1e !important;
  border: 1px solid #3d3d3d !important;
  color: #ffffff !important;
}

/* AUTH MODAL & PAGES DARK MODE FIXES */
body.dark-mode #authModal .modal-content {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}

body.dark-mode #authModal .modal-body,
body.dark-mode #authModal div.bg-white {
  background-color: #1e1e1e !important;
}

body.dark-mode #authModal p.text-muted {
  color: #94a3b8 !important;
}

body.dark-mode #authModal .group-auth-card .card {
  background: #1d4ed8 !important;
}

body.dark-mode .auth {
  background-color: transparent !important;
}

body.dark-mode .auth .auth-content {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}

body.dark-mode .auth .auth-content .auth-logo-container {
  background-color: #242424 !important;
}

body.dark-mode .auth .auth-content h1,
body.dark-mode .auth .auth-content .form-label,
body.dark-mode .auth .auth-content .auth-question p,
body.dark-mode .auth .auth-content .auth-question a,
body.dark-mode .auth .auth-content .auth-subtitle {
  color: #ffffff !important;
}

body.dark-mode .auth .auth-content .form-control {
  background-color: #242424 !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
}

body.dark-mode .auth .auth-content .form-control::placeholder {
  color: #888888 !important;
}

body.dark-mode .auth .auth-content .btn-primary {
  background-color: #2f74f5 !important;
  color: #ffffff !important;
  border: none !important;
}

body.dark-mode .auth .auth-content .btn-primary i {
  color: #ffffff !important;
}

body.dark-mode .auth .auth-content .btn-primary:hover {
  background-color: #2159c9 !important;
}

/* MOBILE SEARCH BUBBLE DARK MODE FIX */
body.dark-mode .mobile-search-dropdown .input-group-text,
body.dark-mode .mobile-search-dropdown .form-control {
  background-color: #242424 !important;
  color: #ffffff !important;
  border: none !important;
}

body.dark-mode .mobile-search-dropdown .input-group-text i {
  color: #a0a0a0 !important;
}

/* 3 SHADES OF BLACK FOR STATS BOXES */
body.dark-mode .stats-container-wrapper .stats-box:nth-child(2) {
  background-color: #2b2b2d !important; /* Lighter black */
  border: 1px solid #3d3d3d !important;
}
body.dark-mode .stats-container-wrapper .stats-box:nth-child(3) {
  background-color: #1a1a1c !important; /* Darker black */
  border: 1px solid #2d2d2d !important;
}
body.dark-mode .stats-container-wrapper .stats-box:nth-child(4) {
  background-color: #111111 !important; /* Deepest black */
  border: 1px solid #222222 !important;
}

/* RECENT PURCHASES (SLIDING) DARK MODE FIX */
body.dark-mode .recent-purchases-container {
  background: #1e1e1e !important;
  border: 1px solid #333333 !important;
  box-shadow: none !important;
}

body.dark-mode .recent-purchases-container h4 {
  color: #ffffff !important;
}

body.dark-mode .recent-purchases-container .purchase-item {
  background-color: #2a2a2a !important;
  border: 1px solid #444444 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

body.dark-mode .recent-purchases-container .purchase-item .text .product {
  color: #ffffff !important;
}

body.dark-mode .recent-purchases-container .purchase-item .text .user {
  color: #a0a0a0 !important;
}

/* PRODUK TERLARIS CARDS DARK MODE FIX */
body.dark-mode .quick-choice-card.btn-light {
  background-color: #242424 !important;
  border: 1px solid #3d3d3d !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .quick-choice-card.btn-light:hover {
  background-color: #2a2a2a !important;
}

body.dark-mode .quick-choice-card i.text-primary {
  color: #74a5ff !important; /* Lighter blue for icons */
}

body.dark-mode .quick-choice-card span.text-primary {
  color: #e0e0e0 !important; /* Light grey/white for text instead of blue */
}

/* SWEETALERT2 (POPUP) DARK MODE FIX */
body.dark-mode .swal2-popup {
  background-color: #242424 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .swal2-popup h4,
body.dark-mode .swal2-popup strong {
  color: #ffffff !important;
}

body.dark-mode .swal2-popup div[style*="color: #6b7280"],
body.dark-mode .swal2-popup div[style*="color: #555"],
body.dark-mode .swal2-popup div[style*="color"] {
  color: #cccccc !important;
}

body.dark-mode .swal2-popup .swal2-title,
body.dark-mode .swal2-popup .swal2-html-container {
  color: #e0e0e0 !important;
}



/* Secondary/Cancel Button inside popup */
body.dark-mode .swal2-popup .btn-label-secondary,
body.dark-mode .swal2-popup .swal2-cancel {
  background-color: #3d3d3d !important;
  color: #ffffff !important;
  border: 1px solid #4d4d4d !important;
}

body.dark-mode .swal2-popup .btn-label-secondary:hover,
body.dark-mode .swal2-popup .swal2-cancel:hover {
  background-color: #4d4d4d !important;
}

/* FOOTER TEXT DARK MODE FIX */
body.dark-mode footer.footer-container {
  background-color: #18181b !important;
  border-top: 1px solid #27272a !important;
}

body.dark-mode footer.footer-container p,
body.dark-mode footer.footer-container span {
  color: #ffffff !important;
}

body.dark-mode .icon-circle-bg {
  background-color: #212529 !important;
}

/* ================================================
   BARU SAJA DIBELI - DARK MODE
   ================================================ */
body.dark-mode .recent-purchases-container {
  background: linear-gradient(135deg, #1a2a4a 0%, #162040 100%) !important;
  border: 1px solid #2a3f6a !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

body.dark-mode .recent-purchases-container h5,
body.dark-mode .recent-purchases-container h5 i {
  color: #ffffff !important;
}

body.dark-mode .recent-purchases-container .purchase-item {
  background-color: #1e2e50 !important;
  border: 1px solid #2a3f6a !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

body.dark-mode .recent-purchases-container .purchase-item .fw-bold {
  color: #ffffff !important;
}

body.dark-mode .recent-purchases-container .purchase-item .text-secondary {
  color: #94afd4 !important;
}

body.dark-mode .recent-purchases-container .purchase-item .text-primary {
  color: #74a5ff !important;
}

/* ================================================
   LIMITED ITEM / PRODUCT LISTS SECTION - DARK MODE
   ================================================ */
body.dark-mode section.product-lists-section,
body.dark-mode .product-lists-section {
  background: #181d27 !important;
  background-color: #181d27 !important;
  border-top: 1px solid #2d3748 !important;
}

body.dark-mode .product-lists-section .showcase-title.title-card {
  color: #ffffff !important;
}

body.dark-mode .showcase-card {
  background: #1e2a3a !important;
}

/* ================================================
   ORDER / ROBUX 5 HARI / ROBUX GROUP - DARK MODE
   ================================================ */

/* Page wrapper & header accent */
body.dark-mode .order-page-wrapper {
  background-color: #121212 !important;
}

body.dark-mode .header-accent {
  background: linear-gradient(135deg, #1a2a4a 0%, #0d1b35 100%) !important;
  opacity: 0.5 !important;
}

/* Step cards (form cards) */
body.dark-mode .step-card {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

body.dark-mode .step-title {
  color: #ffffff !important;
}

body.dark-mode .step-indicator {
  background-color: #2f74f5 !important;
  color: #ffffff !important;
}

/* Order page title & Category Tabs */
body.dark-mode .order-title {
  color: #ffffff !important;
}

body.dark-mode .category-tabs-wrapper {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .category-tabs-wrapper .tab-btn {
  color: #cbd5e1 !important;
}

body.dark-mode .category-tabs-wrapper .tab-btn:hover {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #ffffff !important;
}

body.dark-mode .category-tabs-wrapper .tab-btn.active {
  background: #2f74f5 !important;
  color: #ffffff !important;
}

body.dark-mode .scroll-nav-btn {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

body.dark-mode .dropdown-info-link,
body.dark-mode .dropdown-info-link i.fa-circle-question {
  color: #93c5fd !important;
}

body.dark-mode .text-primary,
body.dark-mode .summary-card span.text-primary {
  color: #60a5fa !important;
}

body.dark-mode .detail-row-flat {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Mode toggle (Versi Biasa / ID Gamepass) */
body.dark-mode .grp-mode-toggle {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}

body.dark-mode .grp-mode-divider {
  background-color: #333333 !important;
}

body.dark-mode .grp-mode-btn {
  color: #a0a0a0 !important;
  background: transparent !important;
}

body.dark-mode .grp-mode-btn.active {
  background-color: #2f74f5 !important;
  color: #ffffff !important;
}

body.dark-mode .grp-mode-btn i,
body.dark-mode .grp-mode-btn span {
  color: inherit !important;
}

/* Add user button */
body.dark-mode .grp-add-user-btn {
  background-color: #1a2a4a !important;
  border: 2px dashed #2f74f5 !important;
  color: #74a5ff !important;
}

body.dark-mode .grp-add-user-btn:hover {
  background-color: #1e3060 !important;
}

/* User input card */
body.dark-mode .grp-user-card {
  background-color: #242424 !important;
  border: 1px solid #333333 !important;
}

body.dark-mode .grp-user-num {
  background-color: #2f74f5 !important;
  color: #ffffff !important;
}

body.dark-mode .grp-user-input {
  background-color: #2a2a2a !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

body.dark-mode .grp-user-input::placeholder {
  color: #888888 !important;
}

/* Profile result card (after username search) */
body.dark-mode .profile-result-card > div,
body.dark-mode .d-flex.flex-wrap.align-items-center.p-3.rounded-4.border.bg-white {
  background-color: #242424 !important;
  border-color: #444444 !important;
}

body.dark-mode .profile-username {
  color: #ffffff !important;
}

/* Summary card (order summary on the right) */
body.dark-mode .summary-card {
  background: #1e1e1e !important;
  border-color: #333333 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .summary-card h5,
body.dark-mode .summary-card .fw-bold.text-muted {
  color: #a0a0a0 !important;
}

body.dark-mode .summary-card .list-group-item span:not(.text-primary):not(.text-danger) {
  color: #cccccc !important;
}

body.dark-mode .summary-card .list-group-item span.fw-bold {
  color: #ffffff !important;
}

body.dark-mode [style*="color: #64748b"],
body.dark-mode [style*="color:#64748b"] {
  color: #a0a0a0 !important;
}

/* Nominal quick pick cards */
body.dark-mode .nominal-item-card {
  background-color: #242424 !important;
  border-color: #444444 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .nominal-amount {
  color: #ffffff !important;
}

body.dark-mode .nominal-label {
  color: #a0a0a0 !important;
}

/* Pilih cepat button */
body.dark-mode .btn-pilih-cepat {
  background-color: #242424 !important;
  border-color: #444444 !important;
  color: #a0a0a0 !important;
}

/* Payment method label (has inline background:white) */
body.dark-mode .payment-method-label {
  background: #242424 !important;
  border-color: #444444 !important;
}

body.dark-mode .payment-method-label .fw-bold.text-dark {
  color: #ffffff !important;
}

body.dark-mode .payment-method-label .bg-light {
  background: #333333 !important;
  border-color: #555555 !important;
}

/* Summary user list section */
body.dark-mode #summaryUserList {
  color: #cccccc !important;
}

/* Gamepass instruction panel */
body.dark-mode .gamepass-instruction-panel,
body.dark-mode .gamepass-panel-inner {
  background-color: #1a2a4a !important;
  border-color: #2a3f6a !important;
}

body.dark-mode .gamepass-panel-label {
  color: #74a5ff !important;
}

body.dark-mode .gamepass-panel-amount {
  color: #ffffff !important;
}

/* Robux group - tabs pills for multi-user */
body.dark-mode #userPillsContainer .btn,
body.dark-mode #user-nominal-tabs .btn {
  background-color: #242424 !important;
  border-color: #444444 !important;
  color: #e0e0e0 !important;
}

body.dark-mode #userPillsContainer .btn.active,
body.dark-mode #user-nominal-tabs .btn.active {
  background-color: #2f74f5 !important;
  color: #ffffff !important;
}

/* Total price input container */
body.dark-mode .d-flex.align-items-center.bg-white[style*="border"] {
  background-color: #2a2a2a !important;
  border-color: #444444 !important;
}

/* ================================================
   NEW FIXES (SHOWCASE TITLE, PROFILE RESULTS, MODALS)
   ================================================ */

/* Remove white underline on Showcase Title */
body.dark-mode .showcase-title::before,
body.dark-mode .showcase-title::after {
  background-color: transparent !important;
}

/* Tutorial Button Text Color */
body.dark-mode .gamepass-panel-btn span,
body.dark-mode .gamepass-panel-btn i {
  color: #ffffff !important;
}

/* Profile / Group Search Result List (robux_group.js) */
body.dark-mode .grp-not-join-box,
body.dark-mode .grp-not-join-header,
body.dark-mode .grp-not-join-list {
  background-color: #1e1e1e !important;
  border-color: #444444 !important;
}

body.dark-mode .grp-not-join-item {
  background-color: #242424 !important;
  border-color: #444444 !important;
}

body.dark-mode .grp-not-join-header span[style*="color:#1e293b"],
body.dark-mode .grp-not-join-item-info span[style*="color:#1e293b"],
body.dark-mode .grp-not-join-header span[style*="color: #1e293b"],
body.dark-mode .grp-not-join-item-info span[style*="color: #1e293b"] {
  color: #ffffff !important;
}

body.dark-mode .grp-not-join-header span[style*="color:#94a3b8"],
body.dark-mode .grp-not-join-item-info span[style*="color:#94a3b8"],
body.dark-mode .grp-not-join-header span[style*="color: #94a3b8"],
body.dark-mode .grp-not-join-item-info span[style*="color: #94a3b8"] {
  color: #a0a0a0 !important;
}

/* MULTI_CONFIRMATION / MULTI_VALIDATION_FAILED Popups inline colors */
body.dark-mode [style*="color: #0f172a"],
body.dark-mode [style*="color:#0f172a"],
body.dark-mode [style*="color: #334155"],
body.dark-mode [style*="color:#334155"],
body.dark-mode [style*="color: #1e293b"],
body.dark-mode [style*="color:#1e293b"] {
  color: #ffffff !important;
}

body.dark-mode [style*="color: #64748b"],
body.dark-mode [style*="color:#64748b"],
body.dark-mode [style*="color: #94a3b8"],
body.dark-mode [style*="color:#94a3b8"] {
  color: #a0a0a0 !important;
}

body.dark-mode [style*="background: #f8fafc"],
body.dark-mode [style*="background:#f8fafc"] {
  background-color: #242424 !important;
  border-color: #444444 !important;
}
body.dark-mode [style*="background: #fff5f5"],
body.dark-mode [style*="background:#fff5f5"] {
  background-color: #3a1c1c !important; /* light red tint */
  border-color: #662b2b !important;
}

/* Map Picker Modal Dark Mode Fix */
body.dark-mode #mapPickerModal .modal-content {
  background-color: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode #mapPickerModal .modal-header,
body.dark-mode #mapPickerModal .modal-body {
  background-color: #1e1e1e !important;
}

body.dark-mode #mapPickerModal .modal-footer {
  background-color: #121212 !important;
}

body.dark-mode #mapPickerModal .modal-title {
  color: #ffffff !important;
}

body.dark-mode #mapPickerModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode #mapPickerModal .map-item {
  background-color: #242424 !important;
  border-color: #444444 !important;
}

body.dark-mode #mapPickerModal .map-item:hover {
  border-color: #2f74f5 !important;
}

body.dark-mode #mapPickerModal .map-item .text-dark,
body.dark-mode #mapPickerModal .map-item .fw-bold {
  color: #ffffff !important;
}

body.dark-mode #mapPickerModal .btn-light {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}
body.dark-mode #mapPickerModal .btn-light:hover {
  background-color: #444444 !important;
}

/* Buat Nominal Gamepass Modal (Robux 5 Hari / Multi) */
body.dark-mode [style*="background: #fafafa"],
body.dark-mode [style*="background:#fafafa"] {
  background: #1e1e1e !important;
  background-color: #1e1e1e !important;
  border-color: #444444 !important;
}

body.dark-mode [style*="color: #212529"],
body.dark-mode [style*="color:#212529"] {
  color: #ffffff !important;
}

body.dark-mode [style*="color: #6c757d"],
body.dark-mode [style*="color:#6c757d"] {
  color: #a0a0a0 !important;
}

/* PC Ranking Wrapper Dark Mode */
body.dark-mode .qa-pc-ranking-wrapper .bg-white {
  background-color: #1e1e1e !important;
}
body.dark-mode .qa-pc-ranking-wrapper .border {
  border-color: #444 !important;
}
body.dark-mode .qa-pc-ranking-wrapper [style*="background: linear-gradient"] {
  background: linear-gradient(180deg, #2a2205 0%, #1e1e1e 100%) !important;
  border-color: #ca8a04 !important;
}
body.dark-mode .qa-pc-ranking-wrapper .text-dark {
  color: #ffffff !important;
}

/* Hide white separator lines in stats box on dark mode */
body.dark-mode .stats-container-wrapper .stats-box:not(:last-child)::after {
  display: none !important;
}
/* Summary user list section */
body.dark-mode #summaryUserList {
  color: #cccccc !important;
}

/* Gamepass instruction panel */
body.dark-mode .gamepass-instruction-panel,
body.dark-mode .gamepass-panel-inner {
  background-color: #1a2a4a !important;
  border-color: #2a3f6a !important;
}

body.dark-mode .gamepass-panel-label {
  color: #74a5ff !important;
}

body.dark-mode .gamepass-panel-amount {
  color: #ffffff !important;
}

/* Robux group - tabs pills for multi-user */
body.dark-mode #userPillsContainer .btn,
body.dark-mode #user-nominal-tabs .btn {
  background-color: #242424 !important;
  border-color: #444444 !important;
  color: #e0e0e0 !important;
}

body.dark-mode #userPillsContainer .btn.active,
body.dark-mode #user-nominal-tabs .btn.active {
  background-color: #2f74f5 !important;
  color: #ffffff !important;
}

/* Total price input container */
body.dark-mode .d-flex.align-items-center.bg-white[style*="border"] {
  background-color: #2a2a2a !important;
  border-color: #444444 !important;
}

/* ================================================
   NEW FIXES (SHOWCASE TITLE, PROFILE RESULTS, MODALS)
   ================================================ */

/* Remove white underline on Showcase Title */
body.dark-mode .showcase-title::before,
body.dark-mode .showcase-title::after {
  background-color: transparent !important;
}

/* Tutorial Button Text Color */
body.dark-mode .gamepass-panel-btn span,
body.dark-mode .gamepass-panel-btn i {
  color: #ffffff !important;
}

/* Profile / Group Search Result List (robux_group.js) */
body.dark-mode .grp-not-join-box,
body.dark-mode .grp-not-join-header,
body.dark-mode .grp-not-join-list {
  background-color: #1e1e1e !important;
  border-color: #444444 !important;
}

body.dark-mode .grp-not-join-item {
  background-color: #242424 !important;
  border-color: #444444 !important;
}

body.dark-mode .grp-not-join-header span[style*="color:#1e293b"],
body.dark-mode .grp-not-join-item-info span[style*="color:#1e293b"],
body.dark-mode .grp-not-join-header span[style*="color: #1e293b"],
body.dark-mode .grp-not-join-item-info span[style*="color: #1e293b"] {
  color: #ffffff !important;
}

body.dark-mode .grp-not-join-header span[style*="color:#94a3b8"],
body.dark-mode .grp-not-join-item-info span[style*="color:#94a3b8"],
body.dark-mode .grp-not-join-header span[style*="color: #94a3b8"],
body.dark-mode .grp-not-join-item-info span[style*="color: #94a3b8"] {
  color: #a0a0a0 !important;
}

/* MULTI_CONFIRMATION / MULTI_VALIDATION_FAILED Popups inline colors */
body.dark-mode [style*="color: #0f172a"],
body.dark-mode [style*="color:#0f172a"],
body.dark-mode [style*="color: #334155"],
body.dark-mode [style*="color:#334155"],
body.dark-mode [style*="color: #1e293b"],
body.dark-mode [style*="color:#1e293b"] {
  color: #ffffff !important;
}

body.dark-mode [style*="color: #64748b"],
body.dark-mode [style*="color:#64748b"],
body.dark-mode [style*="color: #94a3b8"],
body.dark-mode [style*="color:#94a3b8"] {
  color: #a0a0a0 !important;
}

body.dark-mode [style*="background: #f8fafc"],
body.dark-mode [style*="background:#f8fafc"] {
  background-color: #242424 !important;
  border-color: #444444 !important;
}
body.dark-mode [style*="background: #fff5f5"],
body.dark-mode [style*="background:#fff5f5"] {
  background-color: #3a1c1c !important; /* light red tint */
  border-color: #662b2b !important;
}

/* Map Picker Modal Dark Mode Fix */
body.dark-mode #mapPickerModal .modal-content {
  background-color: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode #mapPickerModal .modal-header,
body.dark-mode #mapPickerModal .modal-body {
  background-color: #1e1e1e !important;
}

body.dark-mode #mapPickerModal .modal-footer {
  background-color: #121212 !important;
}

body.dark-mode #mapPickerModal .modal-title {
  color: #ffffff !important;
}

body.dark-mode #mapPickerModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode #mapPickerModal .map-item {
  background-color: #242424 !important;
  border-color: #444444 !important;
}

body.dark-mode #mapPickerModal .map-item:hover {
  border-color: #2f74f5 !important;
}

body.dark-mode #mapPickerModal .map-item .text-dark,
body.dark-mode #mapPickerModal .map-item .fw-bold {
  color: #ffffff !important;
}

body.dark-mode #mapPickerModal .btn-light {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}
body.dark-mode #mapPickerModal .btn-light:hover {
  background-color: #444444 !important;
}

/* Buat Nominal Gamepass Modal (Robux 5 Hari / Multi) */
body.dark-mode [style*="background: #fafafa"],
body.dark-mode [style*="background:#fafafa"] {
  background: #1e1e1e !important;
  background-color: #1e1e1e !important;
  border-color: #444444 !important;
}

body.dark-mode [style*="color: #212529"],
body.dark-mode [style*="color:#212529"] {
  color: #ffffff !important;
}

body.dark-mode [style*="color: #6c757d"],
body.dark-mode [style*="color:#6c757d"] {
  color: #a0a0a0 !important;
}

/* PC Ranking Wrapper Dark Mode */
body.dark-mode .qa-pc-ranking-wrapper .bg-white {
  background-color: #1e1e1e !important;
}
body.dark-mode .qa-pc-ranking-wrapper .border {
  border-color: #444 !important;
}
body.dark-mode .qa-pc-ranking-wrapper [style*="background: linear-gradient"] {
  background: linear-gradient(180deg, #2a2205 0%, #1e1e1e 100%) !important;
  border-color: #ca8a04 !important;
}
body.dark-mode .qa-pc-ranking-wrapper .text-dark {
  color: #ffffff !important;
}

/* Hide white separator lines in stats box on dark mode */
body.dark-mode .stats-container-wrapper .stats-box:not(:last-child)::after {
  display: none !important;
}

body.dark-mode .qa-bottom-bg {
  background-color: #121212 !important;
}

/* Reduce thickness of white border in dark mode */
body.dark-mode .stats-container-wrapper { border: 5px solid #242424 !important; }
body.dark-mode .stats-box { border-right: 5px solid #242424 !important; }
@media (max-width: 991.98px) { body.dark-mode .stats-container-wrapper { border: 2px solid #242424 !important; } }

/* Add solid background to avatars in dark mode */
body.dark-mode .qa-avatar { background-color: #242424 !important; }

/* ================================================
   ROBUX GROUP - DARK MODE
   ================================================ */
body.dark-mode .grp-user-card {
  background: #1e1e1e !important;
  border-color: #333333 !important;
}

body.dark-mode .grp-profile-card {
  background: #242424 !important;
  border-color: #333333 !important;
}

body.dark-mode .grp-not-join-box {
  background: #1e1e1e !important;
  border-color: #3d3d3d !important;
}

body.dark-mode .grp-not-join-header {
  background: #1e1e1e !important;
}

body.dark-mode .grp-not-join-header:hover {
  background: #242424 !important;
}

body.dark-mode .grp-not-join-list {
  background: #121212 !important;
  border-top-color: #3d3d3d !important;
}

body.dark-mode .grp-not-join-item {
  background: #1e1e1e !important;
  border-color: #3d3d3d !important;
}

body.dark-mode .grp-not-join-item:hover {
  border-color: #555555 !important;
  background: #2a2a2a !important;
}

body.dark-mode .grp-not-join-icon {
  background: rgba(116, 165, 255, 0.15) !important;
  color: #74a5ff !important;
}

body.dark-mode .grp-text-dark,
body.dark-mode .grp-profile-name {
  color: #ffffff !important;
}

body.dark-mode .grp-text-muted {
  color: #a0a0a0 !important;
}

body.dark-mode .grp-chevron {
  color: #a0a0a0 !important;
}

/* Via Group - Comprehensive Dark Mode Fixes */
body.dark-mode .grp-user-input,
body.dark-mode .input-username,
body.dark-mode .input-gamepass {
  background-color: #1e1e1e !important;
  border-color: #3d3d3d !important;
  color: #ffffff !important;
}

body.dark-mode .grp-user-input::placeholder,
body.dark-mode .input-username::placeholder,
body.dark-mode .input-gamepass::placeholder {
  color: #888888 !important;
}

body.dark-mode .grp-user-num {
  background: #2a3a5e !important;
  color: #74a5ff !important;
  border-color: #2f74f5 !important;
}

body.dark-mode .alert.alert-warning,
body.dark-mode .alert-warning[style*="background-color"] {
  background-color: #2b2413 !important;
  border-color: #665220 !important;
  color: #ffe69c !important;
}

body.dark-mode .alert.alert-warning strong,
body.dark-mode .alert-warning[style*="background-color"] strong {
  color: #ffffff !important;
}

body.dark-mode .group-stock-list .badge.bg-light.text-dark,
body.dark-mode .group-stock-list span.badge.bg-light,
body.dark-mode span.badge.bg-light.text-dark {
  background-color: #242424 !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}

body.dark-mode .grp-add-user-btn {
  background: rgba(47, 116, 245, 0.15) !important;
  border: 2px dashed #2f74f5 !important;
  color: #74a5ff !important;
}

/* ─── Account / User Profile Dark Mode Fixes ─── */
body.dark-mode .acc-layout {
  background: #121212 !important;
}

body.dark-mode .acc-user-card {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #ffffff !important;
}

body.dark-mode .acc-user-name {
  color: #ffffff !important;
}

body.dark-mode .acc-user-email {
  color: #9aa8bc !important;
}

body.dark-mode .acc-balance-box {
  background: #282828 !important;
  border-color: #383838 !important;
}

body.dark-mode .acc-balance-label {
  color: #9aa8bc !important;
}

body.dark-mode .acc-balance-value {
  color: #74a5ff !important;
}

body.dark-mode .acc-nav {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

body.dark-mode .acc-nav-item {
  color: #d0d7de !important;
  border-top-color: #2e2e2e !important;
}

body.dark-mode .acc-nav-item:hover {
  background: #282828 !important;
  color: #74a5ff !important;
}

body.dark-mode .acc-nav-item.active {
  background: #1f2b45 !important;
  color: #74a5ff !important;
  border-left-color: #2f74f5 !important;
}

body.dark-mode .acc-nav-logout {
  color: #ff6b6b !important;
}

body.dark-mode .acc-nav-logout:hover {
  background: #3d1a1a !important;
  color: #ff8585 !important;
}

body.dark-mode .acc-content-card {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #ffffff !important;
}

body.dark-mode .acc-mobile-tabs {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

body.dark-mode .acc-mobile-tab {
  color: #9aa8bc !important;
}

body.dark-mode .acc-mobile-tab.active {
  background: #1f2b45 !important;
  color: #74a5ff !important;
  border-bottom-color: #2f74f5 !important;
}

body.dark-mode .acc-mobile-tab + .acc-mobile-tab {
  border-left-color: #2e2e2e !important;
}

body.dark-mode .profile-section-title {
  color: #9aa8bc !important;
}

body.dark-mode .profile-info-row {
  border-bottom-color: #2e2e2e !important;
}

body.dark-mode .profile-info-icon {
  background: #25334d !important;
  color: #74a5ff !important;
}

body.dark-mode .profile-info-label {
  color: #9aa8bc !important;
}

body.dark-mode .profile-info-value {
  color: #ffffff !important;
}

body.dark-mode .stat-card {
  background: #282828 !important;
  border: 1px solid #383838 !important;
}

body.dark-mode .stat-card-label {
  color: #9aa8bc !important;
}

body.dark-mode .stat-card-value {
  color: #74a5ff !important;
}

body.dark-mode .edit-section-title {
  color: #9aa8bc !important;
}

body.dark-mode .form-label-acc {
  color: #d0d7de !important;
}

body.dark-mode .form-control-acc {
  background-color: #121212 !important;
  border-color: #383838 !important;
  color: #ffffff !important;
}

body.dark-mode .form-control-acc::placeholder {
  color: #777777 !important;
}

body.dark-mode .input-group-text {
  background-color: #282828 !important;
  border-color: #383838 !important;
  color: #74a5ff !important;
}

body.dark-mode .filter-search-box input,
body.dark-mode .filter-select {
  background-color: #121212 !important;
  border-color: #383838 !important;
  color: #ffffff !important;
}

body.dark-mode .filter-search-box i {
  color: #9aa8bc !important;
}

body.dark-mode .dataTables_paginate,
body.dark-mode .dataTables_wrapper .dataTables_paginate {
  background: #1e1e1e !important;
  border: 1px solid #2e2e2e !important;
  box-shadow: none !important;
}

body.dark-mode .dataTables_paginate .paginate_button,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #d0d7de !important;
}

body.dark-mode .dataTables_paginate .paginate_button:hover:not(.disabled),
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
  background: #282828 !important;
  color: #74a5ff !important;
}

body.dark-mode .dataTables_paginate .paginate_button.current,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #2f74f5 !important;
  color: #ffffff !important;
}

body.dark-mode [style*="color:#1a2540"],
body.dark-mode [style*="color: #1a2540"],
body.dark-mode [style*="color:#4a5568"],
body.dark-mode [style*="color: #4a5568"] {
  color: #ffffff !important;
}

body.dark-mode [style*="color:#7b8aaa"],
body.dark-mode [style*="color: #7b8aaa"] {
  color: #9aa8bc !important;
}

body.dark-mode [style*="border-bottom: 1px solid #f0f2f7"],
body.dark-mode [style*="border-bottom:1px solid #f0f2f7"] {
  border-bottom-color: #2e2e2e !important;
}

/* History Cards Dark Mode Overrides */
body.dark-mode .acc-hist-card,
body.dark-mode .acc-layout div[style*="background: #fff"],
body.dark-mode .acc-layout div[style*="background:#fff"] {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #ffffff !important;
}

body.dark-mode .acc-hist-header,
body.dark-mode .acc-layout div[style*="background: #f8f9fa"],
body.dark-mode .acc-layout div[style*="background:#f8f9fa"] {
  background-color: #282828 !important;
  border-bottom-color: #333333 !important;
  color: #a0a0a0 !important;
}

body.dark-mode .acc-hist-title,
body.dark-mode .acc-layout [style*="color: #1a2540"],
body.dark-mode .acc-layout [style*="color:#1a2540"],
body.dark-mode .acc-layout [style*="color: #495057"],
body.dark-mode .acc-layout [style*="color:#495057"] {
  color: #ffffff !important;
}

body.dark-mode .acc-hist-label,
body.dark-mode .acc-layout [style*="color: #7b8aaa"],
body.dark-mode .acc-layout [style*="color:#7b8aaa"],
body.dark-mode .acc-layout [style*="color: #6c757d"],
body.dark-mode .acc-layout [style*="color:#6c757d"] {
  color: #9aa8bc !important;
}

body.dark-mode .acc-layout [style*="border: 1px solid #e0e5f0"],
body.dark-mode .acc-layout [style*="border:1px solid #e0e5f0"],
body.dark-mode .acc-layout [style*="border-bottom: 1px solid #e0e5f0"],
body.dark-mode .acc-layout [style*="border-bottom:1px solid #e0e5f0"],
body.dark-mode .acc-layout [style*="border-top: 1px dashed #e0e5f0"] {
  border-color: #333333 !important;
}

/* ─── Deposit / TopUp Saldo Dark Mode Fixes ─── */
body.dark-mode .deposit-section-title {
  color: #9aa8bc !important;
}

body.dark-mode .payment-method-label {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #ffffff !important;
}

body.dark-mode .payment-method-label .pay-name {
  color: #ffffff !important;
}

body.dark-mode .payment-method-label .pay-fee {
  color: #9aa8bc !important;
}

body.dark-mode .paymentmethod:not(:disabled) + .payment-method-label:hover {
  border-color: #2f74f5 !important;
  background: #282828 !important;
}

body.dark-mode .paymentmethod:checked + .payment-method-label {
  border-color: #2f74f5 !important;
  background: #1f2b45 !important;
}

body.dark-mode .paymentmethod:disabled + .payment-method-label {
  background: #161616 !important;
  border-color: #252525 !important;
  opacity: 0.4 !important;
}

body.dark-mode div[style*="background:#f4f6fb"],
body.dark-mode div[style*="background: #f4f6fb"] {
  background-color: #282828 !important;
  border: 1px solid #383838 !important;
}

body.dark-mode .deposit-summary-row {
  border-bottom-color: #383838 !important;
}

body.dark-mode .deposit-summary-label {
  color: #9aa8bc !important;
}

body.dark-mode .deposit-summary-value,
body.dark-mode #total-fee {
  color: #ffffff !important;
}

body.dark-mode #total-payment {
  color: #74a5ff !important;
}

/* ─── Riwayat Pesanan (Orders History) Dark Mode Fixes ─── */
body.dark-mode .status-pill {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #d0d7de !important;
}

body.dark-mode .status-pill .badge-count {
  background: #282828 !important;
  color: #d0d7de !important;
}

body.dark-mode .status-pill.active {
  background: #1f2b45 !important;
  border-color: #2f74f5 !important;
  color: #74a5ff !important;
}

body.dark-mode .status-pill.active .badge-count {
  background: #2f74f5 !important;
  color: #ffffff !important;
}

body.dark-mode .empty-state-box {
  background-color: #1e1e1e !important;
  border-color: #383838 !important;
}

body.dark-mode .empty-state-box h6 {
  color: #ffffff !important;
}

body.dark-mode .empty-state-box p {
  color: #9aa8bc !important;
}

/* Global Card & Table Overrides for History Pages */
body.dark-mode div[style*="background: #fff"],
body.dark-mode div[style*="background:#fff"],
body.dark-mode div[style*="background-color: #fff"],
body.dark-mode div[style*="background-color:#fff"] {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #ffffff !important;
}

body.dark-mode div[style*="background: #f8f9fa"],
body.dark-mode div[style*="background:#f8f9fa"],
body.dark-mode div[style*="background-color: #f8f9fa"],
body.dark-mode div[style*="background-color:#f8f9fa"] {
  background-color: #282828 !important;
  border-bottom-color: #333333 !important;
  color: #ffffff !important;
}

body.dark-mode span[style*="color: #1a2540"],
body.dark-mode span[style*="color:#1a2540"],
body.dark-mode div[style*="color: #1a2540"],
body.dark-mode div[style*="color:#1a2540"],
body.dark-mode h5[style*="color:#1a2540"],
body.dark-mode h6[style*="color:#1a2540"] {
  color: #ffffff !important;
}

body.dark-mode span[style*="color: #7b8aaa"],
body.dark-mode span[style*="color:#7b8aaa"],
body.dark-mode div[style*="color: #7b8aaa"],
body.dark-mode div[style*="color:#7b8aaa"] {
  color: #9aa8bc !important;
}

body.dark-mode span[style*="color: #495057"],
body.dark-mode span[style*="color:#495057"],
body.dark-mode div[style*="color: #495057"],
body.dark-mode div[style*="color:#495057"] {
  color: #d0d7de !important;
}

/* --- ADDITIONAL USER PAGE DARK MODE FIXES --- */

/* Infinite Scroll Gradient Fade on Product Detail */
body.dark-mode #lm-fade {
  background: linear-gradient(to bottom, transparent, rgba(18, 18, 18, 0.97)) !important;
}

/* FAQ Accordion Dark Mode (/faq) */
body.dark-mode .accordion-item {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .accordion-button {
  background-color: #1e1e1e !important;
  color: #60a5fa !important;
}

body.dark-mode .accordion-button:not(.collapsed) {
  background-color: #242429 !important;
  color: #93c5fd !important;
}

body.dark-mode .accordion-body {
  background-color: #1e1e1e !important;
  color: #cbd5e1 !important;
}

/* History Transaction Check Dark Mode (/history/transaction/check) */
body.dark-mode #transaction-container .text-muted {
  background: #1e1e1e !important;
  border: 1px dashed #3d3d3d !important;
  color: #94a3b8 !important;
}

body.dark-mode #transaction-container .text-danger {
  background: #2a1515 !important;
  border: 1px dashed #5a2525 !important;
  color: #f87171 !important;
}

body.dark-mode .history-card {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}

body.dark-mode .search-form input {
  background-color: #242424 !important;
  border-color: #3d3d3d !important;
  color: #ffffff !important;
}

/* General Modals & Close Button Dark Mode */
body.dark-mode .modal-header {
  border-bottom: 1px solid #333333 !important;
}

body.dark-mode .modal-footer {
  border-top: 1px solid #333333 !important;
  background-color: #18181b !important;
}

body.dark-mode .modal-title {
  color: #ffffff !important;
}

body.dark-mode .btn-close:not(.btn-close-white) {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Terms and Conditions / Privacy Policy Page */
body.dark-mode .legal-container,
body.dark-mode .container[style*="background: #fff"],
body.dark-mode .container[style*="background:#fff"] {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .legal-container h1,
body.dark-mode .legal-container h3 {
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.dark-mode .legal-container h2 {
  color: #60a5fa !important;
  border-color: #334155 !important;
}

body.dark-mode .legal-container p,
body.dark-mode .legal-container li,
body.dark-mode .legal-container .legal-footer {
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

/* ================================================
   REDESIGNED HOME SHOWCASE SECTION - DARK MODE
   ================================================ */
body.dark-mode .container-showcase.atan-showcase-redesigned {
  background: radial-gradient(circle at 50% -15%, rgba(37, 99, 235, 0.28) 0%, #14171f 58%, #0e1016 100%) !important;
}

body.dark-mode .container-showcase.atan-showcase-redesigned::before {
  opacity: 0.45 !important;
}

body.dark-mode .container-showcase.atan-showcase-redesigned::after {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22) 0%, transparent 70%) !important;
}

@media (max-width: 991.98px) {
  body.dark-mode .container-showcase.atan-showcase-redesigned {
    background: #14171f !important;
  }
  body.dark-mode .container-showcase.atan-showcase-redesigned::after {
    display: none !important;
  }
  body.dark-mode .atan-showcase-redesigned .atan-robux-badge {
    box-shadow: none !important;
  }
}

body.dark-mode .atan-showcase-redesigned .atan-title-accent {
  color: #fcd34d !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-card,
body.dark-mode .atan-showcase-redesigned .atan-robux-card-pc,
body.dark-mode .atan-showcase-redesigned .atan-juragan-card,
body.dark-mode .atan-showcase-redesigned .atan-juragan-card-sm,
body.dark-mode .atan-showcase-redesigned .atan-catalog-card,
body.dark-mode .atan-showcase-redesigned .atan-catalog-card-sm,
body.dark-mode .atan-showcase-redesigned .atan-methods-card {
  background-color: #1c212b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .atan-showcase-redesigned .atan-catalog-card:hover,
body.dark-mode .atan-showcase-redesigned .atan-catalog-card-sm:hover {
  border-color: rgba(96, 165, 250, 0.5) !important;
  background-color: #212734 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-card-pattern {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2360a5fa' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M20 4l8 4.6v9.2L20 22.4l-8-4.6V8.6z'/%3E%3Ccircle cx='6' cy='32' r='1.2' fill='%2360a5fa' fill-opacity='0.09' stroke='none'/%3E%3Ccircle cx='34' cy='32' r='1.2' fill='%2360a5fa' fill-opacity='0.09' stroke='none'/%3E%3C/g%3E%3C/svg%3E") !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-badge {
  background-color: #2563eb !important;
  box-shadow: 0 8px 20px rgba(3, 7, 18, 0.5) !important;
}

body.dark-mode .atan-showcase-redesigned .atan-eyebrow,
body.dark-mode .atan-showcase-redesigned .atan-price-value {
  color: #60a5fa !important;
}

body.dark-mode .atan-showcase-redesigned .atan-eyebrow-amber,
body.dark-mode .atan-showcase-redesigned .atan-podium-total-1 {
  color: #fbbf24 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-title,
body.dark-mode .atan-showcase-redesigned .atan-robux-title-sm,
body.dark-mode .atan-showcase-redesigned .atan-card-title,
body.dark-mode .atan-showcase-redesigned .atan-card-title-sm,
body.dark-mode .atan-showcase-redesigned .atan-catalog-title,
body.dark-mode .atan-showcase-redesigned .atan-podium-name,
body.dark-mode .atan-showcase-redesigned .atan-cat-name {
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-desc,
body.dark-mode .atan-showcase-redesigned .atan-robux-desc-sm,
body.dark-mode .atan-showcase-redesigned .atan-price-label,
body.dark-mode .atan-showcase-redesigned .atan-price-unit,
body.dark-mode .atan-showcase-redesigned .atan-card-sub,
body.dark-mode .atan-showcase-redesigned .atan-podium-total,
body.dark-mode .atan-showcase-redesigned .atan-catalog-desc,
body.dark-mode .atan-showcase-redesigned .atan-catalog-desc-sm,
body.dark-mode .atan-showcase-redesigned .atan-cat-hint {
  color: #a1a1aa !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-cta,
body.dark-mode .atan-showcase-redesigned .atan-robux-cta-flush {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-cta:hover,
body.dark-mode .atan-showcase-redesigned .atan-robux-cta-flush:hover {
  background-color: #3b82f6 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-cta span,
body.dark-mode .atan-showcase-redesigned .atan-robux-cta-flush span {
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-robux-split-bar,
body.dark-mode .atan-showcase-redesigned .atan-podium-item,
body.dark-mode .atan-showcase-redesigned .atan-catalog-row,
body.dark-mode .atan-showcase-redesigned .atan-mob-cat-chip,
body.dark-mode .atan-showcase-redesigned .atan-pc-cat-pill,
body.dark-mode .atan-showcase-redesigned .atan-pc-cat-btn,
body.dark-mode .atan-showcase-redesigned .atan-method-chip,
body.dark-mode .atan-showcase-redesigned .atan-mini-stat {
  background-color: #242a37 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-pc-cat-btn-tall {
  background-color: #2563eb !important;
  border-color: rgba(147, 197, 253, 0.25) !important;
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-pc-cat-btn-tall:hover {
  background-color: #3b82f6 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-ps-ribbon {
  background-color: #ff3b3b !important;
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-pc-cat-btn:not(.atan-pc-cat-btn-tall):not(.atan-pc-cat-btn-disabled):hover {
  border-color: rgba(96, 165, 250, 0.55) !important;
  background-color: #2a3242 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-pc-cat-btn-disabled:hover {
  background-color: #242a37 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: none !important;
  box-shadow: none !important;
}

body.dark-mode .atan-showcase-redesigned .atan-soon-badge {
  background-color: #3f3f46 !important;
  color: #d4d4d8 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-pc-btn-label {
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-pc-btn-sub,
body.dark-mode .atan-showcase-redesigned .atan-pc-btn-arrow {
  color: #a1a1aa !important;
}

body.dark-mode .atan-showcase-redesigned .atan-cat-icon-blue {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

body.dark-mode .atan-showcase-redesigned .atan-cat-icon-amber {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-mini-stat-label {
  color: #a1a1aa !important;
}

body.dark-mode .atan-showcase-redesigned .atan-mini-stat-val {
  color: #60a5fa !important;
}

body.dark-mode .atan-showcase-redesigned .atan-method-chip:hover {
  border-color: rgba(96, 165, 250, 0.5) !important;
  background-color: #2a3242 !important;
  color: #93c5fd !important;
}

body.dark-mode .atan-showcase-redesigned .atan-method-chip span:not(.atan-method-num),
body.dark-mode .atan-showcase-redesigned .atan-methods-title {
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-methods-count {
  background-color: rgba(59, 130, 246, 0.18) !important;
  color: #93c5fd !important;
}

body.dark-mode .atan-showcase-redesigned .atan-method-num {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

body.dark-mode .atan-showcase-redesigned .atan-podium-first {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, #222733 100%) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}

body.dark-mode .atan-showcase-redesigned .atan-rank-1 {
  background-color: #fbbf24 !important;
  color: #0f172a !important;
}

body.dark-mode .atan-showcase-redesigned .atan-rank-2 {
  background-color: #3f3f46 !important;
  color: #e4e4e7 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-rank-3 {
  background-color: rgba(249, 115, 22, 0.22) !important;
  color: #fdba74 !important;
}

body.dark-mode .atan-showcase-redesigned .atan-avatar-2 {
  box-shadow: 0 0 0 2px #52525b !important;
}

body.dark-mode .atan-showcase-redesigned .atan-avatar-3 {
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.5) !important;
}

body.dark-mode .atan-showcase-redesigned .atan-podium-total-3 {
  color: #fb923c !important;
}

body.dark-mode .atan-showcase-redesigned .atan-soft-link {
  background-color: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(96, 165, 250, 0.22) !important;
  color: #93c5fd !important;
}

body.dark-mode .atan-showcase-redesigned .atan-soft-link span {
  color: #93c5fd !important;
}

body.dark-mode .atan-showcase-redesigned .atan-soft-link:hover {
  background-color: rgba(59, 130, 246, 0.25) !important;
}





