/* ============================================
   ONEY GAMING — Landing Page CSS
   Casino-inspired, vibrant, 3D animated
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Noto+Sans+Arabic:wght@400;600;700&display=swap');

/* ============================================
   CLS Prevention & Core Web Vitals
   ============================================ */

/* Reserve space for game card icons to prevent CLS */
.game-card-icon-svg {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
}

/* Reserve space for counter elements */
.counter {
  display: inline-block;
  min-width: 3ch;
}

/* Ensure smooth font loading with fallback */
@font-face {
  font-family: 'Outfit';
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Arabic';
  font-display: swap;
}

/* Contain layout shifts in sections */
.hero { contain: layout style; }
.stats-section { min-height: 120px; }
.games-grid { min-height: 200px; }

/* Optimize paint for fixed elements */
.navbar { will-change: background, box-shadow; }
#particles-canvas { will-change: transform; }

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #232a45;
  --gold: #f0c040;
  --gold-dark: #c9a030;
  --gold-light: #ffe066;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f97316;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, #1a0533 0%, #0a0e1a 30%, #0a1628 60%, #0d0a1a 100%);
  --gradient-gold: linear-gradient(135deg, #f0c040 0%, #d4a020 50%, #f0c040 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --gradient-card: linear-gradient(145deg, rgba(139,92,246,0.1) 0%, rgba(6,182,212,0.05) 100%);
  --glow-purple: 0 0 60px rgba(139,92,246,0.3);
  --glow-gold: 0 0 60px rgba(240,192,64,0.3);
  --glow-cyan: 0 0 60px rgba(6,182,212,0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

[dir="rtl"] { direction: rtl; text-align: right; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Outfit', system-ui, sans-serif;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(10,14,26,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #1a0533;
  box-shadow: 0 0 20px rgba(240,192,64,0.4);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(240,192,64,0.4); }
  50% { box-shadow: 0 0 35px rgba(240,192,64,0.7); }
}

.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

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

.nav-links a:hover { color: var(--gold); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: rgba(139,92,246,0.25);
  border-color: rgba(139,92,246,0.5);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 12px;
  padding: 8px;
  display: none;
  min-width: 180px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 1001;
}

[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

.lang-dropdown.open { display: block; animation: fadeInDown 0.2s ease; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.lang-option:hover { background: rgba(139,92,246,0.15); }
.lang-option.active { background: rgba(139,92,246,0.25); color: var(--gold); }

.nav-cta {
  background: var(--gradient-gold);
  color: #1a0533;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(240,192,64,0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(240,192,64,0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(240,192,64,0.08) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(3deg) scale(1.05); }
  66% { transform: rotate(-2deg) scale(0.98); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--green);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 30%, var(--pink) 60%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-gold);
  color: #1a0533;
  padding: 16px 36px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(240,192,64,0.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(240,192,64,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(139,92,246,0.15);
  color: var(--text-primary);
  padding: 16px 36px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(139,92,246,0.4);
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: rgba(139,92,246,0.25);
  transform: translateY(-3px);
  border-color: rgba(139,92,246,0.7);
}

/* Floating game icons around hero */
.hero-float-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: floatRandom 20s ease-in-out infinite;
  filter: blur(1px);
}

.float-icon:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; animation-duration: 18s; }
.float-icon:nth-child(2) { top: 25%; right: 10%; animation-delay: -3s; animation-duration: 22s; }
.float-icon:nth-child(3) { bottom: 20%; left: 12%; animation-delay: -6s; animation-duration: 20s; }
.float-icon:nth-child(4) { bottom: 30%; right: 8%; animation-delay: -9s; animation-duration: 24s; }
.float-icon:nth-child(5) { top: 45%; left: 5%; animation-delay: -2s; animation-duration: 19s; }
.float-icon:nth-child(6) { top: 60%; right: 5%; animation-delay: -5s; animation-duration: 21s; }
.float-icon:nth-child(7) { top: 10%; left: 45%; animation-delay: -8s; animation-duration: 23s; }

@keyframes floatRandom {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -40px) rotate(10deg) scale(1.1); }
  50% { transform: translate(-20px, 20px) rotate(-5deg) scale(0.95); }
  75% { transform: translate(15px, -15px) rotate(8deg) scale(1.05); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 100px 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

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

/* ============================================
   GAMES SECTION
   ============================================ */
.games-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1225 50%, var(--bg-primary) 100%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--gradient-card);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(139,92,246,0.4);
  box-shadow: var(--glow-purple);
}

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

.game-card-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: cardIconBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(240,192,64,0.3));
}

.game-card:hover .game-card-icon {
  animation: cardIconSpin 0.6s ease;
}

@keyframes cardIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cardIconSpin {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

.game-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-card-icon-svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 15px rgba(240,192,64,0.3));
  transition: all 0.4s;
  object-fit: contain;
}

.game-card:hover .game-card-icon-svg {
  transform: scale(1.15) rotateY(10deg);
  filter: drop-shadow(0 0 25px rgba(240,192,64,0.5));
}

.game-card-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.game-card-online::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

/* Specific game card colors */
.game-card[data-game="tavla"] { --card-accent: #f0c040; }
.game-card[data-game="okey"] { --card-accent: #ef4444; }
.game-card[data-game="batak"] { --card-accent: #8b5cf6; }
.game-card[data-game="pisti"] { --card-accent: #06b6d4; }
.game-card[data-game="satranc"] { --card-accent: #f97316; }
.game-card[data-game="dama"] { --card-accent: #ec4899; }
.game-card[data-game="okey101"] { --card-accent: #10b981; }

.game-card:hover {
  border-color: var(--card-accent, rgba(139,92,246,0.4));
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0e0a1f 50%, var(--bg-primary) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(26,31,53,0.6);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(26,31,53,0.9);
  border-color: rgba(139,92,246,0.3);
  transform: translateX(8px);
}

[dir="rtl"] .feature-card:hover { transform: translateX(-8px); }

.feature-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-icon.purple { background: rgba(139,92,246,0.2); }
.feature-icon.cyan { background: rgba(6,182,212,0.2); }
.feature-icon.gold { background: rgba(240,192,64,0.2); }
.feature-icon.pink { background: rgba(236,72,153,0.2); }
.feature-icon.green { background: rgba(16,185,129,0.2); }
.feature-icon.orange { background: rgba(249,115,22,0.2); }

.feature-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   TOURNAMENTS SECTION
   ============================================ */
.tournaments-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0f1020 50%, var(--bg-primary) 100%);
  overflow: hidden;
}

.tournament-carousel-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.tournament-showcase {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  width: max-content;
  animation: tournamentScroll 35s linear infinite;
}

.tournament-carousel-wrapper:hover .tournament-showcase {
  animation-play-state: paused;
}

@keyframes tournamentScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-280px * 7 - 1rem * 7)); }
}

.tournament-showcase::-webkit-scrollbar { display: none; }

.tournament-card {
  min-width: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.tournament-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240,192,64,0.4);
  box-shadow: var(--glow-gold);
}

.tournament-time {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.tournament-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.tournament-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tournament-prize {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.tournament-join-btn {
  width: 100%;
  padding: 10px;
  background: var(--gradient-purple);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.tournament-join-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(139,92,246,0.4);
}

/* ============================================
   VIP SECTION
   ============================================ */
.vip-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #140a20 50%, var(--bg-primary) 100%);
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.vip-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.vip-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vip-card-content .vip-perks { flex: 1; }

.vip-card-content > a,
.vip-card-content > .btn-primary,
.vip-card-content > .btn-secondary {
  margin-top: auto;
}

.vip-card.silver {
  border: 1px solid rgba(192,192,192,0.3);
}

.vip-card.gold {
  border: 2px solid rgba(240,192,64,0.5);
  box-shadow: var(--glow-gold);
}

.vip-card.gold::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(240,192,64,0.1), transparent, rgba(240,192,64,0.05), transparent);
  animation: vipShimmer 6s linear infinite;
}

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

.vip-card:hover { transform: translateY(-8px); }

.vip-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gradient-gold);
  color: #1a0533;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

[dir="rtl"] .vip-badge { right: auto; left: 1.5rem; }

.vip-card-content {
  position: relative;
  z-index: 2;
}

.vip-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.vip-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.vip-price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.vip-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.vip-perks {
  list-style: none;
  margin-bottom: 2rem;
}

.vip-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.vip-perks li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-section {
  padding: 60px 2rem;
  background: linear-gradient(90deg, rgba(139,92,246,0.08) 0%, rgba(6,182,212,0.08) 50%, rgba(240,192,64,0.08) 100%);
  border-top: 1px solid rgba(139,92,246,0.1);
  border-bottom: 1px solid rgba(139,92,246,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d0520 50%, var(--bg-primary) 100%);
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 32px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  min-width: 220px;
}

.store-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.store-btn img {
  width: 36px;
  height: 36px;
}

.store-btn-text {
  text-align: left;
}

[dir="rtl"] .store-btn-text { text-align: right; }

.store-btn-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.store-btn-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #060810;
  padding: 60px 2rem 30px;
  border-top: 1px solid rgba(139,92,246,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-about h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.footer-social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.footer-social a svg { transition: transform 0.3s; }

.footer-social a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.footer-social a:hover svg { transform: scale(1.1); }

/* Platform-specific hover colors */
.footer-social a[title="Instagram"]:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: white;
}

.footer-social a[title*="Twitter"]:hover,
.footer-social a[title*="X"]:hover {
  background: #000000;
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.footer-social a[title="YouTube"]:hover {
  background: #FF0000;
  border-color: transparent;
  color: white;
}

.footer-social a[title="TikTok"]:hover {
  background: #000000;
  border-color: transparent;
  color: #00f2ea;
}

.footer-social a[title="Discord"]:hover {
  background: #5865F2;
  border-color: transparent;
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(26,31,53,0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  border-top: 1px solid rgba(139,92,246,0.2);
  transform: translateY(100%);
  transition: transform 0.4s;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner p { color: var(--text-secondary); font-size: 0.9rem; }

.cookie-actions { display: flex; gap: 0.5rem; }

.cookie-accept {
  background: var(--gradient-gold);
  color: #1a0533;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   3D CARD TILT EFFECT
   ============================================ */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-cta { display: none; }

  .hero { padding: 100px 1.5rem 60px; }
  .section { padding: 60px 1.5rem; }

  .features-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .download-buttons { flex-direction: column; align-items: center; }

  .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ============================================
   FREE-TO-PLAY SECTION
   ============================================ */
.free-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #061210 50%, var(--bg-primary) 100%);
}

/* ============================================
   MODAL POPUP (Privacy / Terms)
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: fadeInUp 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(139,92,246,0.15);
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: var(--red);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.modal-body h1 { font-size: 1.4rem; }
.modal-body h2 { font-size: 1.2rem; }
.modal-body h3 { font-size: 1.05rem; }

.modal-body p { margin-bottom: 0.8rem; }

.modal-body ul, .modal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.modal-body table th, .modal-body table td {
  padding: 8px 12px;
  border: 1px solid rgba(139,92,246,0.15);
  text-align: left;
}

[dir="rtl"] .modal-body table th, [dir="rtl"] .modal-body table td {
  text-align: right;
}

.modal-body table th {
  background: rgba(139,92,246,0.1);
  color: var(--text-primary);
}

/* Game card specific colors */
.game-card[data-game="mangala"] { --card-accent: #a855f7; }
.game-card[data-game="king"] { --card-accent: #f43f5e; }
.game-card[data-game="okey_classic"] { --card-accent: #22c55e; }
.game-card[data-game="bir"] { --card-accent: #ef4444; }

/* VIP 3-column grid */
.vip-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1100px !important;
}

@media (max-width: 900px) {
  .vip-grid-3 { grid-template-columns: 1fr !important; }
}

.vip-card.free { border: 2px solid rgba(16,185,129,0.4); }
.vip-card.free:hover { box-shadow: 0 0 40px rgba(16,185,129,0.3); }

/* ============================================
   COIN ECONOMY
   ============================================ */
.coin-economy {
  background: linear-gradient(135deg, rgba(26,31,53,0.8) 0%, rgba(13,18,37,0.9) 100%);
  border: 1px solid rgba(240,192,64,0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  margin-bottom: 1rem;
}

.coin-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (max-width: 768px) { .coin-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .coin-row { grid-template-columns: repeat(2, 1fr); } }

.coin-source { padding: 1rem 0.5rem; }

.coin-amount {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  animation: coinPulse 3s ease-in-out infinite;
}

@keyframes coinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.gold-glow { color: var(--gold); text-shadow: 0 0 20px rgba(240,192,64,0.5); }
.purple-glow { color: var(--purple-light); text-shadow: 0 0 20px rgba(139,92,246,0.5); }
.pink-glow { color: var(--pink); text-shadow: 0 0 20px rgba(236,72,153,0.5); }
.cyan-glow { color: var(--cyan); text-shadow: 0 0 20px rgba(6,182,212,0.5); }
.green-glow { color: var(--green); text-shadow: 0 0 20px rgba(16,185,129,0.5); }
.orange-glow { color: var(--orange); text-shadow: 0 0 20px rgba(249,115,22,0.5); }

.coin-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; }
.coin-sub { font-size: 0.75rem; color: var(--text-muted); }
.game-card[data-game="okey_classic"] { --card-accent: #22c55e; }
