/* ==========================================================================
   Easygame.ir — Theme V2 (Futuristic Split Layout & Neon Accents)
   ========================================================================== */

/* --- Fonts Setup --- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Theme Variables --- */
:root {
  --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-dark: #040914;
  --bg-header: rgba(4, 11, 24, 0.94);
  --bg-card: #08162b;
  --bg-card-glass: rgba(8, 22, 43, 0.75);
  
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: rgba(6, 182, 212, 0.5);
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.45);
  --neon-amber: #f59e0b;
  --neon-gold: #fbbf24;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon-cyan: rgba(6, 182, 212, 0.45);
  
  --text-white: #ffffff;
  --text-slate: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #071120;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}

.header-inner {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-icon {
  width: 34px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.5));
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.brand-tld {
  color: var(--neon-amber);
}

.nav-menu {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-slate);
  padding: 6px 4px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-white);
}

/* Glowing Yellow Pill Indicator under Active link ("خانه") */
.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  background: #eab308;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.85);
}

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

/* Neon Cyan Search Pill */
.search-pill-neon {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(6, 18, 38, 0.85);
  border: 1.5px solid var(--neon-cyan);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  width: 210px;
  height: 38px;
  box-shadow: 0 0 14px var(--neon-cyan-glow);
  transition: var(--transition);
}

.search-pill-neon:focus-within {
  width: 250px;
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  margin-left: 8px;
  flex-shrink: 0;
}

.search-pill-neon input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
}

.search-pill-neon input::placeholder {
  color: #94a3b8;
}

.clear-btn {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 4px;
}

/* Profile Pill Button */
.profile-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 28, 54, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  height: 38px;
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.profile-pill-btn svg {
  width: 17px;
  height: 17px;
  color: #94a3b8;
}

.profile-pill-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(20, 38, 72, 0.9);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(14, 28, 54, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Hero Split Section (2 Columns)
   ========================================================================== */
.hero-split-section {
  padding: 22px 0 35px;
}

.hero-split-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 20px;
  align-items: stretch;
}

/* Left Column */
.hero-left-col {
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Futuristic Glass Box with Neon Glow Border */
.hero-glass-box {
  position: relative;
  background: rgba(7, 19, 38, 0.85);
  border: 1.5px solid rgba(6, 182, 212, 0.45);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.12),
              0 0 24px rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Cyan & Purple Top Corner Glow Lines */
.hero-glass-box::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 20%;
  right: 20%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 12px var(--neon-cyan);
}

.hero-title-big {
  font-size: 2.9rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: 0 2px 14px rgba(253, 224, 71, 0.35);
  line-height: 1.1;
  text-align: center;
}

.hero-sub-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 10px;
  text-align: center;
}

.hero-desc-text {
  font-size: 0.92rem;
  color: var(--text-slate);
  margin-top: 8px;
  text-align: center;
}

.hero-cta-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.hero-cta-sparkle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.55),
              0 6px 18px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.hero-cta-sparkle-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 32px rgba(234, 179, 8, 0.8);
}

.cta-arrow {
  width: 17px;
  height: 17px;
  transition: transform var(--transition);
}

.hero-cta-sparkle-btn:hover .cta-arrow {
  transform: translateX(-4px);
}

/* 4x2 Categories Grid */
.categories-grid-v2 {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.cat-card-v2 {
  background: rgba(7, 20, 39, 0.82);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.cat-card-v2:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  background: rgba(12, 30, 58, 0.95);
}

.cat-card-v2.active {
  border-color: #facc15;
  background: rgba(234, 179, 8, 0.15);
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.5);
}

.cat-icon-v2 {
  width: 42px;
  height: 40px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-v2 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition);
}

.cat-card-v2:hover .cat-icon-v2 img {
  transform: scale(1.12);
}

.cat-title-v2 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

.cat-sub-v2 {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Column: Visual Montage Showcase */
.hero-right-col {
  direction: rtl;
  display: flex;
}

.hero-montage-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 470px; border: 1.5px solid rgba(6, 182, 212, 0.35); box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-montage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-montage-fade-left {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent 0%, rgba(4, 9, 20, 0.35) 100%);
  pointer-events: none;
}

.hero-montage-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Popular Games Section ("بازی‌های محبوب 🔥")
   ========================================================================== */
.popular-section {
  margin-top: 25px;
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading-v2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flame-glow-badge {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));
}

.view-all-link-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.view-all-link-v2:hover {
  color: #38bdf8;
}

/* 5 Cards Grid */
.popular-grid-v2 {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.pop-card-v2 {
  position: relative;
  height: 156px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition);
}

/* Individual Glowing Borders */
.pop-card-v2.glow-amber {
  border: 1.5px solid #d97706;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.35);
}
.pop-card-v2.glow-purple {
  border: 1.5px solid #c026d3;
  box-shadow: 0 0 12px rgba(192, 38, 211, 0.35);
}
.pop-card-v2.glow-bronze {
  border: 1.5px solid #ea580c;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.35);
}
.pop-card-v2.glow-cyan {
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}
.pop-card-v2.glow-gold {
  border: 1.5px solid #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
}

.pop-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.pop-thumb-v2 {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.pop-card-v2:hover .pop-thumb-v2 {
  transform: scale(1.06);
}

/* Top-Right Rating Badge */
.pop-rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #facc15;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250, 204, 21, 0.3);
  direction: ltr;
}

.pop-overlay-v2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.1) 0%, rgba(4, 9, 20, 0.4) 40%, rgba(4, 9, 20, 0.95) 88%, var(--bg-dark) 100%);
  pointer-events: none;
}

.pop-info-row {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

.pop-text-col {
  flex: 1;
  padding-left: 6px;
}

.pop-title-v2 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.pop-sub-v2 {
  font-size: 0.72rem;
  color: var(--text-slate);
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Circular Play Button */
.pop-play-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(4, 11, 24, 0.9);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.pop-play-circle-btn svg {
  width: 14px;
  height: 14px;
}

.pop-play-circle-btn.ring-amber { border: 1.5px solid #d97706; }
.pop-play-circle-btn.ring-purple { border: 1.5px solid #c026d3; }
.pop-play-circle-btn.ring-bronze { border: 1.5px solid #ea580c; }
.pop-play-circle-btn.ring-cyan { border: 1.5px solid #06b6d4; }
.pop-play-circle-btn.ring-gold { border: 1.5px solid #eab308; }

.pop-card-v2:hover .pop-play-circle-btn {
  transform: scale(1.1);
  background: #ffffff;
  color: #040914;
}

/* ==========================================================================
   All Games Section
   ========================================================================== */
.all-games-section {
  padding-top: 25px;
  margin-bottom: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.all-games-header {
  margin-bottom: 20px;
}

.all-games-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.catalog-badge {
  font-size: 0.8rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.cat-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(8, 22, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-slate);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-pill:hover {
  color: var(--text-white);
  border-color: var(--neon-cyan);
}

.cat-pill.active {
  background: var(--neon-cyan);
  color: var(--text-dark);
  border-color: var(--neon-cyan);
  font-weight: 700;
  box-shadow: 0 0 14px var(--neon-cyan-glow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-card {
  background: rgba(8, 22, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
}

.game-thumb {
  height: 125px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-icon-big {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition);
}

.game-card:hover .game-icon-big {
  transform: scale(1.14);
}

.fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.fav-btn:hover {
  transform: scale(1.15);
}

.game-badges {
  position: absolute;
  top: 10px;
  right: 10px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: var(--text-white);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.game-category-label {
  font-size: 0.72rem;
  color: var(--neon-cyan);
}

.game-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0d2243;
  color: var(--text-white);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.play-btn:hover {
  background: var(--neon-cyan);
  color: var(--text-dark);
  border-color: var(--neon-cyan);
}

.open-tab-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #0d2243;
  border: 1px solid var(--border-subtle);
  color: var(--text-slate);
  transition: var(--transition);
}

.open-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--neon-cyan);
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.btn-reset {
  margin-top: 14px;
  padding: 8px 20px;
  background: var(--neon-cyan);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Modals */
.game-modal, .info-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-modal.active, .info-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.88);
  backdrop-filter: blur(12px);
}

.modal-window {
  position: relative;
  width: 95vw;
  height: 90vh;
  max-width: 1400px;
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #061224;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-game-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon { font-size: 1.6rem; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-sub { font-size: 0.78rem; color: var(--text-muted); }
.modal-controls { display: flex; align-items: center; gap: 8px; }

.ctrl-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #0d2243;
  border: 1px solid var(--border-subtle);
  color: var(--text-slate);
  transition: var(--transition);
}

.ctrl-btn:hover {
  color: var(--text-white);
  border-color: var(--neon-cyan);
}

.close-btn {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.modal-body {
  flex: 1;
  background: #000000;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.info-modal-card {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.close-info-btn { font-size: 1.1rem; color: var(--text-muted); }
.info-emblem { font-size: 2.8rem; margin-bottom: 10px; }
.info-modal-body p { color: var(--text-slate); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.info-features { display: flex; flex-direction: column; gap: 8px; }
.feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.contact-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.contact-val { color: var(--neon-cyan); font-weight: 600; direction: ltr; }

.text-center { text-align: center; }
.profile-avatar { font-size: 3.2rem; margin-bottom: 8px; }
.profile-status { font-size: 0.82rem; color: #10b981; margin-top: 4px; }
.profile-stats-row { display: flex; justify-content: center; gap: 24px; margin-top: 20px; }
.p-stat { display: flex; flex-direction: column; align-items: center; }
.p-val { font-size: 1.4rem; font-weight: 700; color: var(--neon-cyan); }
.p-lbl { font-size: 0.78rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #020710;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 45px 0 25px;
}

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

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-text { font-size: 0.88rem; color: var(--text-muted); max-width: 380px; line-height: 1.6; }
.footer-heading { font-size: 1rem; font-weight: 700; color: var(--text-white); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-slate); transition: var(--transition); }
.footer-links a:hover { color: var(--neon-cyan); transform: translateX(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.04); padding-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-split-grid {
  direction: ltr;
    grid-template-columns: 1fr;
  }
  .hero-montage-wrapper {
    min-height: 320px;
  }
  .popular-grid-v2 {
  direction: ltr;
    grid-template-columns: repeat(3, 1fr);
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .nav-menu {
  direction: rtl;
    position: fixed;
    top: 60px;
    right: -100%;
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: -10px 20px 30px rgba(0, 0, 0, 0.6);
    transition: right 0.3s ease;
  }
  .nav-menu.active { right: 0; }
  .search-pill-neon { width: 140px; }
  .search-pill-neon:focus-within { width: 180px; }
  .profile-pill-btn span { display: none; }
  .hero-title-big { font-size: 2.2rem; }
  .hero-sub-text { font-size: 1.2rem; }
  .categories-grid-v2 {
  direction: ltr; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .popular-grid-v2 {
  direction: ltr; grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 480px) {
  .categories-grid-v2 {
  direction: ltr; grid-template-columns: repeat(2, 1fr); }
  .popular-grid-v2 {
  direction: ltr; grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Multi-Language (i18n) & Keyone Coin Styles
   ========================================================================== */

/* Keyone Coin Balance Pill */
.keyone-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 20, 5, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-pill);
  padding: 0 12px;
  height: 38px;
  color: var(--neon-gold);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  transition: var(--transition);
  white-space: nowrap;
}

.keyone-coin-pill:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.6);
  transform: translateY(-1px);
}

.coin-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.coin-amount {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.3px;
}

.coin-unit {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Language Selector Dropdown */
.lang-selector-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 28, 54, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-pill);
  padding: 0 12px;
  height: 38px;
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.lang-trigger-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.lang-trigger-btn .chevron-icon {
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.lang-selector-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 155px;
  background: rgba(6, 18, 38, 0.96);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 18px rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99999 !important;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lang-menu.show {
  display: flex !important;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-slate);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
  text-align: inherit;
  justify-content: space-between;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(6, 182, 212, 0.18);
  color: var(--text-white);
}

.lang-option .flag {
  font-size: 1rem;
}

.lang-option .name {
  flex-grow: 1;
  text-align: right;
  margin: 0 6px;
}

.lang-option .code {
  font-size: 0.72rem;
  opacity: 0.55;
  font-family: monospace;
  text-transform: uppercase;
}

/* Bi-Directional (RTL / LTR) adaptations */
html[dir="ltr"] body {
  direction: ltr;
}

html[dir="ltr"] .nav-menu {
  direction: ltr;
}

html[dir="ltr"] .hero-left-col {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .hero-glass-box {
  text-align: left;
}

html[dir="ltr"] .search-icon {
  margin-left: 0;
  margin-right: 8px;
}

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

html[dir="ltr"] .lang-option .name {
  text-align: left;
}

html[dir="ltr"] .cta-arrow {
  transform: scaleX(1);
}

html[dir="rtl"] .cta-arrow {
  transform: scaleX(-1);
}

html[dir="ltr"] .view-all-link-v2 svg {
  transform: rotate(180deg);
}

html[dir="ltr"] .pop-text-col {
  text-align: left;
}

html[dir="ltr"] .footer-brand,
html[dir="ltr"] .footer-col {
  text-align: left;
}

/* Language specific font tweaks */
body.lang-zh {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", SimHei, sans-serif !important;
}

body.lang-en {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

body.lang-ar {
  font-family: Cairo, Vazirmatn, Tahoma, "Segoe UI", sans-serif !important;
}


/* ==========================================================================
   Keyone Coin Floating Toast Notification
   ========================================================================== */
.keyone-toast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  background: rgba(10, 22, 44, 0.95);
  border: 1.5px solid var(--neon-gold);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.keyone-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.keyone-toast.earn {
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.45);
}

.keyone-toast.spend {
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.4);
}

.keyone-toast.error {
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   APEX Hypercar Teaser & Video Showcase
   ========================================================================== */
.pop-card-apex {
  border-color: #e11d48 !important;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.45) !important;
}

.pop-card-apex:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.5) !important;
}

.pop-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.pop-card-v2:hover .pop-thumb-video {
  opacity: 1;
}

.pop-badge-teaser {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: linear-gradient(135deg, #be123c 0%, #e11d48 60%, #f59e0b 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.65);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(225, 29, 72, 0.6); }
  50% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.85); }
}

/* Hero Teaser Banner Pill */
.hero-teaser-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(225, 29, 72, 0.12);
  border: 1.5px solid rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
}

.hero-teaser-banner:hover {
  background: rgba(225, 29, 72, 0.24);
  border-color: #f59e0b;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.teaser-live-pill {
  background: #e11d48;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.hero-teaser-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fce7f3;
}

.hero-teaser-play-icon {
  width: 20px;
  height: 20px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #f59e0b;
}

/* APEX Cinematic Teaser Modal */
.apex-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.apex-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.apex-modal-card {
  background: linear-gradient(180deg, #0f172a 0%, #060b17 100%);
  border: 2px solid #e11d48;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(225, 29, 72, 0.35);
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apex-modal-overlay.active .apex-modal-card {
  transform: scale(1);
}

.apex-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.apex-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apex-modal-badge {
  background: linear-gradient(135deg, #be123c, #f59e0b);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.apex-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.apex-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.apex-modal-close-btn:hover {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

.apex-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.apex-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apex-video-sound-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.apex-video-sound-toggle:hover {
  background: #e11d48;
  border-color: #e11d48;
}

.apex-modal-body {
  padding: 18px 22px;
}

.apex-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.apex-spec-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apex-spec-pill strong {
  color: #fbbf24;
}

.apex-desc-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 18px;
}

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

.apex-btn-primary {
  flex: 1;
  min-width: 220px;
  background: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #f59e0b 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
  transition: all 0.25s;
}

.apex-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.apex-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.apex-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Floating Teaser Pill Inside Montage */
.hero-montage-teaser-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(6, 11, 23, 0.88);
  border: 1.5px solid rgba(225, 29, 72, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 29, 72, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  direction: rtl;
}

.hero-montage-teaser-pill:hover {
  background: rgba(225, 29, 72, 0.28);
  border-color: #f59e0b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.teaser-pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teaser-pill-title {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.teaser-pill-title strong {
  color: #fbbf24;
  font-weight: 900;
}

.teaser-pill-action {
  background: linear-gradient(135deg, #be123c, #f59e0b);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.5);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-montage-teaser-pill {
    bottom: 12px;
    right: 12px;
    left: 12px;
    padding: 6px 12px;
  }
  .teaser-pill-title {
    font-size: 0.78rem;
  }
}


/* 3D Cyber Emblem Logo Styles */
.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(249, 115, 22, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
  vertical-align: middle;
}

.brand:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.75));
}

.brand-tld-badge {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  margin-left: 3px;
  align-self: flex-start;
  margin-top: 4px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(249, 115, 22, 0.35));
  vertical-align: middle;
}

.hero-logo-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.hero-logo-emblem {
  max-width: 220px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 25px rgba(249, 115, 22, 0.55)) drop-shadow(0 0 50px rgba(249, 115, 22, 0.25));
  animation: emblemFloat 4s ease-in-out infinite alternate;
}

@keyframes emblemFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.02); }
}


/* ==========================================================================
   Ultra-Modern 2026 Design Polish (Glassmorphism 2.0 & Gaming Neon Glow)
   ========================================================================== */

/* Active Nav Link with Golden Neon Underline Pill */
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, #fef08a 0%, #f59e0b 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
}

/* Hero Glass Box 2.0 */
.hero-glass-box {
  position: relative;
  background: radial-gradient(130% 120% at 50% 0%, rgba(14, 27, 52, 0.88) 0%, rgba(6, 14, 28, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 26px !important;
  padding: 34px 28px 28px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 0 28px rgba(6, 182, 212, 0.16) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  overflow: hidden;
}

.hero-glass-box::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 15%;
  right: 15%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #38bdf8 40%, #818cf8 60%, transparent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}

/* Luxurious Golden Hero Brand Title */
.hero-title-big.hero-title-golden {
  display: block !important;
  font-size: 3.1rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 25%, #f59e0b 60%, #d97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 4px 18px rgba(245, 158, 11, 0.45)) !important;
  text-align: center;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.hero-sub-text {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  margin-top: 8px !important;
  letter-spacing: -0.2px;
}

.hero-desc-text {
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  margin-top: 10px !important;
  line-height: 1.6;
}

/* Golden CTA Sparkle Button */
.hero-cta-sparkle-btn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 20%, #f59e0b 70%, #d97706 100%) !important;
  color: #0b1329 !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  padding: 12px 36px !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.65), 0 8px 20px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.hero-cta-sparkle-btn:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 0 38px rgba(245, 158, 11, 0.9), 0 12px 25px rgba(0, 0, 0, 0.5) !important;
}

/* Category Cards 2.0 (Glass & Neon Rim) */
.categories-grid-v2 {
  gap: 12px !important;
  margin-top: 18px !important;
}

.cat-card-v2 {
  position: relative !important;
  background: rgba(10, 21, 42, 0.82) !important;
  border: 1px solid rgba(56, 189, 248, 0.24) !important;
  border-radius: 18px !important;
  padding: 14px 6px 12px !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px) !important;
}

.cat-card-v2:hover {
  transform: translateY(-5px) scale(1.03) !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(6, 182, 212, 0.35) !important;
  background: rgba(16, 35, 68, 0.95) !important;
}

.cat-icon-v2 {
  width: 100% !important;
  max-width: 84px !important;
  height: 60px !important;
  margin: 0 auto 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cat-icon-v2 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) !important;
}

.cat-card-v2:hover .cat-icon-v2 {
  transform: scale(1.14);
}

.cat-title-v2 {
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px;
}

.cat-sub-v2 {
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
}

/* Right Montage Frame with Ambient Glow */
.hero-montage-wrapper {
  border-radius: 26px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.16) !important;
}

/* Popular Cards Grid 2.0 */
.popular-grid-v2 {
  gap: 14px !important;
}

.pop-card-v2 {
  height: 180px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.pop-card-v2:hover {
  transform: translateY(-6px) scale(1.025) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 158, 11, 0.3) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.pop-thumb-v2 {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.pop-card-v2:hover .pop-thumb-v2 {
  transform: scale(1.09) !important;
}

.pop-rating-badge {
  background: rgba(10, 18, 36, 0.85) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #fde047 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

/* Frosted Glass Play Button */
.pop-play-circle-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.pop-card-v2:hover .pop-play-circle-btn {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%) !important;
  border-color: #fde047 !important;
  color: #0b1329 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.75) !important;
}

.pop-title-v2 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.pop-sub-v2 {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* Refined Hero Logo Emblem Sizing */
.hero-logo-emblem-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 6px !important;
}

.hero-logo-emblem {
  max-width: 155px !important;
  max-height: 82px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 20px rgba(249, 115, 22, 0.5)) drop-shadow(0 0 35px rgba(249, 115, 22, 0.2)) !important;
}


/* ==========================================================================
   Popular Games 2.0 (Modern Vertical Posters)
   ========================================================================== */
.popular-grid-v2 {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 15px !important;
  margin-top: 16px !important;
}

.pop-card-v2 {
  position: relative !important;
  height: 330px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  background: #081120 !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55) !important;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.pop-card-v2:hover {
  transform: translateY(-8px) scale(1.025) !important;
}

.pop-card-v2.glow-amber {
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45) !important;
}
.pop-card-v2.glow-amber:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(245, 158, 11, 0.8) !important;
}

.pop-card-v2.glow-red {
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
}
.pop-card-v2.glow-red:hover {
  border-color: #f87171 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(239, 68, 68, 0.85) !important;
}

.pop-card-v2.glow-bronze {
  border: 1.5px solid #ea580c !important;
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.45) !important;
}
.pop-card-v2.glow-bronze:hover {
  border-color: #f97316 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(234, 88, 12, 0.8) !important;
}

.pop-card-v2.glow-purple {
  border: 1.5px solid #d946ef !important;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.45) !important;
}
.pop-card-v2.glow-purple:hover {
  border-color: #e879f9 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(217, 70, 239, 0.8) !important;
}

.pop-card-v2.glow-cyan {
  border: 1.5px solid #06b6d4 !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45) !important;
}
.pop-card-v2.glow-cyan:hover {
  border-color: #22d3ee !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(6, 182, 212, 0.8) !important;
}

.pop-thumb-v2 {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center top !important;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.pop-card-v2:hover .pop-thumb-v2 {
  transform: scale(1.08) !important;
}

.pop-overlay-v2 {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.05) 0%, rgba(4, 9, 20, 0.15) 45%, rgba(4, 9, 20, 0.82) 75%, rgba(4, 9, 20, 0.98) 96%) !important;
  pointer-events: none !important;
}

.pop-info-row {
  position: absolute !important;
  inset: 0 !important;
  padding: 14px 12px 14px 12px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.pop-text-col {
  flex: 1 !important;
  padding-left: 6px !important;
}

.pop-title-v2 {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.pop-sub-v2 {
  font-size: 0.73rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin-top: 3px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.pop-play-circle-btn {
  pointer-events: auto !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  flex-shrink: 0 !important;
}

.pop-card-v2:hover .pop-play-circle-btn {
  transform: scale(1.15) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0b1329 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8) !important;
}

.pop-rating-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 3 !important;
  background: rgba(10, 18, 36, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fde047 !important;
  padding: 4px 9px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  direction: ltr !important;
}

.pop-badge-teaser {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 3 !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 4px 9px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 900px) {
  .popular-grid-v2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .popular-grid-v2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .pop-card-v2 {
    height: 250px !important;
  }
}



/* ==========================================================================
   Catalog Game Cards 2.0 (Modern Cyber Glass with Glowing Neon Accents)
   ========================================================================== */
.games-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  margin-top: 20px !important;
}

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

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

.game-card {
  position: relative !important;
  background: #091326 !important;
  border-radius: 22px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
}

.game-card.glow-cyan {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.25) !important;
  --card-glow-btn: #06b6d4;
  --card-glow-shadow: rgba(6, 182, 212, 0.4);
}
.game-card.glow-cyan:hover {
  border-color: #22d3ee !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(6, 182, 212, 0.6) !important;
}

.game-card.glow-blue {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.25) !important;
  --card-glow-btn: #3b82f6;
  --card-glow-shadow: rgba(59, 130, 246, 0.4);
}
.game-card.glow-blue:hover {
  border-color: #60a5fa !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(59, 130, 246, 0.6) !important;
}

.game-card.glow-red {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.25) !important;
  --card-glow-btn: #ea580c;
  --card-glow-shadow: rgba(234, 88, 12, 0.45);
}
.game-card.glow-red:hover {
  border-color: #f87171 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(239, 68, 68, 0.6) !important;
}

.game-card.glow-indigo {
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25) !important;
  --card-glow-btn: #6366f1;
  --card-glow-shadow: rgba(99, 102, 241, 0.4);
}
.game-card.glow-indigo:hover {
  border-color: #818cf8 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(99, 102, 241, 0.6) !important;
}

.game-thumb {
  height: 185px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.4s ease !important;
}

.fav-btn {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(10, 18, 36, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  z-index: 4 !important;
}
.fav-btn:hover {
  transform: scale(1.15) !important;
  border-color: #ef4444 !important;
}

.game-badges {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 4 !important;
}

.badge-tag {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  background: rgba(8, 15, 30, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: var(--radius-pill) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.game-content {
  padding: 16px 18px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  background: #091326 !important;
}

.game-title-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  margin-bottom: 8px !important;
}

.game-category-label {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #38bdf8 !important;
  letter-spacing: -0.2px !important;
}

.game-title {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
  letter-spacing: -0.3px !important;
}

.game-desc {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  line-height: 1.55 !important;
  margin-bottom: 16px !important;
  flex: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.game-footer {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: auto !important;
}

.play-btn {
  flex: 1 !important;
  height: 42px !important;
  border-radius: var(--radius-pill) !important;
  background: rgba(13, 27, 54, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  border: 1.5px solid var(--card-glow-btn, rgba(6, 182, 212, 0.4)) !important;
  box-shadow: 0 0 14px var(--card-glow-shadow, rgba(6, 182, 212, 0.25)) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.play-btn:hover {
  transform: scale(1.03) !important;
  background: var(--card-glow-btn, #06b6d4) !important;
  color: #0b1329 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 24px var(--card-glow-btn, #06b6d4) !important;
}

.open-tab-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(13, 27, 54, 0.75) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.open-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

