/* ========================================
   F3 GAMING - Main Stylesheet
   Dark Casino Theme
   ======================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1c1c1c;
  --bg-header: #0d0d0d;
  --bg-footer: #060606;
  --accent-red: #e53e3e;
  --accent-red-hover: #c53030;
  --accent-gold: #ffd700;
  --accent-gold-hover: #daa520;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --header-height: 64px;
  --nav-height: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(229, 62, 62, 0.4);
  --shadow-gold-glow: 0 0 20px rgba(255, 215, 0, 0.3);
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #9ca3af;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
}
[data-theme="light"] .header { background:#fff; border-bottom:1px solid #e2e8f0; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
[data-theme="light"] .game-card { background:#fff; border:1px solid #e2e8f0; }
[data-theme="light"] .game-card:hover { box-shadow:0 8px 24px rgba(0,0,0,0.12); }
[data-theme="light"] .mobile-sidebar { background:#fff; }
[data-theme="light"] .sidebar-nav a { color:#4a5568; }
[data-theme="light"] .sidebar-nav a:hover { color:#d97706; background:rgba(217,119,6,0.06); }
[data-theme="light"] .sidebar-title { color:#1a1a2e; }
[data-theme="light"] .btn-login { color:#1a1a2e; border-color:#d1d5db; }
[data-theme="light"] .search-btn, [data-theme="light"] .mobile-menu-btn { color:#4a5568; border-color:#d1d5db; background:rgba(0,0,0,0.03); }
[data-theme="light"] .modal-box { background:#fff; border:1px solid #e2e8f0; }
[data-theme="light"] input[type="text"], [data-theme="light"] input[type="password"], [data-theme="light"] input[type="tel"], [data-theme="light"] select { background:#f9fafb; border-color:#d1d5db; color:#1a1a2e; }
[data-theme="light"] .section-header h2 { color:#1a1a2e; }
[data-theme="light"] .promo-card { border:1px solid #e2e8f0; }
[data-theme="light"] .footer { background:#1a1a2e; }

/* Theme toggle */
.theme-toggle { background:none; border:none; color:var(--text-secondary); font-size:18px; cursor:pointer; width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; transition:all 0.3s ease; }
.theme-toggle:hover { color:var(--accent-gold); background:rgba(255,215,0,0.1); }
.theme-toggle .fa-sun { display:none; }
[data-theme="light"] .theme-toggle .fa-moon { display:none; }
[data-theme="light"] .theme-toggle .fa-sun { display:inline; color:#d97706; }

/* Splash cursor canvas */
#splashCanvas { position:fixed; top:0; left:0; width:100vw; height:100vh; pointer-events:none; z-index:9998; }


/* ---------- RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--nav-height) + 16px);
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input {
  font-family: inherit;
}

/* ---------- UTILITY CLASSES ---------- */
.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-signup {
  background: var(--accent-red);
  color: #fff;
}
.btn-signup:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-login:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-glow {
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(229, 62, 62, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5); }
}

.highlight { color: var(--accent-gold); }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-red), #b91c1c);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 15px rgba(229, 62, 62, 0.5);
}

.logo-icon-lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

/* Nav Categories */
.nav-categories {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  flex: 1;
  justify-content: center;
}
.nav-categories::-webkit-scrollbar { display: none; }

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav-tab.active {
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.1);
}
.nav-tab i { font-size: 12px; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}
.search-btn:hover {
  background: var(--accent-purple);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(15, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay.active { display: flex; }

.search-container {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 2px solid var(--accent-purple);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.search-input-wrapper i { color: var(--accent-purple); font-size: 20px; }
.search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 18px;
}
.search-input-wrapper input::placeholder { color: var(--text-muted); }
.search-close {
  color: var(--text-secondary);
  font-size: 20px;
  padding: 4px;
}
.search-close:hover { color: var(--text-primary); }

.search-results {
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-card); }
.search-result-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.search-result-info h4 { font-size: 14px; font-weight: 600; }
.search-result-info p { font-size: 12px; color: var(--text-muted); }

/* ---------- MOBILE SIDEBAR ---------- */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: #1a1a2e;
  z-index: 9999;
  transition: transform 0.3s ease;
  transform: translateX(0);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .mobile-sidebar { display: flex; }
}
.mobile-sidebar.active {
  left: 0;
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-close {
  color: var(--text-secondary);
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.sidebar-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.sidebar-auth { display: none; }

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-nav a:hover {
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.05);
}
.sidebar-nav a i { width: 20px; text-align: center; }

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding: 12px 0;
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.sidebar-footer a:hover { color: var(--accent-gold); }

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

/* ---------- MAIN CONTENT ---------- */
.main-content {
  margin-top: var(--header-height);
  min-height: 100vh;
}

/* ---------- JACKPOT BANNER ---------- */
.jackpot-banner {
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 30%, #1a0a3e 60%, #0f0633 100%);
  padding: 24px 20px;
  text-align: center;
  border-bottom: 2px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}
.jackpot-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  animation: rotate-bg 20s linear infinite;
}
@keyframes rotate-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.jackpot-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.jackpot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.jackpot-label i { font-size: 20px; }

.jackpot-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), #fde68a, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* ---------- PROMO SECTION ---------- */
.promo-section {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.promo-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.promo-slide {
  display: none;
}
.promo-slide.active { display: block; }

.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.promo-welcome {
  background: linear-gradient(135deg, #1e3a5f, #0f766e, #065f46);
}
.promo-daily {
  background: linear-gradient(135deg, #4c1d95, #7c3aed, #6d28d9);
}
.promo-refer {
  background: linear-gradient(135deg, #9a3412, #ea580c, #c2410c);
}

.promo-content { position: relative; z-index: 2; max-width: 60%; }
.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.promo-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.promo-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.5;
}

.promo-visual {
  position: relative;
  z-index: 1;
}
.coin-stack {
  display: flex;
  gap: 8px;
  font-size: 48px;
}
.coin {
  animation: float 3s ease-in-out infinite;
}
.coin:nth-child(2) { animation-delay: 0.5s; }
.coin:nth-child(3) { animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--accent-red);
  width: 28px;
  border-radius: 5px;
}
.logo-text {
  color: var(--accent-red);
}

/* ---------- GAME SECTIONS ---------- */
.game-section {
  padding: 24px 20px 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 i {
  color: var(--accent-gold);
  font-size: 18px;
}
.game-count {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 16px;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 215, 0, 0.1);
}
.view-all:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* Popular Games Grid (circle icons) */
.popular-games-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.popular-games-grid::-webkit-scrollbar { display: none; }

.popular-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 80px;
  transition: var(--transition);
}
.popular-game-item:hover { transform: translateY(-4px); }

.popular-game-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}
.popular-game-item:hover .popular-game-icon {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-lg);
}

.popular-game-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}
.popular-game-item:hover span { color: var(--accent-gold); }

/* Game Card Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.game-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
}
.game-thumb-inner i { font-size: 36px; }
.game-thumb-inner span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Game Badges */
.game-badge {
  position: absolute;
  top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-hot {
  left: 8px;
  background: var(--accent-red);
}
.badge-new {
  left: 8px;
  background: var(--accent-blue);
}
.badge-jackpot {
  right: 8px;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
}
.badge-live {
  left: 8px;
  background: var(--accent-red);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.game-info {
  padding: 12px;
}
.game-info h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Game card hover overlay */
.game-card:hover .game-thumb::after {
  content: '▶  PLAY';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
  padding: 48px 20px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.how-it-works h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent-red);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 8px auto 16px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-gold);
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent-gold); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--accent-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(229, 62, 62, 0.4);
}

.footer-compliance {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  text-align: center;
  justify-content: center;
}
.age-circle {
  width: 52px;
  height: 52px;
  border: 3px solid var(--accent-red);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-red);
  flex-shrink: 0;
}
.footer-compliance p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- AUTH MODALS ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: rgba(15, 14, 26, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--accent-red); color: #fff; }

.modal-logo { text-align: center; margin-bottom: 20px; }
.auth-form h2 { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus { border-color: var(--accent-purple); }
.form-group input::placeholder { color: var(--text-muted); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-red);
}
.checkbox-label a { color: var(--accent-gold); }

.forgot-link { font-size: 13px; color: var(--accent-purple); }
.forgot-link:hover { text-decoration: underline; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-switch a {
  color: var(--accent-gold);
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
/* Cursor glow effect */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, rgba(138, 43, 226, 0) 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Sidebar nav sections */
.sidebar-nav-section {
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  opacity: 0.7;
}
.sidebar-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 20px;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .nav-categories {
    justify-content: flex-start;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-categories, .game-categories { display: none; }
  .header-actions .btn-login,
  .header-actions .btn-signup { display: none; }
  .mobile-menu-btn {
    display: flex !important;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .search-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .jackpot-inner { flex-direction: column; gap: 12px; }
  .jackpot-amount { font-size: 28px; }

  .promo-card {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  .promo-content { max-width: 100%; }
  .promo-content h2 { font-size: 22px; }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .section-header h2 { font-size: 17px; }

  .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-compliance { flex-direction: column; text-align: center; }

  .modal-box { padding: 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .popular-game-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .steps-grid { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr; }

  .promo-content h2 { font-size: 18px; }
  .coin-stack { font-size: 36px; }
}


/* User Profile Nav */
.user-profile-nav{position:relative;display:flex;align-items:center;}
.profile-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;padding:6px 12px;border-radius:20px;transition:background 0.2s;}
.profile-toggle:hover{background:rgba(255,255,255,0.1);}
.profile-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f5c518,#e91e63);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:#fff;text-transform:uppercase;}
.profile-name{color:#fff;font-size:14px;font-weight:500;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.profile-toggle .fa-caret-down{color:#aaa;font-size:12px;}
.profile-dropdown{display:none;position:absolute;top:100%;right:0;margin-top:8px;background:#1a1a2e;border:1px solid rgba(255,255,255,0.1);border-radius:12px;min-width:200px;box-shadow:0 8px 30px rgba(0,0,0,0.4);z-index:10000;overflow:hidden;}
.profile-dropdown-header{padding:16px;text-align:center;border-bottom:1px solid rgba(255,255,255,0.1);}
.profile-avatar-lg{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#f5c518,#e91e63);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;color:#fff;margin:0 auto 8px;text-transform:uppercase;}
.profile-dropdown-header span{display:block;color:#fff;font-weight:600;font-size:15px;}
.profile-dropdown-header small{display:block;color:#888;font-size:11px;margin-top:2px;}
.profile-logout{display:flex;align-items:center;gap:8px;padding:12px 16px;color:#ff4757;text-decoration:none;font-size:14px;transition:background 0.2s;}
.profile-logout:hover{background:rgba(255,71,87,0.1);}

@media(max-width:768px){
  .profile-name{display:none;}
  .profile-toggle .fa-caret-down{display:none;}
  .profile-dropdown{right:-20px;}
}
