/* ==========================================================================
   ELMOHANDS PLAYSTATION LOUNGE - STYLESHEET
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090f;
  --bg-card: rgba(16, 21, 35, 0.85);
  --bg-card-hover: rgba(26, 33, 54, 0.95);
  --bg-glass: rgba(10, 14, 24, 0.75);
  --border-glass: rgba(0, 240, 255, 0.15);

  --accent-cyan: #00f0ff;
  --accent-purple: #a855f7;
  --accent-gold: #ffb703;
  --accent-pink: #ff0055;
  --accent-green: #25D366; /* WhatsApp Green */

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #090d16;

  /* Neon Glows */
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.5);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.5);
  --glow-gold: 0 0 25px rgba(255, 183, 3, 0.5);
  --glow-green: 0 0 20px rgba(37, 211, 102, 0.5);

  /* Fonts & Radius */
  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-en: 'Outfit', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ar);
  overflow-x: hidden;
}

body.gamer-theme {
  min-height: 100vh;
  line-height: 1.6;
  background-color: #07090f;
  overflow-x: hidden;
  position: relative;
}

/* HIGH-PERFORMANCE FIXED BACKGROUND LAYER (Smooth 60/120fps on Android) */
body.gamer-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #07090f;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 240, 255, 0.12) 0px, transparent 45%),
    radial-gradient(at 100% 10%, rgba(168, 85, 247, 0.15) 0px, transparent 45%),
    radial-gradient(at 50% 100%, rgba(37, 211, 102, 0.08) 0px, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  transform: translateZ(0);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   INTRO SPLASH SCREEN
   -------------------------------------------------------------------------- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #04050a;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.25) 0%, transparent 65%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 25px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
  overflow: hidden;
}

.intro-splash.fade-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.intro-splash-content {
  text-align: center;
  padding: 20px;
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.falling-brand-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 1.2vw, 12px);
  flex-wrap: nowrap !important; /* CRUCIAL: NEVER WRAP TO 2ND LINE ON PHONES */
  white-space: nowrap;
  direction: ltr;
  width: 100%;
  max-width: 100vw;
  padding: 0 10px;
}

.falling-letter {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 6.8vw, 5.2rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px var(--accent-cyan);
  display: inline-block;
  opacity: 0;
  transform: translateY(-200px) scale(0.7);
  animation: letterDropSolid 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes letterDropSolid {
  0% {
    opacity: 0;
    transform: translateY(-200px) scale(0.7);
  }
  80% {
    opacity: 1;
    transform: translateY(6px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 20px var(--accent-cyan);
  }
}

/* Ambient Glowing Orbs - GPU Optimized via Radial Gradients instead of heavy filter:blur */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  transform: translateZ(0);
}
.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, transparent 70%);
  bottom: -100px;
  left: -150px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-full);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
img { max-width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   NAVBAR - ULTRA CLEAN: ONLY ELMOHANDS BRAND CENTERED
   -------------------------------------------------------------------------- */
.navbar-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.navbar-header.scrolled {
  padding: 12px 0;
  background: rgba(7, 9, 15, 0.95);
  border-bottom-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-side-spacer {
  width: 90px;
  display: block;
}

.brand-logo-clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
}

.navbar-admin-wrap {
  width: 90px;
  display: flex;
  justify-content: flex-end;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 21, 35, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-bounce);
  backdrop-filter: blur(10px);
}

.nav-admin-btn:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.nav-admin-btn.admin-logged-in {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.nav-admin-btn.admin-logged-in:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.6);
}

.nav-brand-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 0 45px rgba(168, 85, 247, 0.4);
  animation: logoGamerPulse 3.5s ease-in-out infinite alternate;
  transition: var(--transition-bounce);
  transform: translateZ(0);
}

@keyframes logoGamerPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 35px rgba(168, 85, 247, 0.3);
    border-color: var(--accent-cyan);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 50px rgba(0, 240, 255, 0.5);
    border-color: var(--accent-purple);
    transform: scale(1.03) rotate(2deg);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.9), 0 0 55px rgba(0, 240, 255, 0.6);
    border-color: var(--accent-cyan);
    transform: scale(1) rotate(-1deg);
  }
}

.brand-logo-clean:hover .nav-brand-img {
  transform: rotate(-10deg) scale(1.1);
  border-color: var(--accent-purple);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.9), 0 0 60px rgba(0, 240, 255, 0.8);
}

.en-name-bold {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: 4px;
  background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

/* --------------------------------------------------------------------------
   HERO SLIDER - 100% FULL WIDTH WIDESCREEN CINEMATIC GAMER BANNER
   -------------------------------------------------------------------------- */
.hero-gamer-section {
  position: relative;
  margin-top: 115px; /* Clean gap below fixed navbar */
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* 100% FULL WIDTH EDGE-TO-EDGE CINEMATIC BANNER */
.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(300px, 34vw, 520px);
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  border-left: none;
  border-right: none;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.12);
  background: #04050a;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.slider-wrapper:active {
  cursor: grabbing;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease; /* Fast snappy transition */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04050a;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* 100% FULL IMAGE SHOWN - ZERO CROPPING FROM ANY SIDE WITH CINEMATIC ZOOM ANIMATION */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: contain; /* Shows 100% of the full image without any cutting */
  background-repeat: no-repeat;
  background-position: center center;
  filter: none !important;
  z-index: 1;
  transform: translateZ(0);
}

.slide.active .slide-bg {
  animation: heroKenBurns 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.slide-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.tag-cyber { background: rgba(0, 240, 255, 0.15); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.tag-sports { background: rgba(0, 245, 212, 0.15); color: #00f5d4; border: 1px solid #00f5d4; }
.tag-gold { background: rgba(255, 183, 3, 0.15); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid var(--accent-purple); }

.slide-title {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.slide-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 22px;
  line-height: 1.6;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(7, 9, 15, 0.7);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.slider-arrow:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-50%) scale(1.12);
}

.slider-arrow.prev { right: 24px; }
.slider-arrow.next { left: 24px; }

.slider-indicators {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(7, 9, 15, 0.65);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.75);
}

.indicator.active {
  width: 34px;
  border-radius: 6px;
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   FEATURED GAMES & CATALOG CARDS (WHATSAPP BUTTON & NO PRICES)
   -------------------------------------------------------------------------- */
.featured-section, .catalog-section { padding: 60px 0; }

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

.sub-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 900;
  color: #fff;
}

.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-top: 5px; }

.featured-grid, .catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.featured-card {
  background: #101625;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.featured-card:hover,
.featured-card:active {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.3), 0 0 15px rgba(0, 240, 255, 0.2);
}

/* GAMING CARD IMAGE WRAPPER WITH GLEAM LIGHT REFLECTION */
.card-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #0c101a;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

/* SMOOTH IMAGE ANIMATION (Entrance zoom-in + Hover pulse) */
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: brightness(0.85);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s ease;
  will-change: transform;
}

/* Entrance animation when card scrolls into view */
.scroll-reveal.revealed .card-image-wrap img {
  transform: scale(1);
  filter: brightness(1);
}

/* Dynamic Hover / Touch Zoom Animation */
.featured-card:hover .card-image-wrap img,
.featured-card:active .card-image-wrap img {
  transform: scale(1.08) rotate(-0.5deg);
  filter: brightness(1.12);
}

/* Shiny Neon Gleam Beam Animation across Game Covers */
.card-image-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(0, 240, 255, 0.35) 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: 3;
}

.scroll-reveal.revealed .card-image-wrap::after {
  left: 160%;
  transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.featured-card:hover .card-image-wrap::after,
.featured-card:active .card-image-wrap::after {
  left: 160%;
  transition: left 0.6s ease;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 2;
}

.badge-hot { background: rgba(255, 0, 85, 0.9); color: #fff; }
.badge-gold { background: rgba(255, 183, 3, 0.9); color: var(--text-dark); }
.badge-green { background: rgba(37, 211, 102, 0.9); color: #fff; }
.badge-purple { background: rgba(168, 85, 247, 0.9); color: #fff; }

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category { font-size: 0.75rem; color: var(--accent-cyan); font-weight: 700; margin-bottom: 4px; }
.card-title { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.3; }

.card-footer-info {
  margin-top: auto;
  width: 100%;
}

/* WHATSAPP BUTTON STYLING */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

.btn-block { width: 100%; }

/* HARDWARE-ACCELERATED DYNAMIC SCROLL REVEAL (60/120 FPS FLUID) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.92);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered entrance animation delays */
.featured-grid .featured-card:nth-child(2n),
.catalog-grid .featured-card:nth-child(2n) {
  transition-delay: 0.08s;
}

.featured-grid .featured-card:nth-child(3n),
.catalog-grid .featured-card:nth-child(3n) {
  transition-delay: 0.14s;
}

.featured-grid .featured-card:nth-child(4n),
.catalog-grid .featured-card:nth-child(4n) {
  transition-delay: 0.2s;
}

/* FOOTER */
.site-footer {
  background: #04060b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 30px;
}

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

.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 12px; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-bounce);
}
.social-icon:hover { background: var(--accent-cyan); color: var(--text-dark); transform: translateY(-3px); }

.footer-title { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent-cyan); padding-right: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   STRICT RESPONSIVE MEDIA QUERIES: 2 CARDS SIDE-BY-SIDE ON PHONES
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-slider-container {
    width: 100%;
    height: clamp(280px, 34vw, 460px);
    margin: 0;
    border-radius: 0;
  }
  .featured-grid, .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .navbar-header {
    padding: 10px 0;
  }
  .nav-brand-img {
    width: 60px;
    height: 60px;
  }
  .hero-gamer-section {
    margin-top: 95px;
    padding: 0;
  }
  .hero-slider-container {
    width: 100%;
    height: clamp(240px, 36vw, 360px);
    margin: 0;
    border-radius: 0;
  }
  .slide-title { font-size: 2.2rem; }
}

/* MOBILE PHONES: STRICTLY DISPLAY 2 CARDS SIDE-BY-SIDE ON PHONE SCREENS + ULTRA FAST ANDROID PERFORMANCE */
@media (max-width: 768px) {
  /* 1. Disable heavy full-screen GPU blur/gradients on mobile for 60/120fps */
  .ambient-glow {
    display: none !important;
  }

  /* 2. Zero-lag solid headers & controls instead of expensive backdrop blur */
  .navbar-header, 
  .navbar-header.scrolled {
    padding: 8px 0;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #07090f !important;
  }

  .nav-admin-btn,
  .slider-arrow,
  .slider-indicators,
  .admin-topbar,
  .gamer-modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .brand-logo-clean {
    gap: 10px;
  }
  .nav-brand-img {
    width: 48px;
    height: 48px;
    border-width: 2px;
    animation: none !important; /* Save battery & CPU on phones */
  }
  .en-name-bold {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
  .hero-gamer-section {
    margin-top: 76px;
    padding: 0;
  }
  .featured-grid, .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 CARDS SIDE BY SIDE */
    gap: 10px !important;
  }

  /* 3. Disable heavy image animations on mobile scroll */
  .card-image-wrap::after {
    display: none !important; /* Disable heavy reflection sweep on phones */
  }

  .card-image-wrap img {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  .slide.active .slide-bg {
    animation: none !important; /* Instant fluid slide transition on Android */
  }

  .hero-slider-container {
    width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 220px !important;
    border-radius: 0 !important;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    background: rgba(7, 9, 15, 0.9);
  }
  .slider-arrow.prev { right: 8px; }
  .slider-arrow.next { left: 8px; }
  .slider-indicators { 
    bottom: 10px; 
    gap: 6px; 
    padding: 5px 10px; 
    background: rgba(7, 9, 15, 0.9);
  }
  .indicator { width: 7px; height: 7px; }
  .indicator.active { width: 20px; }
  .footer-grid-clean { grid-template-columns: 1fr; }
  .card-content { padding: 10px; }
  .card-title { font-size: 0.88rem; margin-bottom: 6px; }
  .btn-whatsapp { font-size: 0.78rem; padding: 7px 8px; }
}

@media (max-width: 480px) {
  .navbar-header, .navbar-header.scrolled {
    padding: 6px 0;
  }
  .nav-brand-img {
    width: 42px;
    height: 42px;
  }
  .en-name-bold {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }
  .hero-gamer-section {
    margin-top: 66px;
  }
  .featured-grid, .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .hero-slider-container {
    height: 180px !important;
  }
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .slider-arrow.prev { right: 6px; }
  .slider-arrow.next { left: 6px; }
  .falling-letter { font-size: clamp(1.4rem, 6.8vw, 2.5rem); }
  .slide-title { font-size: 1.8rem; }
}

/* ==========================================================================
   ADMIN MODE & CONTROL SYSTEM STYLES
   ========================================================================== */

/* 1. ADMIN TOP BAR - NATURAL PAGE FLOW (ZERO OVERLAP, NEVER SCROLLS DOWN WITH USER) */
.admin-topbar {
  position: relative;
  margin-top: 115px; /* Sits naturally right below the fixed navbar on desktop */
  margin-bottom: 20px;
  z-index: 10;
  background: #0b101d;
  border-bottom: 2px solid var(--accent-gold);
  border-top: 1px solid rgba(255, 183, 3, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding: 12px 0;
}

body.admin-mode-active .hero-gamer-section {
  margin-top: 0 !important; /* Flows cleanly under the admin bar without any gap or overlap */
  padding-top: 0 !important;
}

@media (max-width: 900px) {
  .admin-topbar {
    margin-top: 95px;
    margin-bottom: 16px;
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    margin-top: 76px;
    margin-bottom: 14px;
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .admin-topbar {
    margin-top: 66px;
    margin-bottom: 12px;
    padding: 8px 0;
  }
}

.admin-topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

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

.admin-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-primary-neon {
  background: linear-gradient(135deg, #00f0ff, #0099ff);
  color: #07090f;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-primary-neon:hover {
  background: linear-gradient(135deg, #33f3ff, #1ab2ff);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
  transform: translateY(-2px);
}

.btn-secondary-neon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-secondary-neon:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.btn-logout-neon {
  background: rgba(255, 0, 85, 0.15);
  border: 1px solid var(--accent-pink);
  color: #ff4d88;
}

.btn-logout-neon:hover {
  background: var(--accent-pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
}

/* 2. CARD ADMIN CONTROLS */
.featured-card {
  position: relative;
}

.admin-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  display: flex;
  gap: 6px;
  animation: fadeInFast 0.3s ease;
}

.admin-card-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: var(--transition-bounce);
  cursor: pointer;
}

.admin-card-delete-btn {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-card-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.15) rotate(4deg);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
}

.admin-card-edit-btn {
  background: rgba(14, 165, 233, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-card-edit-btn:hover {
  background: #0284c7;
  transform: scale(1.15) rotate(-4deg);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.9);
}

/* Quick Add Card Placeholder in Grids */
.add-card-placeholder {
  min-height: 280px;
  border: 2px dashed rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.add-card-placeholder:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.add-card-placeholder .placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.add-card-placeholder .placeholder-text {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1.05rem;
}

.add-card-placeholder .placeholder-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 3. GAMER MODALS & DIALOGS */
.gamer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInFast 0.25s ease;
  overflow-y: auto;
}

@keyframes fadeInFast {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gamer-modal-box {
  background: #0d121f;
  background-image: 
    radial-gradient(at top left, rgba(0, 240, 255, 0.12) 0px, transparent 60%),
    radial-gradient(at bottom right, rgba(168, 85, 247, 0.12) 0px, transparent 60%);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.25);
  width: 100%;
  max-width: 460px;
  padding: 28px;
  position: relative;
  color: var(--text-main);
  animation: modalPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.gamer-modal-box.modal-lg {
  max-width: 620px;
}

.gamer-modal-box.modal-sm {
  max-width: 380px;
  text-align: center;
}

@keyframes modalPopUp {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-icon-glow {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.12);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.modal-icon-glow.danger-icon {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 4. FORM ELEMENTS */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: #e2e8f0;
}

.required-star {
  color: var(--accent-pink);
}

.form-row {
  display: flex;
  gap: 14px;
}

.flex-1 { flex: 1; }

.gamer-input {
  width: 100%;
  padding: 11px 15px;
  background: rgba(16, 21, 35, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.gamer-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(16, 21, 35, 1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.gamer-select {
  cursor: pointer;
}

.gamer-select option {
  background: #0d121f;
  color: #fff;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-pwd-btn {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.toggle-pwd-btn:hover {
  color: var(--accent-cyan);
}

.form-error-msg {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-success-msg {
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Image Upload & Preview */
.image-upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-upload-zone {
  border: 2px dashed rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  background: rgba(0, 240, 255, 0.02);
  transition: var(--transition-fast);
}

.image-upload-zone:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.06);
}

.file-input-hidden {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #cbd5e1;
}

.file-upload-label i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.upload-title {
  font-size: 0.9rem;
  font-weight: 700;
}

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

.image-or-divider {
  text-align: center;
  position: relative;
  margin: 4px 0;
}

.image-or-divider span {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #0d121f;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

.image-or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.image-preview-container {
  margin-top: 10px;
}

.preview-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.preview-box {
  position: relative;
  width: 130px;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clear-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* 5. TOAST NOTIFICATION */
.gamer-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  background: #0b1120;
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.toast-content i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.toast-content.toast-error i {
  color: #ef4444;
}

/* Responsive adjust for Admin Bar */
@media (max-width: 768px) {
  .admin-topbar-container {
    justify-content: center;
    text-align: center;
  }
  .admin-badge {
    font-size: 0.82rem;
    padding: 4px 10px;
  }
  .admin-bar-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .navbar-side-spacer {
    width: 60px;
  }
  .navbar-admin-wrap {
    width: 60px;
  }
  .nav-admin-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  .admin-btn-text {
    display: none;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

