/* ==========================================================================
   Godgames — Local Replica Design System (English Default, Dark/Light + RTL)
   ========================================================================== */

:root {
  --bg-primary: #0A0F1D;
  --bg-secondary: #12182B;
  --bg-elevated: #172038;
  --bg-card: rgba(18, 24, 43, 0.72);
  --bg-header: rgba(10, 15, 29, 0.65);
  --bg-header-scrolled: rgba(10, 15, 29, 0.95);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --gold: #D4AF37;
  --gold-light: #F0D878;
  --gold-dark: #B8941F;
  --neon-blue: #00D4FF;
  --neon-glow: rgba(0, 212, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.1);
  --star-filled: #D4AF37;
  --star-empty: #3A4155;
  --shadow-color: rgba(0, 0, 0, 0.35);
  --success: #22C55E;
  --danger: #EF4444;
  --radius: 16px;
  --radius-md: 12px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #F0F2F5;
  --bg-secondary: #E8EBF0;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-header: rgba(240, 242, 245, 0.82);
  --bg-header-scrolled: rgba(240, 242, 245, 0.96);
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #64748B;
  --glass-bg: rgba(0, 0, 0, 0.035);
  --glass-bg-hover: rgba(0, 0, 0, 0.065);
  --glass-border: rgba(0, 0, 0, 0.09);
  --star-empty: #CBD5E1;
  --shadow-color: rgba(15, 23, 42, 0.1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

button, input, textarea, select {
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header / Sticky Navbar
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
  background: var(--bg-header-scrolled);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  transition: transform var(--transition);
}

.brand-link:hover .brand-logo {
  transform: scale(1.06);
}

.brand-wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Center Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.icon-circle-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.14);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-toggle-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0F1D;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.icon-circle-btn svg {
  width: 19px;
  height: 19px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 175px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  z-index: 3000;
  box-shadow: 0 18px 40px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  max-height: 360px;
  overflow-y: auto;
}

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

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
}

.lang-code-tag {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.85;
  min-width: 24px;
}

/* Mobile Menu Button & Drawer */
.mobile-toggle-btn {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 82vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  z-index: 2000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 36px var(--shadow-color);
}

[dir="rtl"] .mobile-menu {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--glass-border);
  transform: translateX(-100%);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links .nav-link {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1.05rem;
}

.mobile-nav-links .nav-link::after {
  display: none;
}

.mobile-nav-links .nav-link.active,
.mobile-nav-links .nav-link:hover {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0A0F1D;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: kenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.09) translate3d(0, -1.5%, 0);
  }
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 0);
  background-size: 24px 24px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center 48%, rgba(10, 15, 29, 0.56) 0%, rgba(10, 15, 29, 0.25) 55%, rgba(10, 15, 29, 0.65) 100%),
    linear-gradient(to bottom, rgba(10, 15, 29, 0.35) 0%, rgba(10, 15, 29, 0.62) 60%, var(--bg-primary) 100%);
}

[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(ellipse at center 48%, rgba(10, 15, 29, 0.58) 0%, rgba(10, 15, 29, 0.32) 55%, rgba(10, 15, 29, 0.68) 100%),
    linear-gradient(to bottom, rgba(10, 15, 29, 0.35) 0%, rgba(10, 15, 29, 0.68) 72%, var(--bg-primary) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(15vh) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-95vh) scale(1.1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 120px 24px 96px;
  max-width: 820px;
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(18, 24, 43, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
  color: #FFFFFF;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.65), 0 0 40px rgba(212, 175, 55, 0.25);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.35));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(241, 245, 249, 0.9);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.75;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0F1D;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.5);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.hero-cta:hover svg {
  transform: translateY(3px);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 15, 29, 0.45);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceScroll 2.2s ease-in-out infinite;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hero-scroll:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.2);
}

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

/* ==========================================================================
   Games Catalog Section (#games)
   ========================================================================== */

.games-section {
  padding: 72px 0 64px;
}

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

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* SEO Intro Glass Card */
.seo-intro-card {
  margin: 28px auto 38px;
  padding: 26px 30px;
  max-width: 920px;
  text-align: center;
}

.seo-intro-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}

.seo-intro-card p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.98rem;
}

/* Search & Filter Bar */
.search-filter-bar {
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color 0.25s ease;
}

[dir="rtl"] .search-icon {
  left: auto;
  right: 18px;
}

.search-box input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

[data-theme="light"] .search-box input {
  background: rgba(255, 255, 255, 0.9);
}

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

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.search-box:focus-within .search-icon {
  color: var(--gold);
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--glass-bg-hover);
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

[dir="rtl"] .search-clear-btn {
  right: auto;
  left: 14px;
}

.search-clear-btn.visible {
  display: inline-flex;
}

.search-clear-btn:hover {
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.2);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 9px 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="light"] .filter-btn {
  background: rgba(255, 255, 255, 0.85);
}

.filter-btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gold);
  color: #0A0F1D;
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color), 0 0 55px rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.35);
}

.game-card-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0F172A;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.wishlist-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 15, 29, 0.58);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

[dir="rtl"] .wishlist-btn {
  left: auto;
  right: 12px;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: rgba(10, 15, 29, 0.85);
  border-color: var(--gold);
}

.wishlist-btn.active {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.7);
  color: #FF4D6D;
}

.wishlist-btn.active svg {
  fill: #FF4D6D;
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
  transition: fill 0.2s ease;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(10, 15, 29, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0F1D;
  font-weight: 800;
  font-size: 0.94rem;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  transform: translateY(8px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.game-card:hover .btn-details,
.game-card:focus-within .btn-details {
  transform: translateY(0);
}

.btn-details:hover {
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.55);
}

.game-card-content {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.game-card:hover .game-card-title {
  color: var(--gold-light);
}

[data-theme="light"] .game-card:hover .game-card-title {
  color: var(--gold-dark);
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  min-height: 20px;
}

.star-icon {
  width: 17px;
  height: 17px;
}

.star-filled {
  color: var(--star-filled);
  fill: var(--star-filled);
}

.star-empty {
  color: var(--star-empty);
  fill: var(--star-empty);
}

.launch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--neon-blue);
  font-size: 0.74rem;
  font-weight: 700;
}

[data-theme="light"] .launch-tag {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
}

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

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.category-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-size {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
}

.empty-state-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #0A0F1D;
}

/* ==========================================================================
   Homepage FAQ Section
   ========================================================================== */

.homepage-faq-section {
  padding: 16px 0 88px;
}

.homepage-faq {
  padding: 36px;
  max-width: 960px;
  margin: 0 auto;
}

.homepage-faq-header {
  text-align: center;
  margin-bottom: 28px;
}

.homepage-faq-header h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.homepage-faq-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}

[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.72);
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.96rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
  background: var(--bg-secondary);
  padding: 76px 0 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  width: 380px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.footer-brand-desc {
  margin: 14px 0 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 340px;
  line-height: 1.75;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0F1D;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Game Detail Pages (Standard Template)
   ========================================================================== */

.game-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-top: 70px;
  background: #0A0F1D;
}

.game-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.game-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 29, 0.25) 0%, rgba(10, 15, 29, 0.7) 68%, var(--bg-primary) 100%);
}

.game-detail-section {
  padding: 0 0 88px;
  margin-top: -75px;
  position: relative;
  z-index: 10;
}

.game-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 940px;
  margin: 0 auto;
  box-shadow: 0 20px 60px var(--shadow-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.breadcrumb-sep {
  opacity: 0.5;
}

.surprise-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.surprise-banner strong {
  color: var(--gold-light);
  font-size: 1.05rem;
}

[data-theme="light"] .surprise-banner strong {
  color: var(--gold-dark);
}

.game-detail-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.meta-pill strong {
  color: var(--gold);
}

.detail-summary {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.85;
  margin-bottom: 32px;
}

.detail-block {
  margin-top: 40px;
}

.detail-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  margin-bottom: 18px;
  line-height: 1.3;
}

[dir="rtl"] .detail-heading {
  padding-left: 0;
  padding-right: 14px;
  border-left: none;
  border-right: 4px solid var(--gold);
}

.detail-text {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}

.feature-bullet-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
}

.bullet-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 2px;
}

/* Cards Grid inside Detail Pages */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-mini-card {
  padding: 20px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.info-mini-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}

.info-mini-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.info-mini-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Rewards / Benefits List */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 700;
  font-size: 0.95rem;
}

.benefit-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Data Table (Accumulated Recharge) */
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.styled-table th,
.styled-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.94rem;
}

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

.styled-table th {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
  font-weight: 800;
}

.styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table tr:hover td {
  background: var(--glass-bg);
}

.golden-tip-box {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.11);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-primary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.golden-tip-box strong {
  color: var(--gold);
}

/* Schedule Pills / Timeline */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

.schedule-pill {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-day {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Heroes Grid */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.hero-showcase-card {
  padding: 20px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.hero-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-avatar-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(0, 212, 255, 0.18));
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--gold-light);
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

.day-hero-portrait {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.rarity-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

.hero-showcase-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-meta-line {
  font-size: 0.82rem;
  color: var(--neon-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

[data-theme="light"] .hero-meta-line {
  color: #0284C7;
}

.hero-showcase-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: #0F172A;
}

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

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(10, 15, 29, 0.9), transparent);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Gift Codes Grid */
.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.code-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px dashed rgba(212, 175, 55, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

[data-theme="light"] .code-value {
  color: var(--gold-dark);
}

.code-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-copy-code,
.btn-view-rewards {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-code {
  border: none;
  background: var(--gold);
  color: #0A0F1D;
}

.btn-copy-code:hover {
  background: var(--gold-light);
}

.btn-view-rewards {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
}

.btn-view-rewards:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.code-reward-detail {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
  display: none;
}

.code-reward-detail.open {
  display: block;
}

/* Primary Download CTA */
.download-cta-box {
  margin-top: 44px;
  padding: 36px 24px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.cta-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 46px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0F1D;
  font-weight: 900;
  font-size: 1.18rem;
  cursor: pointer;
  animation: ctaPulse 2.2s infinite;
  transition: transform 0.25s ease;
}

.cta-pulse:hover {
  transform: translateY(-3px) scale(1.02);
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.cta-subnote {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Similar Games Strip */
.similar-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.similar-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.similar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
}

.similar-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.similar-card-body {
  padding: 12px 14px;
}

.similar-card-body h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.similar-card-body span {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   Wild Water World — Distinct Modern Landing Page Layout
   ========================================================================== */

.www-page {
  padding-top: 96px;
  padding-bottom: 88px;
}

.www-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(18, 24, 43, 0.88) 55%, rgba(212, 175, 55, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.24);
  margin-bottom: 28px;
}

[data-theme="light"] .www-hero {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(255, 255, 255, 0.94) 55%, rgba(212, 175, 55, 0.12));
}

.www-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}

.www-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.75;
}

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

.www-hero-art {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.www-hero-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.www-jump-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 42px;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.www-jump-link {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.www-jump-link:hover {
  background: var(--gold);
  color: #0A0F1D;
}

.www-section {
  margin-bottom: 52px;
  scroll-margin-top: 90px;
}

.www-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

.www-stat-card {
  padding: 26px 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.www-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 6px;
}

.www-stat-label {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.www-total-pill {
  text-align: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1rem;
}

[data-theme="light"] .www-total-pill {
  color: var(--gold-dark);
}

.login-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.day-card {
  padding: 20px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.day-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
}

.day-card.legendary {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(212, 175, 55, 0.18));
  border-color: rgba(212, 175, 55, 0.55);
}

.day-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 8px;
}

[data-theme="light"] .day-label {
  color: #0284C7;
}

.day-reward {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 4px;
}

.day-note {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.www-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.event-highlight-card {
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.13), var(--bg-card));
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.event-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #0A0F1D;
  font-weight: 900;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Content Pages (About, Contact, Privacy, Terms)
   ========================================================================== */

.page-wrapper {
  padding: 124px 0 88px;
  min-height: calc(100vh - 340px);
}

.content-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px var(--shadow-color);
}

.content-card h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 20px;
}

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

[dir="rtl"] .content-card h2 {
  padding-left: 0;
  padding-right: 12px;
  border-left: none;
  border-right: 3px solid var(--gold);
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.content-card ul {
  margin: 0 0 18px 22px;
  color: var(--text-secondary);
  line-height: 1.85;
}

[dir="rtl"] .content-card ul {
  margin: 0 22px 18px 0;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.95);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  justify-self: start;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0F1D;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   Toast Notifications, Modal & Floating Telegram FAB
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 390px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(18, 24, 43, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--gold);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[dir="rtl"] .toast {
  border-left: 1px solid var(--glass-border);
  border-right: 4px solid var(--gold);
}

.toast-success {
  border-left-color: var(--success);
}

[dir="rtl"] .toast-success {
  border-right-color: var(--success);
}

.toast-info {
  border-left-color: var(--neon-blue);
}

[dir="rtl"] .toast-info {
  border-right-color: var(--neon-blue);
}

.toast.fade-out {
  animation: toastOut 0.28s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
  padding-right: 36px;
}

.modal-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.modal-step {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.modal-step strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* Floating Telegram FAB */
.telegram-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[dir="rtl"] .telegram-fab {
  right: auto;
  left: 24px;
}

.telegram-fab:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 34px rgba(34, 158, 217, 0.6);
}

.telegram-fab svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .www-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .www-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .brand-wordmark {
    font-size: 1.3rem;
  }

  .brand-logo {
    height: 36px;
  }

  .hero-content {
    padding: 110px 16px 84px;
  }

  .games-grid {
    gap: 22px;
  }

  .homepage-faq {
    padding: 24px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .game-banner {
    height: 280px;
  }

  .game-detail-card,
  .content-card {
    padding: 28px 20px;
  }

  .day-card.legendary {
    grid-column: span 1;
  }

  .cta-pulse {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
