:root {
  /* Colors */
  --bg-base: #06080d;
  --bg-surface: #10131c;
  --bg-surface-elevated: #1a1e2b;
  --accent-main: #00e5ff;       /* Electric Cyan */
  --accent-secondary: #ff0055;  /* Magenta */
  --accent-gold: #ffbe0b;       /* Jackpot Gold */
  --accent-green: #00f585;      /* Success/New Green */
  --text-primary: #ffffff;
  --text-secondary: #949ab0;
  
  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--accent-main), #0077ff);
  --gradient-glow: linear-gradient(90deg, rgba(0, 229, 255, 0.15), rgba(255, 0, 85, 0.05));
  
  /* Shadows & Glows */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 15px rgba(0,0,0,0.4);
  --glow-primary: 0 0 15px rgba(0, 229, 255, 0.4);
  --glow-secondary: 0 0 20px rgba(255, 0, 85, 0.4);
  
  /* Typography */
  --font-family: 'Outfit', system-ui, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
}

/* ==================================
   RESET & BASE 
   ================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 900px;
}

/* Typography Utilities */
.text-accent {
  color: var(--accent-main);
}
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-main);
  background: rgba(0, 229, 255, 0.05);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-glow {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-main);
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

/* ==================================
   HEADER & NAVIGATION
   ================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  background: rgba(6, 8, 13, 0.95);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 32px;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-accent {
  color: var(--accent-secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-main);
  border-radius: 2px;
  box-shadow: var(--glow-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.search-btn:hover {
  color: var(--accent-main);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--text-primary);
}

/* ==================================
   HERO SECTION
   ================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 0, 85, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.15) 0%, transparent 40%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1614680376593-902f74cf0d41?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: color-dodge;
}

/* Cyber grid effect */
.hero-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent 95%, rgba(0, 229, 255, 0.2) 100%);
  background-size: 100% 40px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  opacity: 0.4;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 24px 0;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==================================
   CATEGORIES NAV
   ================================== */
.categories-section {
  position: relative;
  z-index: 10;
  margin-top: -30px;
  padding: 0 16px;
}

.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  scrollbar-width: none; /* Firefox */
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.category-btn ion-icon {
  font-size: 1.2rem;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.category-btn.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-main);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.05);
}

/* ==================================
   GAME GRID & CARDS
   ================================== */
.game-grid-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.styled-select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-weight: 500;
  outline: none;
}

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

/* For visual interest, make certain items span 2 columns/rows. 
   We apply this to a specific class 'game-featured' */
@media (min-width: 768px) {
  .game-featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.game-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(0, 229, 255, 0.15);
  z-index: 2;
}

.game-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.game-featured .game-img-wrapper {
  height: 100%;
  aspect-ratio: auto;
}

.game-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.game-card:hover .game-img-wrapper img {
  transform: scale(1.08);
}

.game-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 8, 13, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(2px);
}

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

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-main);
  color: var(--bg-base);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8) translateY(20px);
  transition: var(--transition-smooth);
  opacity: 0;
  box-shadow: var(--glow-primary);
}

.game-card:hover .play-btn {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.badge-new { color: var(--accent-green); border-left: 3px solid var(--accent-green); }
.badge-hot { color: var(--accent-secondary); border-left: 3px solid var(--accent-secondary); }

.game-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(to top, var(--bg-surface) 60%, transparent);
}

.game-featured .game-info {
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(6,8,13,0.95) 0%, rgba(6,8,13,0.5) 70%, transparent 100%);
}

.game-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-featured .game-title {
  font-size: 1.6rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.game-category {
  color: var(--text-secondary);
}

.game-jackpot {
  color: var(--accent-gold);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 190, 11, 0.4);
}

.load-more-container {
  text-align: center;
  margin-top: 50px;
}

/* ==================================
   TOP GAMES CAROUSEL
   ================================== */
.top-games-section {
  padding: 40px 0 80px;
  background: var(--gradient-glow);
}

.slider-container {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 20px 0;
}
.slider-container::-webkit-scrollbar { display: none; }

.top-games-slider {
  display: flex;
  gap: 20px;
  width: max-content;
}

.top-card {
  width: 300px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  padding: 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.top-rank {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  -webkit-text-stroke: 1px var(--text-secondary);
  min-width: 35px;
  text-align: center;
}

.top-rank.rank-1 { color: var(--accent-gold); -webkit-text-stroke: 0; text-shadow: 0 0 10px rgba(255,190,11,0.5); }
.top-rank.rank-2 { color: #C0C0C0; -webkit-text-stroke: 0; }
.top-rank.rank-3 { color: #CD7F32; -webkit-text-stroke: 0; }

.top-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: contain;
}

.top-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.top-info span {
  font-size: 0.8rem;
  color: var(--accent-main);
  font-weight: 600;
}

/* ==================================
   BENEFITS SECTION
   ================================== */
.benefits-section {
  padding: 80px 0;
}

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

.benefit-card {
  background: var(--bg-surface);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  background: var(--bg-surface-elevated);
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.2);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==================================
   SEO TEXT
   ================================== */
.seo-section {
  padding: 60px 0;
}

.seo-card {
  background: var(--bg-surface);
  padding: 50px;
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent-secondary);
}

.seo-card h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.seo-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==================================
   FAQ SECTION
   ================================== */
.faq-section {
  padding: 80px 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.faq-question ion-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question ion-icon {
  transform: rotate(180deg);
  color: var(--accent-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--bg-surface-elevated);
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ==================================
   FINAL CTA
   ================================== */
.final-cta-section {
  padding: 100px 0 120px;
}

.cta-box {
  background: url('https://images.unsplash.com/photo-1614680376573-a3681cce43d0?q=80&w=1600&auto=format&fit=crop') center/cover;
  position: relative;
  padding: 80px 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(6,8,13,0.9) 0%, rgba(0, 229, 255, 0.4) 100%);
}

.cta-box > * {
  position: relative;
  z-index: 2;
}

.cta-box h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-box p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* ==================================
   FOOTER
   ================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.brand-tagline {
  color: var(--text-secondary);
  margin: 20px 0;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 20px;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent-main);
  color: var(--bg-base);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.link-group h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.link-group a:hover {
  color: var(--accent-main);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.legal-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.disclaimer {
  margin-top: 8px;
  opacity: 0.6;
}

.payment-icons {
  display: flex;
  gap: 16px;
  font-size: 28px;
  color: var(--text-secondary);
}

/* ==================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 20px; }
  
  .cta-box h2 { font-size: 2rem; }
  .seo-card { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card { max-width: 350px; margin: 0 auto; width: 100%; }
}
