:root {
    --theme-primary: #ff6600; /* Default orange */
    --theme-primary-hover: #ff7700;
    --theme-primary-dark: #dc2d05;
}

body {
    background-color: black;
    color:white;
}

/* Category color themes */
body.theme-slot {
    --theme-primary: #ff0000; /* Red */
    --theme-primary-hover: #ff3333;
    --theme-primary-dark: #cc0000;
}

body.theme-sport,
body.theme-sports {
    --theme-primary: #0066ff; /* Blue */
    --theme-primary-hover: #3385ff;
    --theme-primary-dark: #0052cc;
}

body.theme-hot {
    --theme-primary: #ff6600; /* Orange */
    --theme-primary-hover: #ff7700;
    --theme-primary-dark: #dc2d05;
}

body.theme-live-casino,
body.theme-casino {
    --theme-primary: #9b59b6; /* Purple */
    --theme-primary-hover: #b370d0;
    --theme-primary-dark: #7d3c98;
}

body.theme-fishing {
    --theme-primary: #00cc99; /* Teal */
    --theme-primary-hover: #33d9b3;
    --theme-primary-dark: #00a67a;
}

body.theme-lottery {
    --theme-primary: #ffcc00; /* Yellow */
    --theme-primary-hover: #ffd633;
    --theme-primary-dark: #cc9900;
}

body.theme-cockfight {
    --theme-primary: #e74c3c; /* Red-orange */
    --theme-primary-hover: #ec7063;
    --theme-primary-dark: #c0392b;
}

input.form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px black inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

input.form-control:-moz-autofill {
    box-shadow: 0 0 0 1000px black inset !important;
    -moz-text-fill-color: white !important;
}

/* Game tabs container - vertical navigation */
.game-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 200px;
}

/* Base game tab - vertical navigation style */
.game-tab {
    background: #2a2a2a;
    border-radius: 8px;
    border: none;
    color: #cccccc;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    gap: 8px;
}

/* Desktop mode - remove fixed height and width */
@media (min-width: 992px) {
    .game-tab {
        height: auto !important;
        width: 100% !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

/* Active tab - uses theme color */
.game-tab.active {
    background: var(--theme-primary);
    color: #000000;
    font-weight: bold;
}

/* Hover effect */
.game-tab:hover:not(.active) {
    background: #3a3a3a;
    color: #ffffff;
}

/* Icon - hidden */
.game-tab i {
    display: none;
}


.btn-primary-gradient {
    background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    padding: 0.2rem 2rem;
    border: none;
    border-radius: 5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover,
.btn-primary-gradient:focus {
    background-image: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    color: #fff;
}

.navbar {
    background: #212122;

}

.game-text {
    color: white;
}

.bottom-nav-section .bottom-nav-content {
    background: #212122;
}

footer {
    background: #212122;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: left -0.8vw;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

.bottom-nav-section .bottom-nav-content .nav-link.active {
    color: #ac0000;
}

.bottom-nav-section .bottom-nav-content .nav-link {
    display: grid;
    text-align: center;
    color: #adacb1;
    position: relative;
    font-size: 0.75rem;
    padding: 0;
}

.text-dark {
    --bs-text-opacity: 1;
    color: #f7bc33 !important;
}

.menu-icon>a>.avatar-menu-text {
    color: #f7bc33 !important;
    font-size: 10px;
    line-height: 0.9;
}
.card{
    background: transparent;
    border: none;
}
.text-muted {
    --bs-text-opacity: 1;
    color: white !important;
}
.nav-promotion .nav-link.active {
    background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    color: white !important;
}
.nav-link {
    color:white;
}

.referral .btn-primary-gradient {
      background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
}
.referral .referral-bottom-panel .social-media-text {
 color:white;   
}

.vip-table tbody td.header {
 color:red;   
}

.lang-menu {
  background-color: #121212;
  border-radius: 1rem;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: 100;
  min-width: 300px;
  padding: 1rem;
  transition: all 140ms ease-in;
}
.lang-menu.active {
  opacity: 1;
  visibility: visible;
}

.lang-menu-items {
  padding: 0;
  margin-bottom: 0;
}

.lang-menu-item {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}
.lang-menu-item img {
  max-width: 25px;
}

.lang-country {
  font-weight: 900;
  color: red;
}

.lang-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.lang-option {
  color: grey;
  list-style: none;
}
.lang-option .btn-link {
  font-family: Arial, Helvetica, sans-serif;
  color: grey;
  padding: 0;
}
.lang-option .btn-link.disabled {
  color: red;
  cursor: not-allowed;
  pointer-events: auto;
}

.btn-lang-close {
  background-color: #878787;
  color: #fff;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Toggle button styling */
.toggle-banner-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(128, 128, 128, 0.5); 
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.toggle-banner-btn:hover {
    background: rgba(128, 128, 128, 0.8); 
}

/* Banner container */
.banner-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Banner animation - sliding and fading */
#bannerSlider {
    display: block;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0; /* Start with a height of 0 */
    opacity: 0; /* Make it invisible by default */
}

/* When the banner is shown */
#bannerSlider.show {
    opacity: 1; /* Make it visible */
    max-height: 1000px; /* Adjust the max-height */
}

/* Mobile view: Show with max-height for mobile */
@media (max-width: 768px) {
    #bannerSlider.show {
        max-height: 300px; /* Limit to 300px in mobile view */
    }

    #bannerSlider.hide {
        max-height: 0; /* Collapse it in mobile view */
    }
}

/* Desktop view: Auto height based on content */
@media (min-width: 769px) {
    #bannerSlider.show {
        max-height: 1000px; /* Allow large max-height for desktop */
        height: auto; /* Ensure the height adjusts based on content */
    }

    #bannerSlider.hide {
        max-height: 0; /* Collapse it for desktop view */
    }
}

/* Ensure the icons are correctly toggled based on the banner visibility */
#toggleIconShow, #toggleIconHide {
    transition: opacity 0.3s ease;  /* Smooth opacity transition */
}

.toggle-banner-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

#toggleIconShow {
    display: inline;
}
#toggleIconHide {
    display: none;
}

#bannerSlider.show + .toggle-banner-btn #toggleIconShow {
    display: none;
}

#bannerSlider.show + .toggle-banner-btn #toggleIconHide {
    display: inline;
}

#bannerSlider.hide + .toggle-banner-btn #toggleIconShow {
    display: inline;
}

#bannerSlider.hide + .toggle-banner-btn #toggleIconHide {
    display: none;
}

.copy-popup {
    position: absolute;
    background: #666;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 9999;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.swal2-modal {
    background-color: #222;
    color: #fff;
}

.swal2-icon {
    display: none !important;
}

/* Target the SweetAlert2 confirm button */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #ed2a00 !important;
    /* Bootstrap red */
    border-color: #ed2a00 !important;
}

/* Optional: hover effect */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
    background-color: #ed2a00 !important;
    /* Darker red on hover */
    border-color: #ed2a00 !important;
}

.was-validated .form-check-input:valid:checked,
.form-check-input.is-valid:checked {
    background-color: #ed2a00 !important;
    /* change valid checked color to orange */
    border-color: #ed2a00 !important;
    /* optional: change border too */
}

.form-check-input:checked {
    background-color: #ed2a00;
    border-color: #ed2a00;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%; /* This ensures the container will take at least the full height of its parent */
    height: auto; /* Allow the container to expand based on content */
}

.pagination {
    display: flex;
    gap: 6px;
    padding-left: 0;
    list-style: none;
}

/* Base button */
.page-link {
    background: #2b2b2b;       /* dark grey */
    color: #d0d0d0;            /* soft grey */
    font-weight: 600;
    border: 1px solid #555 !important;   /* grey border */
    padding: 0.55rem 0.9rem;
    transition: 0.2s ease-in-out;
}

/* Hover */
.page-link:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #666;        /* slightly brighter border on hover */
}

/* Active page (red gradient) */
.page-link.active,
.active > .page-link {
    background: linear-gradient(180deg, #ff4b3e, #c92400);
    color: #fff !important;
    border-color: #c92400;     /* match active color */
}

/* Disabled buttons = pure black */
.page-link.disabled,
.disabled > .page-link {
    background: #000 !important;  /* black */
    color: #444 !important;       /* dim grey text */
    border-color: #222 !important;/* darker border */
    pointer-events: none;
}

.marquee-content {
    color: #f4f3f3;
}

/* User Info Section */
.user-info-section {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Game Vendors - ensure it works properly */
.game-vendors {
    flex-grow: 1;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.game-vendors::-webkit-scrollbar {
    display: none;
}

/* ME88 Nav Styles */
.me88nav {
    position: sticky;
    top: 0;
    background: #0a0a0a;
    min-height: 70px;
    z-index: 1000;
    width: 100%;
}

/* Festive Border */
.festive-border {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: repeating-linear-gradient(
        45deg,
        #ff0000 0px,
        #ff0000 10px,
        #ffffff 10px,
        #ffffff 20px,
        #00ff00 20px,
        #00ff00 30px,
        #ffffff 30px,
        #ffffff 40px
    );
}

.festive-lights {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

.festive-lights .light {
    width: 8px;
    height: 8px;
    background: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffeb3b, 0 0 20px #ffeb3b;
    animation: twinkle 1.5s ease-in-out infinite;
}

.festive-lights .light:nth-child(2n) {
    animation-delay: 0.3s;
}

.festive-lights .light:nth-child(3n) {
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Main Header Container with Bokeh Effect */
.me88nav-container {
    position: relative;
    background: #0a0a0a;
    padding: 15px 0;
    overflow: hidden;
}

.me88nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.me88nav-container .container {
    position: relative;
    z-index: 1;
}

/* Logo */
.me88nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: "Anta", sans-serif;
}

.logo-text {
    display: inline-block;
}

.logo-1me {
    color: #ffffff;
}

.logo-88 {
    color: var(--theme-primary);
}

/* Action Buttons */
.me88nav-actions {
    gap: 15px;
}

.me88nav-btn-login {
    background: #000000;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-login:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #ffffff;
}

.me88nav-btn-join {
    background: var(--theme-primary);
    border: none;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-join:hover {
    background: var(--theme-primary-hover);
    color: #ffffff;
}

/* Hamburger Menu */
.me88nav-menu-toggle {
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
    justify-content: center;
}

.me88nav-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    display: block;
    transition: all 0.3s ease;
}

.me88nav-menu-toggle:hover span {
    background: var(--theme-primary);
}

/* Logged In Header Styles */
.me88nav-logged-in {
    background: #0a0a0a;
    padding: 15px 0;
}

.me88nav-logged-in::before {
    display: none; /* Remove bokeh effect for logged in users */
}

.logo-me {
    color: #ffffff;
}

/* Balance Display */
.me88nav-balance {
    gap: 5px;
    margin-right: 15px;
}

.me88nav-currency {
    color: var(--theme-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.me88nav-amount {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Refresh Button */
.me88nav-refresh-form {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.me88nav-refresh-btn {
    background: transparent;
    border: none;
    color: var(--theme-primary);
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.me88nav-refresh-btn:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--theme-primary-hover);
}

.me88nav-refresh-btn i {
    font-size: 1rem;
}

.me88nav-refresh-btn:active i {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Deposit Button */
.me88nav-deposit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.me88nav-deposit-btn:hover {
    opacity: 0.8;
}

.me88nav-deposit-btn svg {
    width: 24px;
    height: 24px;
}

.me88nav-deposit-btn svg .deposit-icon-rect {
    fill: var(--theme-primary);
}

/* Logged In Hamburger Menu */
.me88nav-logged-in .me88nav-menu-toggle span {
    background: #cccccc;
}

.me88nav-logged-in .me88nav-menu-toggle:hover span {
    background: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .me88nav-brand {
        font-size: 1.5rem;
    }
    
    .me88nav-btn-login,
    .me88nav-btn-join {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .me88nav-actions {
        gap: 10px;
    }
    
    .me88nav-balance {
        margin-right: 10px;
    }
    
    .me88nav-refresh-btn,
    .me88nav-deposit-btn {
        margin-right: 10px;
        width: 28px;
        height: 28px;
    }
    
    .me88nav-currency,
    .me88nav-amount {
        font-size: 0.8rem;
    }
}

