/* ===== VARIABLES & RESET ===== */
:root {
  --primary-color: #3a2f0b;
  --secondary-color: #40341a;
  --accent-color: #f1c40f;
  --accent-gradient: linear-gradient(135deg, #f1c40f, #e67e22);
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --text-primary: #ffffff;
  --text-secondary: #bdc3c7;
  --card-bg: rgba(14, 6, 6, 0.8);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary-color: #a30000;
  --secondary-color: #520000;
  --accent-color: #ffeb3b;
  --accent-gradient: linear-gradient(135deg, #ffeb3b, #ff9800);
  --card-bg: rgba(82, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--primary-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.preloader-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(241, 196, 15, 0.3);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.preloader p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

/* ===== HEADER ===== */
.main-header {
  background: rgba(58, 11, 11, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(241, 196, 15, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.header-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-item i {
  color: var(--accent-color);
  font-size: 16px;
}

.stat-label {
  font-size: 12px;
}

.theme-toggle {
  position: relative;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60px;
  height: 30px;
  background: var(--secondary-color);
  border-radius: 50px;
  padding: 5px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.toggle-label i {
  font-size: 14px;
  z-index: 1;
  transition: var(--transition);
}

.toggle-label .fa-sun {
  color: #f39c12;
}

.toggle-label .fa-moon {
  color: #f1c40f;
}

.toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-checkbox:checked + .toggle-label .toggle-ball {
  transform: translateX(30px);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(11, 26, 58, 0.98);
  backdrop-filter: blur(20px);
  transition: var(--transition);
  z-index: 1001;
  border-left: 1px solid rgba(241, 196, 15, 0.2);
}

.main-nav.active {
  right: 0;
}

.nav-container {
  padding: 80px 30px 30px;
  height: 100%;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
  background: rgba(241, 196, 15, 0.1);
  color: var(--accent-color);
  transform: translateX(10px);
}

.nav-link i {
  font-size: 18px;
  width: 20px;
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000;
  padding: 2px 0;
  margin-top: 85px;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner-icon {
  font-size: 20px;
  animation: bounce 2s infinite;
}

.banner-text {
  flex: 1;
}

.announcement-banner marquee {
  font-weight: 600;
  font-size: 14px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(11, 26, 58, 0.8) 0%,
    rgba(26, 37, 64, 0.6) 50%,
    rgba(11, 26, 58, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.btn-secondary:hover {
  background: rgba(241, 196, 15, 0.1);
  transform: translateY(-3px);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  padding: 40px 0;
  background: rgba(26, 37, 64, 0.5);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 25px 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid rgba(241, 196, 15, 0.2);
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--card-shadow);
}

.action-btn i {
  font-size: 2rem;
  color: var(--accent-color);
}

.action-btn span {
  font-weight: 600;
  font-size: 14px;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SITE INFO ===== */
.site-info-section {
  background: rgba(11, 26, 58, 0.5);
}

.info-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 196, 15, 0.2);
  box-shadow: var(--card-shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.info-item:hover {
  background: rgba(241, 196, 15, 0.1);
  transform: translateY(-3px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-weight: 600;
  font-size: 14px;
}

/* ===== RTP UPDATE ===== */
.rtp-update-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.rtp-update-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 196, 15, 0.3);
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.rtp-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rtp-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  animation: spin 3s linear infinite;
}

.rtp-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--accent-color);
}

.rtp-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.rtp-stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PROVIDERS ===== */
.providers-section {
  background: rgba(11, 26, 58, 0.5);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px 15px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.provider-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--card-shadow);
}

.provider-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #737373;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.provider-name {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* ===== FILTER SECTION ===== */
.filter-section {
  background: rgba(26, 37, 64, 0.5);
}

.filter-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 196, 15, 0.2);
  box-shadow: var(--card-shadow);
}

.filter-header {
  text-align: center;
  margin-bottom: 30px;
}

.filter-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.filter-header p {
  color: var(--text-secondary);
}

.filter-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 110px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-gradient);
  color: #000;
  border-color: transparent;
}

.search-box {
  position: relative;
  min-width: 250px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

/* ===== GAMES SECTION ===== */
.games-section {
  background: rgba(11, 26, 58, 0.5);
  min-height: 120vh;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: var(--card-shadow);
}

.game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-content {
  padding: 20px;
}

.game-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.game-provider {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 20px;
}

.rtp-badge {
  background: var(--accent-gradient);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.game-actions {
  display: flex;
  gap: 10px;
}

.play-btn {
  flex: 1;
  padding: 10px 15px;
  background: var(--accent-gradient);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
}

.info-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-btn:hover {
  background: rgba(241, 196, 15, 0.2);
  color: var(--accent-color);
}

/* ===== FLOATING PLAYER COUNTER ===== */
.floating-player-counter {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 196, 15, 0.3);
  box-shadow: var(--card-shadow);
  z-index: 999;
  transition: var(--transition);
}

.floating-counter-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.online-text {
  font-size: 12px;
  color: var(--success-color);
  font-weight: 600;
}

.player-count {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-count span:first-child {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.players-text {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.floating-close {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.floating-close:hover {
  color: var(--danger-color);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.6);
}

/* ===== FOOTER ===== */
.main-footer {
  background: rgba(58, 11, 11, 0.95);
  border-top: 1px solid rgba(241, 196, 15, 0.2);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .header-stats {
    gap: 20px;
  }
  
  .rtp-update-card {
    flex-direction: column;
    text-align: center;
  }
  
  .rtp-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-stats {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .floating-player-counter {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  
  .scroll-top-btn {
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }
.fade-in { animation: fadeInUp 0.6s ease; }

/* Loading Animation for Game Cards */
.game-card.loading {
  position: relative;
  overflow: hidden;
}

.game-card.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Game Card Styling */
.game-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.game-image-wrapper:hover .game-image {
  transform: scale(1.1);
}

.game-content {
  padding: 20px;
}

.game-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.game-provider {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 20px;
}

.rtp-badge {
  background: var(--accent-gradient);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* RTP Bar Styling */
/* ===== RTP BAR STYLING ===== */
.rtp-bar {
position: relative;
background: rgba(0, 0, 0, 0.3);
height: 25px;
border-radius: 12px;
margin: 12px 0;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rtp-bar-fill {
height: 100%;
border-radius: 12px;
position: relative;
transition: all 0.6s ease;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 12px;
min-width: 50px;
overflow: hidden;

/* Base gradient background */
background: linear-gradient(
  90deg,
  #1f0052 0%,
  #5200af 50%,
  #8c00ff 100%
);
}

/* Warp effect dengan garis diagonal */
.warp-bg {
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 100%;
background: repeating-linear-gradient(
  -45deg,
  rgba(255, 255, 255, 0.1),
  rgba(255, 255, 255, 0.1) 5px,
  transparent 5px,
  transparent 10px
);
animation: 2s linear infinite warpMove;
opacity: 1;
z-index: 1;
}

.rtp-value {
color: #ffffff;
font-weight: 800;
font-size: 11px;
z-index: 2;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
position: relative;
letter-spacing: 0.5px;
}

/* Animasi untuk efek warp */
@keyframes warpMove {
0% {
  transform: translateX(-50%);
}
100% {
  transform: translateX(0%);
}
}

/* Variasi warna berdasarkan persentase RTP */
.rtp-bar-fill.high-rtp {
background: linear-gradient(
  90deg,
  #67cd4e 0%,
  #4fa044 50%,
  #093713 100%
);
}

.rtp-bar-fill.medium-rtp {
background: linear-gradient(
  90deg,
  #FFD166 0%,
  #FF9E64 50%,
  #FF6B6B 100%
);
}

.rtp-bar-fill.low-rtp {
background: linear-gradient(
  90deg,
  #FF6B6B 0%,
  #EE5A52 50%,
  #C44569 100%
);
}

/* Efek tambahan untuk depth */
.rtp-bar-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
  to bottom,
  rgba(255, 255, 255, 0.2) 0%,
  transparent 30%,
  rgba(0, 0, 0, 0.1) 70%,
  rgba(0, 0, 0, 0.2) 100%
);
border-radius: 12px;
z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.rtp-bar {
  height: 22px;
  border-radius: 10px;
}

.rtp-bar-fill {
  padding: 0 10px;
  min-width: 45px;
  border-radius: 10px;
}

.rtp-value {
  font-size: 10px;
}

.warp-bg {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 4px,
    transparent 4px,
    transparent 8px
  );
}
}

@media (max-width: 480px) {
.rtp-bar {
  height: 20px;
  border-radius: 8px;
}

.rtp-bar-fill {
  padding: 0 8px;
  min-width: 40px;
  border-radius: 8px;
}

.rtp-value {
  font-size: 9px;
}

.warp-bg {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 3px,
    transparent 3px,
    transparent 6px
  );
}
}

.rtp-value {
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.jam-gacor-slot {
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.3);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--accent-color);
  margin-top: 15px;
}

.jam-gacor-slot i {
  margin-right: 5px;
}

/* Play Button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--accent-gradient);
  color: #000;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-image-wrapper:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Warp Animation */
@keyframes warpMove {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ===== GAME CARD RESPONSIVE ===== */
/* ===== GAMES SECTION ===== */
/* ===== GAMES SECTION ===== */
.games-section {
background: rgba(11, 26, 58, 0.5);
min-height: 60vh;
padding: 40px 0;
}

/* Game Grid untuk Desktop (4 kolom) */
.game-grid {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 4 kolom untuk desktop */
gap: 20px;
padding: 20px 0;
}

.game-card {
background: var(--card-bg);
border-radius: var(--border-radius);
overflow: hidden;
transition: var(--transition);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
position: relative;
display: flex;
flex-direction: column;
}

.game-card:hover {
transform: translateY(-8px);
border-color: var(--accent-color);
box-shadow: var(--card-shadow);
}

/* Game Image Container */
.game-image-wrapper {
position: relative;
overflow: hidden;
border-radius: var(--border-radius) var(--border-radius) 0 0;
height: 180px;
background: rgba(255, 255, 255, 0.05);
}

.game-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: var(--transition);
}

.game-image-wrapper:hover .game-image {
transform: scale(1.05);
}

/* Game Content */
.game-content {
padding: 15px;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.game-title {
font-size: 0.95rem;
font-weight: 600;
margin-bottom: 8px;
color: var(--text-primary);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 44px;
line-height: 1.3;
}

.game-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}

.game-provider {
font-size: 11px;
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.1);
padding: 3px 6px;
border-radius: 12px;
}

.rtp-badge {
background: var(--accent-gradient);
color: #000;
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 700;
}

/* RTP Bar Styling */
.rtp-bar {
position: relative;
background: rgba(255, 255, 255, 0.1);
height: 20px;
border-radius: 10px;
margin: 12px 0;
overflow: hidden;
}

.rtp-bar-fill {
height: 100%;
border-radius: 10px;
position: relative;
transition: all 0.4s ease;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 8px;
min-width: 40px;
}

.warp-bg {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
  90deg,
  transparent,
  rgba(255, 255, 255, 0.3),
  transparent
);
animation: warpMove 2s linear infinite;
}

.rtp-value {
color: #ffffff;
font-weight: 700;
font-size: 10px;
z-index: 2;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.jam-gacor-slot {
background: rgba(241, 196, 15, 0.1);
border: 1px solid rgba(241, 196, 15, 0.3);
padding: 8px 12px;
border-radius: 6px;
font-size: 11px;
text-align: center;
color: var(--accent-color);
margin-top: auto;
}

.jam-gacor-slot i {
margin-right: 4px;
font-size: 10px;
}

/* Play Button */
.play-btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
background: var(--accent-gradient);
color: #000;
padding: 10px 16px;
border-radius: 20px;
text-decoration: none;
font-weight: 600;
font-size: 12px;
opacity: 0;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 6px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
z-index: 3;
}

.game-image-wrapper:hover .play-btn {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Landscape */
@media (max-width: 1400px) {
.game-grid {
  grid-template-columns: repeat(4, 1fr); /* 3 kolom untuk tablet landscape */
  gap: 18px;
}
}

/* Tablet Portrait */
@media (max-width: 1024px) {
.game-grid {
  grid-template-columns: repeat(4, 1fr); /* 3 kolom untuk tablet */
  gap: 15px;
}

.game-image-wrapper {
  height: 160px;
}

.game-content {
  padding: 12px;
}
}

/* Mobile Large */
@media (max-width: 768px) {
.game-grid {
  grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk mobile besar */
  gap: 12px;
}

.game-image-wrapper {
  height: 150px;
}

.game-content {
  padding: 10px;
}

.game-title {
  font-size: 0.9rem;
  min-height: 40px;
}

.game-info {
  margin-bottom: 8px;
}

.game-provider {
  font-size: 10px;
  padding: 2px 5px;
}

.rtp-badge {
  font-size: 10px;
  padding: 3px 6px;
}

.rtp-bar {
  height: 18px;
  margin: 8px 0;
}

.jam-gacor-slot {
  padding: 6px 8px;
  font-size: 10px;
}

.play-btn {
  padding: 10px 15px;
  font-size: 11px;
}
}

/* Mobile Medium */
@media (max-width: 480px) {
.game-grid {
  grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom untuk mobile medium */
  gap: 10px;
}

.game-image-wrapper {
  height: 140px;
}

.game-title {
  font-size: 0.85rem;
  min-height: 36px;
}

.games-section {
  padding: 30px 0;
}
}

/* Mobile Small */
@media (max-width: 375px) {
.game-grid {
  grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom untuk mobile kecil */
  gap: 8px;
}

.game-image-wrapper {
  height: 130px;
}

.game-content {
  padding: 8px;
}

.game-title {
  font-size: 1rem;
  min-height: 32px;
}

.game-info {
  align-items: flex-start;
  gap: 5px;
}

.rtp-badge {
  align-self: flex-end;
}
}

/* Extra Small Mobile */
@media (max-width: 320px) {
.game-grid {
  grid-template-columns: 1fr; /* 1 kolom untuk mobile sangat kecil */
  gap: 10px;
}

.game-image-wrapper {
  height: 160px;
}

.game-content {
  padding: 12px;
}

.game-title {
  font-size: 0.9rem;
  min-height: auto;
}
}

/* Warp Animation */
@keyframes warpMove {
0% {
  left: -100%;
}
100% {
  left: 100%;
}
}

/* No Games Found Styling */
.no-games-found {
grid-column: 1 / -1;
text-align: center;
padding: 60px 20px;
color: var(--text-secondary);
}

.no-games-found i {
font-size: 3rem;
margin-bottom: 20px;
color: var(--accent-color);
}

.no-games-found h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: var(--text-primary);
}

.no-games-found p {
font-size: 1rem;
}

/* Warp Animation */
@keyframes warpMove {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}