/* ============================================================================
   NERVESSTORE SIGNATURE MODERN OBSIDIAN DESIGN SYSTEM (2026 REDESIGN)
   Preserves 100% of DOM IDs, JS hooks, catalog data, & customer library logic.
   ============================================================================ */

:root {
  --nrv-bg: #06070c;
  --nrv-bg-elevated: #0d1018;
  --nrv-surface: rgba(15, 19, 30, 0.78);
  --nrv-surface-solid: #111624;
  --nrv-border: rgba(255, 255, 255, 0.085);
  --nrv-border-strong: rgba(255, 255, 255, 0.16);
  --nrv-pink: #ff2a85;
  --nrv-orange: #ff9a3c;
  --nrv-coral: #ff5e62;
  --nrv-grad: linear-gradient(135deg, #ff2a85 0%, #ff6b4a 55%, #ff9a3c 100%);
  --nrv-grad-soft: linear-gradient(135deg, rgba(255, 42, 133, 0.16) 0%, rgba(255, 154, 60, 0.14) 100%);
  --nrv-text: #f8fafc;
  --nrv-text-muted: #94a3b8;
  --nrv-font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --nrv-font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Harmonize theme variables globally */
  --bg: #06070c;
  --bg2: #0d1018;
  --bg3: #131826;
  --bg4: #1a2133;
  --red: #ff2a85;
  --red-dark: #e01b6f;
  --red-glow: rgba(255, 42, 133, 0.36);
  --cyan: #ff7a45;
  --font-display: var(--nrv-font-display);
  --font-body: var(--nrv-font-body);
}

/* 1. Ambient Canvas & Scrollbar */
html {
  background-color: var(--nrv-bg) !important;
}

body {
  background-color: var(--nrv-bg) !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(255, 42, 133, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 88% 8%, rgba(255, 154, 60, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 50% 95%, rgba(99, 102, 241, 0.06) 0%, transparent 60%) !important;
  background-attachment: scroll !important;
  font-family: var(--nrv-font-body) !important;
  color: var(--nrv-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#fx-canvas {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: #080a10;
}
::-webkit-scrollbar-track {
  background: #080a10;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff2a85, #ff9a3c);
  border-radius: 99px;
  border: 2px solid #080a10;
}

/* 2. Typography Hierarchy */
h1, h2, h3, .sec-title, .nav-logo-text, .stat-num, .why-title, .step-title {
  font-family: var(--nrv-font-display) !important;
  letter-spacing: -0.025em !important;
}

.sec-title span {
  background: var(--nrv-grad) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.sec-sub {
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.sec-line {
  width: 56px !important;
  height: 3px !important;
  border-radius: 99px !important;
  background: var(--nrv-grad) !important;
  margin: 14px auto 16px !important;
}

/* 3. Floating Glass Navbar */
.navbar {
  padding: 14px 20px 0 !important;
}

.nav-bar {
  max-width: 1380px !important;
  height: 62px !important;
  padding: 0 14px 0 18px !important;
  background: rgba(11, 13, 22, 0.72) !important;
  backdrop-filter: blur(26px) saturate(175%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(175%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
}

.navbar.scrolled .nav-bar {
  background: rgba(9, 11, 19, 0.90) !important;
  border-color: rgba(255, 42, 133, 0.24) !important;
}

.nav-logo img {
  height: 32px !important;
  width: 32px !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 16px rgba(255, 42, 133, 0.30) !important;
}

.nav-logo-text {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
}

.nav-logo-text span,
.mobile-drawer-brand span span,
footer span span {
  background: var(--nrv-grad) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
}

.nav-menu {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 3px !important;
}

.nav-link {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  padding: 7px 13px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  transform: none !important;
}

.nav-link.active {
  color: #ffffff !important;
  background: var(--nrv-grad-soft) !important;
  border-color: rgba(255, 42, 133, 0.42) !important;
  box-shadow: 0 2px 14px rgba(255, 42, 133, 0.18) !important;
}

#nav-redeem {
  color: #ff9a3c !important;
  font-weight: 700 !important;
}
#nav-redeem.active {
  color: #ffffff !important;
}

.nav-hak-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 11px !important;
}

.btn-nav-itemsatis {
  background: linear-gradient(135deg, rgba(255, 154, 60, 0.18), rgba(255, 42, 133, 0.16)) !important;
  border: 1px solid rgba(255, 154, 60, 0.45) !important;
  color: #fed7aa !important;
  border-radius: 11px !important;
  padding: 8px 14px !important;
}

.btn-nav-itemsatis:hover {
  background: var(--nrv-grad) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(255, 42, 133, 0.35) !important;
}

.btn-nav-login {
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 4. Primary & Secondary Buttons */
.btn-primary,
.pop-buy,
.game-btn-buy {
  background: var(--nrv-grad) !important;
  color: #ffffff !important;
  font-family: var(--nrv-font-body) !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(255, 42, 133, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
}

.btn-primary:hover,
.pop-buy:hover,
.game-btn-buy:hover {
  filter: brightness(1.07);
  box-shadow: 0 12px 30px rgba(255, 42, 133, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.btn-secondary,
.game-btn-guard {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  font-family: var(--nrv-font-body) !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.2s ease !important;
}

.btn-secondary:hover,
.game-btn-guard:hover {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 154, 60, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

/* 5. Hero Section (Modern Editorial Showcase) */
#hero-bg-layer .hbg-overlay {
  background:
    linear-gradient(180deg, rgba(6, 7, 12, 0.72) 0%, rgba(6, 7, 12, 0.52) 45%, rgba(6, 7, 12, 0.94) 85%, #06070c 100%),
    radial-gradient(ellipse 75% 55% at 50% 42%, rgba(255, 42, 133, 0.08) 0%, rgba(6, 7, 12, 0.85) 100%) !important;
}

.hero {
  min-height: 88vh !important;
  padding: 128px 5% 116px !important;
}

.hero-badge, .faq-tag {
  background: rgba(15, 18, 28, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  border-radius: 99px !important;
}

.hero-badge.b-green {
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #6ee7b7 !important;
}
.hero-badge.b-red {
  border-color: rgba(255, 42, 133, 0.45) !important;
  color: #fda4af !important;
}
.hero-badge.b-gold {
  border-color: rgba(255, 154, 60, 0.45) !important;
  color: #fde68a !important;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.65) !important;
}

.hero h1 .accent {
  background: linear-gradient(125deg, #ffffff 0%, #ff5ca8 52%, #ff9a3c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 6px 24px rgba(255, 42, 133, 0.25)) !important;
}

.hero-sub {
  color: #cbd5e1 !important;
  font-size: clamp(15px, 1.5vw, 17px) !important;
  max-width: 580px !important;
}

/* Command-Bar Style Hero Live Search */
.hero-quick-search-wrap {
  max-width: 600px !important;
  margin-top: 30px !important;
}

.hero-quick-search-box {
  background: rgba(13, 16, 26, 0.86) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  padding: 6px 8px 6px 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.hero-quick-search-box:focus-within {
  border-color: rgba(255, 42, 133, 0.65) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.72), 0 0 0 3px rgba(255, 42, 133, 0.16) !important;
}

.hero-quick-search-box .hqs-icon {
  color: #ff7a45 !important;
}

.hero-quick-search-btn {
  background: var(--nrv-grad) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: var(--nrv-font-body) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
}

.hero-search-dd {
  background: rgba(12, 15, 24, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9) !important;
}

.hqs-row:hover {
  background: rgba(255, 42, 133, 0.11) !important;
}

.hero-dot.active {
  background: var(--nrv-grad) !important;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.65) !important;
}

.hero-arrow:hover {
  background: rgba(255, 42, 133, 0.25) !important;
  border-color: rgba(255, 42, 133, 0.6) !important;
}

/* 6. Stats Floating Glass Bento */
.stats-card {
  background: rgba(13, 16, 26, 0.84) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.stat-num {
  background: var(--nrv-grad) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}
.stat-num em {
  -webkit-text-fill-color: #ff9a3c !important;
}

/* 7. Bento Feature Cards (Neden NervesStore & Nasıl Çalışır & Rehber) */
.why-card,
.step-card,
.redeem-step-card {
  background: linear-gradient(180deg, rgba(17, 21, 34, 0.82) 0%, rgba(11, 14, 22, 0.92) 100%) !important;
  border: 1px solid var(--nrv-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.why-card:hover,
.step-card:hover,
.redeem-step-card:hover,
.glow-hover:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 42, 133, 0.42) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.72), 0 0 28px rgba(255, 42, 133, 0.14) !important;
}

.why-badge .ico-tile,
.step-badge-wrap .ico-tile {
  background: var(--nrv-grad-soft) !important;
  border: 1px solid rgba(255, 42, 133, 0.30) !important;
  color: #ff7a45 !important;
  border-radius: 16px !important;
}

.step-num-badge {
  background: var(--nrv-grad) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 42, 133, 0.45) !important;
}

/* 8. Game Catalog & Carousel Cards (Untouched Data, Refined Surface) */
.pop-card,
.game-card,
.my-game-card {
  background: linear-gradient(180deg, rgba(18, 22, 35, 0.92) 0%, rgba(10, 12, 20, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.pop-card:hover,
.game-card:hover,
.my-game-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 107, 74, 0.55) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.78), 0 0 26px rgba(255, 42, 133, 0.18) !important;
}

.pop-card img,
.game-card img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.pop-card:hover img,
.game-card:hover img {
  transform: scale(1.04) !important;
}

.game-pop {
  background: rgba(8, 10, 16, 0.86) !important;
  border: 1px solid rgba(255, 154, 60, 0.42) !important;
  color: #fed7aa !important;
  border-radius: 9px !important;
}

/* Category Dock & Filter Pills */
.cyber-category-dock {
  background: rgba(13, 16, 26, 0.82) !important;
  backdrop-filter: blur(22px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  padding: 12px 14px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.filter-pill {
  font-family: var(--nrv-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 9px 15px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 154, 60, 0.45) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.filter-pill.active {
  background: var(--nrv-grad) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 42, 133, 0.34) !important;
}

.filter-pill.active .pill-badge {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

/* Sort Select & Catalog Search */
#catalogSearchInput,
#redeemSearchInput,
#sortSelect {
  background: rgba(15, 19, 30, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  font-family: var(--nrv-font-body) !important;
  color: #ffffff !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #111624 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}

#catalogSearchInput:focus,
#redeemSearchInput:focus,
#redeemKeyInput:focus,
#personalKeyInput:focus,
#claimKeyInput:focus,
#guestRedeemKeyInput:focus,
#modalKeyInput:focus {
  border-color: #ff2a85 !important;
  box-shadow: 0 0 0 3px rgba(255, 42, 133, 0.18) !important;
}

/* 9. Modals, Redeem Center, FAQ, Reviews, Banner & Footer */
.bm-box,
.redeem-input-card,
.redeem-guest-card,
#opssActiveKeyBanner {
  background: rgba(13, 16, 26, 0.95) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.bm-box::before,
.rev-box::before {
  background: linear-gradient(90deg, transparent, #ff2a85, #ff9a3c, transparent) !important;
}

.rev-box {
  background: rgba(13, 16, 26, 0.78) !important;
  border: 1px solid var(--nrv-border) !important;
  border-radius: 22px !important;
}

.faq-item {
  background: rgba(14, 17, 27, 0.82) !important;
  border: 1px solid var(--nrv-border) !important;
  border-radius: 16px !important;
}

.faq-cat {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--nrv-border) !important;
  border-radius: 11px !important;
  font-family: var(--nrv-font-body) !important;
}

.faq-cat.active {
  background: var(--nrv-grad) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(255, 42, 133, 0.30) !important;
}

.guard-subtab-btn.active {
  background: var(--nrv-grad) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(255, 42, 133, 0.34) !important;
}

.live-toast {
  background: rgba(13, 16, 26, 0.94) !important;
  border: 1px solid rgba(255, 42, 133, 0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.82) !important;
}

.live-toast-ico {
  background: var(--nrv-grad) !important;
  color: #ffffff !important;
}

footer {
  background: #040509 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 10. Mobile Navigation Polish */
.mtop-tab {
  font-family: var(--nrv-font-body) !important;
  background: rgba(15, 18, 28, 0.88) !important;
  border-radius: 12px !important;
}

.mtop-tab.active,
.mtop-tab:hover {
  background: var(--nrv-grad-soft) !important;
  border-color: rgba(255, 42, 133, 0.5) !important;
  box-shadow: 0 4px 14px rgba(255, 42, 133, 0.22) !important;
}

.mtop-tab.active i {
  color: #ff7a45 !important;
  filter: none !important;
}

.mobile-bottom-bar {
  background: rgba(10, 12, 20, 0.94) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.bnav-item.active {
  color: #ff7a45 !important;
}

.bnav-icon-guard {
  background: var(--nrv-grad) !important;
  box-shadow: 0 6px 20px rgba(255, 42, 133, 0.42) !important;
}

.mobile-drawer {
  background: #090b12 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.nav-toggle {
  border-color: rgba(255, 42, 133, 0.35) !important;
  color: #ff7a45 !important;
}

@media (max-width: 768px) {
  .navbar {
    padding: 8px 10px 0 !important;
  }
  .nav-bar {
    height: 54px !important;
    padding: 0 10px !important;
    border-radius: 16px !important;
    gap: 6px !important;
    max-width: 100% !important;
  }
  .nav-logo {
    gap: 6px !important;
    min-width: 0 !important;
  }
  .nav-logo img {
    height: 28px !important;
    width: 28px !important;
  }
  .nav-logo-text {
    font-size: 18px !important;
  }
  .nav-right-wrap {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }
  .nav-actions {
    gap: 5px !important;
  }
  .nav-hak-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .btn-nav-login {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
  }
  .nav-toggle {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }
}

/* Performance: Eliminate scroll-blocking backdrop-filters on cards & enable offscreen culling */
.btn-secondary,
.game-btn-guard,
.stats-card,
.cyber-category-dock,
.hero-badge,
.faq-tag,
.mtop-tab,
.pop-strip.strip-featured,
.cover-strip.strip-featured,
.game-pop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.game-card,
.my-game-card {
  content-visibility: auto;
  contain-intrinsic-size: 230px 350px;
}
