/* /assets/css/player.css */

body.dark {background:#190F06;color:#fff;}
body.light {background:#f8f9fa;color:#111;}
body { font-family: "Play", sans-serif; transition: background-color 0.3s ease, color 0.3s ease; }

.accent {color:#FE8427;}

/* Navbar theme backgrounds */
nav.navbar {transition: background-color 0.3s ease;}
body.dark nav.navbar {background-color:#190F06 !important;}
body.light nav.navbar {background-color:#DDDDDD !important;}

.btn-warning { background-color: #fe8427; border: none; }
.btn-warning:hover { background-color: #ff9d4f; }

.category-bar { overflow-x: auto; white-space: nowrap; }

.category-bar button { border: none; background: transparent; color: white; font-weight: 500; padding: 10px 20px; }

.category-bar button:hover { background: rgba(255, 255, 255, 0.15); }

#providerCarousel button { border-radius: 8px; transition: all 0.3s; }

#providerCarousel button:hover { background: #fe8427; color: #fff; }

.game-card { background: #1e1e1e; border-radius: 8px; transition: transform 0.3s; }

.game-card:hover { transform: translateY(-4px); box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); }

.game-card { position: relative; overflow: hidden; border-radius: 8px; background: #1a1a1a; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }

.game-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.4); }

.game-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid #222; filter: brightness(0.9); transition: filter 0.3s ease; }

.game-card:hover img { filter: brightness(1); }

.game-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); opacity: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.3s ease; }

.game-card:hover .game-overlay { opacity: 1; }

.game-overlay h6 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; text-align: center; }

.game-overlay small { color: #aaa; margin-bottom: 12px; }

.game-overlay button { background: #FE8427; border: none; border-radius: 20px; padding: 6px 18px; font-weight: 600; color: #fff; transition: all 0.25s ease; }
.game-overlay button:hover { background: #ff9f4f; transform: scale(1.05); }

.lazy { opacity: 0; transition: opacity 0.4s ease-in; }

.lazy.loaded { opacity: 1; }

body.light .modal-content { background:#f8f9fa; color:#111111; }
body.light .modal-header,
body.light .modal-footer { background:#f8f9fa; color:#111111; }
body.light .form-control { background:#f8f9fa; color:#111111; }
body.dark-mode .btn-close { color:#ffffff; filter: invert(1); }

body.dark .modal-content {background:#190F06; color:#ffffff;  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
body.dark .modal-header,
body.dark .modal-footer { background:#190F06; color:#ffffff;  }
body.dark-mode .form-control { background:#190F06; color:#ffffff; border: 1px solid #555; }
body.dark-mode .btn-close { color:#ffffff; filter: invert(1); }
body.dark-mode .btn { border: none; }
body.dark-mode .modal-title i { color: #ff6767 !important; }

.modal-content { transition: background-color 0.3s ease, color 0.3s ease; }

/* 🎮 Full-Screen Game Loader (Centered) */

.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  color: #FE8427;
  font-size: 20px;
  letter-spacing: 0.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  text-align: center;
  transition: opacity 0.3s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-overlay i {
  font-size: 48px;
  margin-bottom: 10px;
  animation: spin 1.2s linear infinite;
  color: #FE8427;
}

.loader-overlay button {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.loader-overlay button:hover {
  background: #FE8427;
  border-color: #FE8427;
  color: #000;
}

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


#scrollLoader {
  display: none;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #fe8427;
}

.fade-in { animation: fadeIn 0.3s ease-in-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}



#categoryRibbon {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#categoryList::-webkit-scrollbar { display: none; }
.category-btn {
  transition: all 0.2s ease;
  white-space: nowrap;
}
.category-btn.active {
  background: #FE8427 !important;
  color: #000 !important;
}


/* 🔥 Trending / Hot Games Carousel */
#hotGamesCarousel {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  gap: 15px;
}
#hotGamesCarousel::-webkit-scrollbar { display: none; }

.hot-game-card {
  flex: 0 0 auto;
  width: 140px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.hot-game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}
.hot-game-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hot-game-card .p-2 {
  color: #fff;
  background: rgba(0,0,0,0.7);
}
.hot-tab {
  transition: all 0.2s ease;
}
.hot-tab.active {
  background: #FE8427 !important;
  color: #000 !important;
  border-color: #FE8427 !important;
}
.hot-tab:hover {
  background: #ff9f4f !important;
  color: #000 !important;
}

.hot-game-card {
  flex: 0 0 auto;
  width: 140px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.hot-game-card:hover {
  transform: scale(1.05);
}





// ⚙️ Quick Filter Variables
let filter = { provider: '', type: '', rtp: 100, fav: false };

// Load Providers into Sidebar
function loadProviders() {
  $.getJSON('/api/get_providers2.php', function(res){
    if (res.success) {
      res.providers.forEach(p=>{
        $('#filterProvider').append(`<option value="${p.code}">${p.name}</option>`);
      });
    }
  });
}

// Apply Filters
$('#applyFilters').on('click', function(){
  filter.provider = $('#filterProvider').val();
  filter.type = $('#filterType').val();
  filter.rtp = $('#filterRTP').val();
  filter.fav = $('#filterFav').is(':checked');
  $('#gameGrid').html('<p class="text-center text-muted py-3">Loading filtered games...</p>');
  loadGames(true);
});

// Reset Filters
$('#clearFilters').on('click', function(){
  $('#filterProvider').val('');
  $('#filterType').val('');
  $('#filterRTP').val(100);
  $('#filterFav').prop('checked', false);
  $('#rtpLabel').text('100%');
  filter = { provider:'', type:'', rtp:100, fav:false };
  loadGames(true);
});

// Update RTP label dynamically
$('#filterRTP').on('input', function(){
  $('#rtpLabel').text($(this).val() + '%');
});


.filter-sidebar {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
}
.filter-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
.filter-sidebar::-webkit-scrollbar-thumb:hover { background: #888; }


#recentGamesCarousel .recent-card {
  flex: 0 0 auto;
  width: 140px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#recentGamesCarousel .recent-card:hover {
  transform: scale(1.05);
}

/* ====================== */
/* 📱 MOBILE SIDEBAR MENU */
/* ====================== */
.mobile-sidebar {
  position: fixed;
  top: 0; left: -300px;
  width: 280px;
  height: 100%;
  background: #0d0d0d;
  color: #fff;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 2000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.6);
}
.mobile-sidebar.active { left: 0; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
}
.sidebar-backdrop.show { display: block; }

.sidebar-header img {
  height: 42px;
}
.sidebar-body {
  font-size: 15px;
}
.sidebar-body h6 {
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* 🔥 Highlight HOT / NEW badges */
.category-item span .text-warning,
.category-btn .text-warning {
  font-size: 0.8em;
  margin-left: 4px;
  vertical-align: middle;
}

/* 🎮 Desktop hover menu animation */
.category-item {
  position: relative;
  padding: 10px 12px;
  cursor: pointer;
}

.category-item:hover .submenu {
  display: flex;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  padding: 10px;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 620px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.submenu .provider-item {
  color: #ddd;
  text-align: center;
  transition: 0.2s;
}

.submenu .provider-item:hover {
  color: #FE8427;
}

.submenu .provider-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #222;
  padding: 6px;
}

#mobileMenuList .category-btn {
  width: 100%;
  text-align: left;
  color: #fff;
  background: none;
  border: none;
  padding: 10px 15px;
  border-bottom: 1px solid #222;
  font-weight: 500;
  transition: background 0.2s;
}

#mobileMenuList .category-btn i {
  color: #FE8427;
  margin-right: 8px;
}

#mobileMenuList .category-btn:hover {
  background: #1a1a1a;
}

/* ===== MOBILE MENU STYLE ENHANCEMENTS ===== */
.submenu-mobile {
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.4);
    padding: 5px 10px;
}

.submenu-mobile.active {
    display: block;
}

.category-name.active-category {
    color: #F7CC57 !important;
    font-weight: 600;
}

.submenu-mobile .provider-item {
    color: #ccc;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.submenu-mobile .provider-item:hover {
    color: #F7CC57;
    transform: translateX(3px);
}


/* 🧊 Provider Preview */
.provider-preview {
  background: #1a1a1a;
  border: 1px solid #333;
  animation: fadeIn 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}
.provider-preview img {
  object-fit: cover;
  border: 1px solid #444;
}
.preview-item:hover {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

/* 🦴 Skeleton Loader */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
.skeleton-text {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
.skeleton-btn {
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ========================== */
/* 🎮 FULL-WIDTH MEGA MENU FIX */
/* ========================== */
#megaMenu {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  background: #FE0000; /* red top bar */
  padding: 5px 0;
  position: relative;
  z-index: 900;
}



/* ===== STICKY MOBILE SEARCH BOX ===== */
.mobile-search-box {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.mobile-search-box input::placeholder {
    color: #aaa;
    font-size: 12px;
}

#mobileSearchResults {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 6px;
    display: none;
    margin-top: 6px;
}

#mobileSearchResults .search-item:hover {
    background-color: rgba(247, 204, 87, 0.1);
    cursor: pointer;
}

#mobileSearchResults::-webkit-scrollbar {
    width: 5px;
}
#mobileSearchResults::-webkit-scrollbar-thumb {
    background: #F7CC57;
    border-radius: 5px;
}


.category-item {
  position: relative;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.category-item i {
  color: #FFD700;
  margin-right: 5px;
}
.category-item:hover {
  color: #FE8427;
}

/* 🌍 Mega Menu Dropdown (full width) */
.category-item .mega-menu {
  display: none;
  position: absolute;
  
  top: 100%;
  width: 600px;
  background: #111;
  border-top: 2px solid #FE8427;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  padding: 10px 20px;
  z-index: 1000;
  animation: fadeInMega 0.25s ease-in;
}

/* 🧱 4-Column Grid for Providers */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 5px;
  justify-content: center;
  align-items: stretch;
}

/* 🎮 Provider Cards */
.provider-item {
  text-align: center;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}
.provider-item img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  background: #222;
  border-radius: 6px;
  margin-bottom: 10px;
}
.provider-item:hover {
  background: #FE8427;
  color: #000;
  transform: translateY(-5px);
}
.provider-item:hover img {
  background: #fff;
}

/* 🔄 Animation */
@keyframes fadeInMega {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🧭 Hover behavior */
.category-item:hover .mega-menu {
  display: block;
}

/* 📱 Responsive layout */
@media (max-width: 991px) {
  #megaMenu { display: none; }
}


/* ===== PREMIUM GOLD SCROLLING MARQUEE ===== */
.news-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 0;
    
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    text-shadow: 0 0 8px rgba(247, 204, 87, 0.8);
}

.news-track {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-marquee 25s linear infinite;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Light mode style */
body.light .news-marquee {
    background-color: #DDDDDD !important;
    color: #000000 !important;
}

/* Dark mode style */
body.dark .news-marquee {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Pause on hover */
.news-marquee:hover .news-track {
    animation-play-state: paused;
}

/* Scrolling keyframes */
@keyframes scrollMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Soft fade edges */
.news-marquee::before,
.news-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Base pseudo-elements setup */
.news-marquee::before,
.news-marquee::after {
    content: "";
    position: absolute; 
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* 🌙 Dark mode gradient edges */
body.dark .news-marquee::before {
    left: 0;
    background: linear-gradient(to right, #000000 0%, rgba(0,0,0,0) 100%);
}
body.dark .news-marquee::after {
    right: 0;
    background: linear-gradient(to left, #000000 0%, rgba(0,0,0,0) 100%);
}

/* 🌞 Light mode gradient edges (matching #DDDDDD tone) */
body.light .news-marquee::before {
    left: 0;
    background: linear-gradient(to right, #DDDDDD 0%, rgba(221,221,221,0) 100%);
}
body.light .news-marquee::after {
    right: 0;
    background: linear-gradient(to left, #DDDDDD 0%, rgba(221,221,221,0) 100%);
}

/* Optional subtle glow on hover */
.news-marquee:hover {
    box-shadow: 0 0 15px rgba(247, 204, 87, 0.4);
}


/* 🔍 Search Box Fix              */
/* Container positioning */
.search-bar {
  position: relative;
  width: 70%;
  margin: 0 auto;
  z-index: 1200; /* stays above mega-menu */
}

/* Results dropdown */
#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  z-index: 1300; /* even higher to always show */
  max-height: 400px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Result Items */
#searchResults .search-item {
  padding: 8px 15px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  cursor: pointer;
}

#searchResults .search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

#searchResults .search-item:hover {
  background: rgba(255,255,255,0.08);
}

#searchResults .search-item .fw-semibold {
  color: #fff;
  font-size: 14px;
}

#searchResults .search-item small {
  color: #aaa;
  font-size: 12px;
}

/* Keep marquee and mega-menu behind search results */
.mega-menu,
.category-bar,
.navbar {
  z-index: 1000;
}




/* 🟠 Floating Load More Button */
.floating-loadmore {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1050;
  background: #fe8427;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  display: none;
}

.floating-loadmore:hover {
  background: #ff9d4f;
  transform: translateY(-2px);
}

.floating-loadmore.glow {
  animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px #fe8427; }
  50% { box-shadow: 0 0 20px #ffb067; }
}


.floating-loadmore {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1050;
  background: #fe8427;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  display: none;
}

.floating-loadmore:hover {
  background: #ff9d4f;
  transform: translateY(-2px);
}

.floating-loadmore.glow {
  animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px #fe8427; }
  50% { box-shadow: 0 0 20px #ffb067; }
}


.fav-icon {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.fav-icon:hover {
  transform: scale(1.15);
}
.fav-btn {
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}
.fav-btn.fas {
  color: #fe2e2e !important;
}



/* 🪪 KYC Image Upload Preview */
.upload-preview-box {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.upload-preview-box:hover {
  border-color: #FE8427;
}
.preview-img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 5px;
  border-radius: 6px;
  background: #0d0d0d;
}


#avatarPreview {
  border: 3px solid #FE8427;
  transition: transform 0.2s ease;
}
#avatarPreview:hover {
  transform: scale(1.05);
}








#favModal .game-card img {
  border: 2px solid #FE8427;
  transition: transform 0.2s ease-in-out;
}

#favModal .game-card img:hover {
  transform: scale(1.05);
}

#favModal .remove-fav-btn {
  opacity: 0.8;
  transition: opacity 0.2s;
}

#favModal .remove-fav-btn:hover {
  opacity: 1;
}



/* ==================== 🌫️ Glassy Favorites Modal ==================== */
.glassy-modal {
  background: rgba(25, 25, 25, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

#favModal .modal-dialog {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Game Card Polish */
#favModal .game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#favModal .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

#favModal .remove-fav-btn {
  background: rgba(255, 0, 0, 0.8);
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  transition: background 0.2s;
}

#favModal .remove-fav-btn:hover {
  background: rgba(255, 0, 0, 1);
}



/* ====================== 🎮 GAME MODAL BASE ====================== */
#gameModal .modal-content {
  border: none;
  border-radius: 0px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

#gameModal .modal-header {
  border-bottom: none;
}

#gameModal .modal-title {
  font-weight: 600;
  letter-spacing: 0.5px;
}

#gameFrame {
  border: none;
  width: 100%;
  height: 90vh;
  border-radius: 8px;
}




/* ====================== 🩶 OPTION A: Semi-Dark Glass ====================== */
.glassy-game {
  background: rgba(25, 25, 25, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.glassy-game .modal-title {
  color: #FE8427;
}

.glassy-game .btn-close-white {
  filter: brightness(200%);
}



/* ====================== 💥 OPTION B: Neon Glow ====================== */
.neon-game {
  background: radial-gradient(circle at center, rgba(50, 0, 0, 0.8), rgba(10, 10, 10, 0.9)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(255, 0, 100, 0.6), 0 0 60px rgba(255, 132, 39, 0.3);
}

.neon-game .modal-title {
  color: #ff4081;
  text-shadow: 0 0 10px #ff4081;
}

.neon-game .btn-close-white {
  filter: drop-shadow(0 0 4px #ff4081);
}




/* ========================== 👑 ROYAL SLOGAN — GOLD + NEON LAYERS ========================== */
.royal-slogan {
  color: #FFD700; /* Royal gold base */
  text-shadow:
    0 0 5px #FFD700,
    0 0 10px #FFD700,
    0 0 20px #FE8427,
    0 0 40px #ff4081,
    0 0 80px #ff4081,
    0 0 120px #FE8427;
  animation: royalGlow 3.5s ease-in-out infinite;
}

/* ✨ Animation for breathing golden-neon glow */
@keyframes royalGlow {
  0%, 100% {
    text-shadow:
      0 0 6px #FFD700,
      0 0 15px #FFD700,
      0 0 25px #FE8427,
      0 0 50px #ff4081,
      0 0 90px #FE8427;
    color: #FFD700;
  }
  50% {
    text-shadow:
      0 0 10px #FE8427,
      0 0 30px #FFD700,
      0 0 60px #ff4081,
      0 0 100px #FE8427;
    color: #FFF3B0;
  }
}



@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* 🖥 Responsive */
@media (max-width: 768px) {
  .royal-slogan {
    font-size: 2rem;
    letter-spacing: 1px;
  }
}


#menuGamesGrid img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#menuGamesGrid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(254,132,39,0.7);
}




/* ============ ROYAL SLIDER BASE ============ */
.royal-hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* 🎞️ Slides (background only) */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }


/* 🎯 Fixed Content Layer (centered) */
.hero-fixed {
  position: relative;
  z-index: 5;
  width: 350px;
  max-width: 90vw;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(254,132,39,0.4);
  border-radius: 15px;
  padding: 25px 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 25px rgba(254,132,39,0.2);
}

/* 👑 Title Animation */
.royal-slogan {
  font-family: 'Oxanium', serif;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255,215,0,0.7), 0 0 25px rgba(254,132,39,0.4);
  animation: royalPulse 3s ease-in-out infinite alternate;
}

@keyframes royalFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes royalPulse {
  0% { text-shadow: 0 0 10px rgba(255,215,0,0.7), 0 0 25px rgba(254,132,39,0.4); }
  100% { text-shadow: 0 0 30px rgba(255,215,0,1), 0 0 70px rgba(254,132,39,0.8); }
}
@keyframes dustDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 1000px 500px, -800px 400px; }
}

/* 🌟 Search Bar */
.search-bar input {
  border: 1px solid #C87B17;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: gold;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
  box-shadow: 0 0 10px rgba(254,132,39,0.3);
  transition: all 0.3s ease;
}
.search-bar input:focus {
  box-shadow: 0 0 20px rgba(254,132,39,0.7);
}

.modal-backdrop {
  pointer-events: none !important;
}

.game-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.game-card:hover {
  transform: scale(1.03);
}
.play-btn-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.game-card:hover .play-btn-overlay {
  opacity: 1;
}
.play-btn {
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(254, 132, 39, 0.6);
}


/* ===== MOBILE BOTTOM BAR (NEON CENTER BUTTON) ===== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(15, 15, 15, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(247, 204, 87, 0.2);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.mobile-bottom-bar.hide {
    transform: translateY(100%);
    opacity: 0;
}

.mobile-bottom-bar .bottom-icon {
    flex: 1;
    text-align: center;
    color: #bbb;
    font-size: 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease-in-out;
    position: relative;
}

.mobile-bottom-bar .bottom-icon i {
    font-size: 15px;
    margin-bottom: 2px;
    text-shadow: 0 0 5px rgba(247, 204, 87, 0.3);
}

.mobile-bottom-bar .bottom-icon.active i,
.mobile-bottom-bar .bottom-icon:hover i {
    color: #F7CC57;
    text-shadow: 0 0 10px #F7CC57, 0 0 20px #F7CC57;
    transform: scale(1.1);
}

.mobile-bottom-bar .bottom-icon span {
    font-size: 8px;
    color: #ccc;
}

.mobile-bottom-bar .bottom-icon.active span,
.mobile-bottom-bar .bottom-icon:hover span {
    color: #F7CC57;
}

/* --- Center Glowing Icon --- */
.mobile-bottom-bar .center-icon {
    margin-top: -35px;
}

.mobile-bottom-bar .center-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(circle, #F7CC57 0%, #d4a82e 60%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px #F7CC57, 0 0 30px rgba(247, 204, 87, 0.6);
    transition: all 0.25s ease-in-out;
}

.mobile-bottom-bar .center-circle i {
    color: black;
    font-size: 15px;
    text-shadow: none;
    transition: transform 0.2s ease-in-out;
}

.mobile-bottom-bar .center-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #F7CC57, 0 0 50px rgba(247, 204, 87, 0.9);
}

@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}




.chat-icons {
  position: fixed;
  top: 70%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 9999;
}

.chat-icons img {
  width: 40px;
  height: auto;
  border-radius: 10%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-icons img:hover {
  transform: scale(1.5);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Smaller icons for chat apps */
.chat-icons .chat-icon img {
  width: 40px;
  height: 40px;
}

/* Optional mobile tweak */
@media (max-width: 768px) {
  .chat-icons {
    right: 5px;
    gap: 8px;
  }
  .chat-icons img {
    width: 50px;
  }
  .chat-icons .chat-icon img {
    width: 35px;
    height: 35px;
  }
}






        

        /* Responsive logo control */
        .desktop-logo {display:inline;}
        .mobile-logo {display:none;}
        @media(max-width: 768px) {
            .desktop-logo {display:none;}
            .mobile-logo {display:inline;}
        }

        .category-bar button {background:none;border:none;padding:10px 15px;font-weight:500;}
        .category-bar button:hover {background:rgba(255,255,255,0.1);}
        .game-card {background:#1e1e1e;border:none;border-radius:8px;overflow:hidden;transition:0.3s;}
        .game-card img {height:200px;object-fit:cover;width:100%;}
        .game-card:hover {transform:translateY(-3px);box-shadow:0 4px 10px rgba(0,0,0,0.3);}
        .hero {position:relative;background:url('/assets/img/slider_6.jpg') center/cover;height:400px;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;}
        .hero-overlay {background:rgba(0,0,0,0.4);position:absolute;inset:0;}
        .hero-content {position:relative;z-index:2;}
        marquee {background:#111;color:#fff;padding:6px;font-size:14px;}
        .wallet-dropdown {background:#1c1c1c;border-radius:8px;padding:10px;}
        .loader-overlay {display:none;position:fixed;inset:0;background:rgba(0,0,0,0.8);z-index:9999;align-items:center;justify-content:center;color:#FE8427;font-size:22px;}
        
        .language-switcher {
            position: relative;
            display: inline-block;
            margin-left: 15px;
        }
        .language-switcher select {
            background-color: #FE8427;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 6px 12px;
            font-weight: 600;
            font-size: 14px;
            outline: none;
            cursor: pointer;
            transition: 0.3s;
        }
        .language-switcher select:hover {
            background-color: #e97720;
        }
        .language-switcher option {
            color: #000;
        }
        @media(max-width: 768px) {
            .language-switcher {
                width: 100%;
                text-align: right;
                margin-top: 10px;
            }
            .language-switcher select {
                padding: 8px 12px;
                width: 100px;
            }
        }
        
        /* Clean black/white theme toggle */
        #toggleTheme {
            transition: all 0.3s ease;
            background: transparent;
        }
        
        /* Light mode look: black border, black icon */
        body.light #toggleTheme {
            border-color: #000 !important;
            color: #000 !important;
            background: #DDD !important;
        }
        
        /* Dark mode look: white border, white icon */
        body.dark #toggleTheme {
            border-color: #fff !important;
            color: #fff !important;
            background: #000 !important;
        }
        
        /* Hover effect */
        #toggleTheme:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }
        
        /* Clean black/white theme toggle */
        #userDropdown {
            transition: all 0.3s ease;
            background: transparent;
        }
        
        /* Light mode look: black border, black icon */
        body.light #userDropdown {
            border-color: #000 !important;
            color: #000 !important;
            background: #DDD !important;
        }
        
        /* Dark mode look: white border, white icon */
        body.dark #userDropdown {
            border-color: #fff !important;
            color: #fff !important;
            background: #000 !important;
        }
        
        /* Hover effect */
        #userDropdown:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }
        
        /* Clean black/white theme toggle */
        #mobileMenuBtn {
            transition: all 0.3s ease;
            background: transparent;
        }
        
        /* Light mode look: black border, black icon */
        body.light #mobileMenuBtn {
            border-color: #000 !important;
            color: #000 !important;
            background: #DDD !important;
        }
        
        /* Dark mode look: white border, white icon */
        body.dark #mobileMenuBtn {
            border-color: #fff !important;
            color: #fff !important;
            background: #000 !important;
        }
        
        /* Hover effect */
        #mobileMenuBtn:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }




/* image right click disable */
.img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* language converter */
.btn-lang {
  background: #FE8427;
  color: #fff;
  padding: 6px 10px;
  margin-left: 5px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-lang:hover { background:#e97720; }
.btn-lang.active { background:#d66e1e; }







/* Floating button */
#chat-launcher {
    position: fixed;
    right: 10px;
    bottom: 100px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #C87B17;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

/* Unread badge */
#chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Modal wrapper */
#chat-modal.chat-hidden {
    display: none;
}

#chat-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    justify-content: flex-end;   /* right */
    align-items: flex-end;       /* bottom */
    pointer-events: none;        /* clicks only inside window */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Backdrop */
#chat-modal .chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

/* Chat window itself */
#chat-modal .b2x-chat-window {
    position: relative;
    margin: 0 20px 90px 0;
    width: 100%;
    max-width: 300px;
    max-height: 100vh;
    background: #DDDDDD;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* clickable */
}

/* Header */
.b2x-chat-header {
    background: #C87B17;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

#chat-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* Selector box with animation */
#chat-selector {
    border-bottom: 1px solid #eee;
    background: #fafafa;
    padding: 6px 8px 8px;
    font-size: 12px;
    overflow: hidden;
    max-height: 150px;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, border-bottom 0.2s ease;
}

/* Hidden state (after user selected agent/player) */
#chat-selector.selector-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
}

.chat-selector-options {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.chat-selector-btn {
    flex: 1;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 999px;
    cursor: pointer;
}

.chat-selector-btn.active {
    background: #C87B17;
    color: #fff;
    border-color: #C87B17;
}

#chat-selector-panel {
    font-size: 12px;
}

/* Search inputs & list */
.chat-search-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.chat-search-list {
    max-height: 140px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.chat-search-item {
    padding: 5px 8px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.chat-search-item:last-child {
    border-bottom: none;
}

.chat-search-item:hover {
    background: #f0f5ff;
}

.chat-search-label {
    font-weight: 600;
    display: block;
}

.chat-search-sub {
    color: #777;
    font-size: 11px;
}

.chat-search-empty {
    padding: 6px 8px;
    color: #999;
    font-size: 11px;
}

/* Messages area */
#chat-messages {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    background: #f7f7f7;
}

/* Individual messages */
.chat-message {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    max-width: 80%;
    font-size: 13px;
}

.chat-message.me {
    margin-left: auto;
    align-items: flex-end;
}

.chat-message .bubble {
    padding: 6px 10px;
    border-radius: 12px;
    background: #e4e6eb;
    word-wrap: break-word;
}

.chat-message.me .bubble {
    background: #C87B17;
    color: #fff;
}

.chat-message .time {
    margin-top: 2px;
    font-size: 11px;
    color: #888;
}

/* Input area */
#chat-form {
    border-top: 1px solid #ddd;
    padding: 6px;
    background: #fff;
}

.chat-input-wrapper {
    display: flex;
}

#chat-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
}

#chat-send-btn {
    margin-left: 6px;
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 13px;
    background: #28a745;
    color: #fff;
    cursor: pointer;
}
