/* ToonArcade - Playful & Colorful Cartoon Design System */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700;800;900&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --bg-main: #f4f7fe;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  
  --pop-pink: #ff3b70;
  --pop-purple: #8b5cf6;
  --pop-blue: #0ea5e9;
  --pop-cyan: #06b6d4;
  --pop-green: #10b981;
  --pop-yellow: #f59e0b;
  --pop-orange: #f97316;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --border-card: #e2e8f0;
  --border-thick: #cbd5e1;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 10px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-pop: 0 8px 0px rgba(0, 0, 0, 0.08);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 59, 112, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* =========================================================================
   COOL & CUTE TEXTURED BACKGROUND STYLES & PRESETS
   ========================================================================= */

/* 1. Candy Pastel Glow (Default) */
body[data-bg="candy_glow"], body:not([data-bg]) {
  background-color: #f4f7fe;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 59, 112, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.12) 0%, transparent 40%);
}

/* 2. Cute Candy Polka Dots */
body[data-bg="cute_polka"] {
  background-color: #fff9f6;
  background-image: 
    radial-gradient(circle, rgba(255, 79, 135, 0.22) 5px, transparent 6px),
    radial-gradient(circle, rgba(14, 165, 233, 0.22) 5px, transparent 6px),
    radial-gradient(circle, rgba(245, 158, 11, 0.22) 5px, transparent 6px),
    radial-gradient(circle, rgba(16, 185, 129, 0.22) 5px, transparent 6px),
    radial-gradient(circle at 50% 10%, rgba(255, 182, 193, 0.15) 0%, transparent 50%);
  background-size: 56px 56px, 56px 56px, 56px 56px, 56px 56px, 100% 100%;
  background-position: 0 0, 28px 28px, 28px 0, 0 28px, 0 0;
}

/* 3. Kawaii Pastel Grid */
body[data-bg="kawaii_grid"] {
  background-color: #faf5ff;
  background-image: 
    linear-gradient(rgba(236, 72, 153, 0.10) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.10) 1.5px, transparent 1.5px),
    radial-gradient(circle at 15% 20%, rgba(244, 114, 182, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(192, 132, 252, 0.18) 0%, transparent 45%);
  background-size: 26px 26px, 26px 26px, 100% 100%, 100% 100%;
}

/* 4. Cartoon Confetti Sprinkles */
body[data-bg="arcade_confetti"] {
  background-color: #fdfbf7;
  background-image: 
    radial-gradient(circle, rgba(255, 59, 112, 0.20) 3.5px, transparent 4.5px),
    radial-gradient(circle, rgba(14, 165, 233, 0.20) 3.5px, transparent 4.5px),
    radial-gradient(circle, rgba(234, 179, 8, 0.22) 4px, transparent 5px),
    radial-gradient(circle, rgba(139, 92, 246, 0.18) 3px, transparent 4px),
    radial-gradient(circle at 20% 15%, rgba(254, 215, 170, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(199, 210, 254, 0.25) 0%, transparent 40%);
  background-size: 44px 44px, 56px 56px, 68px 68px, 52px 52px, 100% 100%, 100% 100%;
  background-position: 0 0, 22px 28px, 14px 42px, 36px 12px, 0 0, 0 0;
}

/* 5. Sunny Sunshine */
body[data-bg="sunny_doodle"] {
  background-color: #fffbeb;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(251, 146, 60, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(250, 204, 21, 0.22) 0%, transparent 50%),
    linear-gradient(45deg, rgba(245, 158, 11, 0.05) 25%, transparent 25%, transparent 75%, rgba(245, 158, 11, 0.05) 75%),
    linear-gradient(-45deg, rgba(245, 158, 11, 0.05) 25%, transparent 25%, transparent 75%, rgba(245, 158, 11, 0.05) 75%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 6. Minty Bubbles */
body[data-bg="minty_bubbles"] {
  background-color: #f0fdf4;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(132, 204, 22, 0.18) 0%, transparent 50%),
    radial-gradient(circle, rgba(16, 185, 129, 0.14) 8px, transparent 9px),
    radial-gradient(circle, rgba(6, 182, 212, 0.14) 12px, transparent 13px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 92px 92px;
  background-position: 0 0, 0 0, 0 0, 0 0, 46px 46px;
}

/* 7. Ocean Wave Ripples */
body[data-bg="ocean_sparkle"] {
  background-color: #f0f9ff;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(6, 182, 212, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
    radial-gradient(circle, rgba(14, 165, 233, 0.15) 4px, transparent 5px),
    radial-gradient(circle, rgba(56, 189, 248, 0.15) 6px, transparent 7px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 72px 72px;
  background-position: 0 0, 0 0, 0 0, 0 0, 36px 36px;
}

/* 8. Sweet Berry Lavender */
body[data-bg="sweet_lavender"] {
  background-color: #faf5ff;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(192, 132, 252, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(244, 114, 182, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(147, 197, 253, 0.22) 0%, transparent 50%),
    radial-gradient(circle, rgba(168, 85, 247, 0.12) 4px, transparent 5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px;
}

/* 9. Peach Blossom Garden */
body[data-bg="peach_blossom"] {
  background-color: #fff5f5;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 107, 107, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 159, 67, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(255, 182, 193, 0.22) 0%, transparent 50%),
    radial-gradient(circle, rgba(255, 107, 107, 0.12) 4.5px, transparent 5.5px),
    radial-gradient(circle, rgba(251, 113, 133, 0.12) 6.5px, transparent 7.5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 54px 54px, 80px 80px;
  background-position: 0 0, 0 0, 0 0, 0 0, 40px 40px;
}

/* 10. Holographic Aurora */
body[data-bg="cyber_holo"] {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(168, 85, 247, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(244, 63, 94, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(241, 245, 249, 0.6) 100%);
}

/* 11. 3D Isometric Cubes */
body[data-bg="retro_cubes"] {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1),
    linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1);
  background-size: 40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

/* 12. Starlight Nebula */
body[data-bg="starry_nebula"] {
  background-color: #f5f3ff;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.20) 0%, transparent 50%),
    radial-gradient(circle, rgba(168, 85, 247, 0.25) 2.5px, transparent 3.5px),
    radial-gradient(circle, rgba(56, 189, 248, 0.25) 3.5px, transparent 4.5px),
    radial-gradient(circle, rgba(251, 191, 36, 0.3) 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 64px 64px, 32px 32px;
  background-position: 0 0, 0 0, 0 0, 0 0, 24px 32px, 12px 16px;
}

/* 13. Golden Sunset Horizon */
body[data-bg="golden_sunset"] {
  background-color: #fff7ed;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(244, 63, 94, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(234, 179, 8, 0.25) 0%, transparent 50%),
    linear-gradient(45deg, rgba(249, 115, 22, 0.04) 25%, transparent 25%, transparent 75%, rgba(249, 115, 22, 0.04) 75%),
    linear-gradient(-45deg, rgba(244, 63, 94, 0.04) 25%, transparent 25%, transparent 75%, rgba(244, 63, 94, 0.04) 75%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* 14. Sakura Cherry Blossom */
body[data-bg="sakura_breeze"] {
  background-color: #fff1f2;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(251, 113, 133, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(253, 164, 175, 0.25) 0%, transparent 50%),
    radial-gradient(circle, rgba(244, 63, 94, 0.16) 5px, transparent 6px),
    radial-gradient(circle, rgba(251, 113, 133, 0.18) 7px, transparent 8px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 75px 75px;
  background-position: 0 0, 0 0, 0 0, 0 0, 25px 37px;
}

/* 15. Emerald Crystal Glass */
body[data-bg="emerald_mint"] {
  background-color: #ecfdf5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(5, 150, 105, 0.20) 0%, transparent 50%),
    linear-gradient(60deg, rgba(16, 185, 129, 0.05) 25%, transparent 25%, transparent 75%, rgba(16, 185, 129, 0.05) 75%),
    linear-gradient(-60deg, rgba(6, 182, 212, 0.05) 25%, transparent 25%, transparent 75%, rgba(6, 182, 212, 0.05) 75%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 16. Retro 80s Synthwave Grid */
body[data-bg="synth_wave"] {
  background-color: #faf5ff;
  background-image: 
    linear-gradient(rgba(217, 70, 239, 0.12) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.12) 1.5px, transparent 1.5px),
    radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(6, 182, 212, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(168, 85, 247, 0.20) 0%, transparent 45%);
  background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%, 100% 100%;
}

/* 17. Cozy Caramel & Vanilla */
body[data-bg="caramel_latte"] {
  background-color: #faf8f5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(217, 119, 6, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(180, 83, 9, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.18) 0%, transparent 50%),
    radial-gradient(circle, rgba(217, 119, 6, 0.12) 4px, transparent 5px),
    radial-gradient(circle, rgba(180, 83, 9, 0.10) 6px, transparent 7px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 60px 60px;
  background-position: 0 0, 0 0, 0 0, 0 0, 20px 30px;
}

/* =========================================================================
   SIMPLE & MINIMALIST CLEAN BACKGROUND PRESETS
   ========================================================================= */

/* 18. Pure Minimalist White */
body[data-bg="clean_white"] {
  background-color: #ffffff;
  background-image: none;
}

/* 19. Soft Cloud Grey (Clean UI) */
body[data-bg="soft_cloud"] {
  background-color: #f8fafc;
  background-image: none;
}

/* 20. Minimal Subtle Dot Grid */
body[data-bg="minimal_dots"] {
  background-color: #ffffff;
  background-image: radial-gradient(circle, #e2e8f0 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* 21. Warm Clean Linen & Paper */
body[data-bg="clean_paper"] {
  background-color: #faf9f6;
  background-image: none;
}

/* 22. Soft Sky Whisper */
body[data-bg="sky_whisper"] {
  background-color: #f0f7ff;
  background-image: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
}

/* 23. Soft Mint Cream */
body[data-bg="mint_cream"] {
  background-color: #f2fbf7;
  background-image: linear-gradient(180deg, #f2fbf7 0%, #f8fafc 100%);
}

/* 24. Warm Ivory Sand */
body[data-bg="gentle_sand"] {
  background-color: #fcfaf7;
  background-image: none;
}

/* 25. Custom Wallpaper Image */
body[data-bg="custom_image"] {
  background-color: #f8fafc;
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), var(--custom-bg-url, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  color: var(--text-main);
}

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

/* =========================================================================
   CRAZYGAMES PORTAL LAYOUT & LEFT SIDEBAR NAVIGATION
   ========================================================================= */
.portal-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Left Sticky Sidebar - Always Closed/Mini by Default (CrazyGames Style) */
.portal-sidebar {
  width: 72px;
  background: #0d0b21;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  transition: width 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.22s ease;
  border-right: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.portal-sidebar.expanded {
  width: 240px;
}

.sidebar-header {
  height: 68px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  justify-content: center;
}

.portal-sidebar.expanded .sidebar-header {
  justify-content: flex-start;
}

.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: #8b2cf5;
  border-color: #8b2cf5;
  transform: scale(1.06);
  color: #ffffff;
}

.sidebar-logo {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.portal-sidebar.expanded .sidebar-logo {
  display: flex;
}

.sidebar-logo img {
  height: 34px;
  width: auto;
}

.sidebar-scroll {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-title {
  display: none;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 8px 12px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-sidebar.expanded .sidebar-section-title {
  display: block;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 0;
  border-radius: 10px;
  cursor: pointer;
  color: #94a3b8;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.12s ease;
  white-space: nowrap;
  position: relative;
}

.portal-sidebar.expanded .sidebar-item {
  justify-content: flex-start;
  padding: 6px 12px;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-item:hover .sidebar-icon {
  color: #ffffff;
}

/* Blue Selection Background */
.sidebar-item.active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  border: 2px solid #1e1b4b;
  color: #ffffff;
  box-shadow: 0 3px 0 #1e1b4b;
}

.sidebar-item.active .sidebar-icon {
  color: #ffffff;
}

.sidebar-item .sidebar-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.12s ease;
}

.sidebar-item .sidebar-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
  filter: none !important;
}

.sidebar-item .sidebar-label {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-sidebar.expanded .sidebar-label {
  display: block;
}


/* Tooltip for mini sidebar item */
.portal-sidebar:not(.expanded) .sidebar-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e1b4b;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1.5px solid #8b2cf5;
  z-index: 200;
}

.portal-sidebar:not(.expanded) .sidebar-item[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  left: calc(100% + 14px);
}

/* Main Content Wrapper - Default 72px left margin */
.portal-main-wrap {
  flex: 1;
  margin-left: 72px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-layout.sidebar-expanded .portal-main-wrap {
  margin-left: 240px;
}


/* Sidebar Mobile Off-Canvas Drawer & Desktop Rail */
.sidebar-mobile-close-btn {
  display: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .portal-sidebar {
    width: 58px !important;
    transform: translateX(0) !important;
    transition: width 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.22s ease;
  }

  .portal-sidebar.expanded,
  .portal-sidebar.mobile-open {
    width: 250px !important;
    z-index: 200;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .portal-sidebar.expanded .sidebar-label,
  .portal-sidebar.mobile-open .sidebar-label {
    display: block;
  }

  .portal-sidebar.expanded .sidebar-section-title,
  .portal-sidebar.mobile-open .sidebar-section-title {
    display: block;
  }

  .portal-sidebar.expanded .sidebar-logo,
  .portal-sidebar.mobile-open .sidebar-logo {
    display: flex;
  }

  .portal-sidebar.expanded .sidebar-header,
  .portal-sidebar.mobile-open .sidebar-header {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .portal-sidebar.expanded .sidebar-item,
  .portal-sidebar.mobile-open .sidebar-item {
    justify-content: flex-start;
    padding: 6px 12px;
  }

  .portal-main-wrap {
    margin-left: 58px !important;
  }
}

@media (max-width: 768px) {
  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    transform: translateX(-100%) !important;
    z-index: 1000 !important;
    background: #0f172a !important;
    box-shadow: none !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .portal-sidebar.expanded,
  .portal-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.65) !important;
  }

  .portal-sidebar.expanded .sidebar-label,
  .portal-sidebar.mobile-open .sidebar-label,
  .portal-sidebar .sidebar-label {
    display: block !important;
  }

  .portal-sidebar.expanded .sidebar-section-title,
  .portal-sidebar.mobile-open .sidebar-section-title,
  .portal-sidebar .sidebar-section-title {
    display: block !important;
  }

  .portal-sidebar.expanded .sidebar-logo,
  .portal-sidebar.mobile-open .sidebar-logo,
  .portal-sidebar .sidebar-logo {
    display: flex !important;
  }

  .portal-sidebar .sidebar-header {
    justify-content: space-between !important;
    padding: 14px 16px !important;
  }

  .portal-sidebar .sidebar-item {
    justify-content: flex-start !important;
    padding: 8px 14px !important;
  }

  .sidebar-mobile-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
  }

  .sidebar-mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .portal-main-wrap {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

.sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 11, 33, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 990;
  display: none;
  pointer-events: none;
}

.sidebar-backdrop.active {
  display: block;
  pointer-events: auto;
}


/* Chunky Cartoon Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 3px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.nav-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 14px;
  text-decoration: none;
}

.nav-back-btn .back-text {
  display: inline;
}

.btn-surprise-me .surprise-text {
  display: inline;
}

.mobile-surprise-btn {
  display: none;
}

.mobile-search {
  display: none;
}

.nav-quick-chips {
  display: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover {
  transform: scale(1.04) rotate(-1deg);
}

.nav-brand img {
  height: 38px;
  width: auto;
}


/* Playful Search Bar */
.search-container {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.search-input {
  width: 100%;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 48px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.search-input:focus {
  border-color: var(--pop-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  transform: scale(1.01);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

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

/* 3D Chunky Cartoon Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #ff3b70, #ff8038);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 0 #cc2150, 0 12px 20px rgba(255, 59, 112, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 0 #cbd5e1;
}

.btn-secondary:hover {
  border-color: var(--pop-blue);
  color: var(--pop-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #93c5fd;
}

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

/* Ad Header Banner */
/* Google AdSense & Monetization Containers */
.ad-slot-header {
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 970px;
}

.adsense-unit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px auto;
  overflow: hidden;
  text-align: center;
}

.adsense-player-top {
  margin: 0 auto 16px auto;
  max-width: 100%;
  min-height: 90px;
}

.adsense-player-bottom {
  margin: 16px auto 20px auto;
  max-width: 100%;
  min-height: 90px;
}

.adsense-sidebar-unit {
  margin: 0 auto 18px auto;
  max-width: 320px;
  min-height: 250px;
}

.adsense-placeholder-box {
  width: 100%;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px dashed #22c55e;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #166534;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  box-sizing: border-box;
}

/* Vibrant Hero Showcase */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 3px solid #e0e7ff;
  border-radius: var(--radius-lg);
  padding: 38px 44px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08), 0 4px 0 #cbd5e1;
  overflow: hidden;
}

.hero-section::after {
  content: '🎮';
  position: absolute;
  bottom: -20px;
  right: 48%;
  font-size: 140px;
  opacity: 0.06;
  pointer-events: none;
  transform: rotate(15deg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: #fef08a;
  border: 2px solid #facc15;
  color: #854d0e;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 3px 0 #eab308;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #1e1b4b;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.04);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 2px dashed #e2e8f0;
}

.hero-stat-item b {
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--pop-pink);
  display: block;
}

.hero-stat-item span {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}

.hero-media:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(255, 170, 0, 0.28), 0 10px 0 #ffaa00;
  border-color: #ffaa00;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.hero-media:hover img {
  transform: scale(1.06);
}

.hero-play-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b70, #ff9900);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 0 #cc2150, 0 12px 24px rgba(255, 59, 112, 0.5);
  border: 4px solid #ffffff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hero-media:hover .play-circle {
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 8px 0 #cc2150, 0 16px 30px rgba(255, 59, 112, 0.65);
}

/* Category Scroller with Bubbly Candy Chips */
.category-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 10px 18px 10px;
  margin-top: -6px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  align-items: center;
}

/* =========================================================================
   CARTOON PILL SELECTION BUTTON (Purple 3D Bevel with Chunky Stroke)
   ========================================================================= */
.btn-cartoon-select,
.profile-tab-btn,
.cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: #ffffff;
  border: 3.5px solid #200747;
  color: #200747;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 0 #200747;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.btn-cartoon-select:hover,
.profile-tab-btn:hover,
.cat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #200747;
  color: #7e22ce;
}

.btn-cartoon-select:active,
.profile-tab-btn:active,
.cat-pill:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #200747;
}

.btn-cartoon-select.active,
.profile-tab-btn.active,
.cat-pill.active {
  background: linear-gradient(180deg, #9b45ff 0%, #872cf5 50%, #701ae6 100%);
  border: 3.5px solid #200747;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 0 #200747;
}

.btn-cartoon-select.active:hover,
.profile-tab-btn.active:hover,
.cat-pill.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #200747;
  color: #ffffff;
}

.btn-cartoon-select.active:active,
.profile-tab-btn.active:active,
.cat-pill.active:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #200747;
}



/* 2D Flat Icon Styler */
.flat-2d-icon,
.selection-star,
.cat-pill span,
.shelf-icon,
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.flat-2d-icon svg {
  display: block;
  flex-shrink: 0;
  filter: none !important;
}



/* Filter Controls Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e1b4b;
}

.section-title .glow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pop-pink);
  box-shadow: 0 0 10px rgba(255, 59, 112, 0.6);
}

.custom-select {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #cbd5e1;
}

.custom-select:focus {
  border-color: var(--pop-blue);
}

/* Cartoon Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-gap: 24px;
  margin-bottom: 24px;
}

/* Chunky 3D Cartoon Pagination Controls (100 Games Per Page) */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 48px 0;
  padding: 14px 20px;
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 0 #cbd5e1, 0 8px 16px rgba(0, 0, 0, 0.04);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #334155;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 3px 0 #cbd5e1;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  text-decoration: none;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: #ffffff;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #93c5fd;
}

.page-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cbd5e1;
}

.page-btn.active {
  background: linear-gradient(135deg, #ff3b70, #ff8038);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 0 #cc2150, 0 6px 14px rgba(255, 59, 112, 0.35);
  transform: scale(1.06);
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 0 #e2e8f0;
  background: #f1f5f9;
}

.page-btn-nav {
  padding: 0 16px;
  font-weight: 800;
  gap: 6px;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #94a3b8;
  user-select: none;
}

/* Bubbly Game Card */
/* Bubbly Game Card - Dynamic 3D Cartoon Lift */
.game-card {
  position: relative;
  background: #ffffff;
  border: 3.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 0 #cbd5e1, 0 10px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: 0 280px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
  will-change: transform, box-shadow;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 14px 0 #0284c7, 0 22px 32px rgba(2, 132, 199, 0.22);
}

.game-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0284c7, 0 8px 14px rgba(2, 132, 199, 0.2);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0f172a;
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
}

/* Light Sheen Sweep Animation on Hover */
.card-thumb-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
  z-index: 3;
}

.game-card:hover .card-thumb-wrap::after {
  left: 170%;
  transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1), filter 0.25s ease;
}

.game-card:hover .card-thumb {
  transform: scale(1.08);
  filter: brightness(1.04) contrast(1.02);
}

/* Bouncy Cartoon Play Button Popup */
.card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 52px;
  height: 52px;
  background: #ff3b70;
  border: 3.5px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(255, 59, 112, 0.45), 0 3px 0 #be123c;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  z-index: 4;
}

.game-card:hover .card-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Floating Overlay Badge on Game Cards */
.badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.game-card:hover .badge-overlay {
  transform: translateY(-2px) scale(1.05);
}

/* Inline Badges and Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.badge-hot,
.badge-trending {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
}

.badge-new,
.badge-featured {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 8px rgba(139, 92, 246, 0.4);
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.fav-btn:hover, .fav-btn.active {
  background: #ff3b70;
  color: #ffffff;
  border-color: #ff3b70;
  transform: scale(1.12) rotate(5deg);
}

.card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: #ffffff;
  transition: background-color 0.2s ease;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.game-card:hover .card-title {
  color: #0284c7;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.card-rating {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-plays {
  display: flex;
  align-items: center;
  gap: 4px;
}



/* User & XP Widget */
.user-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  box-shadow: 0 3px 0 #cbd5e1;
  transition: all 0.2s;
}

.user-widget:hover {
  border-color: var(--pop-blue);
  transform: translateY(-1px);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.user-level-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--pop-pink);
}

/* Playful Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 0 #cbd5e1;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

/* CMS License Suspension Global Lockout */
body.cms-suspended-locked .admin-view,
body.cms-suspended-locked .admin-nav,
body.cms-suspended-locked .admin-sidebar,
body.cms-suspended-locked .admin-header,
body.cms-suspended-locked .admin-layout {
  pointer-events: none !important;
  user-select: none !important;
  filter: blur(5px) grayscale(60%) !important;
  opacity: 0.55 !important;
}

#cms-suspended-lockout-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 9999999 !important;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  background: #ff3b70;
  color: #fff;
  border-color: #ff3b70;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 3px solid var(--pop-blue);
  box-shadow: 0 8px 0 rgba(14, 165, 233, 0.25), 0 12px 24px rgba(0, 0, 0, 0.08);
  color: #1e293b;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounceIn 0.3s forwards;
}

@keyframes bounceIn {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

/* Cheerful Footer */
footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 3px solid #e2e8f0;
  padding: 40px 24px 28px;
}

.footer-content {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

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

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .hero-title { font-size: 32px; }
}

/* ==========================================================================
   APP-GRADE MOBILE RESPONSIVE SUITE (Phones & Small Tablets <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 12px 12px 28px 12px !important;
  }

  .navbar {
    padding: 8px 10px 6px 10px !important;
    gap: 6px !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .nav-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .nav-left-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .nav-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 0 #cbd5e1 !important;
  }

  .nav-back-btn .back-text {
    display: none !important;
  }

  .sidebar-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e1b4b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 0 #cbd5e1 !important;
  }

  .nav-brand {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .nav-brand img {
    height: 24px !important;
    max-width: 105px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .desktop-search {
    display: none !important;
  }

  .nav-desktop-actions {
    display: none !important;
  }

  .nav-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .btn-surprise-me,
  .mobile-surprise-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 0 #7c3aed !important;
  }

  .btn-surprise-me .surprise-text {
    display: none !important;
  }

  .btn-surprise-me .dice-icon {
    margin: 0 !important;
    font-size: 17px !important;
  }

  .user-widget {
    padding: 3px 6px 3px 4px !important;
    gap: 4px !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 0 #cbd5e1 !important;
    flex-shrink: 0 !important;
  }

  .user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 14px !important;
  }

  .user-info-text .user-name-text {
    display: none !important;
  }

  .user-level-badge {
    font-size: 10px !important;
    padding: 1px 5px !important;
  }

  .btn-desktop-tool {
    display: none !important;
  }

  /* Full-Width Mobile Search */
  .mobile-search {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .mobile-search .search-input {
    width: 100% !important;
    height: 38px !important;
    border-radius: 9999px !important;
    padding: 6px 14px 6px 38px !important;
    font-size: 13px !important;
    background: #f1f5f9 !important;
    border: 2px solid #e2e8f0 !important;
    font-weight: 700 !important;
  }

  .mobile-search .search-icon {
    left: 12px !important;
    font-size: 14px !important;
  }

  /* Horizontal Scrollable Quick Chips Bar */
  .nav-quick-chips {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 4px 0 !important;
    margin: 0 !important;
  }

  .nav-quick-chips::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .nav-chip {
    flex-shrink: 0 !important;
    padding: 5px 12px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #334155 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 0 #cbd5e1 !important;
  }

  .nav-chip.active,
  .nav-chip:active {
    background: linear-gradient(135deg, #ff3b70, #ff8038) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(255, 59, 112, 0.35) !important;
    transform: scale(1.02) !important;
  }

  /* 2-Column Responsive Grid on Mobile */
  .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .card-info {
    padding: 8px 10px 10px 10px !important;
  }

  .card-title {
    font-size: 13px !important;
  }

  .card-meta {
    font-size: 11px !important;
  }

  /* Player Page on Mobile */
  .player-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .player-action-bar {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .action-btn-group {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* Mobile Pagination */
  .pagination-container {
    gap: 6px !important;
    padding: 10px 12px !important;
    margin: 20px 0 32px 0 !important;
    border-radius: var(--radius-md) !important;
  }

  .page-btn {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
  }

  .page-btn-nav {
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================================
   POKI & CRAZYGAMES ENGAGEMENT SUITE (Surprise Me, Recents, Shelves)
   ========================================================================== */

/* 🎲 Surprise Me Button */
.btn-surprise-me {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff !important;
  border: 2px solid #ffffff;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7c3aed, 0 6px 16px rgba(236, 72, 153, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-surprise-me:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 0 #7c3aed, 0 10px 24px rgba(236, 72, 153, 0.5);
}

.btn-surprise-me:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7c3aed;
}

.btn-surprise-me .dice-icon {
  font-size: 18px;
  display: inline-block;
  animation: diceWobble 2.5s infinite ease-in-out;
}

@keyframes diceWobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-15deg) scale(1.1); }
  30% { transform: rotate(15deg) scale(1.1); }
  45% { transform: rotate(-5deg); }
  60% { transform: rotate(0deg); }
}

/* 🎰 Roulette Modal */
.roulette-container {
  text-align: center;
}

.roulette-box {
  background: #0f172a;
  border: 4px solid #38bdf8;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(56, 189, 248, 0.25), 0 10px 0 #0284c7;
  margin-bottom: 20px;
}

.roulette-pointer {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 20px solid #f43f5e;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.roulette-window {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.roulette-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s ease-out;
}

.roulette-card-preview img {
  width: 130px;
  height: 95px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #facc15;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
}

.roulette-card-preview h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.roulette-spinning-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: rouletteSpin 2.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes rouletteSpin {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1800px); }
}

/* 🕒 Recently Played Quick Tray */
.recently-played-section {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 6px 0 #cbd5e1;
}

.recent-tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.recent-tray-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-tray-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.recent-tray-clear:hover {
  background: #fee2e2;
  color: #ef4444;
}

.recent-games-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.recent-game-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 12px 6px 6px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #cbd5e1;
  cursor: pointer;
}

.recent-game-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.recent-game-chip img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #cbd5e1;
}

.recent-game-chip-info {
  display: flex;
  flex-direction: column;
}

.recent-game-chip-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #1e1b4b;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-game-chip-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--pop-blue);
  text-transform: uppercase;
}

/* 🎯 Curated Collection Shelves */
.curated-shelf {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 6px 0 #cbd5e1;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shelf-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.shelf-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #1e1b4b;
  line-height: 1.2;
}

.shelf-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.shelf-view-all {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--pop-blue);
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.shelf-view-all:hover {
  background: var(--pop-blue);
  color: #ffffff;
  border-color: var(--pop-blue);
  transform: translateX(3px);
}

.shelf-games-grid,
.shelf-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

.shelf-game-card {
  position: relative;
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 0 #cbd5e1;
  cursor: pointer;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: 0 240px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  will-change: transform, box-shadow;
}

.shelf-game-card:hover {
  transform: translateY(-6px);
  border-color: #f97316;
  box-shadow: 0 8px 0 #ea580c, 0 16px 24px rgba(249, 115, 22, 0.22);
}

.shelf-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.shelf-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

.shelf-game-card:hover .shelf-thumb {
  transform: scale(1.08);
}

.shelf-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 5;
  transition: transform 0.25s ease;
}

.shelf-game-card:hover .shelf-rank-badge {
  transform: scale(1.08);
}

.shelf-card-info {
  padding: 10px 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shelf-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.shelf-game-card:hover .shelf-card-title {
  color: #ea580c;
}

.shelf-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.shelf-card-rating {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.shelf-card-plays {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Sidebar Recommended Game Items */
.sidebar-game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 0 #cbd5e1;
}

.sidebar-game-item:hover {
  transform: translateX(4px);
  border-color: #38bdf8;
  box-shadow: 0 4px 0 #7dd3fc, 0 8px 16px rgba(14, 165, 233, 0.15);
}

.sidebar-game-item:hover .sidebar-title {
  color: #2563eb;
}

.sidebar-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  transition: transform 0.2s ease;
}

.sidebar-game-item:hover .sidebar-thumb {
  transform: scale(1.08);
}

.sidebar-info {
  flex: 1;
  min-width: 0;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.sidebar-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.shelf-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.shelf-card-rating {
  color: #d97706;
  font-weight: 800;
}

@media (max-width: 768px) {
  .shelf-games-grid,
  .shelf-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* =========================================================================
   ⚡ CYBER NEON / DARK ARCADE PRO THEME (data-theme="cyber_neon")
   ========================================================================= */

:root[data-theme="cyber_neon"],
[data-theme="cyber_neon"] {
  --bg-main: #090d16;
  --bg-surface: #111827;
  --bg-card: #111827;
  
  --pop-pink: #ff007f;
  --pop-purple: #8b5cf6;
  --pop-blue: #00f0ff;
  --pop-cyan: #00f0ff;
  --pop-green: #00ff88;
  --pop-yellow: #ffb800;
  --pop-orange: #ff5500;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-card: #1e293b;
  --border-thick: #334155;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 8px 0px #030712;
}

body[data-theme="cyber_neon"] {
  background-color: #090d16;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255, 0, 127, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
  color: #f8fafc;
}

[data-theme="cyber_neon"] h1,
[data-theme="cyber_neon"] h2,
[data-theme="cyber_neon"] h3,
[data-theme="cyber_neon"] h4,
[data-theme="cyber_neon"] .font-display,
[data-theme="cyber_neon"] .shelf-title,
[data-theme="cyber_neon"] .section-title {
  color: #f8fafc;
}

/* Navbar */
[data-theme="cyber_neon"] .navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

/* Sidebar */
[data-theme="cyber_neon"] .portal-sidebar {
  background: rgba(15, 23, 42, 0.95);
  border-right: 2px solid rgba(0, 240, 255, 0.15);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

[data-theme="cyber_neon"] .sidebar-item {
  color: #94a3b8;
}

[data-theme="cyber_neon"] .sidebar-item:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border-left-color: #00f0ff;
}

[data-theme="cyber_neon"] .sidebar-item.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), transparent);
  color: #00f0ff;
  border-left: 4px solid #00f0ff;
  box-shadow: inset 4px 0 10px rgba(0, 240, 255, 0.2);
}

/* Search Bar */
[data-theme="cyber_neon"] .search-input-wrap,
[data-theme="cyber_neon"] .header-search-wrap,
[data-theme="cyber_neon"] .search-input,
[data-theme="cyber_neon"] .mobile-search-input {
  background: #111827;
  border-color: #1e293b;
  color: #f8fafc;
}

[data-theme="cyber_neon"] .search-input:focus,
[data-theme="cyber_neon"] .mobile-search-input:focus {
  background: #0f172a;
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

/* Category Filter Pills */
[data-theme="cyber_neon"] .cat-pill,
[data-theme="cyber_neon"] .btn-cartoon-select,
[data-theme="cyber_neon"] .profile-tab-btn {
  background: #111827;
  border-color: #1e293b;
  color: #cbd5e1;
  box-shadow: 0 4px 0 #050811;
}

[data-theme="cyber_neon"] .cat-pill:hover,
[data-theme="cyber_neon"] .btn-cartoon-select:hover,
[data-theme="cyber_neon"] .profile-tab-btn:hover {
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 4px 0 #008899, 0 0 16px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

[data-theme="cyber_neon"] .cat-pill.active,
[data-theme="cyber_neon"] .profile-tab-btn.active {
  background: linear-gradient(135deg, #00f0ff, #8b5cf6);
  color: #050811;
  border-color: #00f0ff;
  box-shadow: 0 4px 0 #008899, 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Game Cards */
[data-theme="cyber_neon"] .game-card {
  background: #111827;
  border-color: #1e293b;
  box-shadow: 0 6px 0 #050811, 0 10px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="cyber_neon"] .game-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 8px 0 #008899, 0 16px 32px rgba(0, 240, 255, 0.22);
}

[data-theme="cyber_neon"] .game-card-title,
[data-theme="cyber_neon"] .shelf-card-title {
  color: #f8fafc;
}

[data-theme="cyber_neon"] .game-card:hover .game-card-title,
[data-theme="cyber_neon"] .game-card:hover .shelf-card-title {
  color: #00f0ff;
}

[data-theme="cyber_neon"] .game-card-category {
  color: #38bdf8;
}

/* User Widget */
[data-theme="cyber_neon"] .user-widget {
  background: #111827;
  border-color: #1e293b;
  box-shadow: 0 3px 0 #050811;
}

[data-theme="cyber_neon"] .user-name-text {
  color: #f8fafc;
}

/* Surprise Me Button */
[data-theme="cyber_neon"] .btn-surprise-me {
  background: linear-gradient(135deg, #ff007f, #8b5cf6);
  box-shadow: 0 4px 0 #9d174d, 0 0 20px rgba(255, 0, 127, 0.35);
}

/* Hero Carousel */
[data-theme="cyber_neon"] .hero-slider-wrap {
  border-color: #1e293b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 4px 0 #050811;
}

[data-theme="cyber_neon"] .hero-slide-info {
  background: linear-gradient(0deg, rgba(11, 15, 25, 0.98) 0%, rgba(11, 15, 25, 0.8) 60%, transparent 100%);
}

/* Footer */
[data-theme="cyber_neon"] .portal-footer,
[data-theme="cyber_neon"] .site-footer {
  background: #060911;
  border-top: 2px solid #1e293b;
  color: #94a3b8;
}

[data-theme="cyber_neon"] .footer-link:hover,
[data-theme="cyber_neon"] .footer-nav-link:hover {
  color: #00f0ff;
}

/* Pagination */
[data-theme="cyber_neon"] .page-btn {
  background: #111827;
  border-color: #1e293b;
  color: #cbd5e1;
  box-shadow: 0 3px 0 #050811;
}

[data-theme="cyber_neon"] .page-btn:hover {
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 3px 0 #008899, 0 0 12px rgba(0, 240, 255, 0.3);
}

[data-theme="cyber_neon"] .page-btn.active {
  background: #00f0ff;
  color: #090d16;
  border-color: #00f0ff;
  box-shadow: 0 3px 0 #008899, 0 0 18px rgba(0, 240, 255, 0.5);
}

/* Modals */
[data-theme="cyber_neon"] .user-modal-box,
[data-theme="cyber_neon"] .share-modal-box,
[data-theme="cyber_neon"] .report-modal-box,
[data-theme="cyber_neon"] .profile-card {
  background: #111827;
  border-color: #1e293b;
  color: #f8fafc;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
}

[data-theme="cyber_neon"] .user-modal-box input,
[data-theme="cyber_neon"] .user-modal-box textarea,
[data-theme="cyber_neon"] .user-modal-box select {
  background: #090d16;
  border-color: #1e293b;
  color: #f8fafc;
}

/* Leaderboard Rows & Blog Cards */
[data-theme="cyber_neon"] .leaderboard-card,
[data-theme="cyber_neon"] .blog-card,
[data-theme="cyber_neon"] .page-content-card,
[data-theme="cyber_neon"] .post-content-wrap {
  background: #111827;
  border-color: #1e293b;
  color: #f8fafc;
  box-shadow: 0 8px 0 #050811;
}

[data-theme="cyber_neon"] .leaderboard-row {
  background: #0f172a;
  border-color: #1e293b;
  color: #f8fafc;
}

[data-theme="cyber_neon"] .leaderboard-row:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}


