/* ── ZORG INDUSTRIES · style.css ─────────────────────────────────────────── */

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

:root {
  /* Gold — Zorg branding only */
  --gold:        #c9a74a;
  --gold-bright: #e8c864;
  --gold-dim:    #8a7030;
  --gold-glow:   rgba(201,167,74,0.18);

  /* Cyberpunk UI chrome */
  --cyber:       #00e5ff;
  --cyber-dim:   rgba(0,229,255,0.12);
  --cyber-glow:  0 0 10px rgba(0,229,255,0.4);
  --cyber-green: #00ff41;
  --cyber-pink:  #ff2d78;

  /* Backgrounds */
  --bg:          #020408;
  --bg-card:     #05060f;
  --bg-raised:   #0a0b18;
  --bg-filter:   #000;

  /* Text */
  --text:        #b8ccd8;
  --text-muted:  #4a6070;
  --text-dim:    rgba(0,229,255,0.22);

  /* Borders */
  --border:      rgba(0,229,255,0.15);
  --border-gold: rgba(201,167,74,0.2);
  --border-dim:  rgba(0,229,255,0.06);

  /* Layout */
  --nav-h:       60px;
  --content-w:   1280px;
  --radius:      0px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── Zorg name highlight ──────────────────────────────────────────────────── */
.zorg-name {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(201,167,74,0.5);
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--cyber); color: #000;
  padding: 0.5rem 1rem; font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ── Cyber Status Bar ────────────────────────────────────────────────────── */
.cyber-statusbar {
  background: #000;
  border-bottom: 1px solid var(--cyber);
  box-shadow: 0 0 24px rgba(0,229,255,0.18);
  padding: 0.28rem 1.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}
.statusbar-date { color: var(--cyber); white-space: nowrap; }
.statusbar-net {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(201,167,74,0.6);
  text-align: center;
  flex: 1;
  white-space: nowrap;
  font-family: Georgia, serif;
  letter-spacing: 0.25em;
}
.statusbar-access { color: var(--cyber-green); white-space: nowrap; }
@media (max-width: 640px) { .statusbar-net { display: none; } }
@media (max-width: 420px) { .statusbar-access { display: none; } }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(2,4,8,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cyber);
  box-shadow: 0 0 30px rgba(0,229,255,0.1), 0 2px 0 rgba(0,229,255,0.04);
}
.nav-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.nav-logo-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(201,167,74,0.55), 0 0 40px rgba(201,167,74,0.2);
}
.nav-logo-sub {
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
.nav-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-style: italic;
  display: none;
  font-family: Georgia, serif;
}
@media (min-width: 640px) { .nav-tagline { display: block; } }
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-count { color: var(--cyber); font-weight: 700; text-shadow: var(--cyber-glow); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(201,167,74,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 40%, rgba(0,229,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyber);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(201,167,74,0.45), 0 0 70px rgba(201,167,74,0.15);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.h1-sub {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Courier New', monospace;
  font-size: 0.38em;
  letter-spacing: 0.45em;
  color: var(--cyber);
  text-shadow: 0 0 12px rgba(0,229,255,0.5);
  font-weight: 400;
}
.hero-lead {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.8;
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.64rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 800px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,229,255,0.07);
  border-left: 2px solid rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.02);
}

/* ── Filters ─────────────────────────────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 80;
  background: #000;
  border-bottom: 1px solid rgba(0,229,255,0.2);
  padding: 0.85rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,229,255,0.06);
}
.filter-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyber);
  min-width: 50px;
  flex-shrink: 0;
  opacity: 0.55;
}
.filter-chip {
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}
.filter-chip:hover { color: var(--cyber); border-color: var(--cyber); box-shadow: 0 0 8px rgba(0,229,255,0.2); }
.filter-chip.active {
  color: #000;
  background: var(--cyber);
  border-color: var(--cyber);
  box-shadow: 0 0 14px rgba(0,229,255,0.5);
  font-weight: 700;
}
.filter-search {
  background: #000;
  border: 1px solid rgba(0,229,255,0.12);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0;
  outline: none;
  min-width: 200px;
  flex: 1;
  max-width: 320px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
}
.filter-search::placeholder { color: var(--text-muted); opacity: 0.5; }
.filter-search:focus { border-color: var(--cyber); box-shadow: 0 0 10px rgba(0,229,255,0.15); }
.filter-price-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-price-wrap input[type="range"] {
  accent-color: var(--cyber);
  width: 160px;
  cursor: pointer;
}
.filter-price-val {
  font-size: 0.68rem;
  color: var(--cyber);
  font-family: 'Courier New', monospace;
  min-width: 80px;
  text-shadow: var(--cyber-glow);
}
.filter-sort {
  background: #000;
  border: 1px solid rgba(0,229,255,0.12);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-sort:focus { border-color: var(--cyber); }

/* ── Catalogue header ────────────────────────────────────────────────────── */
.catalogue-header {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.catalogue-stats {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.catalogue-stats strong { color: var(--cyber); text-shadow: var(--cyber-glow); }

/* ── Weapon grid ─────────────────────────────────────────────────────────── */
.catalogue-grid {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(0,229,255,0.05);
}
@media (max-width: 480px) { .catalogue-grid { grid-template-columns: 1fr; } }

.weapon-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: background 0.15s, box-shadow 0.15s;
  position: relative;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: background 0.15s, outline-color 0.15s, box-shadow 0.15s;
}
.weapon-card:hover {
  background: var(--bg-raised);
  outline-color: rgba(0,229,255,0.35);
  box-shadow: 0 0 20px rgba(0,229,255,0.07);
}

.weapon-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.weapon-img::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
.weapon-img-icon { position: relative; z-index: 1; filter: grayscale(0.2); }

/* Era backgrounds */
.era-prehistoric .weapon-img::before { background: radial-gradient(ellipse at center, #6b4c1a 0%, #1a0f00 100%); }
.era-ancient .weapon-img::before     { background: radial-gradient(ellipse at center, #7a5a20 0%, #1a1000 100%); }
.era-medieval .weapon-img::before    { background: radial-gradient(ellipse at center, #2a4060 0%, #000a14 100%); }
.era-earlymodern .weapon-img::before { background: radial-gradient(ellipse at center, #3a3040 0%, #0a0010 100%); }
.era-modern .weapon-img::before      { background: radial-gradient(ellipse at center, #2a3a20 0%, #000a00 100%); }
.era-contemporary .weapon-img::before{ background: radial-gradient(ellipse at center, #0a2a3a 0%, #000510 100%); }

.weapon-body { padding: 1rem 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }

.weapon-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.badge {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 0;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}
.badge-era   { background: rgba(0,229,255,0.05); color: rgba(0,229,255,0.45); border: 1px solid rgba(0,229,255,0.1); }
.badge-type  { color: rgba(255,255,255,0.65); }

.weapon-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.weapon-period {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--cyber);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.weapon-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.weapon-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,229,255,0.08);
  margin-top: auto;
}
.weapon-price {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,167,74,0.5);
}
.weapon-price.classified {
  color: rgba(0,229,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
}
.weapon-price-note {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  line-height: 1.3;
  opacity: 0.55;
}
.weapon-origin {
  font-size: 0.6rem;
  color: rgba(0,229,255,0.35);
  text-align: right;
  letter-spacing: 0.04em;
}
.inquire-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.75rem;
  background: none;
  border: 1px solid rgba(0,229,255,0.18);
  color: rgba(0,229,255,0.45);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  border-radius: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.inquire-btn:hover {
  border-color: var(--cyber);
  color: var(--cyber);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}

/* Card real image */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) sepia(0.35) hue-rotate(155deg) saturate(1.8) brightness(0.72) contrast(1.1);
  opacity: 0.85;
  mix-blend-mode: screen;
  display: block;
}
.weapon-img:has(.card-img) .weapon-img-icon { opacity: 0; }
.weapon-img:has(.card-img)::before { opacity: 0.55; }

/* ── Video button ─────────────────────────────────────────────────────────── */
.video-btn {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: rgba(0,229,255,0.04);
  border: none;
  border-top: 1px solid rgba(0,229,255,0.2);
  color: var(--cyber);
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  text-shadow: 0 0 8px rgba(0,229,255,0.45);
  box-shadow: inset 0 0 12px rgba(0,229,255,0.07);
}
.video-btn:hover {
  background: rgba(0,229,255,0.1);
  box-shadow: 0 0 14px rgba(0,229,255,0.25), inset 0 0 8px rgba(0,229,255,0.08);
  color: #fff;
  text-shadow: 0 0 10px var(--cyber);
}

/* ── Video modal ──────────────────────────────────────────────────────────── */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,4,8,0.92);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-modal {
  width: min(900px, 94vw);
  background: var(--bg-card);
  border: 1px solid var(--cyber);
  box-shadow: 0 0 50px rgba(0,229,255,0.2), 0 0 100px rgba(0,229,255,0.07);
  display: flex;
  flex-direction: column;
}
.video-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(0,229,255,0.18);
  background: rgba(0,229,255,0.03);
  flex-shrink: 0;
}
.video-modal-title {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyber);
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.video-modal-close {
  background: none;
  border: 1px solid rgba(0,229,255,0.28);
  color: var(--cyber);
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.12s, box-shadow 0.12s;
}
.video-modal-close:hover {
  background: rgba(0,229,255,0.1);
  box-shadow: 0 0 12px rgba(0,229,255,0.3);
}
.video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-footer {
  padding: 0.38rem 0.85rem;
  border-top: 1px solid rgba(0,229,255,0.1);
  font-size: 0.52rem;
  color: rgba(0,229,255,0.28);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* Portrait / Shorts modal */
.video-overlay.is-portrait .video-modal {
  width: min(380px, 94vw);
}
.video-overlay.is-portrait .video-iframe-wrap {
  padding-bottom: 177.78%; /* 9:16 */
}

/* Detail panel video button */
.detail-video-btn {
  margin-top: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 0 16px rgba(0,229,255,0.12), inset 0 0 10px rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.3);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
  color: rgba(0,229,255,0.4);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(0,229,255,0.12);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(0,229,255,0.3);
  letter-spacing: 0.07em;
}
footer strong {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,167,74,0.55);
  font-family: Georgia, serif;
  letter-spacing: 0.2em;
}
footer a { color: rgba(0,229,255,0.38); text-decoration: none; }
footer a:hover { color: var(--cyber); }
footer em { font-style: italic; color: rgba(0,229,255,0.38); }

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.legal-kicker {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyber);
  opacity: 0.65;
  display: block;
  margin-bottom: 0.75rem;
}
.legal-h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,167,74,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.legal-docid {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(0,229,255,0.35);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201,167,74,0.15);
}
.legal-section {
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(0,229,255,0.2);
}
.legal-section:hover {
  border-left-color: rgba(0,229,255,0.45);
}
.legal-h2 {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyber);
  text-shadow: 0 0 8px rgba(0,229,255,0.35);
  margin-bottom: 1rem;
}
.legal-h2::before {
  content: '◈ ';
  opacity: 0.7;
}
.legal-fields {
  display: grid;
  gap: 0.45rem;
}
.legal-field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.5rem;
  font-size: 0.78rem;
  align-items: baseline;
}
.legal-field-key {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.1em;
}
.legal-field-val {
  color: var(--text);
}
.legal-placeholder {
  color: var(--gold);
  opacity: 0.7;
  font-style: italic;
}
.legal-p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-p a {
  color: rgba(0,229,255,0.55);
  text-decoration: none;
}
.legal-p a:hover { color: var(--cyber); }
.legal-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(0,229,255,0.03);
  border: 1px solid rgba(0,229,255,0.1);
  font-size: 0.7rem;
  color: rgba(0,229,255,0.45);
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.legal-note::before {
  content: '// ';
  color: var(--cyber-green);
  opacity: 0.7;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,229,255,0.45);
  text-decoration: none;
  border: 1px solid rgba(0,229,255,0.18);
  padding: 0.4rem 0.85rem;
  margin-bottom: 2.5rem;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.legal-back:hover {
  color: var(--cyber);
  border-color: var(--cyber);
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
@media (max-width: 520px) {
  .legal-field { grid-template-columns: 1fr; gap: 0.1rem; }
  .legal-field-key { font-size: 0.55rem; opacity: 0.6; }
}

/* Footer legal links */
.footer-legal {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,229,255,0.28);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--cyber); }

/* ── Focus ───────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--cyber); outline-offset: 2px; }

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Detail Panel ────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

.weapon-card { cursor: pointer; }

.detail-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* top set by JS */
  z-index: 79;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--cyber);
  box-shadow: 0 -4px 40px rgba(0,229,255,0.18), 0 -1px 0 rgba(0,229,255,0.08);
}

.detail-topbar {
  background: #000;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  flex-shrink: 0;
}

.detail-id {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyber);
  text-shadow: var(--cyber-glow);
  white-space: nowrap;
}

.detail-designation {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detail nav */
.detail-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.detail-nav-btn {
  background: none;
  border: 1px solid rgba(0,229,255,0.2);
  color: rgba(0,229,255,0.5);
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.detail-nav-btn:hover:not(:disabled) {
  color: var(--cyber);
  border-color: var(--cyber);
  box-shadow: 0 0 8px rgba(0,229,255,0.2);
}
.detail-nav-btn:disabled { opacity: 0.2; cursor: default; }
.detail-nav-pos {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 4rem;
  text-align: center;
}

.detail-close {
  background: none;
  border: 1px solid rgba(0,229,255,0.25);
  color: rgba(0,229,255,0.6);
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.detail-close:hover {
  color: var(--cyber);
  border-color: var(--cyber);
  box-shadow: 0 0 10px rgba(0,229,255,0.25);
}

.detail-body {
  display: grid;
  grid-template-columns: 38% 1fr;
  flex: 1;
  overflow: hidden;
}

.detail-img-col {
  background: #000;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.detail-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.04) 0%, transparent 65%);
}

.detail-img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: saturate(0.85);
  display: block;
}

.detail-img-placeholder {
  font-size: 6rem;
  opacity: 0.25;
  filter: grayscale(1);
}

@keyframes detail-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.detail-img-loading {
  color: var(--cyber);
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: detail-blink 1.2s ease-in-out infinite;
}

.detail-attribution {
  padding: 0.5rem 0.85rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-dim);
  line-height: 1.5;
  flex-shrink: 0;
}

.detail-attribution a {
  color: rgba(0,229,255,0.45);
  text-decoration: none;
}
.detail-attribution a:hover { color: var(--cyber); }

.detail-data-col {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.detail-section-label {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyber);
  opacity: 0.7;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.detail-section-label::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-dim);
}

.detail-specs {
  display: grid;
  gap: 0;
}

.detail-spec {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  border-bottom: 1px solid var(--border-dim);
  padding: 0.3rem 0;
  gap: 0.4rem;
}

.detail-spec-key {
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 110px;
  flex-shrink: 0;
}

.detail-spec-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(0,229,255,0.18);
  position: relative;
  top: -0.2em;
  min-width: 1rem;
}

.detail-spec-val {
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  text-align: right;
}

.detail-spec-val.val-highlight {
  color: var(--cyber);
  text-shadow: 0 0 8px rgba(0,229,255,0.4);
}

.detail-desc {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-price-block {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1.5rem;
  border-top: 1px solid var(--border-gold);
}

.detail-price-note-text {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: right;
  max-width: 280px;
  line-height: 1.5;
  opacity: 0.65;
}

.detail-price-display {
  text-align: right;
  flex-shrink: 0;
}

.detail-price-label {
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.2rem;
}

.detail-price-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,167,74,0.55), 0 0 60px rgba(201,167,74,0.2);
  line-height: 1;
}

.detail-price-value.classified-price {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(0,229,255,0.35);
  text-shadow: none;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .detail-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .detail-img-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 220px;
  }
  .detail-img-wrap { min-height: 140px; }
}
