/* 3DAssetDex Site v5.8: Buyer Guides Engine, Framed Categories & Micro-Dot Matrix */
:root {
  --bg: #0c0d10;
  --surface: #12141a;
  --card: #15171c;
  --stage: #17191f;
  --border: #232732;
  --border-hi: #353c4d;
  --text: #eef1f6;
  --muted: #8f99ad;
  --subtle: #667085;
  --accent: #10b981;
  --accent-hi: #34d399;
  --accent-dim: rgba(16, 185, 129, 0.14);
  --blue: #60a5fa;
  --blue-dim: rgba(59, 130, 246, 0.15);
  --purple: #c084fc;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --radius: 12px;
  --maxw: 1380px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; color: inherit; }

/* Hide native browser search clear button to avoid double clear icons */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Sticky Top Navigation (Fixed Height) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand-logo .dex { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links > a, .nav-drop-btn {
  padding: 6px 11px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, background .15s, border-color .15s;
}
.nav-links > a:hover, .nav-links > a.active, .nav-drop-btn:hover, .nav-drop-btn.active {
  color: var(--text);
  background: #181b23;
}
.nav-links > a.active, .nav-drop-btn.active {
  color: var(--accent-hi);
  border-color: rgba(16,185,129,.28);
  background: var(--accent-dim);
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 540px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  z-index: 120;
}
.nav-dropdown.open .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
}
.nav-dropdown-menu a:hover { background: #1d212c; color: var(--accent-hi); }
.nav-dropdown-menu .cnt { font-size: 11px; color: var(--subtle); font-weight: 600; }

.container {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px 56px;
  flex: 1;
}

/* =========================================================================
   Fixed-Height Invisible Header Slot (Zero Vertical Shifting Across Pages)
   ========================================================================= */
.hero-slot {
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px 2px 10px;
  overflow: hidden;
}
.hero-slot > * { flex-shrink: 0; }
@media (max-width: 768px) {
  .hero-slot {
    height: auto;
    min-height: 120px;
    padding: 8px 0 12px;
  }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-hi);
  background: var(--accent-dim);
  border: 1px solid rgba(16,185,129,.32);
  padding: 2px 9px;
  border-radius: 99px;
  margin-bottom: 6px;
}
.hero-slot h1 {
  font-size: clamp(21px, 2.3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .hero-slot h1 { white-space: normal; }
}
.hero-lead {
  color: #a7b2c7;
  font-size: 13.5px;
  line-height: 1.44;
  max-width: 820px;
  margin: 0 auto 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stat-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.stat-strip::-webkit-scrollbar { display: none; }
.stat-pill {
  background: #151820;
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-pill strong { color: var(--text); font-weight: 700; }
.stat-pill.accent strong { color: var(--accent-hi); }

/* Dedicated 404 Card (Preserved) */
.hero-404 {
  background: radial-gradient(120% 100% at 85% 0%, rgba(16,185,129,.08) 0%, rgba(18,20,26,0) 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  padding: 56px 24px;
  margin-top: 12px;
}
.hero-404 h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 8px 0 10px;
}
.hero-404 .hero-lead {
  margin: 0 auto 22px;
  max-width: 620px;
  display: block;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* =========================================================================
   Google-Style Embedded Search Zone & Fixed Tab Strip (Zero Card / Zero Jump)
   ========================================================================= */
.search-zone {
  padding: 28px 0 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.search-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--accent-hi);
  pointer-events: none;
  flex-shrink: 0;
}
.search-clear-btn {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.search-clear-btn.visible { display: inline-flex; }
.search-clear-btn:hover { background: #262b3a; color: var(--text); }

.dir-search-input {
  width: 100%;
  height: 46px;
  background: #161922;
  border: 1px solid #303749;
  border-radius: 99px;
  padding: 0 42px 0 44px;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dir-search-input::placeholder { color: #8c97ae; }
.dir-search-input:hover { border-color: #414b63; background: #191d28; }
.dir-search-input:focus {
  background: #1a1f2b;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.mode-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 42px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mode-strip::-webkit-scrollbar { display: none; }
.mode-tab {
  position: relative;
  height: 42px;
  padding: 0 13px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
  color: var(--accent-hi);
  border-bottom-color: var(--accent);
}
.mode-tab.rig.active { color: #93c5fd; border-bottom-color: var(--blue); }
.mode-tab.anim.active { color: #e9d5ff; border-bottom-color: var(--purple); }

/* =========================================================================
   Single-Row Horizontal Pill Rail (Fixed Height, Never Wraps Vertically)
   ========================================================================= */
.pill-rail {
  position: relative;
  height: 38px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.subcat-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 2px 0;
}
.subcat-bar::-webkit-scrollbar { display: none; }
.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: #141720;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: .15s;
}
.sub-pill:hover { border-color: var(--border-hi); color: var(--text); background: #191d28; }
.sub-pill.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-hi); }
.sub-pill .c { font-size: 11px; opacity: .72; }

.rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  background: rgba(12, 13, 16, 0.94);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.rail-arrow.visible { display: inline-flex; }
.rail-arrow:hover { border-color: var(--accent); color: var(--accent-hi); }
.rail-arrow.left { left: 0; }
.rail-arrow.right { right: 0; }

/* =========================================================================
   GPU Phasing-Noise Card Outline (Paused at Rest, 3ds Max Noise-Phase Style)
   ========================================================================= */
@property --np1 {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --np2 {
  syntax: '<angle>';
  initial-value: 145deg;
  inherits: false;
}
@keyframes noisePhaseA {
  from { --np1: 0deg; }
  to   { --np1: 360deg; }
}
@keyframes noisePhaseB {
  from { --np2: 360deg; }
  to   { --np2: 0deg; }
}

.asset-card::after,
.cat-card::after,
.faq-item::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    conic-gradient(from var(--np1) at 50% 50%,
      rgba(255,255,255,0.03) 0deg,
      rgba(255,255,255,0.28) 44deg,
      rgba(255,255,255,0.04) 102deg,
      rgba(255,255,255,0.20) 172deg,
      rgba(255,255,255,0.02) 238deg,
      rgba(255,255,255,0.24) 308deg,
      rgba(255,255,255,0.03) 360deg),
    conic-gradient(from var(--np2) at 50% 50%,
      rgba(255,255,255,0.17) 0deg,
      rgba(255,255,255,0.01) 70deg,
      rgba(255,255,255,0.25) 144deg,
      rgba(255,255,255,0.02) 220deg,
      rgba(255,255,255,0.15) 292deg,
      rgba(255,255,255,0.17) 360deg);
  background-blend-mode: screen;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.cat-card::after {
  /* Subtle cool-silver / whisper-emerald differentiation aligned with neutral UI */
  background:
    conic-gradient(from var(--np1) at 50% 50%,
      rgba(200,235,222,0.04) 0deg,
      rgba(182,232,212,0.32) 44deg,
      rgba(215,226,240,0.05) 102deg,
      rgba(220,232,244,0.24) 172deg,
      rgba(182,232,212,0.03) 238deg,
      rgba(196,238,220,0.28) 308deg,
      rgba(200,235,222,0.04) 360deg),
    conic-gradient(from var(--np2) at 50% 50%,
      rgba(220,232,244,0.20) 0deg,
      rgba(182,232,212,0.02) 70deg,
      rgba(182,232,212,0.28) 144deg,
      rgba(220,232,244,0.03) 220deg,
      rgba(210,230,242,0.18) 292deg,
      rgba(220,232,244,0.20) 360deg);
}
.asset-card:hover::after,
.cat-card:hover::after,
.faq-item:hover::after {
  opacity: 1;
  animation: noisePhaseA 9.7s linear infinite, noisePhaseB 14.3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .asset-card:hover::after,
  .cat-card:hover::after,
  .faq-item:hover::after {
    animation: none;
  }
}

/* =========================================================================
   Homepage Category Grid Section (Framed Container Matching Catalog & FAQ)
   ========================================================================= */
.home-cats-section {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 22px;
  background-color: rgba(15, 17, 23, 0.55);
  margin-bottom: 24px;
}
.home-cats-section.hidden { display: none; }
.home-cats-section > :not(.dot-canvas-layer) {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 40px;
  padding-bottom: 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(35, 39, 50, 0.85);
}
.section-head h2 { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.section-head .sub-link { font-size: 12.5px; font-weight: 700; color: var(--accent-hi); }
.section-head .sub-link:hover { text-decoration: underline; }

.cat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: #36414b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.cat-thumb {
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: radial-gradient(circle at 50% 45%, #212531 0%, #14161c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .2s ease;
}
.cat-card:hover .cat-thumb img { transform: scale(1.03); }
.cat-count-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(12,13,16,.86);
  border: 1px solid var(--border);
  color: var(--accent-hi);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.cat-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cat-body h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.cat-body p { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* =========================================================================
   Framed Containers + Crisp Micro-Dot Matrix Canvas (11px Density, Zero Blur)
   ========================================================================= */
.dot-host {
  position: relative;
}
.dot-canvas-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: clip;
  z-index: 0;
}
.dot-canvas {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.catalog-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 22px;
  background-color: rgba(15, 17, 23, 0.55);
}

/* Merged Fixed-Height Utility Bar Inside Top of Catalog Frame */
.catalog-utility {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(35, 39, 50, 0.85);
}
@media (max-width: 720px) {
  .catalog-utility { flex-wrap: wrap; }
}
.utility-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}
.utility-heading {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs a {
  color: #c2cad8;
  padding: 2px 5px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.breadcrumbs a:hover { color: var(--accent-hi); background: #1c202c; }
.breadcrumbs .sep { color: var(--subtle); font-weight: 400; }
.breadcrumbs .crumb-current {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.breadcrumbs .crumb-dynamic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-hi);
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.breadcrumbs .crumb-dynamic:hover { background: rgba(16, 185, 129, 0.24); }

.utility-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.inline-reset-btn {
  display: none;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: var(--accent-dim);
  color: var(--accent-hi);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}
.inline-reset-btn.visible { display: inline-flex; }
.inline-reset-btn:hover { background: rgba(16, 185, 129, 0.24); }

.results-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 4px;
}

/* S / M / L Grid Density Toggle */
.density-toggle {
  display: inline-flex;
  align-items: center;
  background: #141720;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.density-btn {
  width: 26px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .12s;
}
.density-btn:hover { color: var(--text); background: #202532; }
.density-btn.active {
  background: var(--accent-dim);
  color: var(--accent-hi);
}
@media (max-width: 640px) {
  .density-toggle { display: none; }
}

/* Floating Sort & Filter Popover (Zero Layout Shift) */
.refine-wrap { position: relative; }
.refine-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: #171b24;
  border: 1px solid var(--border-hi);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}
.refine-btn:hover, .refine-btn.open {
  border-color: var(--accent);
  color: var(--accent-hi);
  background: var(--accent-dim);
}
.refine-badge {
  display: none;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #052e16;
  font-size: 10.5px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}
.refine-badge.visible { display: inline-flex; }

.refine-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 316px;
  max-width: calc(100vw - 36px);
  background: #141720;
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.78);
  z-index: 120;
  flex-direction: column;
  gap: 10px;
}
.refine-popover.open { display: flex; }
.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pop-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pop-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.pop-field select {
  width: 100%;
  background: #0f1219;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.pop-field select:focus { border-color: var(--accent); }
.pop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.pop-reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pop-reset-btn:hover { color: var(--text); border-color: var(--border-hi); background: #1c202c; }
.pop-done-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #052e16;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.pop-done-btn:hover { background: var(--accent-hi); }

/* Asset Grid & Cards */
.asset-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.asset-grid.density-s {
  grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
  gap: 12px;
}
.asset-grid.density-s .card-stage { padding: 8px; }
.asset-grid.density-s .card-body { padding: 9px 10px 10px; gap: 5px; }
.asset-grid.density-s .card-title { font-size: 12.5px; }
.asset-grid.density-s .card-callout { font-size: 11px; }
.asset-grid.density-s .cta-link,
.asset-grid.density-s .info-btn { padding: 5px 8px; font-size: 11.5px; }

.asset-grid.density-l {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.asset-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.asset-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.card-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: radial-gradient(circle at 50% 45%, #212531 0%, #14161c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
  overflow: hidden;
}
.card-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .2s ease;
}
.asset-card:hover .card-stage img { transform: scale(1.03); }

.badge-rank {
  position: absolute; top: 9px; left: 9px;
  background: rgba(12, 13, 16, 0.86); border: 1px solid rgba(16,185,129,.4);
  color: var(--accent-hi); font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
}
.badge-price {
  position: absolute; top: 9px; right: 9px;
  background: rgba(12, 13, 16, 0.88); border: 1px solid var(--border);
  color: #eef1f6; font-size: 10.5px; font-weight: 800;
  padding: 2px 8px; border-radius: 6px; letter-spacing: .02em;
}
.badge-price.free { color: var(--accent-hi); border-color: rgba(16,185,129,.35); }

.card-body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-artist {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-callout { font-size: 11.5px; color: #a7b2c7; line-height: 1.35; }
.pill-row { display: flex; flex-wrap: wrap; gap: 4px; }
.m-badge {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  background: #101218; color: #aeb8cc; border: 1px solid var(--border);
}
.m-badge.pbr { background: var(--accent-dim); color: var(--accent-hi); border-color: rgba(16,185,129,.35); }
.m-badge.rig { background: var(--blue-dim); color: #93c5fd; border-color: rgba(96,165,250,.35); }
.m-badge.anim { background: var(--purple-dim); color: #e9d5ff; border-color: rgba(192,132,252,.35); }
.m-badge.fmt { background: #191d27; color: #cbd5e1; border-color: #293040; }

.card-actions {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #1e222d;
  display: flex;
  gap: 6px;
}
.cta-link {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: #1b2220;
  color: var(--accent-hi);
  border: 1px solid rgba(16,185,129,.32);
  transition: .15s;
}
.cta-link:hover { background: var(--accent); color: #052e16; border-color: var(--accent); }
.info-btn {
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  background: #191d27;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
}
.info-btn:hover { color: var(--text); border-color: var(--border-hi); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 700;
  border: 1px solid var(--border-hi); background: #191d27; color: var(--text);
  cursor: pointer; transition: .15s;
}
.btn:hover { background: #222836; border-color: #4a556e; }
.btn.primary { background: var(--accent); color: #052e16; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.load-more-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.load-more-wrap:empty { margin-top: 0; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 20px;
  background: rgba(18, 20, 26, 0.85);
  border: 1px dashed var(--border-hi);
  border-radius: 12px;
  color: var(--muted);
}

.editorial-section {
  position: relative;
  margin-top: 32px;
  background: rgba(15, 17, 23, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.editorial-section > :not(.dot-canvas-layer) {
  position: relative;
  z-index: 1;
}
.editorial-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.faq-grid.two-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .faq-grid.two-col { grid-template-columns: 1fr; }
}
.faq-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item:hover {
  border-color: var(--border-hi);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.faq-item h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.faq-item p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Inspect Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-panel {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 16px; width: 760px; max-width: 100%; max-height: 90vh;
  overflow-y: auto; display: grid; grid-template-columns: 1fr 1.15fr;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
@media (max-width: 700px) { .modal-panel { grid-template-columns: 1fr; } }
.modal-stage {
  background: radial-gradient(circle, #232834 0%, #14161c 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; min-height: 280px;
}
.modal-stage img { max-width: 100%; max-height: 360px; object-fit: contain; }
.modal-info { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.modal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.modal-close {
  background: #1b1f2a; border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); border-color: var(--border-hi); }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 12.5px; align-items: baseline; }
.spec-list dt { color: var(--subtle); font-weight: 600; }
.spec-list dd { color: var(--text); display: flex; flex-wrap: wrap; gap: 5px; }
.spec-chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  background: #1a1e2a; border: 1px solid var(--border); color: #dce3f0;
  cursor: pointer; transition: .15s;
}
.spec-chip:hover { border-color: var(--accent); color: var(--accent-hi); background: var(--accent-dim); }
.spec-artist-btn {
  background: none; border: none; padding: 0; font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(143,153,173,.4);
  text-underline-offset: 2px;
}
.spec-artist-btn:hover { color: var(--accent-hi); text-decoration-color: var(--accent-hi); }
.tag-chip-btn {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: #101218; color: #aeb8cc; border: 1px solid var(--border);
  cursor: pointer; transition: .15s;
}
.tag-chip-btn:hover { border-color: var(--accent); color: var(--accent-hi); background: var(--accent-dim); }

/* =========================================================================
   Buyer Guides Hub & Article Layout (Aligned with Framed HUD Aesthetic)
   ========================================================================= */
.guide-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.guide-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    conic-gradient(from var(--np1) at 50% 50%,
      rgba(255,255,255,0.03) 0deg,
      rgba(255,255,255,0.28) 44deg,
      rgba(255,255,255,0.04) 102deg,
      rgba(255,255,255,0.20) 172deg,
      rgba(255,255,255,0.02) 238deg,
      rgba(255,255,255,0.24) 308deg,
      rgba(255,255,255,0.03) 360deg),
    conic-gradient(from var(--np2) at 50% 50%,
      rgba(255,255,255,0.17) 0deg,
      rgba(255,255,255,0.01) 70deg,
      rgba(255,255,255,0.25) 144deg,
      rgba(255,255,255,0.02) 220deg,
      rgba(255,255,255,0.15) 292deg,
      rgba(255,255,255,0.17) 360deg);
  background-blend-mode: screen;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.guide-card:hover::after {
  opacity: 1;
  animation: noisePhaseA 9.7s linear infinite, noisePhaseB 14.3s linear infinite;
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-hi);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.guide-meta .g-dot { color: var(--subtle); }
.guide-meta .g-dim { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.guide-card h3 { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.3; }
.guide-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.guide-card .guide-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-hi);
}

.guide-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  background: rgba(15, 17, 23, 0.55);
  margin-top: 22px;
}
.guide-frame > :not(.dot-canvas-layer) {
  position: relative;
  z-index: 1;
}
.guide-frame h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--text);
}
.guide-prose {
  color: #b4bed1;
  font-size: 14px;
  line-height: 1.65;
  max-width: 960px;
}
.guide-prose + .guide-prose { margin-top: 10px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.video-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.video-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0b0e;
  border-bottom: 1px solid var(--border);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.video-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.video-body h3 { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.3; }
.video-body p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Minimal Aligned Footer (No Redundant Nav Links) */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 12px;
  align-items: center;
}
