:root {
  /* Core Background */
  --bg-deep-space: #0B0E13;
  --bg-gradient: linear-gradient(160deg, #182030 0%, #0B0E13 100%);

  /* Accents */
  --gold-gradient: linear-gradient(135deg, #C6A85A 0%, #F2D27A 50%, #B8892E 100%);
  --silver-gradient: linear-gradient(135deg, #C9CED6 0%, #E6EAF0 50%, #AAB2BD 100%);

  /* Text */
  --text-main: #FFFFFF;
  --text-muted: #AAB2BD;
  --text-gold: #F2D27A;

  /* Glass and Borders */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);

  /* Effects */
  --shadow-gold: 0 4px 20px rgba(242, 210, 122, 0.25);
  --shadow-gold-hover: 0 6px 30px rgba(242, 210, 122, 0.4);
  --glow-white: 0 4px 20px rgba(255, 255, 255, 0.1);
  --glow-white-hover: 0 8px 30px rgba(255, 255, 255, 0.15);

  /* Structure */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --sidebar-w: 280px;
  --header-h: 80px;

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep-space);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Star Dust Particles (Pseudo-element approach) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--text-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.silver-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0B0E13;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
}

.btn-silver {
  background: var(--silver-gradient);
  color: #0B0E13;
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--glow-white);
}

/* Layout: Desktop Sidebar */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: rgba(11, 14, 19, 0.95);
  border-right: 1px solid var(--glass-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.sidebar .logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--glass-bg);
  color: var(--text-main);
}

.sidebar-link i {
  font-size: 20px;
}

.search-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
}

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

/* Main Content */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header (Desktop) */
.header-top {
  height: var(--header-h);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  background: rgba(11, 14, 19, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--glass-border);
}

/* Hero Section */
.hero {
  padding: 40px;
  position: relative;
}

.hero-card {
  background: linear-gradient(rgba(11, 14, 19, 0.7), rgba(11, 14, 19, 0.85)), url('/assets/banners/image.png') top center/cover no-repeat;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  box-shadow: var(--glow-white);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at 100% 50%, rgba(242, 210, 122, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Withdrawal Counter */
.counter-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--glass-bg);
  border: 1px solid rgba(201, 206, 214, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  margin-top: 32px;
}

.counter-val {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: monospace;
}

.counter-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Games Section */
.section {
  padding: 40px;
}

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

.tabs {
  display: flex;
  gap: 12px;
}

.tab {
  padding: 8px 16px;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-weight: 500;
  transition: var(--transition);
}

.tab:hover {
  color: var(--text-main);
}

.tab.active {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-main);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  display: block;
}

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(242, 210, 122, 0.3);
  border-color: rgba(242, 210, 122, 0.5);
}

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

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

.play-btn {
  background: var(--gold-gradient);
  color: #000;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* SEO Content */
.seo-content {
  padding: 60px 40px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--glass-border);
}

.seo-content article {
  max-width: 900px;
  margin: 0 auto;
}

.seo-content h2 {
  margin: 40px 0 20px;
  font-size: 2rem;
}

.seo-content h3 {
  margin: 30px 0 15px;
  font-size: 1.5rem;
  color: var(--text-gold);
}

.seo-content p,
.seo-content ul {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.seo-content ul {
  list-style: disc inside;
}

.seo-content li {
  margin-bottom: 8px;
}

/* Mobile Bottom Nav (Hidden on Desktop) */
.mobile-nav {
  display: none;
}

.mobile-header {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
    padding-bottom: 80px;
  }

  .header-top {
    display: none;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(11, 14, 19, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid var(--glass-border);
  }

  .mobile-logo {
    font-family: 'Poppins';
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero {
    padding: 20px;
  }

  .hero-card {
    padding: 30px 20px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 20px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .tab {
    white-space: nowrap;
  }

  .seo-content {
    padding: 40px 20px;
  }

  /* Mobile Sticky Nav */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(11, 14, 19, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
  }

  .nav-item i {
    font-size: 24px;
  }

  .nav-item.active {
    color: var(--text-main);
  }

  /* Floating Orb */
  .nav-orb {
    position: relative;
    top: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    border: 4px solid var(--bg-deep-space);
    color: #000;
  }

  .nav-orb i {
    color: #000;
    font-size: 28px;
  }
}