/* ============================================
   GameVault - Cyberpunk Neon Gaming Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222842;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00e5;
  --neon-purple: #b000ff;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
  --neon-orange: #ff6a00;
  --text-primary: #e8eaed;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.4);
  --gradient-cyan: linear-gradient(135deg, #00f0ff, #0080ff);
  --gradient-magenta: linear-gradient(135deg, #ff00e5, #b000ff);
  --gradient-fire: linear-gradient(135deg, #ff6a00, #ff00e5);
  --gradient-aurora: linear-gradient(135deg, #00f0ff, #b000ff, #ff00e5);
  --shadow-neon-cyan: 0 0 15px rgba(0, 240, 255, 0.3), 0 0 30px rgba(0, 240, 255, 0.1);
  --shadow-neon-magenta: 0 0 15px rgba(255, 0, 229, 0.3), 0 0 30px rgba(255, 0, 229, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-mid: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: 72px;
}

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Floating particles effect */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 240, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 0, 229, 0.2), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(176, 0, 255, 0.2), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(57, 255, 20, 0.15), transparent);
  background-size: 300px 300px;
  animation: floatParticles 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatParticles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-300px); }
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-cyan);
}

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

ul, ol { list-style: none; }

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
}

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-mid);
}

.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(0, 240, 255, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 0 50px rgba(176, 0, 255, 0.3); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 48px;
}

.nav-links a {
  position: relative;
  padding: 8px 18px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  border-radius: 2px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 0, 229, 0.06), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(176, 0, 255, 0.05), transparent 50%);
  z-index: 0;
}

/* Scanline effect */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); }
  100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #000;
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), 0 0 50px rgba(0, 240, 255, 0.2);
  color: #000;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-2px);
  color: var(--neon-cyan);
}

.btn-magenta {
  background: var(--gradient-magenta);
  color: #fff;
  box-shadow: var(--shadow-neon-magenta);
}

.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 229, 0.5);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.75rem;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header:has(.section-header-left) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.section-header-left {
  text-align: left;
  flex: 1;
}

.section-header-left .section-divider {
  margin: 16px 0;
}

.section-header-left p {
  margin: 0;
}

.section-header h2 {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 .accent {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-aurora);
  border-radius: 3px;
  margin: 16px auto;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.view-more-btn {
  display: inline-block;
  padding: 10px 32px;
  white-space: nowrap;
  align-self: center;
  margin-top: 16px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* --- Game Cards --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-mid);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(0, 240, 255, 0.15), 0 0 1px var(--neon-cyan);
}

.game-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

/* Gradient overlay on image */
.game-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

.game-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  z-index: 2;
}

.badge-new {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.badge-hot {
  background: var(--neon-orange);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}

.badge-top {
  background: var(--gradient-magenta);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 229, 0.4);
}

.game-card-rating {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-yellow);
  z-index: 2;
}

.game-card-info {
  padding: 16px 20px 20px;
}

.game-card-genre {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

.game-card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-plays {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--gradient-cyan);
  border-radius: 8px;
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.game-card:hover .game-card-play-btn {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

/* --- Category Cards --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-mid);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-aurora);
  opacity: 0;
  transition: var(--transition-mid);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.1);
}

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

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-mid);
}

.category-card:hover .category-icon {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.category-card h3 {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.category-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Index Section Background --- */
.section-dark {
  background: rgba(0,0,0,0.25);
}

/* ============================================
   Hot Games - Featured Horizontal Cards
   Large cover image on left + info on right,
   like game store featured sections
   ============================================ */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hot-grid a {
  display: block;
  max-width: 100%;
  overflow: hidden;
}

.hot-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-mid);
  border: 1px solid var(--border-color);
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.hot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hot-cover {
  position: relative;
  width: 160px;
  min-width: 120px;
  flex-shrink: 0;
  overflow: hidden;
}

.hot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hot-card:hover .hot-cover img {
  transform: scale(1.06);
}

/* Gradient fade from image to info */
.hot-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, var(--bg-card));
  pointer-events: none;
}

/* HOT badge */
.hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  background: var(--neon-orange);
  color: #000;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
}

/* Play overlay on hover */
.hot-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.hot-card:hover .hot-play-overlay {
  opacity: 1;
}

.hot-play-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  color: #000;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transition: transform 0.3s;
}

.hot-card:hover .hot-play-circle {
  transform: scale(1.1);
}

/* Info area */
.hot-info {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hot-genre {
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

.hot-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hot-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hot-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-yellow);
}

.hot-plays {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hot-play-btn {
  margin-left: auto;
  padding: 6px 18px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  background: var(--gradient-cyan);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.hot-card:hover .hot-play-btn {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}

/* ============================================
   New Games - Standard Game Cards
   Vertical card with large thumbnail,
   like Steam/CrazyGames store cards
   ============================================ */
.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 22px;
}

.new-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-mid);
  border: 1px solid var(--border-color);
  position: relative;
}

.new-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.new-thumb {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.new-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.new-card:hover .new-thumb img {
  transform: scale(1.08);
}

.new-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

/* NEW ribbon */
.new-ribbon {
  position: absolute;
  top: 0;
  right: 16px;
  padding: 6px 14px 8px;
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

/* Rating pill */
.new-rating {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-yellow);
  z-index: 2;
}

/* Play overlay */
.new-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.new-card:hover .new-play-overlay {
  opacity: 1;
}

.new-play-circle {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-magenta);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 24px rgba(255, 0, 229, 0.5);
  transition: transform 0.3s;
}

.new-card:hover .new-play-circle {
  transform: scale(1.1);
}

/* Info section */
.new-body {
  padding: 14px 18px 18px;
}

.new-genre {
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 6px;
}

.new-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.new-tag {
  padding: 2px 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.new-footer {
  display: block;
}

.new-plays {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.new-play-btn {
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-fire);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.2), 0 0 24px rgba(255, 0, 229, 0.1);
  transition: var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.new-play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.new-play-btn:hover::before {
  left: 100%;
}

.new-card:hover .new-play-btn {
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.4), 0 0 40px rgba(255, 0, 229, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   Popular Games - Leaderboard / Rank List
   Numbered rows with thumbnail, like
   game site ranking tables
   ============================================ */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-mid);
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.rank-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

/* Rank number */
.rank-num {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 900;
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { color: #ff6a00; text-shadow: 0 0 10px rgba(255,106,0,0.4); }
.rank-item:nth-child(2) .rank-num { color: #b0b0b0; text-shadow: 0 0 8px rgba(176,176,176,0.3); }
.rank-item:nth-child(3) .rank-num { color: #cd7f32; text-shadow: 0 0 8px rgba(205,127,50,0.3); }
.rank-item:nth-child(n+4) .rank-num { color: var(--text-muted); }

/* Thumbnail */
.rank-thumb {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.rank-item:hover .rank-thumb img {
  transform: scale(1.08);
}

/* Info */
.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-genre {
  font-family: var(--font-main);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 2px;
}

.rank-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.rank-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.rank-tag {
  padding: 1px 6px;
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
}

/* Stats on right */
.rank-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.rank-rating {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--neon-yellow);
}

.rank-plays {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rank-play-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  color: #000;
  font-size: 0.65rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.rank-item:hover .rank-play-btn {
  opacity: 1;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

/* Tags Page */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: var(--transition-mid);
  cursor: pointer;
}

.tag-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-2px);
}

.tag-item .tag-count {
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50px;
  font-size: 0.65rem;
  color: var(--neon-cyan);
}

.tag-item.active,
.tag-item.size-lg.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.tag-item.size-lg {
  font-size: 1rem;
  padding: 12px 28px;
}

.tag-item.size-md {
  font-size: 0.88rem;
}

.tag-item.size-sm {
  font-size: 0.72rem;
  padding: 8px 16px;
}

/* Tags category sections */
.tag-group {
  margin-bottom: 48px;
}

.tag-group-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* --- Tags Page: Category Games --- */
.category-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

@media (max-width: 768px) {
  .category-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-games-grid {
    grid-template-columns: 1fr;
  }
}

.category-game-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.category-game-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.08);
}

.category-game-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.category-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-game-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-game-info .new-play-btn {
  margin-top: auto;
  width: 100%;
}

.category-game-info h3,
.category-game-info h4 {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.category-game-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.category-game-meta span:first-child {
  color: #ffd700;
}

/* --- List Page --- */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.list-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.list-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-sort select {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.list-sort select:focus {
  border-color: var(--neon-cyan);
}

/* List view variant - horizontal cards */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-list-item {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-mid);
  cursor: pointer;
}

.game-list-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.1);
  transform: translateX(4px);
}

.game-list-item .game-thumb {
  width: 200px;
  min-width: 200px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.game-list-item .game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-mid);
}

.game-list-item:hover .game-thumb img {
  transform: scale(1.05);
}

.game-list-item .game-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-list-item .game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.game-list-item .game-meta span {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.game-list-item .game-meta .dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.game-list-item .game-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.game-list-item .game-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.game-list-item .game-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-list-item .game-tags span {
  padding: 3px 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.view-toggle button {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.view-toggle button.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
}

/* Pagination */
.pagination-bar {
  margin-top: 48px;
}

.pagination-container {
  display: flex;
  justify-content: center;
}

.pagination nav.pagination {
  display: inline-block;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: inline-flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pagination-link:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-1px);
}

.pagination-item.active .pagination-link.current {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  cursor: default;
}

.pagination-link.prev,
.pagination-link.next {
  font-size: 1.1rem;
  padding: 0 14px;
}

.pagination-link.prev.disabled,
.pagination-link.next.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}



/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-mid);
}

.stat-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.stat-number {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

/* --- Featured / Trending Section --- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-main {
  grid-row: span 2;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 440px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-mid);
}

.featured-main:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 50px rgba(0, 240, 255, 0.15);
}

.featured-main .featured-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a2e, #0a1628);
  z-index: 0;
}

.featured-main .featured-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(10, 14, 23, 0.95));
  z-index: 1;
}

.featured-main .featured-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gradient-magenta);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.featured-main h3 {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.featured-main p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.featured-side {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-mid);
}

.featured-side:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.1);
  transform: translateX(4px);
}

.featured-side .side-thumb {
  width: 100px;
  min-width: 100px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e, #0a1628);
}

.featured-side .side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-side .side-info h4 {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.featured-side .side-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 240, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 0, 229, 0.04), transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-muted); }

/* --- About Page --- */
.about-text-block {
  max-width: 960px;
  margin: 0 auto 56px;
}

.about-text-block h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-text-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-mid);
}

.value-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.value-card .value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.value-card h3 {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-mid);
}

.contact-info-card:hover {
  border-color: var(--border-glow);
}

.contact-info-card .info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Privacy Page --- */
.policy-content {
  max-width: 1200px;
  margin: 0 auto;
}

.policy-content h2 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin: 32px 0 12px;
}

.policy-content h3 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 24px 0 10px;
}

.policy-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.policy-content ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-cyan);
}

.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 0;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--neon-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.cta-box {
  padding: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-aurora);
}

.cta-box h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.search-bar input {
  flex: 1;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

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

.search-bar button {
  padding: 14px 28px;
  background: var(--gradient-cyan);
  border: none;
  color: #000;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-bar button:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-neon-cyan);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-mid);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  transform: translateY(-4px);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Glitch text effect for hero */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.glitch::before {
  animation: glitch1 3s infinite;
  color: var(--neon-cyan);
  z-index: -1;
}

.glitch::after {
  animation: glitch2 3s infinite;
  color: var(--neon-magenta);
  z-index: -2;
}

@keyframes glitch1 {
  0%, 95%, 100% { transform: translate(0); }
  96% { transform: translate(-3px, 2px); }
  97% { transform: translate(3px, -2px); }
}

@keyframes glitch2 {
  0%, 95%, 100% { transform: translate(0); }
  96% { transform: translate(3px, -2px); }
  97% { transform: translate(-3px, 2px); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { z-index: 9999; }

  .navbar .container {
    display: flex;
    align-items: center;
    height: 72px;
    overflow: visible;
    gap: 8px;
  }

  .nav-toggle {
    order: 1;
  }

  .nav-logo {
    flex: 1;
    min-width: 0;
    order: 2;
  }

  .nav-auth {
    order: 3;
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    padding: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 10010;
    touch-action: manipulation;
  }

  .nav-user-name {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 26, 40, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 24px 24px;
    border-left: 1px solid var(--border-color);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
  }

  .nav-links.open { right: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    color: #b0b8c8;
  }

  .nav-overlay.active {
    display: block;
    z-index: 9998;
  }

  .hero { min-height: 70vh; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .game-list-item { flex-direction: column; }
  .game-list-item .game-thumb { width: 100%; min-width: 100%; height: 180px; }

  .hot-grid { grid-template-columns: 1fr; gap: 16px; }
  .hot-card { flex-direction: column; min-width: 0; }
  .hot-cover { width: 100%; min-width: 100%; max-width: 100%; height: 180px; }
  .hot-cover::after { background: linear-gradient(180deg, transparent 40%, var(--bg-card)); }
  .hot-info { padding: 14px 16px; }
  .hot-title { white-space: normal; }
  .hot-desc { -webkit-line-clamp: 3; }

  .new-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .new-thumb { height: 140px; }

  .rank-grid { grid-template-columns: 1fr; }
  .rank-item { max-width: 100%; box-sizing: border-box; min-width: 0; }

  .values-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer { padding: 40px 0 0; }
  .footer-brand .footer-logo { font-size: 1.1rem; margin-bottom: 12px; justify-content: center; }
  .footer-brand p { font-size: 0.82rem; max-width: 100%; }
  .footer-col h4 { font-size: 0.7rem; margin-bottom: 14px; }
  .footer-col a { padding: 5px 0; font-size: 0.82rem; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; padding: 16px 0; }
  .footer-social { justify-content: center; gap: 10px; }
  .footer-social a { width: 34px; height: 34px; font-size: 0.85rem; }

  .list-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 16px; }
  .stat-number { font-size: 1.5rem; }
  .hot-grid { gap: 12px; }
  .hot-info { padding: 10px 12px; }
  .hot-desc { -webkit-line-clamp: 2; }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: 1.2rem; }
  .footer { padding: 28px 0 0; }
  .footer-grid { gap: 20px; text-align: center; }
  .footer-brand .footer-logo { font-size: 1rem; justify-content: center; }
  .footer-brand .footer-logo .logo-icon { width: 28px; height: 28px; }
  .footer-brand p { font-size: 0.78rem; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col a { padding: 4px 0; font-size: 0.78rem; }
  .footer-social a { width: 32px; height: 32px; font-size: 0.8rem; }
}

/* ============================================
   Hero Section (New Structure)
   Centered cinematic hero with magenta CTA
   ============================================ */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 0 60px;
  text-align: center;
}

/* Animated diagonal gradient bg */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 210deg at 50% 120%, rgba(255, 0, 229, 0.07), rgba(176, 0, 255, 0.05), rgba(0, 240, 255, 0.04), transparent 60%);
  z-index: 0;
  animation: heroBgRotate 20s linear infinite;
}

@keyframes heroBgRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Hex grid pattern */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 0, 229, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-main);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-magenta);
  margin-bottom: 24px;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(255, 0, 229, 0.12), rgba(176, 0, 255, 0.08));
  border: 1px solid rgba(255, 0, 229, 0.3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  animation: taglineShimmer 3s ease-in-out infinite;
}

.hero-tagline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 229, 0.15), transparent);
  animation: taglineSweep 3s ease-in-out infinite;
}

@keyframes taglineShimmer {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 229, 0.1); }
  50% { box-shadow: 0 0 25px rgba(255, 0, 229, 0.3); }
}

@keyframes taglineSweep {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 40%, var(--neon-magenta) 70%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 0, 229, 0.15));
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
  max-width: 600px;
}

.hero-subdescription {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

/* Hero Stats - inline pill style */
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255, 0, 229, 0.04);
  border: 1px solid rgba(255, 0, 229, 0.12);
  border-radius: 50px;
  transition: var(--transition-mid);
}

.hero-stats .stat-item:hover {
  border-color: rgba(255, 0, 229, 0.4);
  background: rgba(255, 0, 229, 0.08);
  box-shadow: 0 0 20px rgba(255, 0, 229, 0.12);
  transform: translateY(-2px);
}

.hero-stats .stat-number {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neon-magenta);
  line-height: 1;
}

.hero-stats .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Hero Actions - magenta/fire gradient button */
.hero-content .hero-actions {
  margin-top: 34px;
}

.hero-actions .btn-primary {
  background: var(--gradient-fire);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 40px rgba(255, 0, 229, 0.15);
  border-radius: 50px;
  padding: 16px 44px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.45), 0 0 60px rgba(255, 0, 229, 0.25);
  color: #fff;
}

.hero-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.hero-actions .btn-primary:hover::before {
  left: 100%;
}

/* Responsive for hero-section */
@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
    padding: 0 0 50px;
  }

  .hero-container {
    padding: 0 16px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stats .stat-item {
    padding: 8px 16px;
  }

  .hero-stats .stat-number {
    font-size: 1rem;
  }

  .hero-stats .stat-label {
    font-size: 0.7rem;
  }

  .hero-actions .btn-primary {
    padding: 14px 36px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: auto;
    padding: 0 0 40px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-stats .stat-item {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }
}

/* --- Game Detail Page --- */
.game-detail-section {
  padding: 92px 0 60px;
  position: relative;
  z-index: 1;
}

.game-player-wrap {
  margin-bottom: 32px;
}

.game-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.08);
}

.game-player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.game-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.game-player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.game-play-btn {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.game-play-btn .play-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-fire);
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.4), 0 0 60px rgba(255, 0, 229, 0.2);
  transition: var(--transition-mid);
}

.game-play-btn:hover .play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 106, 0, 0.6), 0 0 80px rgba(255, 0, 229, 0.35);
}

.game-play-btn .play-text {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
}

.game-detail-info {
  margin-bottom: 40px;
}

.game-detail-main {
  width: 100%;
}

.game-detail-title {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Game Detail Meta Info (Developer, Published, Updated) */
.game-detail-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.game-developer,
.game-publish-date,
.game-update-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
}

.game-developer::before {
  content: '\01F464';
  font-size: 0.9rem;
}

.game-publish-date::before {
  content: '\01F4C5';
  font-size: 0.9rem;
}

.game-update-time::before {
  content: '\01F504';
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .game-detail-meta-info {
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
  }

  .game-developer,
  .game-publish-date,
  .game-update-time {
    font-size: 0.8rem;
  }
}

.game-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.game-detail-meta .meta-sep {
  color: var(--text-muted);
}

.game-detail-category {
  color: var(--neon-cyan);
  font-weight: 600;
}

.game-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.game-detail-tag {
  padding: 4px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.game-detail-tag:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
}

.game-detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.game-detail-desc p {
  margin-bottom: 12px;
}

/* ========== FAQ Section ========== */
.faq-section {
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-title:hover {
  background: rgba(255, 255, 255, 0.06);
}

.faq-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  color: var(--neon-cyan, #00f0ff);
  transition: transform 0.3s ease;
}

.faq-section.open .faq-section-toggle {
  transform: rotate(90deg);
}

.faq-list {
  display: none;
}

.faq-section.open .faq-list {
  display: block;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ddd;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  position: relative;
}

.faq-question::after {
  content: '+';
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--neon-cyan, #00f0ff);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.faq-item.open .faq-question {
  color: #fff;
  background: rgba(0, 240, 255, 0.05);
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding: 0 24px 18px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary, #999);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .faq-title {
    font-size: 1.1rem;
    padding: 14px 16px;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px 14px 16px;
    font-size: 0.82rem;
  }
}

.game-detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.game-detail-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-mid);
}

.btn-game-play {
  background: var(--gradient-fire);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 40px rgba(255, 0, 229, 0.15);
}

.btn-game-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.5), 0 0 60px rgba(255, 0, 229, 0.25);
}

.btn-fullscreen {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--neon-cyan);
}

.btn-fullscreen:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.game-ad-slot {
  margin: 32px 0;
  text-align: center;
  min-height: 90px;
}

.game-detail-block {
  margin-top: 48px;
  width: 100%;
}

.game-detail-block-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-detail-block-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.game-detail-block-content p {
  margin-bottom: 12px;
}

.game-detail-block-content ul,
.game-detail-block-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.game-detail-block-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.game-detail-block-content ol li {
  list-style: decimal;
}

/* Related Games */
.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.related-game-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-mid);
}

.related-game-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
}

.related-game-thumb {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
}

.related-game-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-mid);
}

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

.related-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: var(--transition-mid);
}

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

.related-game-overlay span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: 50%;
  font-size: 1rem;
  color: #000;
  font-weight: 700;
}

.related-game-info {
  padding: 14px 16px;
}

.related-game-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-game-category {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.related-game-rating {
  font-size: 0.75rem;
}

/* Game Detail Responsive */
@media (max-width: 768px) {
  .game-detail-section {
    padding: 80px 0 40px;
  }

  .game-play-btn .play-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .game-play-btn .play-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .game-detail-actions {
    flex-direction: column;
  }

  .game-detail-actions .btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .related-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .related-game-info {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .game-detail-title {
    font-size: 1.4rem;
  }

  .game-detail-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .related-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-detail-block {
    margin-top: 48px;
}

.game-detail-block-title {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 20px;
}

.related-game-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-mid);
}

.related-game-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
}

.related-game-thumb {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
}

.related-game-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-mid);
}

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

.related-game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition-mid);
}

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

.related-game-overlay span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cyan);
    border-radius: 50%;
    font-size: 1rem;
    color: #000;
    font-weight: 700;
}

.related-game-info {
    padding: 14px 16px;
}

.related-game-title {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-game-category {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.related-game-rating {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .related-game-info {
        padding: 10px 12px;
    }
}

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

/* --- Toast Notification --- */
.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  min-width: 320px;
  max-width: 480px;
  z-index: 9999;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.hide {
  opacity: 0;
  transform: translateX(40px);
}

.toast-success {
  border: 1px solid rgba(57, 255, 20, 0.3);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.12), rgba(0, 0, 0, 0.95));
}

.toast-error {
  border: 1px solid rgba(255, 0, 229, 0.3);
  background: linear-gradient(135deg, rgba(255, 0, 229, 0.12), rgba(0, 0, 0, 0.95));
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.toast-success .toast-header { color: var(--neon-green); }
.toast-error .toast-header { color: var(--neon-magenta); }

.toast-header .close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: var(--transition-fast);
}

.toast-header .close-btn:hover {
  color: #fff;
}

.toast-body {
  padding: 4px 16px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
  .toast-notification {
    left: 12px;
    right: 12px;
    min-width: auto;
    max-width: none;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* ===== Nav Auth Button ===== */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-auth-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.nav-auth-btn:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateY(-1px);
}

/* ===== Nav User (Logged In) ===== */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.nav-user-trigger:hover,
.nav-user.open .nav-user-trigger {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    color: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
    font-family: var(--font-main);
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.nav-user-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-main);
    letter-spacing: 0.3px;
}

.nav-user-arrow {
    color: var(--text-muted);
    font-size: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 2px;
}

.nav-user.open .nav-user-arrow {
    transform: rotate(180deg);
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

/* Dropdown */
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), var(--shadow-neon-cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1060;
    overflow: hidden;
    padding: 4px 0;
}

/* Arrow pointer */
.nav-user-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-left: 1px solid rgba(0, 240, 255, 0.2);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    transform: rotate(45deg);
}

.nav-user.open .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    text-align: left;
    white-space: nowrap;
    font-family: var(--font-body);
}

.nav-dropdown-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-cyan);
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.nav-dropdown-item:hover {
    background: rgba(0, 240, 255, 0.06);
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
}

.nav-dropdown-item:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-auth {
        margin-left: 0;
    }
    .nav-auth-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .nav-user-name {
        max-width: 60px;
        font-size: 11px;
    }
    .nav-user-trigger {
        padding: 3px 6px 3px 3px;
    }
    .nav-user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .nav-user-dropdown {
        right: -8px;
        min-width: 150px;
    }
    .nav-user-dropdown::before {
        right: 14px;
    }
}

/* ===== Login Modal Styles - Cyberpunk Neon Theme ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.85);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 0 1rem;
    box-sizing: border-box;
}

.auth-modal {
    background: var(--bg-card, #141929) !important;
    border-radius: var(--radius-md, 12px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.15) !important;
    padding: 2.5rem 3rem !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted, #8892a4);
    line-height: 1;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    color: var(--neon-cyan, #00f0ff);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary, #e8edf5);
    margin-bottom: 0.25rem;
    font-family: var(--font-main, sans-serif);
}

.auth-header p {
    color: var(--text-muted, #8892a4);
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(0, 240, 255, 0.12);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted, #8892a4);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.9rem;
    font-family: var(--font-main, sans-serif);
}

.auth-tab:hover {
    color: var(--neon-cyan, #00f0ff);
}

.auth-tab.active {
    color: var(--neon-cyan, #00f0ff);
    border-bottom-color: var(--neon-cyan, #00f0ff);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-primary, #e8edf5);
    font-weight: 500;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(10, 14, 23, 0.7);
    color: var(--text-primary, #e8edf5);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-cyan, #00f0ff);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.form-group input::placeholder {
    color: var(--text-muted, #8892a4);
}

.form-group .error-text {
    color: var(--neon-pink, #ff00e5);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input {
    border-color: var(--neon-pink, #ff00e5);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-cyan, linear-gradient(135deg, #00f0ff, #00b8d4));
    color: var(--bg-dark, #0a0e17);
    border: none;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main, sans-serif);
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
}

.btn-auth:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(10, 14, 23, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-dark, #0a0e17);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 240, 255, 0.12);
}

.auth-footer p {
    color: var(--text-muted, #8892a4);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--neon-cyan, #00f0ff);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.alert-box {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon-green, #39ff14);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.alert-box.error {
    background: rgba(255, 0, 229, 0.08);
    color: var(--neon-pink, #ff00e5);
    border: 1px solid rgba(255, 0, 229, 0.3);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted, #8892a4);
    transition: all 0.3s ease;
}

.password-toggle .toggle-icon:hover {
    color: var(--neon-cyan, #00f0ff);
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    user-select: none;
    transition: color 0.3s;
}

.password-toggle .toggle-icon:hover {
    color: #333;
}


/* ===== Comments Section (Dark Cyberpunk Neon Theme) ===== */
.comments-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(0, 240, 255, 0.04);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    background: rgba(0, 240, 255, 0.06);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.12);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.comment-item {
    padding: 18px;
    background: rgba(10, 14, 23, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.08);
    transition: all 0.25s ease;
}

.comment-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(10, 14, 23, 0.85);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.comment-star {
    margin-left: auto;
    font-size: 13px;
    color: var(--neon-yellow);
    text-shadow: 0 0 6px rgba(255, 230, 0, 0.4);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    margin-top: 6px;
}

.comments-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.comments-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.comments-loading {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.load-more-comments {
    margin-top: 20px;
    text-align: center;
}

.btn-load-more {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-main);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
    transform: translateY(-1px);
}

.btn-load-more:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ===== Comment Form (Dark Theme) ===== */
.comment-form {
    margin-bottom: 24px;
    padding: 22px;
    background: rgba(10, 14, 23, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.12);
    transition: border-color 0.3s ease;
}

.comment-form:focus-within {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-form-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-form-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-form-rating label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-right: 10px;
}

.rating-star {
    font-size: 22px;
    cursor: pointer;
    color: rgba(255, 230, 0, 0.15);
    transition: all 0.2s ease;
    user-select: none;
    text-shadow: none;
}

.rating-star:hover {
    color: rgba(255, 230, 0, 0.6);
    transform: scale(1.15);
    text-shadow: 0 0 8px rgba(255, 230, 0, 0.5);
}

.rating-star.active {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.6);
}

.comment-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(10, 14, 23, 0.7);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 14px;
    box-sizing: border-box;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form-textarea::placeholder {
    color: var(--text-muted);
}

.comment-form-textarea:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08), inset 0 0 15px rgba(0, 240, 255, 0.03);
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-submit {
    padding: 10px 26px;
    background: var(--gradient-cyan);
    color: #0a0e17;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-main);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.btn-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-comment-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comment-login-hint {
    text-align: center;
    padding: 18px;
    background: rgba(10, 14, 23, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.1);
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-login-hint a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.comment-login-hint a:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Mobile comments */
@media (max-width: 768px) {
    .comments-section {
        padding: 18px;
        margin-top: 28px;
    }
    .comment-form {
        padding: 14px;
    }
    .comment-item {
        padding: 12px;
    }
    .comments-title {
        font-size: 1.1rem;
    }
    .btn-comment-submit {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* ===== Toast Message ===== */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.7rem 1.5rem;
    background: #333;
    color: #fff;
    border-radius: 8px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.toast-message.show {
    opacity: 1;
}

.toast-message.success {
    background: #27ae60;
}

.toast-message.error {
    background: #e74c3c;
}

.toast-message.warning {
    background: #f39c12;
}


/* ===== Share buttons & copy modal (theme-adaptive) ===== */
.geme-social-share p {
	color: #00f0ff;
	font-size: 16px;
	font-weight: 600;
	margin: 0 8px 0 0;
}
.geme-social-share a {
	display: -webkit-inline-flex;
	display: -ms-inline-flex;
	display: inline-flex;
	width: 34px;
	height: 34px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 240, 255, .15);
	color: #00f0ff;
	border: 1px solid rgba(0, 240, 255, .3);
	margin-left: 10px;
	-webkit-transition: all .3s;
	transition: all .3s;
}
.geme-social-share a:hover {
	background: #00f0ff;
	color: #fff;
	border-color: transparent;
}
.share-copy-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 16, .82);
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 9999;
	padding: 15px;
}
.share-copy-modal.show {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.share-copy-box {
	background: #0c0c1a;
	border: 1px solid rgba(0, 240, 255, .4);
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: 0 0 30px rgba(0, 240, 255, .4);
}
.share-copy-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9190a5;
	cursor: pointer;
	transition: color .3s;
}
.share-copy-close:hover {
	color: #00f0ff;
}
.share-copy-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #fff;
}
.share-copy-desc {
	margin: 0 0 16px;
	color: #9190a5;
	font-size: 14px;
}
.share-copy-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}
.share-copy-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(0, 240, 255, .45);
	border-radius: 8px;
	font-size: 14px;
	color: #fff;
	background: rgba(255, 255, 255, .06);
}
.share-copy-input:focus {
	outline: none;
	border-color: #00f0ff;
}
.share-copy-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #00f0ff 0%, #4cf4ff 100%);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .3s;
}
.share-copy-btn:hover {
	opacity: .9;
}
.share-copy-status {
	margin: 12px 0 0;
	font-size: 13px;
	color: #4ade80;
	min-height: 18px;
}
