/* ═══════════════════════════════════════════════════════════════
   🚀 GALACTIC GAMING CSS v5.0 - MTA RESOURCE CENTER
   Ultra 3D Space Theme | RGB Cycling | Immersive Gaming UI
   Fixed: Layout bugs, scroll issues, element overflow, 3D flip
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;900&family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&display=swap');

/* ─── ROOT VARIABLES ─── */
:root {
  --hue: 270;
  --p:   hsl(var(--hue), 100%, 60%);
  --p2:  hsl(calc(var(--hue) + 40), 100%, 65%);
  --p3:  hsl(calc(var(--hue) - 40), 100%, 55%);
  --cyan:   #00f5ff;
  --gold:   #ffd700;
  --green:  #00ff88;
  --red:    #ff2255;
  --bg0:    #02000a;
  --bg1:    #060011;
  --bg2:    #0c0020;
  --bg3:    #120030;
  --text:   #e8d5ff;
  --text2:  #a080cc;
  --border: rgba(180,0,255,.25);
  --glow-sm: 0 0 12px var(--p);
  --glow-md: 0 0 25px var(--p), 0 0 50px var(--p3);
  --glow-lg: 0 0 40px var(--p), 0 0 80px var(--p2), 0 0 120px var(--p3);
  --card-w: 300px;
  --card-h: 420px;
  --nav-h: 64px;
}

/* ─── RESET - FIXED overflow issues ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
html, body {
  /* FIX: was causing horizontal scroll bug */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ─── BASE ─── */
body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg0);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

/* ─── CUSTOM CURSOR - Fixed position bug ─── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
  will-change: transform;
}
#cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
}
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--p);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--p);
  transition: width .2s, height .2s, border-color .3s, box-shadow .3s;
  mix-blend-mode: screen;
}
body.cursor-hover #cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; top: -999px; left: 0;
  background: var(--p); color: #000;
  padding: 8px 16px; z-index: 10000;
  font-family: 'Vazirmatn', sans-serif;
}
.skip-link:focus { top: 0; }

/* ─── SCREEN READER ONLY ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════
   🌌 STARFIELD BACKGROUND - Fixed z-index
══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(200,150,255,.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 60%, rgba(150,200,255,.9) 0%, transparent 100%),
    radial-gradient(2px 2px at 70% 25%, rgba(255,200,255,.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(200,255,200,.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(200,150,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 5%  35%, rgba(255,200,100,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 48%, rgba(100,200,255,.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 72%, rgba(255,150,255,.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 62%, rgba(255,255,200,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 92%, rgba(200,200,255,.8) 0%, transparent 100%);
  z-index: -2;
  animation: starFloat 80s linear infinite;
  pointer-events: none;
}

@keyframes starFloat {
  0%   { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(-10px) translateX(5px); }
  50%  { transform: translateY(-20px) translateX(-5px); }
  75%  { transform: translateY(-10px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120,0,200,.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(0,100,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(200,0,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(80,0,160,.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   🔴 TOP BAR
══════════════════════════════════════════ */
.topbar {
  position: relative; z-index: 100;
  background: linear-gradient(90deg, rgba(80,0,160,.95), rgba(40,0,100,.95));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  font-size: 13px;
  overflow: hidden;
}
.topbar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(180,0,255,.15) 50%, transparent 100%);
  animation: scanLine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanLine {
  0%, 100% { transform: translateX(-100%); }
  50%       { transform: translateX(100%); }
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex; align-items: center; gap: 8px;
  color: var(--cyan);
}
.topbar-icon { animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.topbar-stats { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
}
/* FIX: was free-badge/paid-badge but CSS had .free / .paid */
.stat-badge.free-badge { border-color: rgba(0,255,136,.4); color: var(--green); }
.stat-badge.paid-badge { border-color: rgba(255,215,0,.4);  color: var(--gold); }

/* ══════════════════════════════════════════
   🧭 NAVBAR - Fixed sticky + z-index bug
══════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(6,0,17,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  width: 100%;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 20px;
  min-height: var(--nav-h);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 20px; font-weight: 900;
  color: #fff; text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  box-shadow: var(--glow-sm);
  animation: iconPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes iconPulse {
  0%,100% { box-shadow: var(--glow-sm); }
  50%      { box-shadow: var(--glow-md); }
}
.brand-accent { color: var(--p); margin-right: 2px; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  /* FIX: Prevent overflow compression */
  flex-wrap: nowrap;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  color: var(--text2); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all .25s; border: 1px solid transparent;
  font-family: 'Vazirmatn', sans-serif;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--p); border-color: var(--border);
  background: rgba(140,0,255,.1);
  box-shadow: var(--glow-sm);
}
.nav-link.nav-portal {
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff;
  box-shadow: var(--glow-sm);
}
.nav-link.nav-portal:hover { box-shadow: var(--glow-md); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: border-color .3s;
}
.hamburger:hover { border-color: var(--p); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--p); border-radius: 2px;
  transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════════
   🚀 HERO SECTION - Fixed layout
══════════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 80px 24px 100px;
  overflow: hidden;
  isolation: isolate;
}

/* HERO 3D GRID */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140,0,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,0,255,.1) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(800px) rotateX(35deg) scale(2) translateY(10%);
  transform-origin: center bottom;
  animation: gridPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridPulse {
  0%,100% { opacity: .4; }
  50%      { opacity: .9; }
}

/* HERO NEBULA */
.hero::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(120,0,200,.3) 0%, rgba(60,0,120,.15) 40%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: nebulaPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes nebulaPulse {
  0%,100% { transform:translate(-50%,-50%) scale(1); opacity:.8; }
  50%      { transform:translate(-50%,-50%) scale(1.2); opacity:1; }
}

#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 860px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 20px; border-radius: 30px;
  background: rgba(255,140,0,.12);
  border: 1px solid rgba(255,140,0,.5);
  color: #ffaa00; font-size: 14px; font-weight: 600;
  margin-bottom: 30px;
  animation: badgePop .6s cubic-bezier(.68,-.55,.27,1.55) both;
}
@keyframes badgePop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* HERO TITLE */
.hero-title {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.title-line {
  font-size: clamp(20px, 3.5vw, 38px);
  color: rgba(255,255,255,.85);
  animation: slideIn .7s ease both;
  opacity: 0;
}
.title-line:nth-child(1) { animation-delay: .1s; }
.title-line:nth-child(3) { animation-delay: .5s; }
@keyframes slideIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.title-highlight {
  font-size: clamp(32px, 6vw, 72px);
  background: linear-gradient(135deg, #fff 0%, var(--p) 30%, var(--cyan) 65%, var(--p2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(180,0,255,.8));
  animation: titleGlow 3s ease-in-out infinite alternate, slideIn .6s .25s ease both;
  opacity: 0;
}
@keyframes titleGlow {
  from { filter: drop-shadow(0 0 20px rgba(180,0,255,.6)); }
  to   { filter: drop-shadow(0 0 50px rgba(180,0,255,1)) drop-shadow(0 0 90px rgba(0,245,255,.5)); }
}

/* GLITCH EFFECT */
.glitch-text {
  position: relative;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; right: 0;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glitch-text::before {
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch-text::after {
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%,95%,100% { transform: translateX(0); opacity: 0; }
  96% { transform: translateX(-4px); opacity: .8; filter: hue-rotate(90deg); }
  97% { transform: translateX(4px); opacity: .8; }
  98% { transform: translateX(-2px); opacity: 0; }
}
@keyframes glitch2 {
  0%,93%,100% { transform: translateX(0); opacity: 0; }
  94% { transform: translateX(3px); opacity: .8; filter: hue-rotate(-90deg); }
  95% { transform: translateX(-3px); opacity: .8; }
  96% { transform: translateX(0); opacity: 0; }
}

.hero-subtitle {
  font-size: 17px; color: var(--text2);
  line-height: 1.9; margin-bottom: 36px;
  animation: fadeUp .7s .7s ease both; opacity: 0;
}
.hero-subtitle strong { color: var(--p); font-weight: 700; }

/* ─── SEARCH BOX ─── */
.search-wrapper {
  animation: fadeUp .7s .9s ease both; opacity: 0;
}
.search-box {
  position: relative;
  display: flex; align-items: center;
  max-width: 600px; margin: 0 auto 16px;
}
.search-icon {
  position: absolute; right: 20px;
  color: var(--p); font-size: 18px; z-index: 2;
  animation: iconBounce 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes iconBounce {
  0%,100%{transform:scale(1)} 50%{transform:scale(1.2)}
}
#search {
  width: 100%; padding: 16px 55px 16px 60px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: #fff; font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  backdrop-filter: blur(10px);
  transition: all .3s;
  box-shadow: 0 0 20px rgba(140,0,255,.15);
  /* FIX: RTL direction */
  direction: rtl;
  text-align: right;
}
#search::placeholder { color: var(--text2); }
#search:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: var(--glow-md), 0 0 0 4px rgba(140,0,255,.1);
  background: rgba(140,0,255,.08);
}
.search-kbd {
  position: absolute; left: 18px;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px; font-size: 11px; color: var(--text2);
  font-family: 'Share Tech Mono', monospace;
  pointer-events: none;
}

.search-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 12px;
}
.tag-btn {
  padding: 5px 16px; border-radius: 20px; cursor: pointer;
  background: rgba(140,0,255,.1); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-family: 'Vazirmatn', sans-serif;
  transition: all .25s;
}
.tag-btn:hover {
  background: var(--p); color: #fff; border-color: var(--p);
  box-shadow: var(--glow-sm); transform: translateY(-2px);
}

/* ─── HERO CTA ─── */
.hero-cta {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeUp .7s 1.1s ease both; opacity: 0;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all .3s;
  font-family: 'Vazirmatn', sans-serif;
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
}
.cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn.primary {
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff; box-shadow: var(--glow-sm);
}
.cta-btn.primary:hover { box-shadow: var(--glow-lg); transform: translateY(-3px) scale(1.03); }
.cta-btn.secondary {
  border: 1.5px solid var(--border) !important;
  color: var(--text); background: rgba(140,0,255,.1);
  backdrop-filter: blur(8px);
}
.cta-btn.secondary:hover {
  border-color: var(--p) !important; color: var(--p);
  box-shadow: var(--glow-sm); transform: translateY(-3px);
}

/* ─── FLOATING DECORATION CARDS ─── */
.hero-floating {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  /* FIX: prevent clipping */
  overflow: hidden;
}
.float-card {
  position: absolute;
  padding: 8px 16px; border-radius: 12px;
  background: rgba(140,0,255,.12);
  border: 1px solid rgba(140,0,255,.35);
  color: var(--p); font-size: 13px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(140,0,255,.2);
}
.fc1 { top: 20%; left: 3%; animation: floatCard1 6s ease-in-out infinite; }
.fc2 { top: 30%; right: 3%; animation: floatCard2 7s ease-in-out infinite; }
.fc3 { bottom: 25%; left: 2%; animation: floatCard3 8s ease-in-out infinite; }
.fc4 { bottom: 20%; right: 4%; animation: floatCard4 6.5s ease-in-out infinite; }
@keyframes floatCard1 { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-20px) rotate(2deg)} }
@keyframes floatCard2 { 0%,100%{transform:translateY(0) rotate(2deg)} 50%{transform:translateY(-15px) rotate(-2deg)} }
@keyframes floatCard3 { 0%,100%{transform:translateY(0) rotate(1deg)} 50%{transform:translateY(-25px) rotate(-3deg)} }
@keyframes floatCard4 { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-18px) rotate(3deg)} }

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text2); font-size: 13px;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════
   📊 STATS BAR - Fixed alignment
══════════════════════════════════════════ */
.stats-bar {
  position: relative; z-index: 10;
  background: linear-gradient(90deg, rgba(12,0,32,.95), rgba(18,0,48,.95));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 0 24px;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(180,0,255,.05), transparent);
  animation: statsShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes statsShine {
  0%,100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}
.stats-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: stretch; justify-content: center;
  /* FIX: proper stat layout without overflow */
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 40px;
  position: relative;
  flex: 1; min-width: 160px;
  justify-content: center;
}
.stat-item i {
  font-size: 28px;
  color: var(--p);
  filter: drop-shadow(0 0 10px var(--p));
}
.stat-item > div {
  display: flex; flex-direction: column; align-items: flex-start;
}
.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 32px; font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px var(--p);
}
.stat-label {
  font-size: 12px; color: var(--text2);
  white-space: nowrap; margin-top: 4px;
}
.stat-divider {
  width: 1px; background: var(--border);
  margin: 16px 0;
  align-self: stretch;
}

/* ══════════════════════════════════════════
   🎠 SLIDER SECTION
══════════════════════════════════════════ */
.slider-section {
  position: relative; z-index: 10;
  padding: 80px 24px;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 18px; border-radius: 20px;
  background: rgba(140,0,255,.15);
  border: 1px solid var(--border);
  color: var(--p); font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900; color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(180,0,255,.4);
}
.section-desc {
  font-size: 16px; color: var(--text2);
}

/* ─── SLIDER WRAPPER - Fixed overflow ─── */
.slider-wrapper {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  /* FIX: prevent nav buttons from causing overflow */
  padding: 0 60px;
}

.slider-nav {
  position: absolute;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(140,0,255,.2);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--p); font-size: 18px;
  cursor: pointer;
  transition: all .3s;
  z-index: 10;
  flex-shrink: 0;
}
.slider-nav:hover {
  background: var(--p); color: #fff;
  box-shadow: var(--glow-md); transform: scale(1.1);
}
.slider-nav.prev { left: 0; }
.slider-nav.next { right: 0; }

/* FIX: Proper slider container – was breaking layout */
.slider-container {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}
.slider-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ─── SLIDER CARDS ─── */
.card {
  min-width: 100%;
  background: rgba(12,0,32,.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transition: border-color .3s;
}
.card:hover { border-color: var(--p); }
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(180,0,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.card-badge-top {
  position: absolute; top: 16px; right: 16px; z-index: 5;
}
.cbadge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.cbadge.free-badge { background: rgba(0,255,136,.15); border: 1px solid rgba(0,255,136,.4); color: var(--green); }
.cbadge.pro-badge  { background: rgba(255,215,0,.15);  border: 1px solid rgba(255,215,0,.4);  color: var(--gold); }

.card-img-wrap {
  position: relative; overflow: hidden;
  min-height: 280px;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; gap: 8px;
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-img-overlay { opacity: 1; }

.card-body {
  padding: 30px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.card-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.3;
}
.card-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: 12px;
  background: rgba(140,0,255,.15); border: 1px solid var(--border);
  font-size: 12px; color: var(--text2);
}
.price-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 700;
}
.price-tag.is-free { color: var(--green); }
.price-tag.is-paid { color: var(--gold); }
.card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; font-family: 'Vazirmatn', sans-serif;
  transition: all .3s; cursor: pointer; border: none;
  width: fit-content;
}
.card-btn.btn-free {
  background: linear-gradient(135deg, var(--green), #00cc66);
  color: #000;
}
.card-btn.btn-free:hover { box-shadow: 0 0 25px rgba(0,255,136,.5); transform: translateY(-2px); }
.card-btn.btn-paid {
  background: linear-gradient(135deg, var(--gold), #ffa500);
  color: #000;
}
.card-btn.btn-paid:hover { box-shadow: 0 0 25px rgba(255,215,0,.5); transform: translateY(-2px); }

/* SLIDER DOTS */
.slider-dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 24px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid var(--border);
  cursor: pointer; transition: all .3s;
  padding: 0;
}
.dot.active {
  width: 30px; border-radius: 5px;
  background: var(--p);
  box-shadow: var(--glow-sm);
}

/* ══════════════════════════════════════════
   🃏 ALL RESOURCES SECTION - 3D Flip Cards
══════════════════════════════════════════ */
.all-resources {
  position: relative; z-index: 10;
  padding: 80px 24px;
  min-height: 400px;
}

/* ─── FILTER BAR - Fixed layout ─── */
.filter-bar {
  max-width: 1400px; margin: 0 auto 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.filter-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px;
  background: rgba(140,0,255,.08);
  border: 1.5px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Vazirmatn', sans-serif;
  transition: all .25s;
  white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--p); color: #fff;
  border-color: var(--p); box-shadow: var(--glow-sm);
}
.sort-wrap select {
  padding: 10px 18px; border-radius: 12px;
  background: rgba(12,0,32,.9);
  border: 1.5px solid var(--border);
  color: var(--text2); font-size: 13px;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23a080cc'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
  outline: none;
  transition: border-color .3s;
}
.sort-wrap select:focus { border-color: var(--p); }

/* ─── RESOURCES GRID ─── */
.resources-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  /* FIX: proper grid that doesn't compress cards */
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr));
  gap: 28px;
  /* FIX: perspective for 3D children */
  perspective: 1500px;
}

/* ══════════════════════════════════════════
   🎴 3D FLIP RESOURCE CARD - Fully Rebuilt
══════════════════════════════════════════ */
.resource-card {
  height: var(--card-h);
  /* FIX: perspective on each card for proper 3D */
  perspective: 1000px;
  cursor: pointer;
}
.resource-card.hidden-card {
  display: none !important;
}

/* FIX: The flip container */
.rc-flip {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* FIX: Flip on hover - CRITICAL: was broken due to wrong selector */
.resource-card:hover .rc-flip {
  transform: rotateY(180deg);
}

/* FIX: Both faces must be absolute and backface-hidden */
.rc-front, .rc-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* FRONT FACE */
.rc-front {
  background: linear-gradient(160deg, rgba(18,0,48,.95) 0%, rgba(8,0,24,.98) 100%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: rotateY(0deg);
  transition: border-color .3s, box-shadow .3s;
}
.resource-card:hover .rc-front {
  border-color: var(--p);
  box-shadow: 0 0 30px rgba(180,0,255,.3), inset 0 0 30px rgba(180,0,255,.05);
}

/* 3D BORDER GLOW on hover */
.rc-front::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(180,0,255,.15) 0%, transparent 50%, rgba(0,245,255,.1) 100%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
  z-index: 0;
}
.resource-card:hover .rc-front::before { opacity: 1; }

.rc-badge {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 16px;
  font-size: 11px; font-weight: 700;
}
.rc-badge--free {
  background: rgba(0,255,136,.15);
  border: 1px solid rgba(0,255,136,.4);
  color: var(--green);
}
.rc-badge--pro {
  background: rgba(255,215,0,.15);
  border: 1px solid rgba(255,215,0,.4);
  color: var(--gold);
}

.rc-img-wrap {
  position: relative;
  height: 175px; overflow: hidden;
  flex-shrink: 0;
}
.rc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.resource-card:hover .rc-img-wrap img { transform: scale(1.08); }

/* Shine overlay on image */
.rc-img-shine {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255,255,255,.08) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform .6s;
}
.resource-card:hover .rc-img-shine { transform: translateX(100%); }

.rc-body {
  flex: 1; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
}
.rc-title {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 700; color: #fff;
  line-height: 1.4;
  /* FIX: prevent text overflow */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-desc {
  font-size: 12px; color: var(--text2); line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
}
.rc-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 10px;
  background: rgba(140,0,255,.12); border: 1px solid var(--border);
  font-size: 11px; color: var(--text2);
}
.rc-footer {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.3);
  position: relative; z-index: 1;
  gap: 8px;
}
.rc-price {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
}
.rc-price--free { color: var(--green); }
.rc-price--paid { color: var(--gold); }
.rc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 700;
  text-decoration: none; font-family: 'Vazirmatn', sans-serif;
  transition: all .3s; border: none; cursor: pointer;
  white-space: nowrap;
}
.rc-btn--free {
  background: linear-gradient(135deg, rgba(0,255,136,.9), rgba(0,180,80,.9));
  color: #000;
}
.rc-btn--free:hover { box-shadow: 0 0 20px rgba(0,255,136,.5); transform: scale(1.05); }
.rc-btn--paid {
  background: linear-gradient(135deg, rgba(255,215,0,.9), rgba(255,140,0,.9));
  color: #000;
}
.rc-btn--paid:hover { box-shadow: 0 0 20px rgba(255,215,0,.5); transform: scale(1.05); }

/* BACK FACE */
.rc-back {
  background: linear-gradient(160deg, rgba(20,0,60,.98) 0%, rgba(6,0,20,.98) 100%);
  border: 1px solid var(--p);
  box-shadow: inset 0 0 40px rgba(180,0,255,.12), 0 0 30px rgba(180,0,255,.25);
  transform: rotateY(180deg);
  display: flex; align-items: center; justify-content: center;
}
.rc-back-inner {
  padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
  width: 100%;
}
.rc-back-icon {
  font-size: 36px; color: var(--p);
  filter: drop-shadow(0 0 15px var(--p));
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.rc-back-inner h4 {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 700; color: #fff;
}
.rc-back-inner p {
  font-size: 12px; color: var(--text2); line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-back-list {
  list-style: none;
  width: 100%;
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
}
.rc-back-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text2);
  padding: 6px 0; border-bottom: 1px solid rgba(180,0,255,.1);
}
.rc-back-list li:last-child { border-bottom: none; }
.rc-back-list li i { color: var(--green); font-size: 10px; flex-shrink: 0; }

/* 3D corner accents on back */
.rc-back::before, .rc-back::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--p);
  border-style: solid;
  opacity: .6;
}
.rc-back::before {
  top: 12px; left: 12px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}
.rc-back::after {
  bottom: 12px; right: 12px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

/* Touch: tap to flip */
.resource-card.flipped .rc-flip {
  transform: rotateY(180deg);
}

/* ─── RESULT COUNT ─── */
.result-count {
  max-width: 1400px; margin: 30px auto 0;
  text-align: center; color: var(--text2); font-size: 14px;
}
.result-count strong { color: var(--p); }

/* ─── NO RESULTS ─── */
.no-results {
  text-align: center; padding: 60px 20px;
  color: var(--text2);
}
.no-results i { font-size: 48px; color: var(--p); margin-bottom: 16px; display: block; }
.no-results h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.no-results.hidden { display: none; }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text2);
}
.empty-state i { font-size: 48px; color: var(--text2); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ══════════════════════════════════════════
   ❓ FAQ SECTION
══════════════════════════════════════════ */
.faq-section {
  position: relative; z-index: 10;
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent, rgba(12,0,32,.5), transparent);
}
.faq-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: rgba(12,0,32,.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item:hover, .faq-item.open { border-color: var(--p); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 15px; font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  text-align: right; gap: 12px;
  transition: color .3s;
}
.faq-q:hover { color: var(--p); }
.faq-icon {
  flex-shrink: 0;
  transition: transform .35s;
  color: var(--p);
}
.faq-item.open .faq-icon { transform: rotate(-180deg); }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-a:not([hidden]) {
  max-height: 500px;
  padding: 0 22px 18px;
}
.faq-a p {
  font-size: 14px; color: var(--text2); line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ══════════════════════════════════════════
   🦶 FOOTER
══════════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, rgba(6,0,17,.98), rgba(2,0,10,.99));
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer-brand .brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  box-shadow: var(--glow-sm); font-size: 20px;
}
.footer-brand .brand-text {
  font-family: 'Orbitron', monospace;
  font-size: 18px; font-weight: 900; color: #fff;
}
.footer-brand .brand-accent { color: var(--p); }
.footer-brand p {
  font-size: 13px; color: var(--text2); line-height: 1.7;
}
.footer-links, .footer-social {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links h4, .footer-social h4 {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 6px;
}
.footer-links a {
  color: var(--text2); text-decoration: none; font-size: 14px;
  transition: color .3s;
  display: inline-block;
}
.footer-links a:hover { color: var(--p); }
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px;
  background: rgba(140,0,255,.1); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none; font-size: 13px;
  transition: all .3s;
}
.social-link:hover {
  background: rgba(140,0,255,.25); color: var(--p);
  border-color: var(--p); box-shadow: var(--glow-sm);
}
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--text2); }
.footer-seo-text a {
  color: var(--text2); text-decoration: none; font-size: 12px;
}
.footer-seo-text a:hover { color: var(--p); }

/* ══════════════════════════════════════════
   🔔 NOTIFY TOAST
══════════════════════════════════════════ */
.notify-container {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 9000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.notify {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: rgba(18,0,48,.95);
  border: 1px solid var(--border);
  box-shadow: var(--glow-sm), 0 8px 32px rgba(0,0,0,.5);
  backdrop-filter: blur(20px);
  color: var(--text); font-size: 14px;
  animation: notifyIn .35s cubic-bezier(.34,1.56,.64,1) both;
  pointer-events: auto;
  max-width: 320px;
}
.notify.out { animation: notifyOut .35s ease both; }
@keyframes notifyIn {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes notifyOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-120%); opacity: 0; }
}

/* ══════════════════════════════════════════
   ⬆️ BACK TO TOP
══════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 8000;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--p), var(--p2));
  border: none; border-radius: 50%;
  color: #fff; font-size: 16px; cursor: pointer;
  box-shadow: var(--glow-md);
  transition: all .3s;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
}
.back-to-top.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px) scale(1.1); box-shadow: var(--glow-lg); }

/* ══════════════════════════════════════════
   ❤️ WISHLIST PANEL
══════════════════════════════════════════ */
.wishlist-panel {
  position: fixed; top: 0; left: -380px;
  width: 360px; height: 100vh;
  background: rgba(6,0,17,.98);
  border-right: 1px solid var(--border);
  z-index: 9999;
  transition: left .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  backdrop-filter: blur(20px);
}
.wishlist-panel.open { left: 0; }
.wishlist-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.wishlist-header h3 { color: #fff; font-size: 18px; }
.wishlist-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,0,0,.1); border: 1px solid rgba(255,0,0,.3);
  border-radius: 8px; color: var(--red); cursor: pointer;
  transition: all .3s;
}
.wishlist-close:hover { background: rgba(255,0,0,.2); }
.wishlist-body {
  flex: 1; overflow-y: auto; padding: 16px;
}
.wishlist-empty {
  text-align: center; color: var(--text2);
  padding: 40px 20px; font-size: 14px;
}
.wishlist-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
}
.wishlist-overlay.hidden { display: none; }

/* ══════════════════════════════════════════
   🖥️ DEV MODE
══════════════════════════════════════════ */
.dev-mode {
  position: fixed; top: 80px; left: 12px;
  background: rgba(0,255,0,.1);
  border: 1px solid rgba(0,255,0,.3);
  color: #0f0; font-family: 'Share Tech Mono', monospace;
  font-size: 12px; padding: 6px 12px; border-radius: 8px;
  z-index: 9998;
}
.dev-mode.hidden { display: none; }

/* ══════════════════════════════════════════
   🎭 SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(.97);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Stagger delays */
.reveal:nth-child(3n+1) { transition-delay: .05s; }
.reveal:nth-child(3n+2) { transition-delay: .12s; }
.reveal:nth-child(3n+3) { transition-delay: .19s; }

/* ══════════════════════════════════════════
   📱 RESPONSIVE - Properly fixed
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .card { grid-template-columns: 1fr; }
  .card-img-wrap { min-height: 220px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --card-w: 280px;
    --card-h: 400px;
  }

  /* NAV - mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) + 1px);
    left: 0; right: 0;
    background: rgba(6,0,17,.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    backdrop-filter: blur(20px);
    z-index: 499;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* HERO */
  .hero { padding: 60px 20px 80px; }
  .fc1, .fc2 { display: none; }
  .fc3 { bottom: 15%; left: 10px; font-size: 11px; padding: 5px 10px; }
  .fc4 { bottom: 10%; right: 10px; font-size: 11px; padding: 5px 10px; }

  /* STATS */
  .stats-inner { flex-direction: column; }
  .stat-item { padding: 16px 24px; justify-content: flex-start; }
  .stat-divider { width: auto; height: 1px; margin: 0 24px; align-self: auto; }

  /* SLIDER */
  .slider-wrapper { padding: 0 44px; }
  .slider-nav { width: 38px; height: 38px; font-size: 14px; }

  /* CARDS */
  .resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  /* FILTER */
  .filter-bar { flex-direction: column; align-items: flex-start; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }

  /* FLOAT CARDS */
  .hero-floating { display: none; }
}

@media (max-width: 480px) {
  :root {
    --card-w: 260px;
    --card-h: 380px;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .card { grid-template-columns: 1fr; }
  .hero-cta { gap: 10px; }
  .cta-btn { padding: 12px 20px; font-size: 14px; }
  .slider-wrapper { padding: 0 36px; }
  .topbar-stats { display: none; }
}

/* ══════════════════════════════════════════
   🎆 MISC GAMING EFFECTS
══════════════════════════════════════════ */
/* Scanlines overlay */
.resources-grid::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.03) 2px,
    rgba(0,0,0,.03) 4px
  );
  pointer-events: none; z-index: 99998;
}

/* ─── Ripple effect ─── */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim .6s linear;
  background: rgba(180,0,255,.3);
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--p); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--p2); }

/* ─── Selection ─── */
::selection { background: rgba(180,0,255,.3); color: #fff; }
